Skip to content

regen 6.0 as preview #358

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Aug 15, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion azure-devops/azure/devops/released/accounts/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------------------------

from ...v6_0.accounts.models import *
from ...v5_1.accounts.models import *
from .accounts_client import AccountsClient

__all__ = [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from msrest import Serializer, Deserializer
from ...client import Client
from ...v6_0.accounts import models
from ...v5_1.accounts import models


class AccountsClient(Client):
Expand All @@ -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.
Get a list of accounts for a specific owner or a specific member.
: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='6.0',
version='5.1',
query_parameters=query_parameters)
return self._deserialize('[Account]', self._unwrap_collection(response))

15 changes: 1 addition & 14 deletions azure-devops/azure/devops/released/build/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------------------------

from ...v6_0.build.models import *
from ...v5_1.build.models import *
from .build_client import BuildClient

__all__ = [
Expand Down Expand Up @@ -56,28 +56,18 @@
'GraphSubjectBase',
'IdentityRef',
'Issue',
'JobReference',
'JsonPatchOperation',
'MinimalRetentionLease',
'NewRetentionLease',
'PhaseReference',
'PipelineGeneralSettings',
'PipelineReference',
'ProcessParameters',
'ProjectRetentionSetting',
'PullRequest',
'ReferenceLinks',
'ReleaseReference',
'RepositoryWebhook',
'ResourceRef',
'RetentionLease',
'RetentionPolicy',
'RetentionSetting',
'SourceProviderAttributes',
'SourceRepositories',
'SourceRepository',
'SourceRepositoryItem',
'StageReference',
'SupportedTrigger',
'TaskAgentPoolReference',
'TaskDefinitionReference',
Expand All @@ -92,9 +82,6 @@
'TimelineAttempt',
'TimelineRecord',
'TimelineReference',
'UpdateProjectRetentionSettingModel',
'UpdateRetentionSettingModel',
'UpdateStageParameters',
'VariableGroup',
'VariableGroupReference',
'WebApiConnectedServiceRef',
Expand Down
210 changes: 117 additions & 93 deletions azure-devops/azure/devops/released/build/build_client.py

Large diffs are not rendered by default.

372 changes: 67 additions & 305 deletions azure-devops/azure/devops/released/client_factory.py

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------------------------

from ...v6_0.cloud_load_test.models import *
from ...v5_1.cloud_load_test.models import *
from .cloud_load_test_client import CloudLoadTestClient

__all__ = [
Expand Down

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion azure-devops/azure/devops/released/core/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------------------------

from ...v6_0.core.models import *
from ...v5_1.core.models import *
from .core_client import CoreClient

__all__ = [
Expand Down
77 changes: 46 additions & 31 deletions azure-devops/azure/devops/released/core/core_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

from msrest import Serializer, Deserializer
from ...client import Client
from ...v6_0.core import models
from ...v5_1.core import models


class CoreClient(Client):
Expand Down Expand Up @@ -46,7 +46,7 @@ def get_team_members_with_extended_properties(self, project_id, team_id, top=Non
query_parameters['$skip'] = self._serialize.query('skip', skip, 'int')
response = self._send(http_method='GET',
location_id='294c494c-2600-4d7e-b76c-3dd50c3c95be',
version='6.0',
version='5.1',
route_values=route_values,
query_parameters=query_parameters)
return self._deserialize('[TeamMember]', self._unwrap_collection(response))
Expand All @@ -55,14 +55,14 @@ def get_process_by_id(self, process_id):
"""GetProcessById.
Get a process by ID.
:param str process_id: ID for a process.
:rtype: :class:`<Process> <azure.devops.v6_0.core.models.Process>`
:rtype: :class:`<Process> <azure.devops.v5_1.core.models.Process>`
"""
route_values = {}
if process_id is not None:
route_values['processId'] = self._serialize.url('process_id', process_id, 'str')
response = self._send(http_method='GET',
location_id='93878975-88c5-4e6a-8abb-7ddd77a8a7d8',
version='6.0',
version='5.1',
route_values=route_values)
return self._deserialize('Process', response)

Expand All @@ -73,21 +73,21 @@ def get_processes(self):
"""
response = self._send(http_method='GET',
location_id='93878975-88c5-4e6a-8abb-7ddd77a8a7d8',
version='6.0')
version='5.1')
return self._deserialize('[Process]', self._unwrap_collection(response))

def get_project_collection(self, collection_id):
"""GetProjectCollection.
Get project collection with the specified id or name.
:param str collection_id:
:rtype: :class:`<TeamProjectCollection> <azure.devops.v6_0.core.models.TeamProjectCollection>`
:rtype: :class:`<TeamProjectCollection> <azure.devops.v5_1.core.models.TeamProjectCollection>`
"""
route_values = {}
if collection_id is not None:
route_values['collectionId'] = self._serialize.url('collection_id', collection_id, 'str')
response = self._send(http_method='GET',
location_id='8031090f-ef1d-4af6-85fc-698cd75d42bf',
version='6.0',
version='5.1',
route_values=route_values)
return self._deserialize('TeamProjectCollection', response)

Expand All @@ -105,7 +105,7 @@ def get_project_collections(self, top=None, skip=None):
query_parameters['$skip'] = self._serialize.query('skip', skip, 'int')
response = self._send(http_method='GET',
location_id='8031090f-ef1d-4af6-85fc-698cd75d42bf',
version='6.0',
version='5.1',
query_parameters=query_parameters)
return self._deserialize('[TeamProjectCollectionReference]', self._unwrap_collection(response))

Expand All @@ -115,7 +115,7 @@ def get_project(self, project_id, include_capabilities=None, include_history=Non
:param str project_id:
:param bool include_capabilities: Include capabilities (such as source control) in the team project result (default: false).
:param bool include_history: Search within renamed projects (that had such name in the past).
:rtype: :class:`<TeamProject> <azure.devops.v6_0.core.models.TeamProject>`
:rtype: :class:`<TeamProject> <azure.devops.v5_1.core.models.TeamProject>`
"""
route_values = {}
if project_id is not None:
Expand All @@ -127,7 +127,7 @@ def get_project(self, project_id, include_capabilities=None, include_history=Non
query_parameters['includeHistory'] = self._serialize.query('include_history', include_history, 'bool')
response = self._send(http_method='GET',
location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1',
version='6.0',
version='5.1',
route_values=route_values,
query_parameters=query_parameters)
return self._deserialize('TeamProject', response)
Expand All @@ -140,7 +140,7 @@ def get_projects(self, state_filter=None, top=None, skip=None, continuation_toke
:param int skip:
:param str continuation_token:
:param bool get_default_team_image_url:
:rtype: :class:`<[TeamProjectReference]> <azure.devops.v6_0.core.models.[TeamProjectReference]>`
:rtype: :class:`<GetProjectsResponseValue>`
"""
query_parameters = {}
if state_filter is not None:
Expand All @@ -155,70 +155,85 @@ def get_projects(self, state_filter=None, top=None, skip=None, continuation_toke
query_parameters['getDefaultTeamImageUrl'] = self._serialize.query('get_default_team_image_url', get_default_team_image_url, 'bool')
response = self._send(http_method='GET',
location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1',
version='6.0',
version='5.1',
query_parameters=query_parameters)
return self._deserialize('[TeamProjectReference]', self._unwrap_collection(response))
response_value = self._deserialize('[TeamProjectReference]', self._unwrap_collection(response))
continuation_token = self._get_continuation_token(response)
return self.GetProjectsResponseValue(response_value, continuation_token)

class GetProjectsResponseValue(object):
def __init__(self, value, continuation_token):
"""
Response for the get_projects method

:param value:
:type value: :class:`<[TeamProjectReference]> <azure.devops.v5_1.core.models.[TeamProjectReference]>`
:param continuation_token: The continuation token to be used to get the next page of results.
:type continuation_token: str
"""
self.value = value
self.continuation_token = continuation_token

def queue_create_project(self, project_to_create):
"""QueueCreateProject.
Queues a project to be created. Use the [GetOperation](../../operations/operations/get) to periodically check for create project status.
:param :class:`<TeamProject> <azure.devops.v6_0.core.models.TeamProject>` project_to_create: The project to create.
:rtype: :class:`<OperationReference> <azure.devops.v6_0.core.models.OperationReference>`
:param :class:`<TeamProject> <azure.devops.v5_1.core.models.TeamProject>` project_to_create: The project to create.
:rtype: :class:`<OperationReference> <azure.devops.v5_1.core.models.OperationReference>`
"""
content = self._serialize.body(project_to_create, 'TeamProject')
response = self._send(http_method='POST',
location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1',
version='6.0',
version='5.1',
content=content)
return self._deserialize('OperationReference', response)

def queue_delete_project(self, project_id):
"""QueueDeleteProject.
Queues a project to be deleted. Use the [GetOperation](../../operations/operations/get) to periodically check for delete project status.
:param str project_id: The project id of the project to delete.
:rtype: :class:`<OperationReference> <azure.devops.v6_0.core.models.OperationReference>`
:rtype: :class:`<OperationReference> <azure.devops.v5_1.core.models.OperationReference>`
"""
route_values = {}
if project_id is not None:
route_values['projectId'] = self._serialize.url('project_id', project_id, 'str')
response = self._send(http_method='DELETE',
location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1',
version='6.0',
version='5.1',
route_values=route_values)
return self._deserialize('OperationReference', response)

def update_project(self, project_update, project_id):
"""UpdateProject.
Update an existing project's name, abbreviation, description, or restore a project.
:param :class:`<TeamProject> <azure.devops.v6_0.core.models.TeamProject>` project_update: The updates for the project. The state must be set to wellFormed to restore the project.
:param :class:`<TeamProject> <azure.devops.v5_1.core.models.TeamProject>` project_update: The updates for the project. The state must be set to wellFormed to restore the project.
:param str project_id: The project id of the project to update.
:rtype: :class:`<OperationReference> <azure.devops.v6_0.core.models.OperationReference>`
:rtype: :class:`<OperationReference> <azure.devops.v5_1.core.models.OperationReference>`
"""
route_values = {}
if project_id is not None:
route_values['projectId'] = self._serialize.url('project_id', project_id, 'str')
content = self._serialize.body(project_update, 'TeamProject')
response = self._send(http_method='PATCH',
location_id='603fe2ac-9723-48b9-88ad-09305aa6c6e1',
version='6.0',
version='5.1',
route_values=route_values,
content=content)
return self._deserialize('OperationReference', response)

def create_team(self, team, project_id):
"""CreateTeam.
Create a team in a team project.
:param :class:`<WebApiTeam> <azure.devops.v6_0.core.models.WebApiTeam>` team: The team data used to create the team.
:param :class:`<WebApiTeam> <azure.devops.v5_1.core.models.WebApiTeam>` team: The team data used to create the team.
:param str project_id: The name or ID (GUID) of the team project in which to create the team.
:rtype: :class:`<WebApiTeam> <azure.devops.v6_0.core.models.WebApiTeam>`
:rtype: :class:`<WebApiTeam> <azure.devops.v5_1.core.models.WebApiTeam>`
"""
route_values = {}
if project_id is not None:
route_values['projectId'] = self._serialize.url('project_id', project_id, 'str')
content = self._serialize.body(team, 'WebApiTeam')
response = self._send(http_method='POST',
location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59',
version='6.0',
version='5.1',
route_values=route_values,
content=content)
return self._deserialize('WebApiTeam', response)
Expand All @@ -236,7 +251,7 @@ def delete_team(self, project_id, team_id):
route_values['teamId'] = self._serialize.url('team_id', team_id, 'str')
self._send(http_method='DELETE',
location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59',
version='6.0',
version='5.1',
route_values=route_values)

def get_team(self, project_id, team_id, expand_identity=None):
Expand All @@ -245,7 +260,7 @@ def get_team(self, project_id, team_id, expand_identity=None):
:param str project_id: The name or ID (GUID) of the team project containing the team.
:param str team_id: The name or ID (GUID) of the team.
:param bool expand_identity: A value indicating whether or not to expand Identity information in the result WebApiTeam object.
:rtype: :class:`<WebApiTeam> <azure.devops.v6_0.core.models.WebApiTeam>`
:rtype: :class:`<WebApiTeam> <azure.devops.v5_1.core.models.WebApiTeam>`
"""
route_values = {}
if project_id is not None:
Expand All @@ -257,7 +272,7 @@ def get_team(self, project_id, team_id, expand_identity=None):
query_parameters['$expandIdentity'] = self._serialize.query('expand_identity', expand_identity, 'bool')
response = self._send(http_method='GET',
location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59',
version='6.0',
version='5.1',
route_values=route_values,
query_parameters=query_parameters)
return self._deserialize('WebApiTeam', response)
Expand Down Expand Up @@ -286,18 +301,18 @@ def get_teams(self, project_id, mine=None, top=None, skip=None, expand_identity=
query_parameters['$expandIdentity'] = self._serialize.query('expand_identity', expand_identity, 'bool')
response = self._send(http_method='GET',
location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59',
version='6.0',
version='5.1',
route_values=route_values,
query_parameters=query_parameters)
return self._deserialize('[WebApiTeam]', self._unwrap_collection(response))

def update_team(self, team_data, project_id, team_id):
"""UpdateTeam.
Update a team's name and/or description.
:param :class:`<WebApiTeam> <azure.devops.v6_0.core.models.WebApiTeam>` team_data:
:param :class:`<WebApiTeam> <azure.devops.v5_1.core.models.WebApiTeam>` team_data:
:param str project_id: The name or ID (GUID) of the team project containing the team to update.
:param str team_id: The name of ID of the team to update.
:rtype: :class:`<WebApiTeam> <azure.devops.v6_0.core.models.WebApiTeam>`
:rtype: :class:`<WebApiTeam> <azure.devops.v5_1.core.models.WebApiTeam>`
"""
route_values = {}
if project_id is not None:
Expand All @@ -307,7 +322,7 @@ def update_team(self, team_data, project_id, team_id):
content = self._serialize.body(team_data, 'WebApiTeam')
response = self._send(http_method='PATCH',
location_id='d30a3dd1-f8ba-442a-b86a-bd0c0c383e59',
version='6.0',
version='5.1',
route_values=route_values,
content=content)
return self._deserialize('WebApiTeam', response)
Expand Down
2 changes: 1 addition & 1 deletion azure-devops/azure/devops/released/git/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------------------------

from ...v6_0.git.models import *
from ...v5_1.git.models import *
from .git_client import GitClient

__all__ = [
Expand Down
13 changes: 13 additions & 0 deletions azure-devops/azure/devops/released/git/git_client.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# coding=utf-8

from .git_client_base import GitClientBase


class GitClient(GitClientBase):
"""Git
:param str base_url: Service URL
:param Authentication creds: Authenticated credentials.
"""

def __init__(self, base_url=None, creds=None):
super(GitClient, self).__init__(base_url, creds)
Loading