|
| 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 BatchOperationData(Model): |
| 13 | + """BatchOperationData. |
| 14 | +
|
| 15 | + """ |
| 16 | + |
| 17 | + _attribute_map = { |
| 18 | + } |
| 19 | + |
| 20 | + def __init__(self): |
| 21 | + super(BatchOperationData, self).__init__() |
| 22 | + |
| 23 | + |
| 24 | +class JsonPatchOperation(Model): |
| 25 | + """JsonPatchOperation. |
| 26 | +
|
| 27 | + :param from_: The path to copy from for the Move/Copy operation. |
| 28 | + :type from_: str |
| 29 | + :param op: The patch operation |
| 30 | + :type op: object |
| 31 | + :param path: The path for the operation |
| 32 | + :type path: str |
| 33 | + :param value: The value for the operation. This is either a primitive or a JToken. |
| 34 | + :type value: object |
| 35 | + """ |
| 36 | + |
| 37 | + _attribute_map = { |
| 38 | + 'from_': {'key': 'from', 'type': 'str'}, |
| 39 | + 'op': {'key': 'op', 'type': 'object'}, |
| 40 | + 'path': {'key': 'path', 'type': 'str'}, |
| 41 | + 'value': {'key': 'value', 'type': 'object'} |
| 42 | + } |
| 43 | + |
| 44 | + def __init__(self, from_=None, op=None, path=None, value=None): |
| 45 | + super(JsonPatchOperation, self).__init__() |
| 46 | + self.from_ = from_ |
| 47 | + self.op = op |
| 48 | + self.path = path |
| 49 | + self.value = value |
| 50 | + |
| 51 | + |
| 52 | +class MinimalPackageDetails(Model): |
| 53 | + """MinimalPackageDetails. |
| 54 | +
|
| 55 | + :param id: Package name. |
| 56 | + :type id: str |
| 57 | + :param version: Package version. |
| 58 | + :type version: str |
| 59 | + """ |
| 60 | + |
| 61 | + _attribute_map = { |
| 62 | + 'id': {'key': 'id', 'type': 'str'}, |
| 63 | + 'version': {'key': 'version', 'type': 'str'} |
| 64 | + } |
| 65 | + |
| 66 | + def __init__(self, id=None, version=None): |
| 67 | + super(MinimalPackageDetails, self).__init__() |
| 68 | + self.id = id |
| 69 | + self.version = version |
| 70 | + |
| 71 | + |
| 72 | +class NuGetPackagesBatchRequest(Model): |
| 73 | + """NuGetPackagesBatchRequest. |
| 74 | +
|
| 75 | + :param data: Data required to perform the operation. This is optional based on the type of the operation. Use BatchPromoteData if performing a promote operation. |
| 76 | + :type data: :class:`BatchOperationData <azure.devops.v5_1.nuget.models.BatchOperationData>` |
| 77 | + :param operation: Type of operation that needs to be performed on packages. |
| 78 | + :type operation: object |
| 79 | + :param packages: The packages onto which the operation will be performed. |
| 80 | + :type packages: list of :class:`MinimalPackageDetails <azure.devops.v5_1.nuget.models.MinimalPackageDetails>` |
| 81 | + """ |
| 82 | + |
| 83 | + _attribute_map = { |
| 84 | + 'data': {'key': 'data', 'type': 'BatchOperationData'}, |
| 85 | + 'operation': {'key': 'operation', 'type': 'object'}, |
| 86 | + 'packages': {'key': 'packages', 'type': '[MinimalPackageDetails]'} |
| 87 | + } |
| 88 | + |
| 89 | + def __init__(self, data=None, operation=None, packages=None): |
| 90 | + super(NuGetPackagesBatchRequest, self).__init__() |
| 91 | + self.data = data |
| 92 | + self.operation = operation |
| 93 | + self.packages = packages |
| 94 | + |
| 95 | + |
| 96 | +class NuGetPackageVersionDeletionState(Model): |
| 97 | + """NuGetPackageVersionDeletionState. |
| 98 | +
|
| 99 | + :param deleted_date: Utc date the package was deleted. |
| 100 | + :type deleted_date: datetime |
| 101 | + :param name: Name of the package. |
| 102 | + :type name: str |
| 103 | + :param version: Version of the package. |
| 104 | + :type version: str |
| 105 | + """ |
| 106 | + |
| 107 | + _attribute_map = { |
| 108 | + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, |
| 109 | + 'name': {'key': 'name', 'type': 'str'}, |
| 110 | + 'version': {'key': 'version', 'type': 'str'} |
| 111 | + } |
| 112 | + |
| 113 | + def __init__(self, deleted_date=None, name=None, version=None): |
| 114 | + super(NuGetPackageVersionDeletionState, self).__init__() |
| 115 | + self.deleted_date = deleted_date |
| 116 | + self.name = name |
| 117 | + self.version = version |
| 118 | + |
| 119 | + |
| 120 | +class NuGetRecycleBinPackageVersionDetails(Model): |
| 121 | + """NuGetRecycleBinPackageVersionDetails. |
| 122 | +
|
| 123 | + :param deleted: Setting to false will undo earlier deletion and restore the package to feed. |
| 124 | + :type deleted: bool |
| 125 | + """ |
| 126 | + |
| 127 | + _attribute_map = { |
| 128 | + 'deleted': {'key': 'deleted', 'type': 'bool'} |
| 129 | + } |
| 130 | + |
| 131 | + def __init__(self, deleted=None): |
| 132 | + super(NuGetRecycleBinPackageVersionDetails, self).__init__() |
| 133 | + self.deleted = deleted |
| 134 | + |
| 135 | + |
| 136 | +class Package(Model): |
| 137 | + """Package. |
| 138 | +
|
| 139 | + :param _links: Related REST links. |
| 140 | + :type _links: :class:`ReferenceLinks <azure.devops.v5_1.nuget.models.ReferenceLinks>` |
| 141 | + :param deleted_date: If and when the package was deleted. |
| 142 | + :type deleted_date: datetime |
| 143 | + :param id: Package Id. |
| 144 | + :type id: str |
| 145 | + :param name: The display name of the package. |
| 146 | + :type name: str |
| 147 | + :param permanently_deleted_date: If and when the package was permanently deleted. |
| 148 | + :type permanently_deleted_date: datetime |
| 149 | + :param source_chain: The history of upstream sources for this package. The first source in the list is the immediate source from which this package was saved. |
| 150 | + :type source_chain: list of :class:`UpstreamSourceInfo <azure.devops.v5_1.nuget.models.UpstreamSourceInfo>` |
| 151 | + :param version: The version of the package. |
| 152 | + :type version: str |
| 153 | + """ |
| 154 | + |
| 155 | + _attribute_map = { |
| 156 | + '_links': {'key': '_links', 'type': 'ReferenceLinks'}, |
| 157 | + 'deleted_date': {'key': 'deletedDate', 'type': 'iso-8601'}, |
| 158 | + 'id': {'key': 'id', 'type': 'str'}, |
| 159 | + 'name': {'key': 'name', 'type': 'str'}, |
| 160 | + 'permanently_deleted_date': {'key': 'permanentlyDeletedDate', 'type': 'iso-8601'}, |
| 161 | + 'source_chain': {'key': 'sourceChain', 'type': '[UpstreamSourceInfo]'}, |
| 162 | + 'version': {'key': 'version', 'type': 'str'} |
| 163 | + } |
| 164 | + |
| 165 | + def __init__(self, _links=None, deleted_date=None, id=None, name=None, permanently_deleted_date=None, source_chain=None, version=None): |
| 166 | + super(Package, self).__init__() |
| 167 | + self._links = _links |
| 168 | + self.deleted_date = deleted_date |
| 169 | + self.id = id |
| 170 | + self.name = name |
| 171 | + self.permanently_deleted_date = permanently_deleted_date |
| 172 | + self.source_chain = source_chain |
| 173 | + self.version = version |
| 174 | + |
| 175 | + |
| 176 | +class PackageVersionDetails(Model): |
| 177 | + """PackageVersionDetails. |
| 178 | +
|
| 179 | + :param listed: Indicates the listing state of a package |
| 180 | + :type listed: bool |
| 181 | + :param views: The view to which the package version will be added |
| 182 | + :type views: :class:`JsonPatchOperation <azure.devops.v5_1.nuget.models.JsonPatchOperation>` |
| 183 | + """ |
| 184 | + |
| 185 | + _attribute_map = { |
| 186 | + 'listed': {'key': 'listed', 'type': 'bool'}, |
| 187 | + 'views': {'key': 'views', 'type': 'JsonPatchOperation'} |
| 188 | + } |
| 189 | + |
| 190 | + def __init__(self, listed=None, views=None): |
| 191 | + super(PackageVersionDetails, self).__init__() |
| 192 | + self.listed = listed |
| 193 | + self.views = views |
| 194 | + |
| 195 | + |
| 196 | +class ReferenceLinks(Model): |
| 197 | + """ReferenceLinks. |
| 198 | +
|
| 199 | + :param links: The readonly view of the links. Because Reference links are readonly, we only want to expose them as read only. |
| 200 | + :type links: dict |
| 201 | + """ |
| 202 | + |
| 203 | + _attribute_map = { |
| 204 | + 'links': {'key': 'links', 'type': '{object}'} |
| 205 | + } |
| 206 | + |
| 207 | + def __init__(self, links=None): |
| 208 | + super(ReferenceLinks, self).__init__() |
| 209 | + self.links = links |
| 210 | + |
| 211 | + |
| 212 | +class UpstreamSourceInfo(Model): |
| 213 | + """UpstreamSourceInfo. |
| 214 | +
|
| 215 | + :param id: Identity of the upstream source. |
| 216 | + :type id: str |
| 217 | + :param location: Locator for connecting to the upstream source. |
| 218 | + :type location: str |
| 219 | + :param name: Display name. |
| 220 | + :type name: str |
| 221 | + :param source_type: Source type, such as Public or Internal. |
| 222 | + :type source_type: object |
| 223 | + """ |
| 224 | + |
| 225 | + _attribute_map = { |
| 226 | + 'id': {'key': 'id', 'type': 'str'}, |
| 227 | + 'location': {'key': 'location', 'type': 'str'}, |
| 228 | + 'name': {'key': 'name', 'type': 'str'}, |
| 229 | + 'source_type': {'key': 'sourceType', 'type': 'object'} |
| 230 | + } |
| 231 | + |
| 232 | + def __init__(self, id=None, location=None, name=None, source_type=None): |
| 233 | + super(UpstreamSourceInfo, self).__init__() |
| 234 | + self.id = id |
| 235 | + self.location = location |
| 236 | + self.name = name |
| 237 | + self.source_type = source_type |
| 238 | + |
| 239 | + |
| 240 | +class BatchListData(BatchOperationData): |
| 241 | + """BatchListData. |
| 242 | +
|
| 243 | + :param listed: The desired listed status for the package versions. |
| 244 | + :type listed: bool |
| 245 | + """ |
| 246 | + |
| 247 | + _attribute_map = { |
| 248 | + 'listed': {'key': 'listed', 'type': 'bool'} |
| 249 | + } |
| 250 | + |
| 251 | + def __init__(self, listed=None): |
| 252 | + super(BatchListData, self).__init__() |
| 253 | + self.listed = listed |
| 254 | + |
| 255 | + |
| 256 | +__all__ = [ |
| 257 | + 'BatchOperationData', |
| 258 | + 'JsonPatchOperation', |
| 259 | + 'MinimalPackageDetails', |
| 260 | + 'NuGetPackagesBatchRequest', |
| 261 | + 'NuGetPackageVersionDeletionState', |
| 262 | + 'NuGetRecycleBinPackageVersionDetails', |
| 263 | + 'Package', |
| 264 | + 'PackageVersionDetails', |
| 265 | + 'ReferenceLinks', |
| 266 | + 'UpstreamSourceInfo', |
| 267 | + 'BatchListData', |
| 268 | +] |
0 commit comments