Skip to content

Commit ba0e84e

Browse files
author
Petr Nechvátal
committed
Initial supprt for 7.1 API version
1 parent 10dfcd3 commit ba0e84e

File tree

170 files changed

+89934
-2
lines changed

Some content is hidden

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

170 files changed

+89934
-2
lines changed
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: 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 .models import *
10+
from .accounts_client import AccountsClient
11+
12+
__all__ = [
13+
'Account',
14+
'AccountCreateInfoInternal',
15+
'AccountPreferencesInternal',
16+
'AccountsClient'
17+
]
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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 ...client import Client
11+
from . import models
12+
13+
14+
class AccountsClient(Client):
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 = '0d55247a-1c47-4462-9b1f-5e2125590ee6'
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. One of the following parameters is required: ownerId, memberId.
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='7.1-preview.1',
46+
query_parameters=query_parameters)
47+
return self._deserialize('[Account]', self._unwrap_collection(response))
48+
Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,149 @@
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+
"""
14+
:param account_id: Identifier for an Account
15+
:type account_id: str
16+
:param account_name: Name for an account
17+
:type account_name: str
18+
:param account_owner: Owner of account
19+
:type account_owner: str
20+
:param account_status: Current account status
21+
:type account_status: object
22+
:param account_type: Type of account: Personal, Organization
23+
:type account_type: object
24+
:param account_uri: Uri for an account
25+
:type account_uri: str
26+
:param created_by: Who created the account
27+
:type created_by: str
28+
:param created_date: Date account was created
29+
:type created_date: datetime
30+
:param has_moved:
31+
:type has_moved: bool
32+
:param last_updated_by: Identity of last person to update the account
33+
:type last_updated_by: str
34+
:param last_updated_date: Date account was last updated
35+
:type last_updated_date: datetime
36+
:param namespace_id: Namespace for an account
37+
:type namespace_id: str
38+
:param new_collection_id:
39+
:type new_collection_id: str
40+
:param organization_name: Organization that created the account
41+
:type organization_name: str
42+
:param properties: Extended properties
43+
:type properties: :class:`object <azure.devops.v7_1.accounts.models.object>`
44+
:param status_reason: Reason for current status
45+
:type status_reason: str
46+
"""
47+
48+
_attribute_map = {
49+
'account_id': {'key': 'accountId', 'type': 'str'},
50+
'account_name': {'key': 'accountName', 'type': 'str'},
51+
'account_owner': {'key': 'accountOwner', 'type': 'str'},
52+
'account_status': {'key': 'accountStatus', 'type': 'object'},
53+
'account_type': {'key': 'accountType', 'type': 'object'},
54+
'account_uri': {'key': 'accountUri', 'type': 'str'},
55+
'created_by': {'key': 'createdBy', 'type': 'str'},
56+
'created_date': {'key': 'createdDate', 'type': 'iso-8601'},
57+
'has_moved': {'key': 'hasMoved', 'type': 'bool'},
58+
'last_updated_by': {'key': 'lastUpdatedBy', 'type': 'str'},
59+
'last_updated_date': {'key': 'lastUpdatedDate', 'type': 'iso-8601'},
60+
'namespace_id': {'key': 'namespaceId', 'type': 'str'},
61+
'new_collection_id': {'key': 'newCollectionId', 'type': 'str'},
62+
'organization_name': {'key': 'organizationName', 'type': 'str'},
63+
'properties': {'key': 'properties', 'type': 'object'},
64+
'status_reason': {'key': 'statusReason', 'type': 'str'}
65+
}
66+
67+
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):
68+
super(Account, self).__init__()
69+
self.account_id = account_id
70+
self.account_name = account_name
71+
self.account_owner = account_owner
72+
self.account_status = account_status
73+
self.account_type = account_type
74+
self.account_uri = account_uri
75+
self.created_by = created_by
76+
self.created_date = created_date
77+
self.has_moved = has_moved
78+
self.last_updated_by = last_updated_by
79+
self.last_updated_date = last_updated_date
80+
self.namespace_id = namespace_id
81+
self.new_collection_id = new_collection_id
82+
self.organization_name = organization_name
83+
self.properties = properties
84+
self.status_reason = status_reason
85+
86+
87+
class AccountCreateInfoInternal(Model):
88+
"""
89+
:param account_name:
90+
:type account_name: str
91+
:param creator:
92+
:type creator: str
93+
:param organization:
94+
:type organization: str
95+
:param preferences:
96+
:type preferences: :class:`AccountPreferencesInternal <azure.devops.v7_1.accounts.models.AccountPreferencesInternal>`
97+
:param properties:
98+
:type properties: :class:`object <azure.devops.v7_1.accounts.models.object>`
99+
:param service_definitions:
100+
:type service_definitions: list of { key: str; value: str }
101+
"""
102+
103+
_attribute_map = {
104+
'account_name': {'key': 'accountName', 'type': 'str'},
105+
'creator': {'key': 'creator', 'type': 'str'},
106+
'organization': {'key': 'organization', 'type': 'str'},
107+
'preferences': {'key': 'preferences', 'type': 'AccountPreferencesInternal'},
108+
'properties': {'key': 'properties', 'type': 'object'},
109+
'service_definitions': {'key': 'serviceDefinitions', 'type': '[{ key: str; value: str }]'}
110+
}
111+
112+
def __init__(self, account_name=None, creator=None, organization=None, preferences=None, properties=None, service_definitions=None):
113+
super(AccountCreateInfoInternal, self).__init__()
114+
self.account_name = account_name
115+
self.creator = creator
116+
self.organization = organization
117+
self.preferences = preferences
118+
self.properties = properties
119+
self.service_definitions = service_definitions
120+
121+
122+
class AccountPreferencesInternal(Model):
123+
"""
124+
:param culture:
125+
:type culture: object
126+
:param language:
127+
:type language: object
128+
:param time_zone:
129+
:type time_zone: object
130+
"""
131+
132+
_attribute_map = {
133+
'culture': {'key': 'culture', 'type': 'object'},
134+
'language': {'key': 'language', 'type': 'object'},
135+
'time_zone': {'key': 'timeZone', 'type': 'object'}
136+
}
137+
138+
def __init__(self, culture=None, language=None, time_zone=None):
139+
super(AccountPreferencesInternal, self).__init__()
140+
self.culture = culture
141+
self.language = language
142+
self.time_zone = time_zone
143+
144+
145+
__all__ = [
146+
'Account',
147+
'AccountCreateInfoInternal',
148+
'AccountPreferencesInternal',
149+
]
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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 .models import *
10+
from .audit_client import AuditClient
11+
12+
__all__ = [
13+
'AuditActionInfo',
14+
'AuditLogEntry',
15+
'AuditLogQueryResult',
16+
'AuditStream',
17+
'DecoratedAuditLogEntry',
18+
'AuditClient'
19+
]

0 commit comments

Comments
 (0)