Skip to content

Commit 40d4999

Browse files
authored
Merge pull request #37 from Microsoft/users/tedchamb/regen
generate new 4.1 REST Areas at M127
2 parents 4dda514 + 982ac54 commit 40d4999

File tree

597 files changed

+35618
-19
lines changed

Some content is hidden

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

597 files changed

+35618
-19
lines changed

vsts/vsts/accounts/v4_1/__init__.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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+
# --------------------------------------------------------------------------------------------
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 import Serializer, Deserializer
10+
from ...vss_client import VssClient
11+
from . import models
12+
13+
14+
class AccountsClient(VssClient):
15+
"""Accounts
16+
:param str base_url: Service URL
17+
:param Authentication creds: Authenticated credentials.
18+
"""
19+
20+
def __init__(self, base_url=None, creds=None):
21+
super(AccountsClient, self).__init__(base_url, creds)
22+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
23+
self._serialize = Serializer(client_models)
24+
self._deserialize = Deserializer(client_models)
25+
26+
resource_area_identifier = None
27+
28+
def get_accounts(self, owner_id=None, member_id=None, properties=None):
29+
"""GetAccounts.
30+
[Preview API] Get a list of accounts for a specific owner or a specific member.
31+
:param str owner_id: ID for the owner of the accounts.
32+
:param str member_id: ID for a member of the accounts.
33+
:param str properties:
34+
:rtype: [Account]
35+
"""
36+
query_parameters = {}
37+
if owner_id is not None:
38+
query_parameters['ownerId'] = self._serialize.query('owner_id', owner_id, 'str')
39+
if member_id is not None:
40+
query_parameters['memberId'] = self._serialize.query('member_id', member_id, 'str')
41+
if properties is not None:
42+
query_parameters['properties'] = self._serialize.query('properties', properties, 'str')
43+
response = self._send(http_method='GET',
44+
location_id='229a6a53-b428-4ffb-a835-e8f36b5b4b1e',
45+
version='4.1-preview.1',
46+
query_parameters=query_parameters,
47+
returns_collection=True)
48+
return self._deserialize('[Account]', response)
49+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
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 .account import Account
10+
from .account_create_info_internal import AccountCreateInfoInternal
11+
from .account_preferences_internal import AccountPreferencesInternal
12+
13+
__all__ = [
14+
'Account',
15+
'AccountCreateInfoInternal',
16+
'AccountPreferencesInternal',
17+
]
Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
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 Account(Model):
13+
"""Account.
14+
15+
:param account_id: Identifier for an Account
16+
:type account_id: str
17+
:param account_name: Name for an account
18+
:type account_name: str
19+
:param account_owner: Owner of account
20+
:type account_owner: str
21+
:param account_status: Current account status
22+
:type account_status: object
23+
:param account_type: Type of account: Personal, Organization
24+
:type account_type: object
25+
:param account_uri: Uri for an account
26+
:type account_uri: str
27+
:param created_by: Who created the account
28+
:type created_by: str
29+
:param created_date: Date account was created
30+
:type created_date: datetime
31+
:param has_moved:
32+
:type has_moved: bool
33+
:param last_updated_by: Identity of last person to update the account
34+
:type last_updated_by: str
35+
:param last_updated_date: Date account was last updated
36+
:type last_updated_date: datetime
37+
:param namespace_id: Namespace for an account
38+
:type namespace_id: str
39+
:param new_collection_id:
40+
:type new_collection_id: str
41+
:param organization_name: Organization that created the account
42+
:type organization_name: str
43+
:param properties: Extended properties
44+
:type properties: :class:`object <accounts.v4_1.models.object>`
45+
:param status_reason: Reason for current status
46+
:type status_reason: str
47+
"""
48+
49+
_attribute_map = {
50+
'account_id': {'key': 'accountId', 'type': 'str'},
51+
'account_name': {'key': 'accountName', 'type': 'str'},
52+
'account_owner': {'key': 'accountOwner', 'type': 'str'},
53+
'account_status': {'key': 'accountStatus', 'type': 'object'},
54+
'account_type': {'key': 'accountType', 'type': 'object'},
55+
'account_uri': {'key': 'accountUri', 'type': 'str'},
56+
'created_by': {'key': 'createdBy', 'type': 'str'},
57+
'created_date': {'key': 'createdDate', 'type': 'iso-8601'},
58+
'has_moved': {'key': 'hasMoved', 'type': 'bool'},
59+
'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'str'},
60+
'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'},
61+
'namespace_id': {'key': 'namespaceId', 'type': 'str'},
62+
'new_collection_id': {'key': 'newCollectionId', 'type': 'str'},
63+
'organization_name': {'key': 'organizationName', 'type': 'str'},
64+
'properties': {'key': 'properties', 'type': 'object'},
65+
'status_reason': {'key': 'statusReason', 'type': 'str'}
66+
}
67+
68+
def __init__(self, account_id=None, account_name=None, account_owner=None, account_status=None, account_type=None, account_uri=None, created_by=None, created_date=None, has_moved=None, last_updated_by=None, last_updated_date=None, namespace_id=None, new_collection_id=None, organization_name=None, properties=None, status_reason=None):
69+
super(Account, self).__init__()
70+
self.account_id = account_id
71+
self.account_name = account_name
72+
self.account_owner = account_owner
73+
self.account_status = account_status
74+
self.account_type = account_type
75+
self.account_uri = account_uri
76+
self.created_by = created_by
77+
self.created_date = created_date
78+
self.has_moved = has_moved
79+
self.last_updated_by = last_updated_by
80+
self.last_updated_date = last_updated_date
81+
self.namespace_id = namespace_id
82+
self.new_collection_id = new_collection_id
83+
self.organization_name = organization_name
84+
self.properties = properties
85+
self.status_reason = status_reason
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 AccountCreateInfoInternal(Model):
13+
"""AccountCreateInfoInternal.
14+
15+
:param account_name:
16+
:type account_name: str
17+
:param creator:
18+
:type creator: str
19+
:param organization:
20+
:type organization: str
21+
:param preferences:
22+
:type preferences: :class:`AccountPreferencesInternal <accounts.v4_1.models.AccountPreferencesInternal>`
23+
:param properties:
24+
:type properties: :class:`object <accounts.v4_1.models.object>`
25+
:param service_definitions:
26+
:type service_definitions: list of { key: str; value: str }
27+
"""
28+
29+
_attribute_map = {
30+
'account_name': {'key': 'accountName', 'type': 'str'},
31+
'creator': {'key': 'creator', 'type': 'str'},
32+
'organization': {'key': 'organization', 'type': 'str'},
33+
'preferences': {'key': 'preferences', 'type': 'AccountPreferencesInternal'},
34+
'properties': {'key': 'properties', 'type': 'object'},
35+
'service_definitions': {'key': 'serviceDefinitions', 'type': '[{ key: str; value: str }]'}
36+
}
37+
38+
def __init__(self, account_name=None, creator=None, organization=None, preferences=None, properties=None, service_definitions=None):
39+
super(AccountCreateInfoInternal, self).__init__()
40+
self.account_name = account_name
41+
self.creator = creator
42+
self.organization = organization
43+
self.preferences = preferences
44+
self.properties = properties
45+
self.service_definitions = service_definitions
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 AccountPreferencesInternal(Model):
13+
"""AccountPreferencesInternal.
14+
15+
:param culture:
16+
:type culture: object
17+
:param language:
18+
:type language: object
19+
:param time_zone:
20+
:type time_zone: object
21+
"""
22+
23+
_attribute_map = {
24+
'culture': {'key': 'culture', 'type': 'object'},
25+
'language': {'key': 'language', 'type': 'object'},
26+
'time_zone': {'key': 'timeZone', 'type': 'object'}
27+
}
28+
29+
def __init__(self, culture=None, language=None, time_zone=None):
30+
super(AccountPreferencesInternal, self).__init__()
31+
self.culture = culture
32+
self.language = language
33+
self.time_zone = time_zone
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
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+
# --------------------------------------------------------------------------------------------
Lines changed: 109 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,109 @@
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 import Serializer, Deserializer
10+
from ...vss_client import VssClient
11+
from . import models
12+
13+
14+
class ContributionsClient(VssClient):
15+
"""Contributions
16+
:param str base_url: Service URL
17+
:param Authentication creds: Authenticated credentials.
18+
"""
19+
20+
def __init__(self, base_url=None, creds=None):
21+
super(ContributionsClient, self).__init__(base_url, creds)
22+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
23+
self._serialize = Serializer(client_models)
24+
self._deserialize = Deserializer(client_models)
25+
26+
resource_area_identifier = None
27+
28+
def query_contribution_nodes(self, query):
29+
"""QueryContributionNodes.
30+
[Preview API] Query for contribution nodes and provider details according the parameters in the passed in query object.
31+
:param :class:`<ContributionNodeQuery> <contributions.v4_1.models.ContributionNodeQuery>` query:
32+
:rtype: :class:`<ContributionNodeQueryResult> <contributions.v4_1.models.ContributionNodeQueryResult>`
33+
"""
34+
content = self._serialize.body(query, 'ContributionNodeQuery')
35+
response = self._send(http_method='POST',
36+
location_id='db7f2146-2309-4cee-b39c-c767777a1c55',
37+
version='4.1-preview.1',
38+
content=content)
39+
return self._deserialize('ContributionNodeQueryResult', response)
40+
41+
def query_data_providers(self, query, scope_name=None, scope_value=None):
42+
"""QueryDataProviders.
43+
[Preview API]
44+
:param :class:`<DataProviderQuery> <contributions.v4_1.models.DataProviderQuery>` query:
45+
:param str scope_name:
46+
:param str scope_value:
47+
:rtype: :class:`<DataProviderResult> <contributions.v4_1.models.DataProviderResult>`
48+
"""
49+
route_values = {}
50+
if scope_name is not None:
51+
route_values['scopeName'] = self._serialize.url('scope_name', scope_name, 'str')
52+
if scope_value is not None:
53+
route_values['scopeValue'] = self._serialize.url('scope_value', scope_value, 'str')
54+
content = self._serialize.body(query, 'DataProviderQuery')
55+
response = self._send(http_method='POST',
56+
location_id='738368db-35ee-4b85-9f94-77ed34af2b0d',
57+
version='4.1-preview.1',
58+
route_values=route_values,
59+
content=content)
60+
return self._deserialize('DataProviderResult', response)
61+
62+
def get_installed_extensions(self, contribution_ids=None, include_disabled_apps=None, asset_types=None):
63+
"""GetInstalledExtensions.
64+
[Preview API]
65+
:param [str] contribution_ids:
66+
:param bool include_disabled_apps:
67+
:param [str] asset_types:
68+
:rtype: [InstalledExtension]
69+
"""
70+
query_parameters = {}
71+
if contribution_ids is not None:
72+
contribution_ids = ";".join(contribution_ids)
73+
query_parameters['contributionIds'] = self._serialize.query('contribution_ids', contribution_ids, 'str')
74+
if include_disabled_apps is not None:
75+
query_parameters['includeDisabledApps'] = self._serialize.query('include_disabled_apps', include_disabled_apps, 'bool')
76+
if asset_types is not None:
77+
asset_types = ":".join(asset_types)
78+
query_parameters['assetTypes'] = self._serialize.query('asset_types', asset_types, 'str')
79+
response = self._send(http_method='GET',
80+
location_id='2648442b-fd63-4b9a-902f-0c913510f139',
81+
version='4.1-preview.1',
82+
query_parameters=query_parameters,
83+
returns_collection=True)
84+
return self._deserialize('[InstalledExtension]', response)
85+
86+
def get_installed_extension_by_name(self, publisher_name, extension_name, asset_types=None):
87+
"""GetInstalledExtensionByName.
88+
[Preview API]
89+
:param str publisher_name:
90+
:param str extension_name:
91+
:param [str] asset_types:
92+
:rtype: :class:`<InstalledExtension> <contributions.v4_1.models.InstalledExtension>`
93+
"""
94+
route_values = {}
95+
if publisher_name is not None:
96+
route_values['publisherName'] = self._serialize.url('publisher_name', publisher_name, 'str')
97+
if extension_name is not None:
98+
route_values['extensionName'] = self._serialize.url('extension_name', extension_name, 'str')
99+
query_parameters = {}
100+
if asset_types is not None:
101+
asset_types = ":".join(asset_types)
102+
query_parameters['assetTypes'] = self._serialize.query('asset_types', asset_types, 'str')
103+
response = self._send(http_method='GET',
104+
location_id='3e2f6668-0798-4dcb-b592-bfe2fa57fde2',
105+
version='4.1-preview.1',
106+
route_values=route_values,
107+
query_parameters=query_parameters)
108+
return self._deserialize('InstalledExtension', response)
109+

0 commit comments

Comments
 (0)