Skip to content

Commit e95c4bf

Browse files
committed
regen security client
1 parent e3faacf commit e95c4bf

File tree

1 file changed

+19
-20
lines changed

1 file changed

+19
-20
lines changed

vsts/vsts/security/v4_1/security_client.py

Lines changed: 19 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# --------------------------------------------------------------------------------------------
1+
# --------------------------------------------------------------------------------------------
22
# Copyright (c) Microsoft Corporation. All rights reserved.
33
# Licensed under the MIT License. See License.txt in the project root for license information.
44
# --------------------------------------------------------------------------------------------
@@ -27,7 +27,7 @@ def __init__(self, base_url=None, creds=None):
2727

2828
def remove_access_control_entries(self, security_namespace_id, token=None, descriptors=None):
2929
"""RemoveAccessControlEntries.
30-
[Preview API] Remove the specified ACEs from the ACL belonging to the specified token.
30+
Remove the specified ACEs from the ACL belonging to the specified token.
3131
:param str security_namespace_id:
3232
:param str token:
3333
:param str descriptors:
@@ -43,14 +43,14 @@ def remove_access_control_entries(self, security_namespace_id, token=None, descr
4343
query_parameters['descriptors'] = self._serialize.query('descriptors', descriptors, 'str')
4444
response = self._send(http_method='DELETE',
4545
location_id='ac08c8ff-4323-4b08-af90-bcd018d380ce',
46-
version='4.1-preview.1',
46+
version='4.1',
4747
route_values=route_values,
4848
query_parameters=query_parameters)
4949
return self._deserialize('bool', response)
5050

5151
def set_access_control_entries(self, container, security_namespace_id):
5252
"""SetAccessControlEntries.
53-
[Preview API] Add or update ACEs in the ACL for the provided token. In the case of a collision (by identity descriptor) with an existing ACE in the ACL, the "merge" parameter determines the behavior. If set, the existing ACE has its allow and deny merged with the incoming ACE's allow and deny. If unset, the existing ACE is displaced.
53+
Add or update ACEs in the ACL for the provided token. In the case of a collision (by identity descriptor) with an existing ACE in the ACL, the "merge" parameter determines the behavior. If set, the existing ACE has its allow and deny merged with the incoming ACE's allow and deny. If unset, the existing ACE is displaced.
5454
:param :class:`<object> <security.v4_1.models.object>` container:
5555
:param str security_namespace_id:
5656
:rtype: [AccessControlEntry]
@@ -61,15 +61,15 @@ def set_access_control_entries(self, container, security_namespace_id):
6161
content = self._serialize.body(container, 'object')
6262
response = self._send(http_method='POST',
6363
location_id='ac08c8ff-4323-4b08-af90-bcd018d380ce',
64-
version='4.1-preview.1',
64+
version='4.1',
6565
route_values=route_values,
6666
content=content,
6767
returns_collection=True)
6868
return self._deserialize('[AccessControlEntry]', response)
6969

7070
def query_access_control_lists(self, security_namespace_id, token=None, descriptors=None, include_extended_info=None, recurse=None):
7171
"""QueryAccessControlLists.
72-
[Preview API] Return a list of access control lists for the specified security namespace and token.
72+
Return a list of access control lists for the specified security namespace and token.
7373
:param str security_namespace_id: Security namespace identifier.
7474
:param str token: Security token
7575
:param str descriptors:
@@ -91,15 +91,15 @@ def query_access_control_lists(self, security_namespace_id, token=None, descript
9191
query_parameters['recurse'] = self._serialize.query('recurse', recurse, 'bool')
9292
response = self._send(http_method='GET',
9393
location_id='18a2ad18-7571-46ae-bec7-0c7da1495885',
94-
version='4.1-preview.1',
94+
version='4.1',
9595
route_values=route_values,
9696
query_parameters=query_parameters,
9797
returns_collection=True)
9898
return self._deserialize('[AccessControlList]', response)
9999

100100
def remove_access_control_lists(self, security_namespace_id, tokens=None, recurse=None):
101101
"""RemoveAccessControlLists.
102-
[Preview API] Remove access control lists under the specfied security namespace.
102+
Remove access control lists under the specfied security namespace.
103103
:param str security_namespace_id: Security namespace identifier.
104104
:param str tokens: One or more comma-separated security tokens
105105
:param bool recurse: If true and this is a hierarchical namespace, also remove child ACLs of the specified tokens.
@@ -115,14 +115,14 @@ def remove_access_control_lists(self, security_namespace_id, tokens=None, recurs
115115
query_parameters['recurse'] = self._serialize.query('recurse', recurse, 'bool')
116116
response = self._send(http_method='DELETE',
117117
location_id='18a2ad18-7571-46ae-bec7-0c7da1495885',
118-
version='4.1-preview.1',
118+
version='4.1',
119119
route_values=route_values,
120120
query_parameters=query_parameters)
121121
return self._deserialize('bool', response)
122122

123123
def set_access_control_lists(self, access_control_lists, security_namespace_id):
124124
"""SetAccessControlLists.
125-
[Preview API] Create one or more access control lists.
125+
Create one or more access control lists.
126126
:param :class:`<VssJsonCollectionWrapper> <security.v4_1.models.VssJsonCollectionWrapper>` access_control_lists:
127127
:param str security_namespace_id: Security namespace identifier.
128128
"""
@@ -132,26 +132,26 @@ def set_access_control_lists(self, access_control_lists, security_namespace_id):
132132
content = self._serialize.body(access_control_lists, 'VssJsonCollectionWrapper')
133133
self._send(http_method='POST',
134134
location_id='18a2ad18-7571-46ae-bec7-0c7da1495885',
135-
version='4.1-preview.1',
135+
version='4.1',
136136
route_values=route_values,
137137
content=content)
138138

139139
def has_permissions_batch(self, eval_batch):
140140
"""HasPermissionsBatch.
141-
[Preview API] Evaluates multiple permissions for the callign user. Note: This methods does not aggregate the results nor does it short-circut if one of the permissions evaluates to false.
142-
:param :class:`<PermissionEvaluationBatch> <security.v4_1.models.PermissionEvaluationBatch>` eval_batch: The set of permissions to check.
141+
Evaluates multiple permissions for the calling user. Note: This method does not aggregate the results, nor does it short-circuit if one of the permissions evaluates to false.
142+
:param :class:`<PermissionEvaluationBatch> <security.v4_1.models.PermissionEvaluationBatch>` eval_batch: The set of evaluation requests.
143143
:rtype: :class:`<PermissionEvaluationBatch> <security.v4_1.models.PermissionEvaluationBatch>`
144144
"""
145145
content = self._serialize.body(eval_batch, 'PermissionEvaluationBatch')
146146
response = self._send(http_method='POST',
147147
location_id='cf1faa59-1b63-4448-bf04-13d981a46f5d',
148-
version='4.1-preview.1',
148+
version='4.1',
149149
content=content)
150150
return self._deserialize('PermissionEvaluationBatch', response)
151151

152152
def has_permissions(self, security_namespace_id, permissions=None, tokens=None, always_allow_administrators=None, delimiter=None):
153153
"""HasPermissions.
154-
[Preview API] Evaluates whether the caller has the specified permissions on the specified set of security tokens.
154+
Evaluates whether the caller has the specified permissions on the specified set of security tokens.
155155
:param str security_namespace_id: Security namespace identifier.
156156
:param int permissions: Permissions to evaluate.
157157
:param str tokens: One or more security tokens to evaluate.
@@ -173,15 +173,15 @@ def has_permissions(self, security_namespace_id, permissions=None, tokens=None,
173173
query_parameters['delimiter'] = self._serialize.query('delimiter', delimiter, 'str')
174174
response = self._send(http_method='GET',
175175
location_id='dd3b8bd6-c7fc-4cbd-929a-933d9c011c9d',
176-
version='4.1-preview.2',
176+
version='4.1',
177177
route_values=route_values,
178178
query_parameters=query_parameters,
179179
returns_collection=True)
180180
return self._deserialize('[bool]', response)
181181

182182
def remove_permission(self, security_namespace_id, permissions=None, token=None, descriptor=None):
183183
"""RemovePermission.
184-
[Preview API] Removes the specified permissions from the caller or specified user or group.
184+
Removes the specified permissions from the caller or specified user or group.
185185
:param str security_namespace_id: Security namespace identifier.
186186
:param int permissions: Permissions to remove.
187187
:param str token: Security token to remove permissions for.
@@ -200,14 +200,13 @@ def remove_permission(self, security_namespace_id, permissions=None, token=None,
200200
query_parameters['descriptor'] = self._serialize.query('descriptor', descriptor, 'str')
201201
response = self._send(http_method='DELETE',
202202
location_id='dd3b8bd6-c7fc-4cbd-929a-933d9c011c9d',
203-
version='4.1-preview.2',
203+
version='4.1',
204204
route_values=route_values,
205205
query_parameters=query_parameters)
206206
return self._deserialize('AccessControlEntry', response)
207207

208208
def query_security_namespaces(self, security_namespace_id, local_only=None):
209209
"""QuerySecurityNamespaces.
210-
[Preview API]
211210
:param str security_namespace_id:
212211
:param bool local_only:
213212
:rtype: [SecurityNamespaceDescription]
@@ -220,7 +219,7 @@ def query_security_namespaces(self, security_namespace_id, local_only=None):
220219
query_parameters['localOnly'] = self._serialize.query('local_only', local_only, 'bool')
221220
response = self._send(http_method='GET',
222221
location_id='ce7b9f95-fde9-4be8-a86d-83b366f0b87a',
223-
version='4.1-preview.1',
222+
version='4.1',
224223
route_values=route_values,
225224
query_parameters=query_parameters,
226225
returns_collection=True)

0 commit comments

Comments
 (0)