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 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631
|
# --------------------------------------------------------------------------------------------
# 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 Artifact(Model):
"""
Artifacts are collections of files produced by a pipeline. Use artifacts to share files between stages in a pipeline or between different pipelines.
:param name: The name of the artifact.
:type name: str
:param signed_content: Signed url for downloading this artifact
:type signed_content: :class:`SignedUrl <azure.devops.v6_0.pipelines.models.SignedUrl>`
:param url: Self-referential url
:type url: str
"""
_attribute_map = {
'name': {'key': 'name', 'type': 'str'},
'signed_content': {'key': 'signedContent', 'type': 'SignedUrl'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, name=None, signed_content=None, url=None):
super(Artifact, self).__init__()
self.name = name
self.signed_content = signed_content
self.url = url
class BuildResourceParameters(Model):
"""
:param version:
:type version: str
"""
_attribute_map = {
'version': {'key': 'version', 'type': 'str'}
}
def __init__(self, version=None):
super(BuildResourceParameters, self).__init__()
self.version = version
class ContainerResourceParameters(Model):
"""
:param version:
:type version: str
"""
_attribute_map = {
'version': {'key': 'version', 'type': 'str'}
}
def __init__(self, version=None):
super(ContainerResourceParameters, self).__init__()
self.version = version
class CreatePipelineConfigurationParameters(Model):
"""
Configuration parameters of the pipeline.
:param type: Type of configuration.
:type type: object
"""
_attribute_map = {
'type': {'key': 'type', 'type': 'object'}
}
def __init__(self, type=None):
super(CreatePipelineConfigurationParameters, self).__init__()
self.type = type
class CreatePipelineParameters(Model):
"""
Parameters to create a pipeline.
:param configuration: Configuration parameters of the pipeline.
:type configuration: :class:`CreatePipelineConfigurationParameters <azure.devops.v6_0.pipelines.models.CreatePipelineConfigurationParameters>`
:param folder: Folder of the pipeline.
:type folder: str
:param name: Name of the pipeline.
:type name: str
"""
_attribute_map = {
'configuration': {'key': 'configuration', 'type': 'CreatePipelineConfigurationParameters'},
'folder': {'key': 'folder', 'type': 'str'},
'name': {'key': 'name', 'type': 'str'}
}
def __init__(self, configuration=None, folder=None, name=None):
super(CreatePipelineParameters, self).__init__()
self.configuration = configuration
self.folder = folder
self.name = name
class Log(Model):
"""
Log for a pipeline.
:param created_on: The date and time the log was created.
:type created_on: datetime
:param id: The ID of the log.
:type id: int
:param last_changed_on: The date and time the log was last changed.
:type last_changed_on: datetime
:param line_count: The number of lines in the log.
:type line_count: long
:param signed_content:
:type signed_content: :class:`SignedUrl <azure.devops.v6_0.pipelines.models.SignedUrl>`
:param url:
:type url: str
"""
_attribute_map = {
'created_on': {'key': 'createdOn', 'type': 'iso-8601'},
'id': {'key': 'id', 'type': 'int'},
'last_changed_on': {'key': 'lastChangedOn', 'type': 'iso-8601'},
'line_count': {'key': 'lineCount', 'type': 'long'},
'signed_content': {'key': 'signedContent', 'type': 'SignedUrl'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, created_on=None, id=None, last_changed_on=None, line_count=None, signed_content=None, url=None):
super(Log, self).__init__()
self.created_on = created_on
self.id = id
self.last_changed_on = last_changed_on
self.line_count = line_count
self.signed_content = signed_content
self.url = url
class LogCollection(Model):
"""
A collection of logs.
:param logs: The list of logs.
:type logs: list of :class:`Log <azure.devops.v6_0.pipelines.models.Log>`
:param signed_content:
:type signed_content: :class:`SignedUrl <azure.devops.v6_0.pipelines.models.SignedUrl>`
:param url: URL of the log.
:type url: str
"""
_attribute_map = {
'logs': {'key': 'logs', 'type': '[Log]'},
'signed_content': {'key': 'signedContent', 'type': 'SignedUrl'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, logs=None, signed_content=None, url=None):
super(LogCollection, self).__init__()
self.logs = logs
self.signed_content = signed_content
self.url = url
class PackageResourceParameters(Model):
"""
:param version:
:type version: str
"""
_attribute_map = {
'version': {'key': 'version', 'type': 'str'}
}
def __init__(self, version=None):
super(PackageResourceParameters, self).__init__()
self.version = version
class PipelineBase(Model):
"""
:param folder: Pipeline folder
:type folder: str
:param id: Pipeline ID
:type id: int
:param name: Pipeline name
:type name: str
:param revision: Revision number
:type revision: int
"""
_attribute_map = {
'folder': {'key': 'folder', 'type': 'str'},
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'},
'revision': {'key': 'revision', 'type': 'int'}
}
def __init__(self, folder=None, id=None, name=None, revision=None):
super(PipelineBase, self).__init__()
self.folder = folder
self.id = id
self.name = name
self.revision = revision
class PipelineConfiguration(Model):
"""
:param type:
:type type: object
"""
_attribute_map = {
'type': {'key': 'type', 'type': 'object'}
}
def __init__(self, type=None):
super(PipelineConfiguration, self).__init__()
self.type = type
class PipelineReference(PipelineBase):
"""
A reference to a Pipeline.
:param folder: Pipeline folder
:type folder: str
:param id: Pipeline ID
:type id: int
:param name: Pipeline name
:type name: str
:param revision: Revision number
:type revision: int
:param url:
:type url: str
"""
_attribute_map = {
'folder': {'key': 'folder', 'type': 'str'},
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'},
'revision': {'key': 'revision', 'type': 'int'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, folder=None, id=None, name=None, revision=None, url=None):
super(PipelineReference, self).__init__(folder=folder, id=id, name=name, revision=revision)
self.url = url
class PipelineResourceParameters(Model):
"""
:param version:
:type version: str
"""
_attribute_map = {
'version': {'key': 'version', 'type': 'str'}
}
def __init__(self, version=None):
super(PipelineResourceParameters, self).__init__()
self.version = version
class ReferenceLinks(Model):
"""
The class to represent a collection of REST reference links.
: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
class Repository(Model):
"""
:param type:
:type type: object
"""
_attribute_map = {
'type': {'key': 'type', 'type': 'object'}
}
def __init__(self, type=None):
super(Repository, self).__init__()
self.type = type
class RepositoryResource(Model):
"""
:param ref_name:
:type ref_name: str
:param repository:
:type repository: :class:`Repository <azure.devops.v6_0.pipelines.models.Repository>`
:param version:
:type version: str
"""
_attribute_map = {
'ref_name': {'key': 'refName', 'type': 'str'},
'repository': {'key': 'repository', 'type': 'Repository'},
'version': {'key': 'version', 'type': 'str'}
}
def __init__(self, ref_name=None, repository=None, version=None):
super(RepositoryResource, self).__init__()
self.ref_name = ref_name
self.repository = repository
self.version = version
class RepositoryResourceParameters(Model):
"""
:param ref_name:
:type ref_name: str
:param token: This is the security token to use when connecting to the repository.
:type token: str
:param token_type: Optional. This is the type of the token given. If not provided, a type of "Bearer" is assumed. Note: Use "Basic" for a PAT token.
:type token_type: str
:param version:
:type version: str
"""
_attribute_map = {
'ref_name': {'key': 'refName', 'type': 'str'},
'token': {'key': 'token', 'type': 'str'},
'token_type': {'key': 'tokenType', 'type': 'str'},
'version': {'key': 'version', 'type': 'str'}
}
def __init__(self, ref_name=None, token=None, token_type=None, version=None):
super(RepositoryResourceParameters, self).__init__()
self.ref_name = ref_name
self.token = token
self.token_type = token_type
self.version = version
class RunPipelineParameters(Model):
"""
Settings which influence pipeline runs.
:param preview_run: If true, don't actually create a new run. Instead, return the final YAML document after parsing templates.
:type preview_run: bool
:param resources: The resources the run requires.
:type resources: :class:`RunResourcesParameters <azure.devops.v6_0.pipelines.models.RunResourcesParameters>`
:param stages_to_skip:
:type stages_to_skip: list of str
:param template_parameters:
:type template_parameters: dict
:param variables:
:type variables: dict
:param yaml_override: If you use the preview run option, you may optionally supply different YAML. This allows you to preview the final YAML document without committing a changed file.
:type yaml_override: str
"""
_attribute_map = {
'preview_run': {'key': 'previewRun', 'type': 'bool'},
'resources': {'key': 'resources', 'type': 'RunResourcesParameters'},
'stages_to_skip': {'key': 'stagesToSkip', 'type': '[str]'},
'template_parameters': {'key': 'templateParameters', 'type': '{str}'},
'variables': {'key': 'variables', 'type': '{Variable}'},
'yaml_override': {'key': 'yamlOverride', 'type': 'str'}
}
def __init__(self, preview_run=None, resources=None, stages_to_skip=None, template_parameters=None, variables=None, yaml_override=None):
super(RunPipelineParameters, self).__init__()
self.preview_run = preview_run
self.resources = resources
self.stages_to_skip = stages_to_skip
self.template_parameters = template_parameters
self.variables = variables
self.yaml_override = yaml_override
class RunReference(Model):
"""
:param id:
:type id: int
:param name:
:type name: str
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'}
}
def __init__(self, id=None, name=None):
super(RunReference, self).__init__()
self.id = id
self.name = name
class RunResources(Model):
"""
:param repositories:
:type repositories: dict
"""
_attribute_map = {
'repositories': {'key': 'repositories', 'type': '{RepositoryResource}'}
}
def __init__(self, repositories=None):
super(RunResources, self).__init__()
self.repositories = repositories
class RunResourcesParameters(Model):
"""
:param builds:
:type builds: dict
:param containers:
:type containers: dict
:param packages:
:type packages: dict
:param pipelines:
:type pipelines: dict
:param repositories:
:type repositories: dict
"""
_attribute_map = {
'builds': {'key': 'builds', 'type': '{BuildResourceParameters}'},
'containers': {'key': 'containers', 'type': '{ContainerResourceParameters}'},
'packages': {'key': 'packages', 'type': '{PackageResourceParameters}'},
'pipelines': {'key': 'pipelines', 'type': '{PipelineResourceParameters}'},
'repositories': {'key': 'repositories', 'type': '{RepositoryResourceParameters}'}
}
def __init__(self, builds=None, containers=None, packages=None, pipelines=None, repositories=None):
super(RunResourcesParameters, self).__init__()
self.builds = builds
self.containers = containers
self.packages = packages
self.pipelines = pipelines
self.repositories = repositories
class SignalRConnection(Model):
"""
:param signed_content:
:type signed_content: :class:`SignedUrl <azure.devops.v6_0.pipelines.models.SignedUrl>`
"""
_attribute_map = {
'signed_content': {'key': 'signedContent', 'type': 'SignedUrl'}
}
def __init__(self, signed_content=None):
super(SignalRConnection, self).__init__()
self.signed_content = signed_content
class SignedUrl(Model):
"""
A signed url allowing limited-time anonymous access to private resources.
:param signature_expires: Timestamp when access expires.
:type signature_expires: datetime
:param url: The URL to allow access to.
:type url: str
"""
_attribute_map = {
'signature_expires': {'key': 'signatureExpires', 'type': 'iso-8601'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, signature_expires=None, url=None):
super(SignedUrl, self).__init__()
self.signature_expires = signature_expires
self.url = url
class Variable(Model):
"""
:param is_secret:
:type is_secret: bool
:param value:
:type value: str
"""
_attribute_map = {
'is_secret': {'key': 'isSecret', 'type': 'bool'},
'value': {'key': 'value', 'type': 'str'}
}
def __init__(self, is_secret=None, value=None):
super(Variable, self).__init__()
self.is_secret = is_secret
self.value = value
class Pipeline(PipelineBase):
"""
Definition of a pipeline.
:param folder: Pipeline folder
:type folder: str
:param id: Pipeline ID
:type id: int
:param name: Pipeline name
:type name: str
:param revision: Revision number
:type revision: int
:param _links:
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.pipelines.models.ReferenceLinks>`
:param configuration:
:type configuration: :class:`PipelineConfiguration <azure.devops.v6_0.pipelines.models.PipelineConfiguration>`
:param url: URL of the pipeline
:type url: str
"""
_attribute_map = {
'folder': {'key': 'folder', 'type': 'str'},
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'},
'revision': {'key': 'revision', 'type': 'int'},
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'configuration': {'key': 'configuration', 'type': 'PipelineConfiguration'},
'url': {'key': 'url', 'type': 'str'}
}
def __init__(self, folder=None, id=None, name=None, revision=None, _links=None, configuration=None, url=None):
super(Pipeline, self).__init__(folder=folder, id=id, name=name, revision=revision)
self._links = _links
self.configuration = configuration
self.url = url
class Run(RunReference):
"""
:param id:
:type id: int
:param name:
:type name: str
:param _links:
:type _links: :class:`ReferenceLinks <azure.devops.v6_0.pipelines.models.ReferenceLinks>`
:param created_date:
:type created_date: datetime
:param final_yaml:
:type final_yaml: str
:param finished_date:
:type finished_date: datetime
:param pipeline:
:type pipeline: :class:`PipelineReference <azure.devops.v6_0.pipelines.models.PipelineReference>`
:param resources:
:type resources: :class:`RunResources <azure.devops.v6_0.pipelines.models.RunResources>`
:param result:
:type result: object
:param state:
:type state: object
:param url:
:type url: str
:param variables:
:type variables: dict
"""
_attribute_map = {
'id': {'key': 'id', 'type': 'int'},
'name': {'key': 'name', 'type': 'str'},
'_links': {'key': '_links', 'type': 'ReferenceLinks'},
'created_date': {'key': 'createdDate', 'type': 'iso-8601'},
'final_yaml': {'key': 'finalYaml', 'type': 'str'},
'finished_date': {'key': 'finishedDate', 'type': 'iso-8601'},
'pipeline': {'key': 'pipeline', 'type': 'PipelineReference'},
'resources': {'key': 'resources', 'type': 'RunResources'},
'result': {'key': 'result', 'type': 'object'},
'state': {'key': 'state', 'type': 'object'},
'url': {'key': 'url', 'type': 'str'},
'variables': {'key': 'variables', 'type': '{Variable}'}
}
def __init__(self, id=None, name=None, _links=None, created_date=None, final_yaml=None, finished_date=None, pipeline=None, resources=None, result=None, state=None, url=None, variables=None):
super(Run, self).__init__(id=id, name=name)
self._links = _links
self.created_date = created_date
self.final_yaml = final_yaml
self.finished_date = finished_date
self.pipeline = pipeline
self.resources = resources
self.result = result
self.state = state
self.url = url
self.variables = variables
__all__ = [
'Artifact',
'BuildResourceParameters',
'ContainerResourceParameters',
'CreatePipelineConfigurationParameters',
'CreatePipelineParameters',
'Log',
'LogCollection',
'PackageResourceParameters',
'PipelineBase',
'PipelineConfiguration',
'PipelineReference',
'PipelineResourceParameters',
'ReferenceLinks',
'Repository',
'RepositoryResource',
'RepositoryResourceParameters',
'RunPipelineParameters',
'RunReference',
'RunResources',
'RunResourcesParameters',
'SignalRConnection',
'SignedUrl',
'Variable',
'Pipeline',
'Run',
]
|