Skip to content

Commit 89c3386

Browse files
authored
Merge pull request #46 from Microsoft/users/tedchamb/regen
regen 4.1
2 parents 7bb9ff7 + ca858e6 commit 89c3386

File tree

173 files changed

+7628
-700
lines changed

Some content is hidden

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

173 files changed

+7628
-700
lines changed

vsts/vsts/accounts/v4_1/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-
[Preview API] Get a list of accounts for a specific owner or a specific member.
30+
Get a list of accounts for a specific owner or a specific member.
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='4.1-preview.1',
45+
version='4.1',
4646
query_parameters=query_parameters,
4747
returns_collection=True)
4848
return self._deserialize('[Account]', response)

vsts/vsts/build/v4_1/build_client.py

Lines changed: 103 additions & 98 deletions
Large diffs are not rendered by default.
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# --------------------------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
# --------------------------------------------------------------------------------------------
5+
# Generated file, DO NOT EDIT
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------------------------
8+
9+
from msrest.serialization import Model
10+
11+
12+
class AggregatedResultsAnalysis(Model):
13+
"""AggregatedResultsAnalysis.
14+
15+
:param duration:
16+
:type duration: object
17+
:param not_reported_results_by_outcome:
18+
:type not_reported_results_by_outcome: dict
19+
:param previous_context:
20+
:type previous_context: :class:`TestResultsContext <microsoft.-team-foundation.-test-management.-web-api.v4_1.models.TestResultsContext>`
21+
:param results_by_outcome:
22+
:type results_by_outcome: dict
23+
:param results_difference:
24+
:type results_difference: :class:`AggregatedResultsDifference <microsoft.-team-foundation.-test-management.-web-api.v4_1.models.AggregatedResultsDifference>`
25+
:param run_summary_by_state:
26+
:type run_summary_by_state: dict
27+
:param total_tests:
28+
:type total_tests: int
29+
"""
30+
31+
_attribute_map = {
32+
'duration': {'key': 'duration', 'type': 'object'},
33+
'not_reported_results_by_outcome': {'key': 'notReportedResultsByOutcome', 'type': '{AggregatedResultsByOutcome}'},
34+
'previous_context': {'key': 'previousContext', 'type': 'TestResultsContext'},
35+
'results_by_outcome': {'key': 'resultsByOutcome', 'type': '{AggregatedResultsByOutcome}'},
36+
'results_difference': {'key': 'resultsDifference', 'type': 'AggregatedResultsDifference'},
37+
'run_summary_by_state': {'key': 'runSummaryByState', 'type': '{AggregatedRunsByState}'},
38+
'total_tests': {'key': 'totalTests', 'type': 'int'}
39+
}
40+
41+
def __init__(self, duration=None, not_reported_results_by_outcome=None, previous_context=None, results_by_outcome=None, results_difference=None, run_summary_by_state=None, total_tests=None):
42+
super(AggregatedResultsAnalysis, self).__init__()
43+
self.duration = duration
44+
self.not_reported_results_by_outcome = not_reported_results_by_outcome
45+
self.previous_context = previous_context
46+
self.results_by_outcome = results_by_outcome
47+
self.results_difference = results_difference
48+
self.run_summary_by_state = run_summary_by_state
49+
self.total_tests = total_tests
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# --------------------------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
# --------------------------------------------------------------------------------------------
5+
# Generated file, DO NOT EDIT
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------------------------
8+
9+
from msrest.serialization import Model
10+
11+
12+
class AggregatedResultsByOutcome(Model):
13+
"""AggregatedResultsByOutcome.
14+
15+
:param count:
16+
:type count: int
17+
:param duration:
18+
:type duration: object
19+
:param group_by_field:
20+
:type group_by_field: str
21+
:param group_by_value:
22+
:type group_by_value: object
23+
:param outcome:
24+
:type outcome: object
25+
:param rerun_result_count:
26+
:type rerun_result_count: int
27+
"""
28+
29+
_attribute_map = {
30+
'count': {'key': 'count', 'type': 'int'},
31+
'duration': {'key': 'duration', 'type': 'object'},
32+
'group_by_field': {'key': 'groupByField', 'type': 'str'},
33+
'group_by_value': {'key': 'groupByValue', 'type': 'object'},
34+
'outcome': {'key': 'outcome', 'type': 'object'},
35+
'rerun_result_count': {'key': 'rerunResultCount', 'type': 'int'}
36+
}
37+
38+
def __init__(self, count=None, duration=None, group_by_field=None, group_by_value=None, outcome=None, rerun_result_count=None):
39+
super(AggregatedResultsByOutcome, self).__init__()
40+
self.count = count
41+
self.duration = duration
42+
self.group_by_field = group_by_field
43+
self.group_by_value = group_by_value
44+
self.outcome = outcome
45+
self.rerun_result_count = rerun_result_count
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# --------------------------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
# --------------------------------------------------------------------------------------------
5+
# Generated file, DO NOT EDIT
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------------------------
8+
9+
from msrest.serialization import Model
10+
11+
12+
class AggregatedResultsDifference(Model):
13+
"""AggregatedResultsDifference.
14+
15+
:param increase_in_duration:
16+
:type increase_in_duration: object
17+
:param increase_in_failures:
18+
:type increase_in_failures: int
19+
:param increase_in_other_tests:
20+
:type increase_in_other_tests: int
21+
:param increase_in_passed_tests:
22+
:type increase_in_passed_tests: int
23+
:param increase_in_total_tests:
24+
:type increase_in_total_tests: int
25+
"""
26+
27+
_attribute_map = {
28+
'increase_in_duration': {'key': 'increaseInDuration', 'type': 'object'},
29+
'increase_in_failures': {'key': 'increaseInFailures', 'type': 'int'},
30+
'increase_in_other_tests': {'key': 'increaseInOtherTests', 'type': 'int'},
31+
'increase_in_passed_tests': {'key': 'increaseInPassedTests', 'type': 'int'},
32+
'increase_in_total_tests': {'key': 'increaseInTotalTests', 'type': 'int'}
33+
}
34+
35+
def __init__(self, increase_in_duration=None, increase_in_failures=None, increase_in_other_tests=None, increase_in_passed_tests=None, increase_in_total_tests=None):
36+
super(AggregatedResultsDifference, self).__init__()
37+
self.increase_in_duration = increase_in_duration
38+
self.increase_in_failures = increase_in_failures
39+
self.increase_in_other_tests = increase_in_other_tests
40+
self.increase_in_passed_tests = increase_in_passed_tests
41+
self.increase_in_total_tests = increase_in_total_tests
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# --------------------------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
# --------------------------------------------------------------------------------------------
5+
# Generated file, DO NOT EDIT
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------------------------
8+
9+
from msrest.serialization import Model
10+
11+
12+
class AggregatedRunsByState(Model):
13+
"""AggregatedRunsByState.
14+
15+
:param runs_count:
16+
:type runs_count: int
17+
:param state:
18+
:type state: object
19+
"""
20+
21+
_attribute_map = {
22+
'runs_count': {'key': 'runsCount', 'type': 'int'},
23+
'state': {'key': 'state', 'type': 'object'}
24+
}
25+
26+
def __init__(self, runs_count=None, state=None):
27+
super(AggregatedRunsByState, self).__init__()
28+
self.runs_count = runs_count
29+
self.state = state
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# --------------------------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
# --------------------------------------------------------------------------------------------
5+
# Generated file, DO NOT EDIT
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------------------------
8+
9+
from msrest.serialization import Model
10+
11+
12+
class AssociatedWorkItem(Model):
13+
"""AssociatedWorkItem.
14+
15+
:param assigned_to:
16+
:type assigned_to: str
17+
:param id: Id of associated the work item.
18+
:type id: int
19+
:param state:
20+
:type state: str
21+
:param title:
22+
:type title: str
23+
:param url: REST Url of the work item.
24+
:type url: str
25+
:param web_url:
26+
:type web_url: str
27+
:param work_item_type:
28+
:type work_item_type: str
29+
"""
30+
31+
_attribute_map = {
32+
'assigned_to': {'key': 'assignedTo', 'type': 'str'},
33+
'id': {'key': 'id', 'type': 'int'},
34+
'state': {'key': 'state', 'type': 'str'},
35+
'title': {'key': 'title', 'type': 'str'},
36+
'url': {'key': 'url', 'type': 'str'},
37+
'web_url': {'key': 'webUrl', 'type': 'str'},
38+
'work_item_type': {'key': 'workItemType', 'type': 'str'}
39+
}
40+
41+
def __init__(self, assigned_to=None, id=None, state=None, title=None, url=None, web_url=None, work_item_type=None):
42+
super(AssociatedWorkItem, self).__init__()
43+
self.assigned_to = assigned_to
44+
self.id = id
45+
self.state = state
46+
self.title = title
47+
self.url = url
48+
self.web_url = web_url
49+
self.work_item_type = work_item_type
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# --------------------------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
# --------------------------------------------------------------------------------------------
5+
# Generated file, DO NOT EDIT
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------------------------
8+
9+
from msrest.serialization import Model
10+
11+
12+
class Attachment(Model):
13+
"""Attachment.
14+
15+
:param _links:
16+
:type _links: :class:`ReferenceLinks <build.v4_1.models.ReferenceLinks>`
17+
:param name: The name of the attachment.
18+
:type name: str
19+
"""
20+
21+
_attribute_map = {
22+
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
23+
'name': {'key': 'name', 'type': 'str'}
24+
}
25+
26+
def __init__(self, _links=None, name=None):
27+
super(Attachment, self).__init__()
28+
self._links = _links
29+
self.name = name
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
# --------------------------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
# --------------------------------------------------------------------------------------------
5+
# Generated file, DO NOT EDIT
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------------------------
8+
9+
from msrest.serialization import Model
10+
11+
12+
class BuildDefinitionCounter(Model):
13+
"""BuildDefinitionCounter.
14+
15+
:param id: The unique Id of the Counter.
16+
:type id: int
17+
:param seed: This is the original counter value.
18+
:type seed: long
19+
:param value: This is the current counter value.
20+
:type value: long
21+
"""
22+
23+
_attribute_map = {
24+
'id': {'key': 'id', 'type': 'int'},
25+
'seed': {'key': 'seed', 'type': 'long'},
26+
'value': {'key': 'value', 'type': 'long'}
27+
}
28+
29+
def __init__(self, id=None, seed=None, value=None):
30+
super(BuildDefinitionCounter, self).__init__()
31+
self.id = id
32+
self.seed = seed
33+
self.value = value
Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
# --------------------------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
# --------------------------------------------------------------------------------------------
5+
# Generated file, DO NOT EDIT
6+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7+
# --------------------------------------------------------------------------------------------
8+
9+
from msrest.serialization import Model
10+
11+
12+
class GraphSubjectBase(Model):
13+
"""GraphSubjectBase.
14+
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
23+
"""
24+
25+
_attribute_map = {
26+
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
27+
'descriptor': {'key': 'descriptor', 'type': 'str'},
28+
'display_name': {'key': 'displayName', 'type': 'str'},
29+
'url': {'key': 'url', 'type': 'str'}
30+
}
31+
32+
def __init__(self, _links=None, descriptor=None, display_name=None, url=None):
33+
super(GraphSubjectBase, self).__init__()
34+
self._links = _links
35+
self.descriptor = descriptor
36+
self.display_name = display_name
37+
self.url = url

0 commit comments

Comments
 (0)