Skip to content

Commit

Permalink
Generated new version
Browse files Browse the repository at this point in the history
  • Loading branch information
Rimobul committed Jan 16, 2024
1 parent 2cd2d0f commit 0ae8eb2
Show file tree
Hide file tree
Showing 177 changed files with 12,014 additions and 7,173 deletions.
6 changes: 3 additions & 3 deletions azure-devops/azure/devops/connection.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@
from .client_configuration import ClientConfiguration
from .exceptions import AzureDevOpsClientRequestError
from .released.client_factory import ClientFactory
from .v7_1.location.location_client import LocationClient
from .v7_2.location.location_client import LocationClient
from .v7_2.client_factory import ClientFactoryV7_2
from .v7_1.client_factory import ClientFactoryV7_1
from .v7_0.client_factory import ClientFactoryV7_0

logger = logging.getLogger(__name__)

Expand All @@ -33,8 +33,8 @@ def __init__(self, base_url=None, creds=None, user_agent=None):
self._creds = creds
self._resource_areas = None
self.clients = ClientFactory(self)
self.clients_v7_2 = ClientFactoryV7_2(self)
self.clients_v7_1 = ClientFactoryV7_1(self)
self.clients_v7_0 = ClientFactoryV7_0(self)
self.use_fiddler = False

def get_client(self, client_type):
Expand Down
39 changes: 0 additions & 39 deletions azure-devops/azure/devops/v7_0/git/git_client.py

This file was deleted.

348 changes: 0 additions & 348 deletions azure-devops/azure/devops/v7_0/test_results/test_results_client.py

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def __init__(self, base_url=None, creds=None):

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

Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class Account(Model):
:param organization_name: Organization that created the account
:type organization_name: str
:param properties: Extended properties
:type properties: :class:`object <azure.devops.v7_0.accounts.models.object>`
:type properties: :class:`object <azure.devops.v7_2.accounts.models.object>`
:param status_reason: Reason for current status
:type status_reason: str
"""
Expand Down Expand Up @@ -93,9 +93,9 @@ class AccountCreateInfoInternal(Model):
:param organization:
:type organization: str
:param preferences:
:type preferences: :class:`AccountPreferencesInternal <azure.devops.v7_0.accounts.models.AccountPreferencesInternal>`
:type preferences: :class:`AccountPreferencesInternal <azure.devops.v7_2.accounts.models.AccountPreferencesInternal>`
:param properties:
:type properties: :class:`object <azure.devops.v7_0.accounts.models.object>`
:type properties: :class:`object <azure.devops.v7_2.accounts.models.object>`
:param service_definitions:
:type service_definitions: list of { key: str; value: str }
"""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_actions(self, area_name=None):
query_parameters['areaName'] = self._serialize.query('area_name', area_name, 'str')
response = self._send(http_method='GET',
location_id='6fa30b9a-9558-4e3b-a95f-a12572caa6e6',
version='7.0-preview.1',
version='7.2-preview.1',
query_parameters=query_parameters)
return self._deserialize('[AuditActionInfo]', self._unwrap_collection(response))

Expand All @@ -48,7 +48,7 @@ def query_log(self, start_time=None, end_time=None, batch_size=None, continuatio
:param int batch_size: Max number of results to return. Optional
:param str continuation_token: Token used for returning next set of results from previous query. Optional
: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.
:rtype: :class:`<AuditLogQueryResult> <azure.devops.v7_0.audit.models.AuditLogQueryResult>`
:rtype: :class:`<AuditLogQueryResult> <azure.devops.v7_2.audit.models.AuditLogQueryResult>`
"""
query_parameters = {}
if start_time is not None:
Expand All @@ -63,7 +63,7 @@ def query_log(self, start_time=None, end_time=None, batch_size=None, continuatio
query_parameters['skipAggregation'] = self._serialize.query('skip_aggregation', skip_aggregation, 'bool')
response = self._send(http_method='GET',
location_id='4e5fa14f-7097-4b73-9c85-00abc7353c61',
version='7.0-preview.1',
version='7.2-preview.1',
query_parameters=query_parameters)
return self._deserialize('AuditLogQueryResult', response)

Expand All @@ -84,7 +84,7 @@ def download_log(self, format, start_time=None, end_time=None, **kwargs):
query_parameters['endTime'] = self._serialize.query('end_time', end_time, 'iso-8601')
response = self._send(http_method='GET',
location_id='b7b98a76-04e8-4f4d-ac72-9d46492caaac',
version='7.0-preview.1',
version='7.2-preview.1',
query_parameters=query_parameters,
accept_media_type='application/octet-stream')
if "callback" in kwargs:
Expand All @@ -96,17 +96,17 @@ def download_log(self, format, start_time=None, end_time=None, **kwargs):
def create_stream(self, stream, days_to_backfill):
"""CreateStream.
[Preview API] Create new Audit Stream
:param :class:`<AuditStream> <azure.devops.v7_0.audit.models.AuditStream>` stream: Stream entry
:param :class:`<AuditStream> <azure.devops.v7_2.audit.models.AuditStream>` stream: Stream entry
: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.
:rtype: :class:`<AuditStream> <azure.devops.v7_0.audit.models.AuditStream>`
:rtype: :class:`<AuditStream> <azure.devops.v7_2.audit.models.AuditStream>`
"""
query_parameters = {}
if days_to_backfill is not None:
query_parameters['daysToBackfill'] = self._serialize.query('days_to_backfill', days_to_backfill, 'int')
content = self._serialize.body(stream, 'AuditStream')
response = self._send(http_method='POST',
location_id='77d60bf9-1882-41c5-a90d-3a6d3c13fd3b',
version='7.0-preview.1',
version='7.2-preview.1',
query_parameters=query_parameters,
content=content)
return self._deserialize('AuditStream', response)
Expand All @@ -121,7 +121,7 @@ def delete_stream(self, stream_id):
route_values['streamId'] = self._serialize.url('stream_id', stream_id, 'int')
self._send(http_method='DELETE',
location_id='77d60bf9-1882-41c5-a90d-3a6d3c13fd3b',
version='7.0-preview.1',
version='7.2-preview.1',
route_values=route_values)

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

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

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

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

Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,13 @@ class AuditLogEntry(Model):
:type action_id: str
:param activity_id: ActivityId
:type activity_id: str
:param actor_client_id: The Actor's Client Id (if actor is a service principal)
:type actor_client_id: str
:param actor_cUID: The Actor's CUID
:type actor_cUID: str
:param actor_uPN: The Actor's UPN
:type actor_uPN: str
:param actor_user_id: The Actor's User Id
:param actor_user_id: The Actor's User Id (if actor is a user)
:type actor_user_id: str
:param authentication_mechanism: Type of authentication used by the author
:type authentication_mechanism: str
Expand All @@ -69,6 +71,7 @@ class AuditLogEntry(Model):
_attribute_map = {
'action_id': {'key': 'actionId', 'type': 'str'},
'activity_id': {'key': 'activityId', 'type': 'str'},
'actor_client_id': {'key': 'actorClientId', 'type': 'str'},
'actor_cUID': {'key': 'actorCUID', 'type': 'str'},
'actor_uPN': {'key': 'actorUPN', 'type': 'str'},
'actor_user_id': {'key': 'actorUserId', 'type': 'str'},
Expand All @@ -84,10 +87,11 @@ class AuditLogEntry(Model):
'user_agent': {'key': 'userAgent', 'type': 'str'}
}

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):
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):
super(AuditLogEntry, self).__init__()
self.action_id = action_id
self.activity_id = activity_id
self.actor_client_id = actor_client_id
self.actor_cUID = actor_cUID
self.actor_uPN = actor_uPN
self.actor_user_id = actor_user_id
Expand All @@ -110,7 +114,7 @@ class AuditLogQueryResult(Model):
:param continuation_token: The continuation token to pass to get the next set of results
:type continuation_token: str
:param decorated_audit_log_entries: The list of audit log entries
:type decorated_audit_log_entries: list of :class:`DecoratedAuditLogEntry <azure.devops.v7_0.audit.models.DecoratedAuditLogEntry>`
:type decorated_audit_log_entries: list of :class:`DecoratedAuditLogEntry <azure.devops.v7_2.audit.models.DecoratedAuditLogEntry>`
:param has_more: True when there are more matching results to be fetched, false otherwise.
:type has_more: bool
"""
Expand Down Expand Up @@ -179,6 +183,8 @@ class DecoratedAuditLogEntry(Model):
:type action_id: str
:param activity_id: ActivityId
:type activity_id: str
:param actor_client_id: The Actor's Client Id (if actor is a service principal)
:type actor_client_id: str
:param actor_cUID: The Actor's CUID
:type actor_cUID: str
:param actor_display_name: DisplayName of the user who initiated the action
Expand All @@ -187,7 +193,7 @@ class DecoratedAuditLogEntry(Model):
:type actor_image_url: str
:param actor_uPN: The Actor's UPN
:type actor_uPN: str
:param actor_user_id: The Actor's User Id
:param actor_user_id: The Actor's User Id (if actor is a user)
:type actor_user_id: str
:param area: Area of Azure DevOps the action occurred
:type area: str
Expand Down Expand Up @@ -226,6 +232,7 @@ class DecoratedAuditLogEntry(Model):
_attribute_map = {
'action_id': {'key': 'actionId', 'type': 'str'},
'activity_id': {'key': 'activityId', 'type': 'str'},
'actor_client_id': {'key': 'actorClientId', 'type': 'str'},
'actor_cUID': {'key': 'actorCUID', 'type': 'str'},
'actor_display_name': {'key': 'actorDisplayName', 'type': 'str'},
'actor_image_url': {'key': 'actorImageUrl', 'type': 'str'},
Expand All @@ -249,10 +256,11 @@ class DecoratedAuditLogEntry(Model):
'user_agent': {'key': 'userAgent', 'type': 'str'}
}

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):
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):
super(DecoratedAuditLogEntry, self).__init__()
self.action_id = action_id
self.activity_id = activity_id
self.actor_client_id = actor_client_id
self.actor_cUID = actor_cUID
self.actor_display_name = actor_display_name
self.actor_image_url = actor_image_url
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,13 @@
'BuildRetentionHistory',
'BuildRetentionSample',
'BuildSettings',
'Change',
'DataSourceBindingBase',
'DefinitionReference',
'DefinitionResourceReference',
'Deployment',
'Folder',
'GraphSubjectBase',
'Change',
'IdentityRef',
'Issue',
'JobReference',
Expand Down
Loading

0 comments on commit 0ae8eb2

Please sign in to comment.