|
| 1 | +# coding=utf-8 |
| 2 | +# -------------------------------------------------------------------------- |
| 3 | +# Copyright (c) Microsoft Corporation. All rights reserved. |
| 4 | +# Licensed under the MIT License. See License.txt in the project root for |
| 5 | +# license information. |
| 6 | +# |
| 7 | +# Code generated by Microsoft (R) AutoRest Code Generator. |
| 8 | +# Changes may cause incorrect behavior and will be lost if the code is |
| 9 | +# regenerated. |
| 10 | +# -------------------------------------------------------------------------- |
| 11 | + |
| 12 | +from msrest.service_client import SDKClient |
| 13 | +from msrest import Serializer, Deserializer |
| 14 | + |
| 15 | +from ._configuration import DevOpsClientConfiguration |
| 16 | +from .operations import Operations |
| 17 | +from .operations import PipelineTemplateDefinitionsOperations |
| 18 | +from .operations import PipelinesOperations |
| 19 | +from . import models |
| 20 | + |
| 21 | + |
| 22 | +class DevOpsClient(SDKClient): |
| 23 | + """Azure DevOps Resource Provider |
| 24 | +
|
| 25 | + :ivar config: Configuration for client. |
| 26 | + :vartype config: DevOpsClientConfiguration |
| 27 | +
|
| 28 | + :ivar operations: Operations operations |
| 29 | + :vartype operations: azure.mgmt.devops.operations.Operations |
| 30 | + :ivar pipeline_template_definitions: PipelineTemplateDefinitions operations |
| 31 | + :vartype pipeline_template_definitions: azure.mgmt.devops.operations.PipelineTemplateDefinitionsOperations |
| 32 | + :ivar pipelines: Pipelines operations |
| 33 | + :vartype pipelines: azure.mgmt.devops.operations.PipelinesOperations |
| 34 | +
|
| 35 | + :param credentials: Credentials needed for the client to connect to Azure. |
| 36 | + :type credentials: :mod:`A msrestazure Credentials |
| 37 | + object<msrestazure.azure_active_directory>` |
| 38 | + :param subscription_id: Unique identifier of the Azure subscription. This |
| 39 | + is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000). |
| 40 | + :type subscription_id: str |
| 41 | + :param str base_url: Service URL |
| 42 | + """ |
| 43 | + |
| 44 | + def __init__( |
| 45 | + self, credentials, subscription_id, base_url=None): |
| 46 | + |
| 47 | + self.config = DevOpsClientConfiguration(credentials, subscription_id, base_url) |
| 48 | + super(DevOpsClient, self).__init__(self.config.credentials, self.config) |
| 49 | + |
| 50 | + client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} |
| 51 | + self.api_version = '2019-07-01-preview' |
| 52 | + self._serialize = Serializer(client_models) |
| 53 | + self._deserialize = Deserializer(client_models) |
| 54 | + |
| 55 | + self.operations = Operations( |
| 56 | + self._client, self.config, self._serialize, self._deserialize) |
| 57 | + self.pipeline_template_definitions = PipelineTemplateDefinitionsOperations( |
| 58 | + self._client, self.config, self._serialize, self._deserialize) |
| 59 | + self.pipelines = PipelinesOperations( |
| 60 | + self._client, self.config, self._serialize, self._deserialize) |
0 commit comments