Skip to content

Commit 570deea

Browse files
committed
Generated new version
1 parent c4d7b7a commit 570deea

File tree

177 files changed

+12014
-7173
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

177 files changed

+12014
-7173
lines changed

azure-devops/azure/devops/connection.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
from .client_configuration import ClientConfiguration
1111
from .exceptions import AzureDevOpsClientRequestError
1212
from .released.client_factory import ClientFactory
13-
from .v7_1.location.location_client import LocationClient
13+
from .v7_2.location.location_client import LocationClient
14+
from .v7_2.client_factory import ClientFactoryV7_2
1415
from .v7_1.client_factory import ClientFactoryV7_1
15-
from .v7_0.client_factory import ClientFactoryV7_0
1616

1717
logger = logging.getLogger(__name__)
1818

@@ -33,8 +33,8 @@ def __init__(self, base_url=None, creds=None, user_agent=None):
3333
self._creds = creds
3434
self._resource_areas = None
3535
self.clients = ClientFactory(self)
36+
self.clients_v7_2 = ClientFactoryV7_2(self)
3637
self.clients_v7_1 = ClientFactoryV7_1(self)
37-
self.clients_v7_0 = ClientFactoryV7_0(self)
3838
self.use_fiddler = False
3939

4040
def get_client(self, client_type):

azure-devops/azure/devops/v7_0/git/git_client.py

Lines changed: 0 additions & 39 deletions
This file was deleted.

azure-devops/azure/devops/v7_0/test_results/test_results_client.py

Lines changed: 0 additions & 348 deletions
This file was deleted.

azure-devops/azure/devops/v7_0/accounts/accounts_client.py renamed to azure-devops/azure/devops/v7_2/accounts/accounts_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def __init__(self, base_url=None, creds=None):
2727

2828
def get_accounts(self, owner_id=None, member_id=None, properties=None):
2929
"""GetAccounts.
30-
Get a list of accounts for a specific owner or a specific member. One of the following parameters is required: ownerId, memberId.
30+
[Preview API] Get a list of accounts for a specific owner or a specific member. One of the following parameters is required: ownerId, memberId.
3131
:param str owner_id: ID for the owner of the accounts.
3232
:param str member_id: ID for a member of the accounts.
3333
:param str properties:
@@ -42,7 +42,7 @@ def get_accounts(self, owner_id=None, member_id=None, properties=None):
4242
query_parameters['properties'] = self._serialize.query('properties', properties, 'str')
4343
response = self._send(http_method='GET',
4444
location_id='229a6a53-b428-4ffb-a835-e8f36b5b4b1e',
45-
version='7.0',
45+
version='7.2-preview.1',
4646
query_parameters=query_parameters)
4747
return self._deserialize('[Account]', self._unwrap_collection(response))
4848

azure-devops/azure/devops/v7_0/accounts/models.py renamed to azure-devops/azure/devops/v7_2/accounts/models.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ class Account(Model):
4040
:param organization_name: Organization that created the account
4141
:type organization_name: str
4242
:param properties: Extended properties
43-
:type properties: :class:`object <azure.devops.v7_0.accounts.models.object>`
43+
:type properties: :class:`object <azure.devops.v7_2.accounts.models.object>`
4444
:param status_reason: Reason for current status
4545
:type status_reason: str
4646
"""
@@ -93,9 +93,9 @@ class AccountCreateInfoInternal(Model):
9393
:param organization:
9494
:type organization: str
9595
:param preferences:
96-
:type preferences: :class:`AccountPreferencesInternal <azure.devops.v7_0.accounts.models.AccountPreferencesInternal>`
96+
:type preferences: :class:`AccountPreferencesInternal <azure.devops.v7_2.accounts.models.AccountPreferencesInternal>`
9797
:param properties:
98-
:type properties: :class:`object <azure.devops.v7_0.accounts.models.object>`
98+
:type properties: :class:`object <azure.devops.v7_2.accounts.models.object>`
9999
:param service_definitions:
100100
:type service_definitions: list of { key: str; value: str }
101101
"""

azure-devops/azure/devops/v7_0/audit/audit_client.py renamed to azure-devops/azure/devops/v7_2/audit/audit_client.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def get_actions(self, area_name=None):
3636
query_parameters['areaName'] = self._serialize.query('area_name', area_name, 'str')
3737
response = self._send(http_method='GET',
3838
location_id='6fa30b9a-9558-4e3b-a95f-a12572caa6e6',
39-
version='7.0-preview.1',
39+
version='7.2-preview.1',
4040
query_parameters=query_parameters)
4141
return self._deserialize('[AuditActionInfo]', self._unwrap_collection(response))
4242

@@ -48,7 +48,7 @@ def query_log(self, start_time=None, end_time=None, batch_size=None, continuatio
4848
:param int batch_size: Max number of results to return. Optional
4949
:param str continuation_token: Token used for returning next set of results from previous query. Optional
5050
:param bool skip_aggregation: Skips aggregating events and leaves them as individual entries instead. By default events are aggregated. Event types that are aggregated: AuditLog.AccessLog.
51-
:rtype: :class:`<AuditLogQueryResult> <azure.devops.v7_0.audit.models.AuditLogQueryResult>`
51+
:rtype: :class:`<AuditLogQueryResult> <azure.devops.v7_2.audit.models.AuditLogQueryResult>`
5252
"""
5353
query_parameters = {}
5454
if start_time is not None:
@@ -63,7 +63,7 @@ def query_log(self, start_time=None, end_time=None, batch_size=None, continuatio
6363
query_parameters['skipAggregation'] = self._serialize.query('skip_aggregation', skip_aggregation, 'bool')
6464
response = self._send(http_method='GET',
6565
location_id='4e5fa14f-7097-4b73-9c85-00abc7353c61',
66-
version='7.0-preview.1',
66+
version='7.2-preview.1',
6767
query_parameters=query_parameters)
6868
return self._deserialize('AuditLogQueryResult', response)
6969

@@ -84,7 +84,7 @@ def download_log(self, format, start_time=None, end_time=None, **kwargs):
8484
query_parameters['endTime'] = self._serialize.query('end_time', end_time, 'iso-8601')
8585
response = self._send(http_method='GET',
8686
location_id='b7b98a76-04e8-4f4d-ac72-9d46492caaac',
87-
version='7.0-preview.1',
87+
version='7.2-preview.1',
8888
query_parameters=query_parameters,
8989
accept_media_type='application/octet-stream')
9090
if "callback" in kwargs:
@@ -96,17 +96,17 @@ def download_log(self, format, start_time=None, end_time=None, **kwargs):
9696
def create_stream(self, stream, days_to_backfill):
9797
"""CreateStream.
9898
[Preview API] Create new Audit Stream
99-
:param :class:`<AuditStream> <azure.devops.v7_0.audit.models.AuditStream>` stream: Stream entry
99+
:param :class:`<AuditStream> <azure.devops.v7_2.audit.models.AuditStream>` stream: Stream entry
100100
:param int days_to_backfill: The number of days of previously recorded audit data that will be replayed into the stream. A value of zero will result in only new events being streamed.
101-
:rtype: :class:`<AuditStream> <azure.devops.v7_0.audit.models.AuditStream>`
101+
:rtype: :class:`<AuditStream> <azure.devops.v7_2.audit.models.AuditStream>`
102102
"""
103103
query_parameters = {}
104104
if days_to_backfill is not None:
105105
query_parameters['daysToBackfill'] = self._serialize.query('days_to_backfill', days_to_backfill, 'int')
106106
content = self._serialize.body(stream, 'AuditStream')
107107
response = self._send(http_method='POST',
108108
location_id='77d60bf9-1882-41c5-a90d-3a6d3c13fd3b',
109-
version='7.0-preview.1',
109+
version='7.2-preview.1',
110110
query_parameters=query_parameters,
111111
content=content)
112112
return self._deserialize('AuditStream', response)
@@ -121,7 +121,7 @@ def delete_stream(self, stream_id):
121121
route_values['streamId'] = self._serialize.url('stream_id', stream_id, 'int')
122122
self._send(http_method='DELETE',
123123
location_id='77d60bf9-1882-41c5-a90d-3a6d3c13fd3b',
124-
version='7.0-preview.1',
124+
version='7.2-preview.1',
125125
route_values=route_values)
126126

127127
def query_all_streams(self):
@@ -131,21 +131,21 @@ def query_all_streams(self):
131131
"""
132132
response = self._send(http_method='GET',
133133
location_id='77d60bf9-1882-41c5-a90d-3a6d3c13fd3b',
134-
version='7.0-preview.1')
134+
version='7.2-preview.1')
135135
return self._deserialize('[AuditStream]', self._unwrap_collection(response))
136136

137137
def query_stream_by_id(self, stream_id):
138138
"""QueryStreamById.
139139
[Preview API] Return Audit Stream with id of streamId if one exists otherwise throw
140140
:param int stream_id: Id of stream entry to retrieve
141-
:rtype: :class:`<AuditStream> <azure.devops.v7_0.audit.models.AuditStream>`
141+
:rtype: :class:`<AuditStream> <azure.devops.v7_2.audit.models.AuditStream>`
142142
"""
143143
route_values = {}
144144
if stream_id is not None:
145145
route_values['streamId'] = self._serialize.url('stream_id', stream_id, 'int')
146146
response = self._send(http_method='GET',
147147
location_id='77d60bf9-1882-41c5-a90d-3a6d3c13fd3b',
148-
version='7.0-preview.1',
148+
version='7.2-preview.1',
149149
route_values=route_values)
150150
return self._deserialize('AuditStream', response)
151151

@@ -154,7 +154,7 @@ def update_status(self, stream_id, status):
154154
[Preview API] Update existing Audit Stream status
155155
:param int stream_id: Id of stream entry to be updated
156156
:param str status: Status of the stream
157-
:rtype: :class:`<AuditStream> <azure.devops.v7_0.audit.models.AuditStream>`
157+
:rtype: :class:`<AuditStream> <azure.devops.v7_2.audit.models.AuditStream>`
158158
"""
159159
route_values = {}
160160
if stream_id is not None:
@@ -164,21 +164,21 @@ def update_status(self, stream_id, status):
164164
query_parameters['status'] = self._serialize.query('status', status, 'str')
165165
response = self._send(http_method='PUT',
166166
location_id='77d60bf9-1882-41c5-a90d-3a6d3c13fd3b',
167-
version='7.0-preview.1',
167+
version='7.2-preview.1',
168168
route_values=route_values,
169169
query_parameters=query_parameters)
170170
return self._deserialize('AuditStream', response)
171171

172172
def update_stream(self, stream):
173173
"""UpdateStream.
174174
[Preview API] Update existing Audit Stream
175-
:param :class:`<AuditStream> <azure.devops.v7_0.audit.models.AuditStream>` stream: Stream entry
176-
:rtype: :class:`<AuditStream> <azure.devops.v7_0.audit.models.AuditStream>`
175+
:param :class:`<AuditStream> <azure.devops.v7_2.audit.models.AuditStream>` stream: Stream entry
176+
:rtype: :class:`<AuditStream> <azure.devops.v7_2.audit.models.AuditStream>`
177177
"""
178178
content = self._serialize.body(stream, 'AuditStream')
179179
response = self._send(http_method='PUT',
180180
location_id='77d60bf9-1882-41c5-a90d-3a6d3c13fd3b',
181-
version='7.0-preview.1',
181+
version='7.2-preview.1',
182182
content=content)
183183
return self._deserialize('AuditStream', response)
184184

azure-devops/azure/devops/v7_0/audit/models.py renamed to azure-devops/azure/devops/v7_2/audit/models.py

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,13 @@ class AuditLogEntry(Model):
3838
:type action_id: str
3939
:param activity_id: ActivityId
4040
:type activity_id: str
41+
:param actor_client_id: The Actor's Client Id (if actor is a service principal)
42+
:type actor_client_id: str
4143
:param actor_cUID: The Actor's CUID
4244
:type actor_cUID: str
4345
:param actor_uPN: The Actor's UPN
4446
:type actor_uPN: str
45-
:param actor_user_id: The Actor's User Id
47+
:param actor_user_id: The Actor's User Id (if actor is a user)
4648
:type actor_user_id: str
4749
:param authentication_mechanism: Type of authentication used by the author
4850
:type authentication_mechanism: str
@@ -69,6 +71,7 @@ class AuditLogEntry(Model):
6971
_attribute_map = {
7072
'action_id': {'key': 'actionId', 'type': 'str'},
7173
'activity_id': {'key': 'activityId', 'type': 'str'},
74+
'actor_client_id': {'key': 'actorClientId', 'type': 'str'},
7275
'actor_cUID': {'key': 'actorCUID', 'type': 'str'},
7376
'actor_uPN': {'key': 'actorUPN', 'type': 'str'},
7477
'actor_user_id': {'key': 'actorUserId', 'type': 'str'},
@@ -84,10 +87,11 @@ class AuditLogEntry(Model):
8487
'user_agent': {'key': 'userAgent', 'type': 'str'}
8588
}
8689

87-
def __init__(self, action_id=None, activity_id=None, actor_cUID=None, actor_uPN=None, actor_user_id=None, authentication_mechanism=None, correlation_id=None, data=None, id=None, ip_address=None, project_id=None, scope_id=None, scope_type=None, timestamp=None, user_agent=None):
90+
def __init__(self, action_id=None, activity_id=None, actor_client_id=None, actor_cUID=None, actor_uPN=None, actor_user_id=None, authentication_mechanism=None, correlation_id=None, data=None, id=None, ip_address=None, project_id=None, scope_id=None, scope_type=None, timestamp=None, user_agent=None):
8891
super(AuditLogEntry, self).__init__()
8992
self.action_id = action_id
9093
self.activity_id = activity_id
94+
self.actor_client_id = actor_client_id
9195
self.actor_cUID = actor_cUID
9296
self.actor_uPN = actor_uPN
9397
self.actor_user_id = actor_user_id
@@ -110,7 +114,7 @@ class AuditLogQueryResult(Model):
110114
:param continuation_token: The continuation token to pass to get the next set of results
111115
:type continuation_token: str
112116
:param decorated_audit_log_entries: The list of audit log entries
113-
:type decorated_audit_log_entries: list of :class:`DecoratedAuditLogEntry <azure.devops.v7_0.audit.models.DecoratedAuditLogEntry>`
117+
:type decorated_audit_log_entries: list of :class:`DecoratedAuditLogEntry <azure.devops.v7_2.audit.models.DecoratedAuditLogEntry>`
114118
:param has_more: True when there are more matching results to be fetched, false otherwise.
115119
:type has_more: bool
116120
"""
@@ -179,6 +183,8 @@ class DecoratedAuditLogEntry(Model):
179183
:type action_id: str
180184
:param activity_id: ActivityId
181185
:type activity_id: str
186+
:param actor_client_id: The Actor's Client Id (if actor is a service principal)
187+
:type actor_client_id: str
182188
:param actor_cUID: The Actor's CUID
183189
:type actor_cUID: str
184190
:param actor_display_name: DisplayName of the user who initiated the action
@@ -187,7 +193,7 @@ class DecoratedAuditLogEntry(Model):
187193
:type actor_image_url: str
188194
:param actor_uPN: The Actor's UPN
189195
:type actor_uPN: str
190-
:param actor_user_id: The Actor's User Id
196+
:param actor_user_id: The Actor's User Id (if actor is a user)
191197
:type actor_user_id: str
192198
:param area: Area of Azure DevOps the action occurred
193199
:type area: str
@@ -226,6 +232,7 @@ class DecoratedAuditLogEntry(Model):
226232
_attribute_map = {
227233
'action_id': {'key': 'actionId', 'type': 'str'},
228234
'activity_id': {'key': 'activityId', 'type': 'str'},
235+
'actor_client_id': {'key': 'actorClientId', 'type': 'str'},
229236
'actor_cUID': {'key': 'actorCUID', 'type': 'str'},
230237
'actor_display_name': {'key': 'actorDisplayName', 'type': 'str'},
231238
'actor_image_url': {'key': 'actorImageUrl', 'type': 'str'},
@@ -249,10 +256,11 @@ class DecoratedAuditLogEntry(Model):
249256
'user_agent': {'key': 'userAgent', 'type': 'str'}
250257
}
251258

252-
def __init__(self, action_id=None, activity_id=None, actor_cUID=None, actor_display_name=None, actor_image_url=None, actor_uPN=None, actor_user_id=None, area=None, authentication_mechanism=None, category=None, category_display_name=None, correlation_id=None, data=None, details=None, id=None, ip_address=None, project_id=None, project_name=None, scope_display_name=None, scope_id=None, scope_type=None, timestamp=None, user_agent=None):
259+
def __init__(self, action_id=None, activity_id=None, actor_client_id=None, actor_cUID=None, actor_display_name=None, actor_image_url=None, actor_uPN=None, actor_user_id=None, area=None, authentication_mechanism=None, category=None, category_display_name=None, correlation_id=None, data=None, details=None, id=None, ip_address=None, project_id=None, project_name=None, scope_display_name=None, scope_id=None, scope_type=None, timestamp=None, user_agent=None):
253260
super(DecoratedAuditLogEntry, self).__init__()
254261
self.action_id = action_id
255262
self.activity_id = activity_id
263+
self.actor_client_id = actor_client_id
256264
self.actor_cUID = actor_cUID
257265
self.actor_display_name = actor_display_name
258266
self.actor_image_url = actor_image_url

azure-devops/azure/devops/v7_0/build/__init__.py renamed to azure-devops/azure/devops/v7_2/build/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,13 @@
4949
'BuildRetentionHistory',
5050
'BuildRetentionSample',
5151
'BuildSettings',
52+
'Change',
5253
'DataSourceBindingBase',
5354
'DefinitionReference',
5455
'DefinitionResourceReference',
5556
'Deployment',
5657
'Folder',
5758
'GraphSubjectBase',
58-
'Change',
5959
'IdentityRef',
6060
'Issue',
6161
'JobReference',

0 commit comments

Comments
 (0)