Skip to content

Commit 7bb9ff7

Browse files
authored
Merge pull request #43 from Microsoft/users/tedchamb/regen
fix TeamContext issue in clients. regen 4.0 and 4.1 with fix.
2 parents c3c71cc + b189b5e commit 7bb9ff7

File tree

145 files changed

+2308
-3259
lines changed

Some content is hidden

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

145 files changed

+2308
-3259
lines changed

vsts/vsts/build/v4_1/build_client.py

Lines changed: 293 additions & 23 deletions
Large diffs are not rendered by default.

vsts/vsts/build/v4_1/models/__init__.py

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,21 @@
77
# --------------------------------------------------------------------------------------------
88

99
from .agent_pool_queue import AgentPoolQueue
10+
from .aggregated_results_analysis import AggregatedResultsAnalysis
11+
from .aggregated_results_by_outcome import AggregatedResultsByOutcome
12+
from .aggregated_results_difference import AggregatedResultsDifference
13+
from .aggregated_runs_by_state import AggregatedRunsByState
1014
from .artifact_resource import ArtifactResource
15+
from .associated_work_item import AssociatedWorkItem
16+
from .attachment import Attachment
1117
from .authorization_header import AuthorizationHeader
1218
from .build import Build
1319
from .build_artifact import BuildArtifact
1420
from .build_badge import BuildBadge
1521
from .build_controller import BuildController
1622
from .build_definition import BuildDefinition
1723
from .build_definition3_2 import BuildDefinition3_2
24+
from .build_definition_counter import BuildDefinitionCounter
1825
from .build_definition_reference import BuildDefinitionReference
1926
from .build_definition_reference3_2 import BuildDefinitionReference3_2
2027
from .build_definition_revision import BuildDefinitionRevision
@@ -42,15 +49,20 @@
4249
from .definition_reference import DefinitionReference
4350
from .deployment import Deployment
4451
from .folder import Folder
52+
from .graph_subject_base import GraphSubjectBase
4553
from .identity_ref import IdentityRef
4654
from .issue import Issue
4755
from .json_patch_operation import JsonPatchOperation
4856
from .process_parameters import ProcessParameters
4957
from .reference_links import ReferenceLinks
58+
from .release_reference import ReleaseReference
59+
from .repository_webhook import RepositoryWebhook
5060
from .resource_ref import ResourceRef
5161
from .retention_policy import RetentionPolicy
5262
from .source_provider_attributes import SourceProviderAttributes
63+
from .source_repositories import SourceRepositories
5364
from .source_repository import SourceRepository
65+
from .source_repository_item import SourceRepositoryItem
5466
from .supported_trigger import SupportedTrigger
5567
from .task_agent_pool_reference import TaskAgentPoolReference
5668
from .task_definition_reference import TaskDefinitionReference
@@ -60,6 +72,7 @@
6072
from .task_reference import TaskReference
6173
from .task_source_definition_base import TaskSourceDefinitionBase
6274
from .team_project_reference import TeamProjectReference
75+
from .test_results_context import TestResultsContext
6376
from .timeline import Timeline
6477
from .timeline_record import TimelineRecord
6578
from .timeline_reference import TimelineReference
@@ -70,14 +83,21 @@
7083

7184
__all__ = [
7285
'AgentPoolQueue',
86+
'AggregatedResultsAnalysis',
87+
'AggregatedResultsByOutcome',
88+
'AggregatedResultsDifference',
89+
'AggregatedRunsByState',
7390
'ArtifactResource',
91+
'AssociatedWorkItem',
92+
'Attachment',
7493
'AuthorizationHeader',
7594
'Build',
7695
'BuildArtifact',
7796
'BuildBadge',
7897
'BuildController',
7998
'BuildDefinition',
8099
'BuildDefinition3_2',
100+
'BuildDefinitionCounter',
81101
'BuildDefinitionReference',
82102
'BuildDefinitionReference3_2',
83103
'BuildDefinitionRevision',
@@ -105,15 +125,20 @@
105125
'DefinitionReference',
106126
'Deployment',
107127
'Folder',
128+
'GraphSubjectBase',
108129
'IdentityRef',
109130
'Issue',
110131
'JsonPatchOperation',
111132
'ProcessParameters',
112133
'ReferenceLinks',
134+
'ReleaseReference',
135+
'RepositoryWebhook',
113136
'ResourceRef',
114137
'RetentionPolicy',
115138
'SourceProviderAttributes',
139+
'SourceRepositories',
116140
'SourceRepository',
141+
'SourceRepositoryItem',
117142
'SupportedTrigger',
118143
'TaskAgentPoolReference',
119144
'TaskDefinitionReference',
@@ -123,6 +148,7 @@
123148
'TaskReference',
124149
'TaskSourceDefinitionBase',
125150
'TeamProjectReference',
151+
'TestResultsContext',
126152
'Timeline',
127153
'TimelineRecord',
128154
'TimelineReference',

vsts/vsts/build/v4_1/models/artifact_resource.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ class ArtifactResource(Model):
1616
:type _links: :class:`ReferenceLinks <build.v4_1.models.ReferenceLinks>`
1717
:param data: Type-specific data about the artifact.
1818
:type data: str
19+
:param download_ticket: A secret that can be sent in a request header to retrieve an artifact anonymously. Valid for a limited amount of time. Optional.
20+
:type download_ticket: str
1921
:param download_url: A link to download the resource.
2022
:type download_url: str
2123
:param properties: Type-specific properties of the artifact.
@@ -29,16 +31,18 @@ class ArtifactResource(Model):
2931
_attribute_map = {
3032
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
3133
'data': {'key': 'data', 'type': 'str'},
34+
'download_ticket': {'key': 'downloadTicket', 'type': 'str'},
3235
'download_url': {'key': 'downloadUrl', 'type': 'str'},
3336
'properties': {'key': 'properties', 'type': '{str}'},
3437
'type': {'key': 'type', 'type': 'str'},
3538
'url': {'key': 'url', 'type': 'str'}
3639
}
3740

38-
def __init__(self, _links=None, data=None, download_url=None, properties=None, type=None, url=None):
41+
def __init__(self, _links=None, data=None, download_ticket=None, download_url=None, properties=None, type=None, url=None):
3942
super(ArtifactResource, self).__init__()
4043
self._links = _links
4144
self.data = data
45+
self.download_ticket = download_ticket
4246
self.download_url = download_url
4347
self.properties = properties
4448
self.type = type

vsts/vsts/build/v4_1/models/build.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,8 @@ class Build(Model):
8888
:type status: object
8989
:param tags:
9090
:type tags: list of str
91+
:param triggered_by_build: The build that triggered this build via a Build completion trigger.
92+
:type triggered_by_build: :class:`Build <build.v4_1.models.Build>`
9193
:param trigger_info: Sourceprovider-specific information about what triggered the build
9294
:type trigger_info: dict
9395
:param uri: The URI of the build.
@@ -137,13 +139,14 @@ class Build(Model):
137139
'start_time': {'key': 'startTime', 'type': 'iso-8601'},
138140
'status': {'key': 'status', 'type': 'object'},
139141
'tags': {'key': 'tags', 'type': '[str]'},
142+
'triggered_by_build': {'key': 'triggeredByBuild', 'type': 'Build'},
140143
'trigger_info': {'key': 'triggerInfo', 'type': '{str}'},
141144
'uri': {'key': 'uri', 'type': 'str'},
142145
'url': {'key': 'url', 'type': 'str'},
143146
'validation_results': {'key': 'validationResults', 'type': '[BuildRequestValidationResult]'}
144147
}
145148

146-
def __init__(self, _links=None, build_number=None, build_number_revision=None, controller=None, definition=None, deleted=None, deleted_by=None, deleted_date=None, deleted_reason=None, demands=None, finish_time=None, id=None, keep_forever=None, last_changed_by=None, last_changed_date=None, logs=None, orchestration_plan=None, parameters=None, plans=None, priority=None, project=None, properties=None, quality=None, queue=None, queue_options=None, queue_position=None, queue_time=None, reason=None, repository=None, requested_by=None, requested_for=None, result=None, retained_by_release=None, source_branch=None, source_version=None, start_time=None, status=None, tags=None, trigger_info=None, uri=None, url=None, validation_results=None):
149+
def __init__(self, _links=None, build_number=None, build_number_revision=None, controller=None, definition=None, deleted=None, deleted_by=None, deleted_date=None, deleted_reason=None, demands=None, finish_time=None, id=None, keep_forever=None, last_changed_by=None, last_changed_date=None, logs=None, orchestration_plan=None, parameters=None, plans=None, priority=None, project=None, properties=None, quality=None, queue=None, queue_options=None, queue_position=None, queue_time=None, reason=None, repository=None, requested_by=None, requested_for=None, result=None, retained_by_release=None, source_branch=None, source_version=None, start_time=None, status=None, tags=None, triggered_by_build=None, trigger_info=None, uri=None, url=None, validation_results=None):
147150
super(Build, self).__init__()
148151
self._links = _links
149152
self.build_number = build_number
@@ -183,6 +186,7 @@ def __init__(self, _links=None, build_number=None, build_number_revision=None, c
183186
self.start_time = start_time
184187
self.status = status
185188
self.tags = tags
189+
self.triggered_by_build = triggered_by_build
186190
self.trigger_info = trigger_info
187191
self.uri = uri
188192
self.url = url

vsts/vsts/build/v4_1/models/build_definition.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ class BuildDefinition(BuildDefinitionReference):
5656
:type build_number_format: str
5757
:param comment: A save-time comment for the definition.
5858
:type comment: str
59+
:param counters:
60+
:type counters: dict
5961
:param demands:
6062
:type demands: list of :class:`object <build.v4_1.models.object>`
6163
:param description: The description.
@@ -113,6 +115,7 @@ class BuildDefinition(BuildDefinitionReference):
113115
'badge_enabled': {'key': 'badgeEnabled', 'type': 'bool'},
114116
'build_number_format': {'key': 'buildNumberFormat', 'type': 'str'},
115117
'comment': {'key': 'comment', 'type': 'str'},
118+
'counters': {'key': 'counters', 'type': '{BuildDefinitionCounter}'},
116119
'demands': {'key': 'demands', 'type': '[object]'},
117120
'description': {'key': 'description', 'type': 'str'},
118121
'drop_location': {'key': 'dropLocation', 'type': 'str'},
@@ -131,11 +134,12 @@ class BuildDefinition(BuildDefinitionReference):
131134
'variables': {'key': 'variables', 'type': '{BuildDefinitionVariable}'}
132135
}
133136

134-
def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, drafts=None, latest_build=None, latest_completed_build=None, metrics=None, quality=None, queue=None, badge_enabled=None, build_number_format=None, comment=None, demands=None, description=None, drop_location=None, job_authorization_scope=None, job_cancel_timeout_in_minutes=None, job_timeout_in_minutes=None, options=None, process=None, process_parameters=None, properties=None, repository=None, retention_rules=None, tags=None, triggers=None, variable_groups=None, variables=None):
137+
def __init__(self, created_date=None, id=None, name=None, path=None, project=None, queue_status=None, revision=None, type=None, uri=None, url=None, _links=None, authored_by=None, draft_of=None, drafts=None, latest_build=None, latest_completed_build=None, metrics=None, quality=None, queue=None, badge_enabled=None, build_number_format=None, comment=None, counters=None, demands=None, description=None, drop_location=None, job_authorization_scope=None, job_cancel_timeout_in_minutes=None, job_timeout_in_minutes=None, options=None, process=None, process_parameters=None, properties=None, repository=None, retention_rules=None, tags=None, triggers=None, variable_groups=None, variables=None):
135138
super(BuildDefinition, self).__init__(created_date=created_date, id=id, name=name, path=path, project=project, queue_status=queue_status, revision=revision, type=type, uri=uri, url=url, _links=_links, authored_by=authored_by, draft_of=draft_of, drafts=drafts, latest_build=latest_build, latest_completed_build=latest_completed_build, metrics=metrics, quality=quality, queue=queue)
136139
self.badge_enabled = badge_enabled
137140
self.build_number_format = build_number_format
138141
self.comment = comment
142+
self.counters = counters
139143
self.demands = demands
140144
self.description = description
141145
self.drop_location = drop_location

vsts/vsts/build/v4_1/models/build_definition_template.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ class BuildDefinitionTemplate(Model):
1616
:type can_delete: bool
1717
:param category: The template category.
1818
:type category: str
19+
:param default_hosted_queue: An optional hosted agent queue for the template to use by default.
20+
:type default_hosted_queue: str
1921
:param description: A description of the template.
2022
:type description: str
2123
:param icons:
@@ -33,6 +35,7 @@ class BuildDefinitionTemplate(Model):
3335
_attribute_map = {
3436
'can_delete': {'key': 'canDelete', 'type': 'bool'},
3537
'category': {'key': 'category', 'type': 'str'},
38+
'default_hosted_queue': {'key': 'defaultHostedQueue', 'type': 'str'},
3639
'description': {'key': 'description', 'type': 'str'},
3740
'icons': {'key': 'icons', 'type': '{str}'},
3841
'icon_task_id': {'key': 'iconTaskId', 'type': 'str'},
@@ -41,10 +44,11 @@ class BuildDefinitionTemplate(Model):
4144
'template': {'key': 'template', 'type': 'BuildDefinition'}
4245
}
4346

44-
def __init__(self, can_delete=None, category=None, description=None, icons=None, icon_task_id=None, id=None, name=None, template=None):
47+
def __init__(self, can_delete=None, category=None, default_hosted_queue=None, description=None, icons=None, icon_task_id=None, id=None, name=None, template=None):
4548
super(BuildDefinitionTemplate, self).__init__()
4649
self.can_delete = can_delete
4750
self.category = category
51+
self.default_hosted_queue = default_hosted_queue
4852
self.description = description
4953
self.icons = icons
5054
self.icon_task_id = icon_task_id

vsts/vsts/build/v4_1/models/build_definition_template3_2.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ class BuildDefinitionTemplate3_2(Model):
1616
:type can_delete: bool
1717
:param category:
1818
:type category: str
19+
:param default_hosted_queue:
20+
:type default_hosted_queue: str
1921
:param description:
2022
:type description: str
2123
:param icons:
@@ -33,6 +35,7 @@ class BuildDefinitionTemplate3_2(Model):
3335
_attribute_map = {
3436
'can_delete': {'key': 'canDelete', 'type': 'bool'},
3537
'category': {'key': 'category', 'type': 'str'},
38+
'default_hosted_queue': {'key': 'defaultHostedQueue', 'type': 'str'},
3639
'description': {'key': 'description', 'type': 'str'},
3740
'icons': {'key': 'icons', 'type': '{str}'},
3841
'icon_task_id': {'key': 'iconTaskId', 'type': 'str'},
@@ -41,10 +44,11 @@ class BuildDefinitionTemplate3_2(Model):
4144
'template': {'key': 'template', 'type': 'BuildDefinition3_2'}
4245
}
4346

44-
def __init__(self, can_delete=None, category=None, description=None, icons=None, icon_task_id=None, id=None, name=None, template=None):
47+
def __init__(self, can_delete=None, category=None, default_hosted_queue=None, description=None, icons=None, icon_task_id=None, id=None, name=None, template=None):
4548
super(BuildDefinitionTemplate3_2, self).__init__()
4649
self.can_delete = can_delete
4750
self.category = category
51+
self.default_hosted_queue = default_hosted_queue
4852
self.description = description
4953
self.icons = icons
5054
self.icon_task_id = icon_task_id

vsts/vsts/build/v4_1/models/data_source_binding_base.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@
1212
class DataSourceBindingBase(Model):
1313
"""DataSourceBindingBase.
1414
15-
:param data_source_name:
15+
:param data_source_name: Gets or sets the name of the data source.
1616
:type data_source_name: str
17-
:param endpoint_id:
17+
:param endpoint_id: Gets or sets the endpoint Id.
1818
:type endpoint_id: str
19-
:param endpoint_url:
19+
:param endpoint_url: Gets or sets the url of the service endpoint.
2020
:type endpoint_url: str
21-
:param headers:
21+
:param headers: Gets or sets the authorization headers.
2222
:type headers: list of :class:`AuthorizationHeader <microsoft.-team-foundation.-distributed-task.-common.-contracts.v4_1.models.AuthorizationHeader>`
23-
:param parameters:
23+
:param parameters: Gets or sets the parameters for the data source.
2424
:type parameters: dict
25-
:param result_selector:
25+
:param result_selector: Gets or sets the result selector.
2626
:type result_selector: str
27-
:param result_template:
27+
:param result_template: Gets or sets the result template.
2828
:type result_template: str
29-
:param target:
29+
:param target: Gets or sets the target of the data source.
3030
:type target: str
3131
"""
3232

vsts/vsts/build/v4_1/models/identity_ref.py

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,22 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------------------------
88

9-
from msrest.serialization import Model
9+
from .graph_subject_base import GraphSubjectBase
1010

1111

12-
class IdentityRef(Model):
12+
class IdentityRef(GraphSubjectBase):
1313
"""IdentityRef.
1414
15+
:param _links: This field contains zero or more interesting links about the graph subject. These links may be invoked to obtain additional relationships or more detailed information about this graph subject.
16+
:type _links: :class:`ReferenceLinks <microsoft.-visual-studio.-services.-web-api.v4_1.models.ReferenceLinks>`
17+
:param descriptor: The descriptor is the primary way to reference the graph subject while the system is running. This field will uniquely identify the same graph subject across both Accounts and Organizations.
18+
:type descriptor: str
19+
:param display_name: This is the non-unique display name of the graph subject. To change this field, you must alter its value in the source provider.
20+
:type display_name: str
21+
:param url: This url is the full route to the source resource of this graph subject.
22+
:type url: str
1523
:param directory_alias:
1624
:type directory_alias: str
17-
:param display_name:
18-
:type display_name: str
1925
:param id:
2026
:type id: str
2127
:param image_url:
@@ -30,32 +36,30 @@ class IdentityRef(Model):
3036
:type profile_url: str
3137
:param unique_name:
3238
:type unique_name: str
33-
:param url:
34-
:type url: str
3539
"""
3640

3741
_attribute_map = {
38-
'directory_alias': {'key': 'directoryAlias', 'type': 'str'},
42+
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
43+
'descriptor': {'key': 'descriptor', 'type': 'str'},
3944
'display_name': {'key': 'displayName', 'type': 'str'},
45+
'url': {'key': 'url', 'type': 'str'},
46+
'directory_alias': {'key': 'directoryAlias', 'type': 'str'},
4047
'id': {'key': 'id', 'type': 'str'},
4148
'image_url': {'key': 'imageUrl', 'type': 'str'},
4249
'inactive': {'key': 'inactive', 'type': 'bool'},
4350
'is_aad_identity': {'key': 'isAadIdentity', 'type': 'bool'},
4451
'is_container': {'key': 'isContainer', 'type': 'bool'},
4552
'profile_url': {'key': 'profileUrl', 'type': 'str'},
46-
'unique_name': {'key': 'uniqueName', 'type': 'str'},
47-
'url': {'key': 'url', 'type': 'str'}
53+
'unique_name': {'key': 'uniqueName', 'type': 'str'}
4854
}
4955

50-
def __init__(self, directory_alias=None, display_name=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None, url=None):
51-
super(IdentityRef, self).__init__()
56+
def __init__(self, _links=None, descriptor=None, display_name=None, url=None, directory_alias=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, profile_url=None, unique_name=None):
57+
super(IdentityRef, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url)
5258
self.directory_alias = directory_alias
53-
self.display_name = display_name
5459
self.id = id
5560
self.image_url = image_url
5661
self.inactive = inactive
5762
self.is_aad_identity = is_aad_identity
5863
self.is_container = is_container
5964
self.profile_url = profile_url
6065
self.unique_name = unique_name
61-
self.url = url

0 commit comments

Comments
 (0)