|
| 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 | +] |
0 commit comments