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 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595
|
# --------------------------------------------------------------------------------------------
# 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 AccountEntitlement(Model):
"""AccountEntitlement.
:param account_id: Gets or sets the id of the account to which the license belongs
:type account_id: str
:param assignment_date: Gets or sets the date the license was assigned
:type assignment_date: datetime
:param assignment_source: Assignment Source
:type assignment_source: object
:param date_created: Gets or sets the creation date of the user in this account
:type date_created: datetime
:param last_accessed_date: Gets or sets the date of the user last sign-in to this account
:type last_accessed_date: datetime
:param license:
:type license: :class:`License <azure.devops.v5_0.licensing.models.License>`
:param origin: Licensing origin
:type origin: object
:param rights: The computed rights of this user in the account.
:type rights: :class:`AccountRights <azure.devops.v5_0.licensing.models.AccountRights>`
:param status: The status of the user in the account
:type status: object
:param user: Identity information of the user to which the license belongs
:type user: :class:`IdentityRef <azure.devops.v5_0.licensing.models.IdentityRef>`
:param user_id: Gets the id of the user to which the license belongs
:type user_id: str
"""
_attribute_map = {
'account_id': {'key': 'accountId', 'type': 'str'},
'assignment_date': {'key': 'assignmentDate', 'type': 'iso-8601'},
'assignment_source': {'key': 'assignmentSource', 'type': 'object'},
'date_created': {'key': 'dateCreated', 'type': 'iso-8601'},
'last_accessed_date': {'key': 'lastAccessedDate', 'type': 'iso-8601'},
'license': {'key': 'license', 'type': 'License'},
'origin': {'key': 'origin', 'type': 'object'},
'rights': {'key': 'rights', 'type': 'AccountRights'},
'status': {'key': 'status', 'type': 'object'},
'user': {'key': 'user', 'type': 'IdentityRef'},
'user_id': {'key': 'userId', 'type': 'str'}
}
def __init__(self, account_id=None, assignment_date=None, assignment_source=None, date_created=None, last_accessed_date=None, license=None, origin=None, rights=None, status=None, user=None, user_id=None):
super(AccountEntitlement, self).__init__()
self.account_id = account_id
self.assignment_date = assignment_date
self.assignment_source = assignment_source
self.date_created = date_created
self.last_accessed_date = last_accessed_date
self.license = license
self.origin = origin
self.rights = rights
self.status = status
self.user = user
self.user_id = user_id
class AccountEntitlementUpdateModel(Model):
"""AccountEntitlementUpdateModel.
:param license: Gets or sets the license for the entitlement
:type license: :class:`License <azure.devops.v5_0.licensing.models.License>`
"""
_attribute_map = {
'license': {'key': 'license', 'type': 'License'}
}
def __init__(self, license=None):
super(AccountEntitlementUpdateModel, self).__init__()
self.license = license
class AccountLicenseExtensionUsage(Model):
"""AccountLicenseExtensionUsage.
:param extension_id:
:type extension_id: str
:param extension_name:
:type extension_name: str
:param included_quantity:
:type included_quantity: int
:param is_trial:
:type is_trial: bool
:param minimum_license_required:
:type minimum_license_required: object
:param msdn_used_count:
:type msdn_used_count: int
:param provisioned_count:
:type provisioned_count: int
:param remaining_trial_days:
:type remaining_trial_days: int
:param trial_expiry_date:
:type trial_expiry_date: datetime
:param used_count:
:type used_count: int
"""
_attribute_map = {
'extension_id': {'key': 'extensionId', 'type': 'str'},
'extension_name': {'key': 'extensionName', 'type': 'str'},
'included_quantity': {'key': 'includedQuantity', 'type': 'int'},
'is_trial': {'key': 'isTrial', 'type': 'bool'},
'minimum_license_required': {'key': 'minimumLicenseRequired', 'type': 'object'},
'msdn_used_count': {'key': 'msdnUsedCount', 'type': 'int'},
'provisioned_count': {'key': 'provisionedCount', 'type': 'int'},
'remaining_trial_days': {'key': 'remainingTrialDays', 'type': 'int'},
'trial_expiry_date': {'key': 'trialExpiryDate', 'type': 'iso-8601'},
'used_count': {'key': 'usedCount', 'type': 'int'}
}
def __init__(self, extension_id=None, extension_name=None, included_quantity=None, is_trial=None, minimum_license_required=None, msdn_used_count=None, provisioned_count=None, remaining_trial_days=None, trial_expiry_date=None, used_count=None):
super(AccountLicenseExtensionUsage, self).__init__()
self.extension_id = extension_id
self.extension_name = extension_name
self.included_quantity = included_quantity
self.is_trial = is_trial
self.minimum_license_required = minimum_license_required
self.msdn_used_count = msdn_used_count
self.provisioned_count = provisioned_count
self.remaining_trial_days = remaining_trial_days
self.trial_expiry_date = trial_expiry_date
self.used_count = used_count
class AccountLicenseUsage(Model):
"""AccountLicenseUsage.
:param disabled_count: Amount that is disabled (Usually from licenses that were provisioned, but became invalid due to loss of subscription in a new billing cycle)
:type disabled_count: int
:param license:
:type license: :class:`AccountUserLicense <azure.devops.v5_0.licensing.models.AccountUserLicense>`
:param pending_provisioned_count: Amount that will be purchased in the next billing cycle
:type pending_provisioned_count: int
:param provisioned_count: Amount that has been purchased
:type provisioned_count: int
:param used_count: Amount currently being used.
:type used_count: int
"""
_attribute_map = {
'disabled_count': {'key': 'disabledCount', 'type': 'int'},
'license': {'key': 'license', 'type': 'AccountUserLicense'},
'pending_provisioned_count': {'key': 'pendingProvisionedCount', 'type': 'int'},
'provisioned_count': {'key': 'provisionedCount', 'type': 'int'},
'used_count': {'key': 'usedCount', 'type': 'int'}
}
def __init__(self, disabled_count=None, license=None, pending_provisioned_count=None, provisioned_count=None, used_count=None):
super(AccountLicenseUsage, self).__init__()
self.disabled_count = disabled_count
self.license = license
self.pending_provisioned_count = pending_provisioned_count
self.provisioned_count = provisioned_count
self.used_count = used_count
class AccountRights(Model):
"""AccountRights.
:param level:
:type level: object
:param reason:
:type reason: str
"""
_attribute_map = {
'level': {'key': 'level', 'type': 'object'},
'reason': {'key': 'reason', 'type': 'str'}
}
def __init__(self, level=None, reason=None):
super(AccountRights, self).__init__()
self.level = level
self.reason = reason
class AccountUserLicense(Model):
"""AccountUserLicense.
:param license:
:type license: int
:param source:
:type source: object
"""
_attribute_map = {
'license': {'key': 'license', 'type': 'int'},
'source': {'key': 'source', 'type': 'object'}
}
def __init__(self, license=None, source=None):
super(AccountUserLicense, self).__init__()
self.license = license
self.source = source
class ClientRightsContainer(Model):
"""ClientRightsContainer.
:param certificate_bytes:
:type certificate_bytes: str
:param token:
:type token: str
"""
_attribute_map = {
'certificate_bytes': {'key': 'certificateBytes', 'type': 'str'},
'token': {'key': 'token', 'type': 'str'}
}
def __init__(self, certificate_bytes=None, token=None):
super(ClientRightsContainer, self).__init__()
self.certificate_bytes = certificate_bytes
self.token = token
class ExtensionAssignment(Model):
"""ExtensionAssignment.
:param extension_gallery_id: Gets or sets the extension ID to assign.
:type extension_gallery_id: str
:param is_auto_assignment: Set to true if this a auto assignment scenario.
:type is_auto_assignment: bool
:param licensing_source: Gets or sets the licensing source.
:type licensing_source: object
:param user_ids: Gets or sets the user IDs to assign the extension to.
:type user_ids: list of str
"""
_attribute_map = {
'extension_gallery_id': {'key': 'extensionGalleryId', 'type': 'str'},
'is_auto_assignment': {'key': 'isAutoAssignment', 'type': 'bool'},
'licensing_source': {'key': 'licensingSource', 'type': 'object'},
'user_ids': {'key': 'userIds', 'type': '[str]'}
}
def __init__(self, extension_gallery_id=None, is_auto_assignment=None, licensing_source=None, user_ids=None):
super(ExtensionAssignment, self).__init__()
self.extension_gallery_id = extension_gallery_id
self.is_auto_assignment = is_auto_assignment
self.licensing_source = licensing_source
self.user_ids = user_ids
class ExtensionAssignmentDetails(Model):
"""ExtensionAssignmentDetails.
:param assignment_status:
:type assignment_status: object
:param source_collection_name:
:type source_collection_name: str
"""
_attribute_map = {
'assignment_status': {'key': 'assignmentStatus', 'type': 'object'},
'source_collection_name': {'key': 'sourceCollectionName', 'type': 'str'}
}
def __init__(self, assignment_status=None, source_collection_name=None):
super(ExtensionAssignmentDetails, self).__init__()
self.assignment_status = assignment_status
self.source_collection_name = source_collection_name
class ExtensionLicenseData(Model):
"""ExtensionLicenseData.
:param created_date:
:type created_date: datetime
:param extension_id:
:type extension_id: str
:param is_free:
:type is_free: bool
:param minimum_required_access_level:
:type minimum_required_access_level: object
:param updated_date:
:type updated_date: datetime
"""
_attribute_map = {
'created_date': {'key': 'createdDate', 'type': 'iso-8601'},
'extension_id': {'key': 'extensionId', 'type': 'str'},
'is_free': {'key': 'isFree', 'type': 'bool'},
'minimum_required_access_level': {'key': 'minimumRequiredAccessLevel', 'type': 'object'},
'updated_date': {'key': 'updatedDate', 'type': 'iso-8601'}
}
def __init__(self, created_date=None, extension_id=None, is_free=None, minimum_required_access_level=None, updated_date=None):
super(ExtensionLicenseData, self).__init__()
self.created_date = created_date
self.extension_id = extension_id
self.is_free = is_free
self.minimum_required_access_level = minimum_required_access_level
self.updated_date = updated_date
class ExtensionOperationResult(Model):
"""ExtensionOperationResult.
:param account_id:
:type account_id: str
:param extension_id:
:type extension_id: str
:param message:
:type message: str
:param operation:
:type operation: object
:param result:
:type result: object
:param user_id:
:type user_id: str
"""
_attribute_map = {
'account_id': {'key': 'accountId', 'type': 'str'},
'extension_id': {'key': 'extensionId', 'type': 'str'},
'message': {'key': 'message', 'type': 'str'},
'operation': {'key': 'operation', 'type': 'object'},
'result': {'key': 'result', 'type': 'object'},
'user_id': {'key': 'userId', 'type': 'str'}
}
def __init__(self, account_id=None, extension_id=None, message=None, operation=None, result=None, user_id=None):
super(ExtensionOperationResult, self).__init__()
self.account_id = account_id
self.extension_id = extension_id
self.message = message
self.operation = operation
self.result = result
self.user_id = user_id
class ExtensionRightsResult(Model):
"""ExtensionRightsResult.
:param entitled_extensions:
:type entitled_extensions: list of str
:param host_id:
:type host_id: str
:param reason:
:type reason: str
:param reason_code:
:type reason_code: object
:param result_code:
:type result_code: object
"""
_attribute_map = {
'entitled_extensions': {'key': 'entitledExtensions', 'type': '[str]'},
'host_id': {'key': 'hostId', 'type': 'str'},
'reason': {'key': 'reason', 'type': 'str'},
'reason_code': {'key': 'reasonCode', 'type': 'object'},
'result_code': {'key': 'resultCode', 'type': 'object'}
}
def __init__(self, entitled_extensions=None, host_id=None, reason=None, reason_code=None, result_code=None):
super(ExtensionRightsResult, self).__init__()
self.entitled_extensions = entitled_extensions
self.host_id = host_id
self.reason = reason
self.reason_code = reason_code
self.result_code = result_code
class ExtensionSource(Model):
"""ExtensionSource.
:param assignment_source: Assignment Source
:type assignment_source: object
:param extension_gallery_id: extension Identifier
:type extension_gallery_id: str
:param licensing_source: The licensing source of the extension. Account, Msdn, ect.
:type licensing_source: object
"""
_attribute_map = {
'assignment_source': {'key': 'assignmentSource', 'type': 'object'},
'extension_gallery_id': {'key': 'extensionGalleryId', 'type': 'str'},
'licensing_source': {'key': 'licensingSource', 'type': 'object'}
}
def __init__(self, assignment_source=None, extension_gallery_id=None, licensing_source=None):
super(ExtensionSource, self).__init__()
self.assignment_source = assignment_source
self.extension_gallery_id = extension_gallery_id
self.licensing_source = licensing_source
class GraphSubjectBase(Model):
"""GraphSubjectBase.
: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.
:type _links: :class:`ReferenceLinks <azure.devops.v5_0.microsoft._visual_studio._services._web_api.models.ReferenceLinks>`
: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.
:type descriptor: str
: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.
:type display_name: str
:param url: This url is the full route to the source resource of this graph subject.
:type url: str
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'descriptor': {'key': 'descriptor', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, _links=None, descriptor=None, display_name=None, url=None):
super(GraphSubjectBase, self).__init__()
self._links = _links
self.descriptor = descriptor
self.display_name = display_name
self.url = url
class IdentityRef(GraphSubjectBase):
"""IdentityRef.
: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.
:type _links: :class:`ReferenceLinks <azure.devops.v5_0.microsoft._visual_studio._services._web_api.models.ReferenceLinks>`
: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.
:type descriptor: str
: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.
:type display_name: str
:param url: This url is the full route to the source resource of this graph subject.
:type url: str
:param directory_alias:
:type directory_alias: str
:param id:
:type id: str
:param image_url:
:type image_url: str
:param inactive:
:type inactive: bool
:param is_aad_identity:
:type is_aad_identity: bool
:param is_container:
:type is_container: bool
:param is_deleted_in_origin:
:type is_deleted_in_origin: bool
:param profile_url:
:type profile_url: str
:param unique_name:
:type unique_name: str
"""
_attribute_map = {
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'descriptor': {'key': 'descriptor', 'type': 'str'},
'display_name': {'key': 'displayName', 'type': 'str'},
'url': {'key': 'url', 'type': 'str'},
'directory_alias': {'key': 'directoryAlias', 'type': 'str'},
'id': {'key': 'id', 'type': 'str'},
'image_url': {'key': 'imageUrl', 'type': 'str'},
'inactive': {'key': 'inactive', 'type': 'bool'},
'is_aad_identity': {'key': 'isAadIdentity', 'type': 'bool'},
'is_container': {'key': 'isContainer', 'type': 'bool'},
'is_deleted_in_origin': {'key': 'isDeletedInOrigin', 'type': 'bool'},
'profile_url': {'key': 'profileUrl', 'type': 'str'},
'unique_name': {'key': 'uniqueName', 'type': 'str'}
}
def __init__(self, _links=None, descriptor=None, display_name=None, url=None, directory_alias=None, id=None, image_url=None, inactive=None, is_aad_identity=None, is_container=None, is_deleted_in_origin=None, profile_url=None, unique_name=None):
super(IdentityRef, self).__init__(_links=_links, descriptor=descriptor, display_name=display_name, url=url)
self.directory_alias = directory_alias
self.id = id
self.image_url = image_url
self.inactive = inactive
self.is_aad_identity = is_aad_identity
self.is_container = is_container
self.is_deleted_in_origin = is_deleted_in_origin
self.profile_url = profile_url
self.unique_name = unique_name
class License(Model):
"""License.
:param source: Gets the source of the license
:type source: object
"""
_attribute_map = {
'source': {'key': 'source', 'type': 'object'}
}
def __init__(self, source=None):
super(License, self).__init__()
self.source = source
class MsdnEntitlement(Model):
"""MsdnEntitlement.
:param entitlement_code: Entilement id assigned to Entitlement in Benefits Database.
:type entitlement_code: str
:param entitlement_name: Entitlement Name e.g. Downloads, Chat.
:type entitlement_name: str
:param entitlement_type: Type of Entitlement e.g. Downloads, Chat.
:type entitlement_type: str
:param is_activated: Entitlement activation status
:type is_activated: bool
:param is_entitlement_available: Entitlement availability
:type is_entitlement_available: bool
:param subscription_channel: Write MSDN Channel into CRCT (Retail,MPN,VL,BizSpark,DreamSpark,MCT,FTE,Technet,WebsiteSpark,Other)
:type subscription_channel: str
:param subscription_expiration_date: Subscription Expiration Date.
:type subscription_expiration_date: datetime
:param subscription_id: Subscription id which identifies the subscription itself. This is the Benefit Detail Guid from BMS.
:type subscription_id: str
:param subscription_level_code: Identifier of the subscription or benefit level.
:type subscription_level_code: str
:param subscription_level_name: Name of subscription level.
:type subscription_level_name: str
:param subscription_status: Subscription Status Code (ACT, PND, INA ...).
:type subscription_status: str
"""
_attribute_map = {
'entitlement_code': {'key': 'entitlementCode', 'type': 'str'},
'entitlement_name': {'key': 'entitlementName', 'type': 'str'},
'entitlement_type': {'key': 'entitlementType', 'type': 'str'},
'is_activated': {'key': 'isActivated', 'type': 'bool'},
'is_entitlement_available': {'key': 'isEntitlementAvailable', 'type': 'bool'},
'subscription_channel': {'key': 'subscriptionChannel', 'type': 'str'},
'subscription_expiration_date': {'key': 'subscriptionExpirationDate', 'type': 'iso-8601'},
'subscription_id': {'key': 'subscriptionId', 'type': 'str'},
'subscription_level_code': {'key': 'subscriptionLevelCode', 'type': 'str'},
'subscription_level_name': {'key': 'subscriptionLevelName', 'type': 'str'},
'subscription_status': {'key': 'subscriptionStatus', 'type': 'str'}
}
def __init__(self, entitlement_code=None, entitlement_name=None, entitlement_type=None, is_activated=None, is_entitlement_available=None, subscription_channel=None, subscription_expiration_date=None, subscription_id=None, subscription_level_code=None, subscription_level_name=None, subscription_status=None):
super(MsdnEntitlement, self).__init__()
self.entitlement_code = entitlement_code
self.entitlement_name = entitlement_name
self.entitlement_type = entitlement_type
self.is_activated = is_activated
self.is_entitlement_available = is_entitlement_available
self.subscription_channel = subscription_channel
self.subscription_expiration_date = subscription_expiration_date
self.subscription_id = subscription_id
self.subscription_level_code = subscription_level_code
self.subscription_level_name = subscription_level_name
self.subscription_status = subscription_status
class ReferenceLinks(Model):
"""ReferenceLinks.
:param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only.
:type links: dict
"""
_attribute_map = {
'links': {'key': 'links', 'type': '{object}'}
}
def __init__(self, links=None):
super(ReferenceLinks, self).__init__()
self.links = links
__all__ = [
'AccountEntitlement',
'AccountEntitlementUpdateModel',
'AccountLicenseExtensionUsage',
'AccountLicenseUsage',
'AccountRights',
'AccountUserLicense',
'ClientRightsContainer',
'ExtensionAssignment',
'ExtensionAssignmentDetails',
'ExtensionLicenseData',
'ExtensionOperationResult',
'ExtensionRightsResult',
'ExtensionSource',
'GraphSubjectBase',
'IdentityRef',
'License',
'MsdnEntitlement',
'ReferenceLinks',
]
|