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
|
# --------------------------------------------------------------------------------------------
# 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 FileContainer(Model):
"""
Represents a container that encapsulates a hierarchical file system.
:param artifact_uri: Uri of the artifact associated with the container.
:type artifact_uri: str
:param content_location: Download Url for the content of this item.
:type content_location: str
:param created_by: Owner.
:type created_by: str
:param date_created: Creation date.
:type date_created: datetime
:param description: Description.
:type description: str
:param id: Id.
:type id: long
:param item_location: Location of the item resource.
:type item_location: str
:param locator_path: ItemStore Locator for this container.
:type locator_path: str
:param name: Name.
:type name: str
:param options: Options the container can have.
:type options: object
:param scope_identifier: Project Id.
:type scope_identifier: str
:param security_token: Security token of the artifact associated with the container.
:type security_token: str
:param signing_key_id: Identifier of the optional encryption key.
:type signing_key_id: str
:param size: Total size of the files in bytes.
:type size: long
"""
_attribute_map = {
'artifact_uri': {'key': 'artifactUri', 'type': 'str'},
'content_location': {'key': 'contentLocation', 'type': 'str'},
'created_by': {'key': 'createdBy', 'type': 'str'},
'date_created': {'key': 'dateCreated', 'type': 'iso-8601'},
'description': {'key': 'description', 'type': 'str'},
'id': {'key': 'id', 'type': 'long'},
'item_location': {'key': 'itemLocation', 'type': 'str'},
'locator_path': {'key': 'locatorPath', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'},
'options': {'key': 'options', 'type': 'object'},
'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'},
'security_token': {'key': 'securityToken', 'type': 'str'},
'signing_key_id': {'key': 'signingKeyId', 'type': 'str'},
'size': {'key': 'size', 'type': 'long'}
}
def __init__(self, artifact_uri=None, content_location=None, created_by=None, date_created=None, description=None, id=None, item_location=None, locator_path=None, name=None, options=None, scope_identifier=None, security_token=None, signing_key_id=None, size=None):
super(FileContainer, self).__init__()
self.artifact_uri = artifact_uri
self.content_location = content_location
self.created_by = created_by
self.date_created = date_created
self.description = description
self.id = id
self.item_location = item_location
self.locator_path = locator_path
self.name = name
self.options = options
self.scope_identifier = scope_identifier
self.security_token = security_token
self.signing_key_id = signing_key_id
self.size = size
class FileContainerItem(Model):
"""
Represents an item in a container.
:param container_id: Container Id.
:type container_id: long
:param content_id:
:type content_id: str
:param content_location: Download Url for the content of this item.
:type content_location: str
:param created_by: Creator.
:type created_by: str
:param date_created: Creation date.
:type date_created: datetime
:param date_last_modified: Last modified date.
:type date_last_modified: datetime
:param file_encoding: Encoding of the file. Zero if not a file.
:type file_encoding: int
:param file_hash: Hash value of the file. Null if not a file.
:type file_hash: str
:param file_id: Id of the file content.
:type file_id: int
:param file_length: Length of the file. Zero if not of a file.
:type file_length: long
:param file_type: Type of the file. Zero if not a file.
:type file_type: int
:param item_location: Location of the item resource.
:type item_location: str
:param item_type: Type of the item: Folder, File or String.
:type item_type: object
:param last_modified_by: Modifier.
:type last_modified_by: str
:param path: Unique path that identifies the item.
:type path: str
:param scope_identifier: Project Id.
:type scope_identifier: str
:param status: Status of the item: Created or Pending Upload.
:type status: object
:param ticket:
:type ticket: str
"""
_attribute_map = {
'container_id': {'key': 'containerId', 'type': 'long'},
'content_id': {'key': 'contentId', 'type': 'str'},
'content_location': {'key': 'contentLocation', 'type': 'str'},
'created_by': {'key': 'createdBy', 'type': 'str'},
'date_created': {'key': 'dateCreated', 'type': 'iso-8601'},
'date_last_modified': {'key': 'dateLastModified', 'type': 'iso-8601'},
'file_encoding': {'key': 'fileEncoding', 'type': 'int'},
'file_hash': {'key': 'fileHash', 'type': 'str'},
'file_id': {'key': 'fileId', 'type': 'int'},
'file_length': {'key': 'fileLength', 'type': 'long'},
'file_type': {'key': 'fileType', 'type': 'int'},
'item_location': {'key': 'itemLocation', 'type': 'str'},
'item_type': {'key': 'itemType', 'type': 'object'},
'last_modified_by': {'key': 'lastModifiedBy', 'type': 'str'},
'path': {'key': 'path', 'type': 'str'},
'scope_identifier': {'key': 'scopeIdentifier', 'type': 'str'},
'status': {'key': 'status', 'type': 'object'},
'ticket': {'key': 'ticket', 'type': 'str'}
}
def __init__(self, container_id=None, content_id=None, content_location=None, created_by=None, date_created=None, date_last_modified=None, file_encoding=None, file_hash=None, file_id=None, file_length=None, file_type=None, item_location=None, item_type=None, last_modified_by=None, path=None, scope_identifier=None, status=None, ticket=None):
super(FileContainerItem, self).__init__()
self.container_id = container_id
self.content_id = content_id
self.content_location = content_location
self.created_by = created_by
self.date_created = date_created
self.date_last_modified = date_last_modified
self.file_encoding = file_encoding
self.file_hash = file_hash
self.file_id = file_id
self.file_length = file_length
self.file_type = file_type
self.item_location = item_location
self.item_type = item_type
self.last_modified_by = last_modified_by
self.path = path
self.scope_identifier = scope_identifier
self.status = status
self.ticket = ticket
__all__ = [
'FileContainer',
'FileContainerItem',
]
|