1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299
|
# --------------------------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for license information.
# --------------------------------------------------------------------------------------------
# Generated file, DO NOT EDIT
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------------------------
from msrest.serialization import Model
class AttributeDescriptor(Model):
"""
Identifies an attribute with a name and a container.
:param attribute_name: The name of the attribute.
:type attribute_name: str
:param container_name: The container the attribute resides in.
:type container_name: str
"""
_attribute_map = {
'attribute_name': {'key': 'attributeName', 'type': 'str'},
'container_name': {'key': 'containerName', 'type': 'str'}
}
def __init__(self, attribute_name=None, container_name=None):
super(AttributeDescriptor, self).__init__()
self.attribute_name = attribute_name
self.container_name = container_name
class AttributesContainer(Model):
"""
Stores a set of named profile attributes.
:param attributes: The attributes stored by the container.
:type attributes: dict
:param container_name: The name of the container.
:type container_name: str
:param revision: The maximum revision number of any attribute within the container.
:type revision: int
"""
_attribute_map = {
'attributes': {'key': 'attributes', 'type': '{ProfileAttribute}'},
'container_name': {'key': 'containerName', 'type': 'str'},
'revision': {'key': 'revision', 'type': 'int'}
}
def __init__(self, attributes=None, container_name=None, revision=None):
super(AttributesContainer, self).__init__()
self.attributes = attributes
self.container_name = container_name
self.revision = revision
class Avatar(Model):
"""
:param is_auto_generated:
:type is_auto_generated: bool
:param size:
:type size: object
:param time_stamp:
:type time_stamp: datetime
:param value:
:type value: str
"""
_attribute_map = {
'is_auto_generated': {'key': 'isAutoGenerated', 'type': 'bool'},
'size': {'key': 'size', 'type': 'object'},
'time_stamp': {'key': 'timeStamp', 'type': 'iso-8601'},
'value': {'key': 'value', 'type': 'str'}
}
def __init__(self, is_auto_generated=None, size=None, time_stamp=None, value=None):
super(Avatar, self).__init__()
self.is_auto_generated = is_auto_generated
self.size = size
self.time_stamp = time_stamp
self.value = value
class CreateProfileContext(Model):
"""
:param ci_data:
:type ci_data: dict
:param contact_with_offers:
:type contact_with_offers: bool
:param country_name:
:type country_name: str
:param display_name:
:type display_name: str
:param email_address:
:type email_address: str
:param has_account:
:type has_account: bool
:param language:
:type language: str
:param phone_number:
:type phone_number: str
:param profile_state: The current state of the profile.
:type profile_state: object
"""
_attribute_map = {
'ci_data': {'key': 'ciData', 'type': '{object}'},
'contact_with_offers': {'key': 'contactWithOffers', 'type': 'bool'},
'country_name': {'key': 'countryName', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'email_address': {'key': 'emailAddress', 'type': 'str'},
'has_account': {'key': 'hasAccount', 'type': 'bool'},
'language': {'key': 'language', 'type': 'str'},
'phone_number': {'key': 'phoneNumber', 'type': 'str'},
'profile_state': {'key': 'profileState', 'type': 'object'}
}
def __init__(self, ci_data=None, contact_with_offers=None, country_name=None, display_name=None, email_address=None, has_account=None, language=None, phone_number=None, profile_state=None):
super(CreateProfileContext, self).__init__()
self.ci_data = ci_data
self.contact_with_offers = contact_with_offers
self.country_name = country_name
self.display_name = display_name
self.email_address = email_address
self.has_account = has_account
self.language = language
self.phone_number = phone_number
self.profile_state = profile_state
class GeoRegion(Model):
"""
:param region_code:
:type region_code: str
"""
_attribute_map = {
'region_code': {'key': 'regionCode', 'type': 'str'}
}
def __init__(self, region_code=None):
super(GeoRegion, self).__init__()
self.region_code = region_code
class Profile(Model):
"""
A user profile.
:param application_container: The attributes of this profile.
:type application_container: :class:`AttributesContainer <azure.devops.v6_0.profile.models.AttributesContainer>`
:param core_attributes: The core attributes of this profile.
:type core_attributes: dict
:param core_revision: The maximum revision number of any attribute.
:type core_revision: int
:param id: The unique identifier of the profile.
:type id: str
:param profile_state: The current state of the profile.
:type profile_state: object
:param revision: The maximum revision number of any attribute.
:type revision: int
:param time_stamp: The time at which this profile was last changed.
:type time_stamp: datetime
"""
_attribute_map = {
'application_container': {'key': 'applicationContainer', 'type': 'AttributesContainer'},
'core_attributes': {'key': 'coreAttributes', 'type': '{CoreProfileAttribute}'},
'core_revision': {'key': 'coreRevision', 'type': 'int'},
'id': {'key': 'id', 'type': 'str'},
'profile_state': {'key': 'profileState', 'type': 'object'},
'revision': {'key': 'revision', 'type': 'int'},
'time_stamp': {'key': 'timeStamp', 'type': 'iso-8601'}
}
def __init__(self, application_container=None, core_attributes=None, core_revision=None, id=None, profile_state=None, revision=None, time_stamp=None):
super(Profile, self).__init__()
self.application_container = application_container
self.core_attributes = core_attributes
self.core_revision = core_revision
self.id = id
self.profile_state = profile_state
self.revision = revision
self.time_stamp = time_stamp
class ProfileAttributeBase(Model):
"""
:param descriptor: The descriptor of the attribute.
:type descriptor: :class:`AttributeDescriptor <azure.devops.v6_0.profile.models.AttributeDescriptor>`
:param revision: The revision number of the attribute.
:type revision: int
:param time_stamp: The time the attribute was last changed.
:type time_stamp: datetime
:param value: The value of the attribute.
:type value: object
"""
_attribute_map = {
'descriptor': {'key': 'descriptor', 'type': 'AttributeDescriptor'},
'revision': {'key': 'revision', 'type': 'int'},
'time_stamp': {'key': 'timeStamp', 'type': 'iso-8601'},
'value': {'key': 'value', 'type': 'object'}
}
def __init__(self, descriptor=None, revision=None, time_stamp=None, value=None):
super(ProfileAttributeBase, self).__init__()
self.descriptor = descriptor
self.revision = revision
self.time_stamp = time_stamp
self.value = value
class ProfileRegion(Model):
"""
Country/region information
:param code: The two-letter code defined in ISO 3166 for the country/region.
:type code: str
:param name: Localized country/region name
:type name: str
"""
_attribute_map = {
'code': {'key': 'code', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'}
}
def __init__(self, code=None, name=None):
super(ProfileRegion, self).__init__()
self.code = code
self.name = name
class ProfileRegions(Model):
"""
Container of country/region information
:param notice_contact_consent_requirement_regions: List of country/region code with contact consent requirement type of notice
:type notice_contact_consent_requirement_regions: list of str
:param opt_out_contact_consent_requirement_regions: List of country/region code with contact consent requirement type of opt-out
:type opt_out_contact_consent_requirement_regions: list of str
:param regions: List of country/regions
:type regions: list of :class:`ProfileRegion <azure.devops.v6_0.profile.models.ProfileRegion>`
"""
_attribute_map = {
'notice_contact_consent_requirement_regions': {'key': 'noticeContactConsentRequirementRegions', 'type': '[str]'},
'opt_out_contact_consent_requirement_regions': {'key': 'optOutContactConsentRequirementRegions', 'type': '[str]'},
'regions': {'key': 'regions', 'type': '[ProfileRegion]'}
}
def __init__(self, notice_contact_consent_requirement_regions=None, opt_out_contact_consent_requirement_regions=None, regions=None):
super(ProfileRegions, self).__init__()
self.notice_contact_consent_requirement_regions = notice_contact_consent_requirement_regions
self.opt_out_contact_consent_requirement_regions = opt_out_contact_consent_requirement_regions
self.regions = regions
class CoreProfileAttribute(ProfileAttributeBase):
"""
A profile attribute which always has a value for each profile.
"""
_attribute_map = {
}
def __init__(self):
super(CoreProfileAttribute, self).__init__()
class ProfileAttribute(ProfileAttributeBase):
"""
A named object associated with a profile.
"""
_attribute_map = {
}
def __init__(self):
super(ProfileAttribute, self).__init__()
__all__ = [
'AttributeDescriptor',
'AttributesContainer',
'Avatar',
'CreateProfileContext',
'GeoRegion',
'Profile',
'ProfileAttributeBase',
'ProfileRegion',
'ProfileRegions',
'CoreProfileAttribute',
'ProfileAttribute',
]
|