diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/__init__.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/__init__.py index 26da780d9a3e..161dc530b683 100644 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/__init__.py +++ b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/__init__.py @@ -9,10 +9,11 @@ # regenerated. # -------------------------------------------------------------------------- -from .deployment_manager_client import DeploymentManagerClient -from .version import VERSION +from ._configuration import DeploymentManagerClientConfiguration +from ._deployment_manager_client import DeploymentManagerClient +__all__ = ['DeploymentManagerClient', 'DeploymentManagerClientConfiguration'] -__all__ = ['DeploymentManagerClient'] +from .version import VERSION __version__ = VERSION diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/_configuration.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/_configuration.py new file mode 100644 index 000000000000..266da2fd2f9b --- /dev/null +++ b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/_configuration.py @@ -0,0 +1,50 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- +from msrestazure import AzureConfiguration + +from .version import VERSION + + +class DeploymentManagerClientConfiguration(AzureConfiguration): + """Configuration for DeploymentManagerClient + Note that all parameters used to create this instance are saved as instance + attributes. + + :param credentials: Credentials needed for the client to connect to Azure. + :type credentials: :mod:`A msrestazure Credentials + object` + :param subscription_id: Subscription credentials which uniquely identify + Microsoft Azure subscription. The subscription ID forms part of the URI + for every service call. + :type subscription_id: str + :param str base_url: Service URL + """ + + def __init__( + self, credentials, subscription_id, base_url=None): + + if credentials is None: + raise ValueError("Parameter 'credentials' must not be None.") + if subscription_id is None: + raise ValueError("Parameter 'subscription_id' must not be None.") + if not base_url: + base_url = 'https://management.azure.com' + + super(DeploymentManagerClientConfiguration, self).__init__(base_url) + + # Starting Autorest.Python 4.0.64, make connection pool activated by default + self.keep_alive = True + + self.add_user_agent('azure-mgmt-deploymentmanager/{}'.format(VERSION)) + self.add_user_agent('Azure-SDK-For-Python') + + self.credentials = credentials + self.subscription_id = subscription_id diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/deployment_manager_client.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/_deployment_manager_client.py similarity index 65% rename from sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/deployment_manager_client.py rename to sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/_deployment_manager_client.py index 69f3e74da2c5..58c12648f7b5 100644 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/deployment_manager_client.py +++ b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/_deployment_manager_client.py @@ -11,50 +11,16 @@ from msrest.service_client import SDKClient from msrest import Serializer, Deserializer -from msrestazure import AzureConfiguration -from .version import VERSION -from .operations.service_topologies_operations import ServiceTopologiesOperations -from .operations.services_operations import ServicesOperations -from .operations.service_units_operations import ServiceUnitsOperations -from .operations.steps_operations import StepsOperations -from .operations.rollouts_operations import RolloutsOperations -from .operations.artifact_sources_operations import ArtifactSourcesOperations -from .operations.operations import Operations -from . import models - - -class DeploymentManagerClientConfiguration(AzureConfiguration): - """Configuration for DeploymentManagerClient - Note that all parameters used to create this instance are saved as instance - attributes. - - :param credentials: Credentials needed for the client to connect to Azure. - :type credentials: :mod:`A msrestazure Credentials - object` - :param subscription_id: Subscription credentials which uniquely identify - Microsoft Azure subscription. The subscription ID forms part of the URI - for every service call. - :type subscription_id: str - :param str base_url: Service URL - """ - - def __init__( - self, credentials, subscription_id, base_url=None): - - if credentials is None: - raise ValueError("Parameter 'credentials' must not be None.") - if subscription_id is None: - raise ValueError("Parameter 'subscription_id' must not be None.") - if not base_url: - base_url = 'https://management.azure.com' - - super(DeploymentManagerClientConfiguration, self).__init__(base_url) - self.add_user_agent('azure-mgmt-deploymentmanager/{}'.format(VERSION)) - self.add_user_agent('Azure-SDK-For-Python') - - self.credentials = credentials - self.subscription_id = subscription_id +from ._configuration import DeploymentManagerClientConfiguration +from .operations import ServiceTopologiesOperations +from .operations import ServicesOperations +from .operations import ServiceUnitsOperations +from .operations import StepsOperations +from .operations import RolloutsOperations +from .operations import ArtifactSourcesOperations +from .operations import Operations +from . import models class DeploymentManagerClient(SDKClient): @@ -95,7 +61,7 @@ def __init__( super(DeploymentManagerClient, self).__init__(self.config.credentials, self.config) client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} - self.api_version = '2018-09-01-preview' + self.api_version = '2019-11-01-preview' self._serialize = Serializer(client_models) self._deserialize = Deserializer(client_models) diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/__init__.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/__init__.py index 8359ec2b2882..86be05a772fc 100644 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/__init__.py +++ b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/__init__.py @@ -10,116 +10,149 @@ # -------------------------------------------------------------------------- try: - from .identity_py3 import Identity - from .pre_post_step_py3 import PrePostStep - from .step_py3 import Step - from .rollout_request_py3 import RolloutRequest - from .artifact_source_py3 import ArtifactSource - from .authentication_py3 import Authentication - from .artifact_source_properties_model_py3 import ArtifactSourcePropertiesModel - from .sas_authentication_py3 import SasAuthentication - from .cloud_error_body_py3 import CloudErrorBody - from .rollout_operation_info_py3 import RolloutOperationInfo - from .step_operation_info_py3 import StepOperationInfo - from .resource_operation_py3 import ResourceOperation - from .message_py3 import Message - from .rollout_step_py3 import RolloutStep - from .service_unit_py3 import ServiceUnit - from .service_py3 import Service - from .rollout_py3 import Rollout - from .rollout_properties_model_py3 import RolloutPropertiesModel - from .service_topology_resource_py3 import ServiceTopologyResource - from .service_topology_properties_py3 import ServiceTopologyProperties - from .service_resource_py3 import ServiceResource - from .service_properties_py3 import ServiceProperties - from .service_unit_resource_py3 import ServiceUnitResource - from .service_unit_artifacts_py3 import ServiceUnitArtifacts - from .service_unit_properties_py3 import ServiceUnitProperties - from .operation_detail_py3 import OperationDetail - from .operation_py3 import Operation - from .step_properties_py3 import StepProperties - from .step_resource_py3 import StepResource - from .wait_step_attributes_py3 import WaitStepAttributes - from .wait_step_properties_py3 import WaitStepProperties - from .proxy_resource_py3 import ProxyResource - from .azure_entity_resource_py3 import AzureEntityResource - from .resource_py3 import Resource - from .tracked_resource_py3 import TrackedResource + from ._models_py3 import ArtifactSource + from ._models_py3 import ArtifactSourcePropertiesModel + from ._models_py3 import Authentication + from ._models_py3 import AzureEntityResource + from ._models_py3 import CloudErrorBody + from ._models_py3 import HealthCheckStepAttributes + from ._models_py3 import HealthCheckStepProperties + from ._models_py3 import Identity + from ._models_py3 import Message + from ._models_py3 import Operation + from ._models_py3 import OperationDetail + from ._models_py3 import OperationsList + from ._models_py3 import PrePostStep + from ._models_py3 import ProxyResource + from ._models_py3 import Resource + from ._models_py3 import ResourceOperation + from ._models_py3 import RestHealthCheck + from ._models_py3 import RestHealthCheckStepAttributes + from ._models_py3 import RestRequest + from ._models_py3 import RestRequestAuthentication + from ._models_py3 import RestResponse + from ._models_py3 import RestResponseRegex + from ._models_py3 import Rollout + from ._models_py3 import RolloutOperationInfo + from ._models_py3 import RolloutPropertiesModel + from ._models_py3 import RolloutRequest + from ._models_py3 import RolloutStep + from ._models_py3 import SasAuthentication + from ._models_py3 import Service + from ._models_py3 import ServiceProperties + from ._models_py3 import ServiceResource + from ._models_py3 import ServiceTopologyProperties + from ._models_py3 import ServiceTopologyResource + from ._models_py3 import ServiceUnit + from ._models_py3 import ServiceUnitArtifacts + from ._models_py3 import ServiceUnitProperties + from ._models_py3 import ServiceUnitResource + from ._models_py3 import StepGroup + from ._models_py3 import StepOperationInfo + from ._models_py3 import StepProperties + from ._models_py3 import StepResource + from ._models_py3 import TrackedResource + from ._models_py3 import WaitStepAttributes + from ._models_py3 import WaitStepProperties except (SyntaxError, ImportError): - from .identity import Identity - from .pre_post_step import PrePostStep - from .step import Step - from .rollout_request import RolloutRequest - from .artifact_source import ArtifactSource - from .authentication import Authentication - from .artifact_source_properties_model import ArtifactSourcePropertiesModel - from .sas_authentication import SasAuthentication - from .cloud_error_body import CloudErrorBody - from .rollout_operation_info import RolloutOperationInfo - from .step_operation_info import StepOperationInfo - from .resource_operation import ResourceOperation - from .message import Message - from .rollout_step import RolloutStep - from .service_unit import ServiceUnit - from .service import Service - from .rollout import Rollout - from .rollout_properties_model import RolloutPropertiesModel - from .service_topology_resource import ServiceTopologyResource - from .service_topology_properties import ServiceTopologyProperties - from .service_resource import ServiceResource - from .service_properties import ServiceProperties - from .service_unit_resource import ServiceUnitResource - from .service_unit_artifacts import ServiceUnitArtifacts - from .service_unit_properties import ServiceUnitProperties - from .operation_detail import OperationDetail - from .operation import Operation - from .step_properties import StepProperties - from .step_resource import StepResource - from .wait_step_attributes import WaitStepAttributes - from .wait_step_properties import WaitStepProperties - from .proxy_resource import ProxyResource - from .azure_entity_resource import AzureEntityResource - from .resource import Resource - from .tracked_resource import TrackedResource -from .deployment_manager_client_enums import ( + from ._models import ArtifactSource + from ._models import ArtifactSourcePropertiesModel + from ._models import Authentication + from ._models import AzureEntityResource + from ._models import CloudErrorBody + from ._models import HealthCheckStepAttributes + from ._models import HealthCheckStepProperties + from ._models import Identity + from ._models import Message + from ._models import Operation + from ._models import OperationDetail + from ._models import OperationsList + from ._models import PrePostStep + from ._models import ProxyResource + from ._models import Resource + from ._models import ResourceOperation + from ._models import RestHealthCheck + from ._models import RestHealthCheckStepAttributes + from ._models import RestRequest + from ._models import RestRequestAuthentication + from ._models import RestResponse + from ._models import RestResponseRegex + from ._models import Rollout + from ._models import RolloutOperationInfo + from ._models import RolloutPropertiesModel + from ._models import RolloutRequest + from ._models import RolloutStep + from ._models import SasAuthentication + from ._models import Service + from ._models import ServiceProperties + from ._models import ServiceResource + from ._models import ServiceTopologyProperties + from ._models import ServiceTopologyResource + from ._models import ServiceUnit + from ._models import ServiceUnitArtifacts + from ._models import ServiceUnitProperties + from ._models import ServiceUnitResource + from ._models import StepGroup + from ._models import StepOperationInfo + from ._models import StepProperties + from ._models import StepResource + from ._models import TrackedResource + from ._models import WaitStepAttributes + from ._models import WaitStepProperties +from ._deployment_manager_client_enums import ( DeploymentMode, + RestRequestMethod, + RestAuthLocation, + RestMatchQuantifier, ) __all__ = [ - 'Identity', - 'PrePostStep', - 'Step', - 'RolloutRequest', 'ArtifactSource', - 'Authentication', 'ArtifactSourcePropertiesModel', - 'SasAuthentication', + 'Authentication', + 'AzureEntityResource', 'CloudErrorBody', - 'RolloutOperationInfo', - 'StepOperationInfo', - 'ResourceOperation', + 'HealthCheckStepAttributes', + 'HealthCheckStepProperties', + 'Identity', 'Message', - 'RolloutStep', - 'ServiceUnit', - 'Service', + 'Operation', + 'OperationDetail', + 'OperationsList', + 'PrePostStep', + 'ProxyResource', + 'Resource', + 'ResourceOperation', + 'RestHealthCheck', + 'RestHealthCheckStepAttributes', + 'RestRequest', + 'RestRequestAuthentication', + 'RestResponse', + 'RestResponseRegex', 'Rollout', + 'RolloutOperationInfo', 'RolloutPropertiesModel', - 'ServiceTopologyResource', - 'ServiceTopologyProperties', - 'ServiceResource', + 'RolloutRequest', + 'RolloutStep', + 'SasAuthentication', + 'Service', 'ServiceProperties', - 'ServiceUnitResource', + 'ServiceResource', + 'ServiceTopologyProperties', + 'ServiceTopologyResource', + 'ServiceUnit', 'ServiceUnitArtifacts', 'ServiceUnitProperties', - 'OperationDetail', - 'Operation', + 'ServiceUnitResource', + 'StepGroup', + 'StepOperationInfo', 'StepProperties', 'StepResource', + 'TrackedResource', 'WaitStepAttributes', 'WaitStepProperties', - 'ProxyResource', - 'AzureEntityResource', - 'Resource', - 'TrackedResource', 'DeploymentMode', + 'RestRequestMethod', + 'RestAuthLocation', + 'RestMatchQuantifier', ] diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/deployment_manager_client_enums.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/_deployment_manager_client_enums.py similarity index 72% rename from sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/deployment_manager_client_enums.py rename to sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/_deployment_manager_client_enums.py index 75727c05d502..18ea928354de 100644 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/deployment_manager_client_enums.py +++ b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/_deployment_manager_client_enums.py @@ -16,3 +16,21 @@ class DeploymentMode(str, Enum): incremental = "Incremental" complete = "Complete" + + +class RestRequestMethod(str, Enum): + + get = "GET" + post = "POST" + + +class RestAuthLocation(str, Enum): + + query = "Query" + header = "Header" + + +class RestMatchQuantifier(str, Enum): + + all = "All" + any = "Any" diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/_models.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/_models.py new file mode 100644 index 000000000000..71b5aea5f304 --- /dev/null +++ b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/_models.py @@ -0,0 +1,1740 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Resource(Model): + """Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class TrackedResource(Resource): + """The resource model definition for a ARM tracked top level resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(TrackedResource, self).__init__(**kwargs) + self.tags = kwargs.get('tags', None) + self.location = kwargs.get('location', None) + + +class ArtifactSource(TrackedResource): + """The resource that defines the source location where the artifacts are + located. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :param source_type: Required. The type of artifact source used. + :type source_type: str + :param artifact_root: The path from the location that the 'authentication' + property [say, a SAS URI to the blob container] refers to, to the location + of the artifacts. This can be used to differentiate different versions of + the artifacts. Or, different types of artifacts like binaries or + templates. The location referenced by the authentication property + concatenated with this optional artifactRoot path forms the artifact + source location where the artifacts are expected to be found. + :type artifact_root: str + :param authentication: Required. The authentication method to use to + access the artifact source. + :type authentication: ~azure.mgmt.deploymentmanager.models.Authentication + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'source_type': {'required': True}, + 'authentication': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'source_type': {'key': 'properties.sourceType', 'type': 'str'}, + 'artifact_root': {'key': 'properties.artifactRoot', 'type': 'str'}, + 'authentication': {'key': 'properties.authentication', 'type': 'Authentication'}, + } + + def __init__(self, **kwargs): + super(ArtifactSource, self).__init__(**kwargs) + self.source_type = kwargs.get('source_type', None) + self.artifact_root = kwargs.get('artifact_root', None) + self.authentication = kwargs.get('authentication', None) + + +class ArtifactSourcePropertiesModel(Model): + """The properties that define the source location where the artifacts are + located. + + All required parameters must be populated in order to send to Azure. + + :param source_type: Required. The type of artifact source used. + :type source_type: str + :param artifact_root: The path from the location that the 'authentication' + property [say, a SAS URI to the blob container] refers to, to the location + of the artifacts. This can be used to differentiate different versions of + the artifacts. Or, different types of artifacts like binaries or + templates. The location referenced by the authentication property + concatenated with this optional artifactRoot path forms the artifact + source location where the artifacts are expected to be found. + :type artifact_root: str + :param authentication: Required. The authentication method to use to + access the artifact source. + :type authentication: ~azure.mgmt.deploymentmanager.models.Authentication + """ + + _validation = { + 'source_type': {'required': True}, + 'authentication': {'required': True}, + } + + _attribute_map = { + 'source_type': {'key': 'sourceType', 'type': 'str'}, + 'artifact_root': {'key': 'artifactRoot', 'type': 'str'}, + 'authentication': {'key': 'authentication', 'type': 'Authentication'}, + } + + def __init__(self, **kwargs): + super(ArtifactSourcePropertiesModel, self).__init__(**kwargs) + self.source_type = kwargs.get('source_type', None) + self.artifact_root = kwargs.get('artifact_root', None) + self.authentication = kwargs.get('authentication', None) + + +class Authentication(Model): + """Defines the authentication method and properties to access the artifacts. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: SasAuthentication + + All required parameters must be populated in order to send to Azure. + + :param type: Required. Constant filled by server. + :type type: str + """ + + _validation = { + 'type': {'required': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + } + + _subtype_map = { + 'type': {'Sas': 'SasAuthentication'} + } + + def __init__(self, **kwargs): + super(Authentication, self).__init__(**kwargs) + self.type = None + + +class AzureEntityResource(Resource): + """The resource model definition for a Azure Resource Manager resource with an + etag. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :ivar etag: Resource Etag. + :vartype etag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureEntityResource, self).__init__(**kwargs) + self.etag = None + + +class CloudError(Model): + """The error information object. + + :param error: The properties that define the error. + :type error: ~azure.mgmt.deploymentmanager.models.CloudErrorBody + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'CloudErrorBody'}, + } + + def __init__(self, **kwargs): + super(CloudError, self).__init__(**kwargs) + self.error = kwargs.get('error', None) + + +class CloudErrorException(HttpOperationError): + """Server responsed with exception of type: 'CloudError'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(CloudErrorException, self).__init__(deserialize, response, 'CloudError', *args) + + +class CloudErrorBody(Model): + """Detailed error information of any failure. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: Error code string. + :vartype code: str + :ivar message: Descriptive error information. + :vartype message: str + :param target: Error target + :type target: str + :param details: More detailed error information. + :type details: list[~azure.mgmt.deploymentmanager.models.CloudErrorBody] + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[CloudErrorBody]'}, + } + + def __init__(self, **kwargs): + super(CloudErrorBody, self).__init__(**kwargs) + self.code = None + self.message = None + self.target = kwargs.get('target', None) + self.details = kwargs.get('details', None) + + +class HealthCheckStepAttributes(Model): + """The attributes for the health check step. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: RestHealthCheckStepAttributes + + All required parameters must be populated in order to send to Azure. + + :param wait_duration: The duration in ISO 8601 format for which health + check waits idly without any checks. + :type wait_duration: str + :param max_elastic_duration: The duration in ISO 8601 format for which the + health check waits for the resource to become healthy. Health check fails + if it doesn't. Health check starts to enforce healthyStateDuration once + resource becomes healthy. + :type max_elastic_duration: str + :param healthy_state_duration: Required. The duration in ISO 8601 format + for which the resource is expected to be continuously healthy. If + maxElasticDuration is specified, healthy state duration is enforced after + the detection of first healthy signal. + :type healthy_state_duration: str + :param type: Required. Constant filled by server. + :type type: str + """ + + _validation = { + 'healthy_state_duration': {'required': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'wait_duration': {'key': 'waitDuration', 'type': 'str'}, + 'max_elastic_duration': {'key': 'maxElasticDuration', 'type': 'str'}, + 'healthy_state_duration': {'key': 'healthyStateDuration', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + _subtype_map = { + 'type': {'REST': 'RestHealthCheckStepAttributes'} + } + + def __init__(self, **kwargs): + super(HealthCheckStepAttributes, self).__init__(**kwargs) + self.wait_duration = kwargs.get('wait_duration', None) + self.max_elastic_duration = kwargs.get('max_elastic_duration', None) + self.healthy_state_duration = kwargs.get('healthy_state_duration', None) + self.type = None + + +class StepProperties(Model): + """The properties of a step resource. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: HealthCheckStepProperties, WaitStepProperties + + All required parameters must be populated in order to send to Azure. + + :param step_type: Required. Constant filled by server. + :type step_type: str + """ + + _validation = { + 'step_type': {'required': True}, + } + + _attribute_map = { + 'step_type': {'key': 'stepType', 'type': 'str'}, + } + + _subtype_map = { + 'step_type': {'HealthCheck': 'HealthCheckStepProperties', 'Wait': 'WaitStepProperties'} + } + + def __init__(self, **kwargs): + super(StepProperties, self).__init__(**kwargs) + self.step_type = None + + +class HealthCheckStepProperties(StepProperties): + """Defines the properties of a health check step. + + All required parameters must be populated in order to send to Azure. + + :param step_type: Required. Constant filled by server. + :type step_type: str + :param attributes: Required. The health check step attributes + :type attributes: + ~azure.mgmt.deploymentmanager.models.HealthCheckStepAttributes + """ + + _validation = { + 'step_type': {'required': True}, + 'attributes': {'required': True}, + } + + _attribute_map = { + 'step_type': {'key': 'stepType', 'type': 'str'}, + 'attributes': {'key': 'attributes', 'type': 'HealthCheckStepAttributes'}, + } + + def __init__(self, **kwargs): + super(HealthCheckStepProperties, self).__init__(**kwargs) + self.attributes = kwargs.get('attributes', None) + self.step_type = 'HealthCheck' + + +class Identity(Model): + """Identity for the resource. + + All required parameters must be populated in order to send to Azure. + + :param type: Required. The identity type. + :type type: str + :param identity_ids: Required. The list of identities. + :type identity_ids: list[str] + """ + + _validation = { + 'type': {'required': True}, + 'identity_ids': {'required': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'identity_ids': {'key': 'identityIds', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(Identity, self).__init__(**kwargs) + self.type = kwargs.get('type', None) + self.identity_ids = kwargs.get('identity_ids', None) + + +class Message(Model): + """Supplementary contextual messages during a rollout. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar time_stamp: Time in UTC this message was provided. + :vartype time_stamp: datetime + :ivar message: The actual message text. + :vartype message: str + """ + + _validation = { + 'time_stamp': {'readonly': True}, + 'message': {'readonly': True}, + } + + _attribute_map = { + 'time_stamp': {'key': 'timeStamp', 'type': 'iso-8601'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Message, self).__init__(**kwargs) + self.time_stamp = None + self.message = None + + +class Operation(Model): + """Represents an operation that can be performed on the service. + + :param name: The name of the operation. + :type name: str + :param display: The display name of the operation. + :type display: ~azure.mgmt.deploymentmanager.models.OperationDetail + :param origin: The origin of the operation. + :type origin: str + :param properties: The properties of the operation. + :type properties: object + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDetail'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + } + + def __init__(self, **kwargs): + super(Operation, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.display = kwargs.get('display', None) + self.origin = kwargs.get('origin', None) + self.properties = kwargs.get('properties', None) + + +class OperationDetail(Model): + """The detail about an operation. + + :param provider: The name of the provider that supports the operation. + :type provider: str + :param resource: The resource type on which this operation can be + performed. + :type resource: str + :param operation: The name of the operation. + :type operation: str + :param description: The description of the operation. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(OperationDetail, self).__init__(**kwargs) + self.provider = kwargs.get('provider', None) + self.resource = kwargs.get('resource', None) + self.operation = kwargs.get('operation', None) + self.description = kwargs.get('description', None) + + +class OperationsList(Model): + """The operations response. + + :param value: The list of supported operations + :type value: ~azure.mgmt.deploymentmanager.models.Operation + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'Operation'}, + } + + def __init__(self, **kwargs): + super(OperationsList, self).__init__(**kwargs) + self.value = kwargs.get('value', None) + + +class PrePostStep(Model): + """The properties that define a step. + + All required parameters must be populated in order to send to Azure. + + :param step_id: Required. The resource Id of the step to be run. + :type step_id: str + """ + + _validation = { + 'step_id': {'required': True}, + } + + _attribute_map = { + 'step_id': {'key': 'stepId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(PrePostStep, self).__init__(**kwargs) + self.step_id = kwargs.get('step_id', None) + + +class ProxyResource(Resource): + """The resource model definition for a ARM proxy resource. It will have + everything other than required location and tags. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ProxyResource, self).__init__(**kwargs) + + +class ResourceOperation(Model): + """Individual resource operation information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param resource_name: Name of the resource as specified in the artifacts. + For ARM resources, this is the name of the resource specified in the + template. + :type resource_name: str + :ivar operation_id: Unique identifier of the operation. For ARM resources, + this is the operationId obtained from ARM service. + :vartype operation_id: str + :param resource_type: Type of the resource as specified in the artifacts. + For ARM resources, this is the type of the resource specified in the + template. + :type resource_type: str + :ivar provisioning_state: State of the resource deployment. For ARM + resources, this is the current provisioning state of the resource. + :vartype provisioning_state: str + :ivar status_message: Descriptive information of the resource operation. + :vartype status_message: str + :ivar status_code: Http status code of the operation. + :vartype status_code: str + """ + + _validation = { + 'operation_id': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'status_message': {'readonly': True}, + 'status_code': {'readonly': True}, + } + + _attribute_map = { + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + 'operation_id': {'key': 'operationId', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'status_code': {'key': 'statusCode', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceOperation, self).__init__(**kwargs) + self.resource_name = kwargs.get('resource_name', None) + self.operation_id = None + self.resource_type = kwargs.get('resource_type', None) + self.provisioning_state = None + self.status_message = None + self.status_code = None + + +class RestHealthCheck(Model): + """A REST based health check. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. A unique name for this check. + :type name: str + :param request: Required. The request to the health provider. + :type request: ~azure.mgmt.deploymentmanager.models.RestRequest + :param response: The expected response from the health provider. If no + expected response is provided, the default is to expect the received + response to have an HTTP status code of 200 OK. + :type response: ~azure.mgmt.deploymentmanager.models.RestResponse + """ + + _validation = { + 'name': {'required': True}, + 'request': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'request': {'key': 'request', 'type': 'RestRequest'}, + 'response': {'key': 'response', 'type': 'RestResponse'}, + } + + def __init__(self, **kwargs): + super(RestHealthCheck, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.request = kwargs.get('request', None) + self.response = kwargs.get('response', None) + + +class RestHealthCheckStepAttributes(HealthCheckStepAttributes): + """Defines the REST health check step properties. + + All required parameters must be populated in order to send to Azure. + + :param wait_duration: The duration in ISO 8601 format for which health + check waits idly without any checks. + :type wait_duration: str + :param max_elastic_duration: The duration in ISO 8601 format for which the + health check waits for the resource to become healthy. Health check fails + if it doesn't. Health check starts to enforce healthyStateDuration once + resource becomes healthy. + :type max_elastic_duration: str + :param healthy_state_duration: Required. The duration in ISO 8601 format + for which the resource is expected to be continuously healthy. If + maxElasticDuration is specified, healthy state duration is enforced after + the detection of first healthy signal. + :type healthy_state_duration: str + :param type: Required. Constant filled by server. + :type type: str + :param health_checks: Required. The list of checks that form the health + check step. + :type health_checks: + list[~azure.mgmt.deploymentmanager.models.RestHealthCheck] + """ + + _validation = { + 'healthy_state_duration': {'required': True}, + 'type': {'required': True}, + 'health_checks': {'required': True}, + } + + _attribute_map = { + 'wait_duration': {'key': 'waitDuration', 'type': 'str'}, + 'max_elastic_duration': {'key': 'maxElasticDuration', 'type': 'str'}, + 'healthy_state_duration': {'key': 'healthyStateDuration', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'health_checks': {'key': 'properties.healthChecks', 'type': '[RestHealthCheck]'}, + } + + def __init__(self, **kwargs): + super(RestHealthCheckStepAttributes, self).__init__(**kwargs) + self.health_checks = kwargs.get('health_checks', None) + self.type = 'REST' + + +class RestRequest(Model): + """The properties that make up a REST request. + + All required parameters must be populated in order to send to Azure. + + :param method: Required. The HTTP method to use for the request. Possible + values include: 'GET', 'POST' + :type method: str or + ~azure.mgmt.deploymentmanager.models.RestRequestMethod + :param uri: Required. The HTTP URI to use for the request. + :type uri: str + :param authentication: Required. The authentication information required + in the request to the health provider. + :type authentication: + ~azure.mgmt.deploymentmanager.models.RestRequestAuthentication + """ + + _validation = { + 'method': {'required': True}, + 'uri': {'required': True}, + 'authentication': {'required': True}, + } + + _attribute_map = { + 'method': {'key': 'method', 'type': 'RestRequestMethod'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'authentication': {'key': 'authentication', 'type': 'RestRequestAuthentication'}, + } + + def __init__(self, **kwargs): + super(RestRequest, self).__init__(**kwargs) + self.method = kwargs.get('method', None) + self.uri = kwargs.get('uri', None) + self.authentication = kwargs.get('authentication', None) + + +class RestRequestAuthentication(Model): + """The authentication information required in the REST health check request to + the health provider. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar type: Required. The authentication type. ApiKey authentication gives + a name and a value that can be included in either the request header or + query parameters. Default value: "ApiKey" . + :vartype type: str + :param name: Required. The key name of the authentication key/value pair. + :type name: str + :param in_property: Required. The location of the authentication key/value + pair in the request. Possible values include: 'Query', 'Header' + :type in_property: str or + ~azure.mgmt.deploymentmanager.models.RestAuthLocation + :param value: Required. The value of the authentication key/value pair. + :type value: str + """ + + _validation = { + 'type': {'required': True, 'constant': True}, + 'name': {'required': True}, + 'in_property': {'required': True}, + 'value': {'required': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'in_property': {'key': 'in', 'type': 'RestAuthLocation'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + type = "ApiKey" + + def __init__(self, **kwargs): + super(RestRequestAuthentication, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.in_property = kwargs.get('in_property', None) + self.value = kwargs.get('value', None) + + +class RestResponse(Model): + """The properties that make up the expected REST response. + + :param success_status_codes: The HTTP status codes expected in a + successful health check response. The response is expected to match one of + the given status codes. If no expected status codes are provided, default + expected status code is 200 OK. + :type success_status_codes: list[str] + :param regex: The regular expressions to match the response content with. + :type regex: ~azure.mgmt.deploymentmanager.models.RestResponseRegex + """ + + _attribute_map = { + 'success_status_codes': {'key': 'successStatusCodes', 'type': '[str]'}, + 'regex': {'key': 'regex', 'type': 'RestResponseRegex'}, + } + + def __init__(self, **kwargs): + super(RestResponse, self).__init__(**kwargs) + self.success_status_codes = kwargs.get('success_status_codes', None) + self.regex = kwargs.get('regex', None) + + +class RestResponseRegex(Model): + """The regular expressions to match the response content with. + + :param matches: The list of regular expressions. + :type matches: list[str] + :param match_quantifier: Indicates whether any or all of the expressions + should match with the response content. Possible values include: 'All', + 'Any' + :type match_quantifier: str or + ~azure.mgmt.deploymentmanager.models.RestMatchQuantifier + """ + + _attribute_map = { + 'matches': {'key': 'matches', 'type': '[str]'}, + 'match_quantifier': {'key': 'matchQuantifier', 'type': 'RestMatchQuantifier'}, + } + + def __init__(self, **kwargs): + super(RestResponseRegex, self).__init__(**kwargs) + self.matches = kwargs.get('matches', None) + self.match_quantifier = kwargs.get('match_quantifier', None) + + +class Rollout(TrackedResource): + """Defines the rollout. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :param identity: Identity for the resource. + :type identity: ~azure.mgmt.deploymentmanager.models.Identity + :param build_version: Required. The version of the build being deployed. + :type build_version: str + :param artifact_source_id: The reference to the artifact source resource + Id where the payload is located. + :type artifact_source_id: str + :param target_service_topology_id: Required. The resource Id of the + service topology from which service units are being referenced in step + groups to be deployed. + :type target_service_topology_id: str + :param step_groups: Required. The list of step groups that define the + orchestration. + :type step_groups: list[~azure.mgmt.deploymentmanager.models.StepGroup] + :ivar status: The current status of the rollout. + :vartype status: str + :ivar total_retry_attempts: The cardinal count of total number of retries + performed on the rollout at a given time. + :vartype total_retry_attempts: int + :ivar operation_info: Operational information of the rollout. + :vartype operation_info: + ~azure.mgmt.deploymentmanager.models.RolloutOperationInfo + :ivar services: The detailed information on the services being deployed. + :vartype services: list[~azure.mgmt.deploymentmanager.models.Service] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'build_version': {'required': True}, + 'target_service_topology_id': {'required': True}, + 'step_groups': {'required': True}, + 'status': {'readonly': True}, + 'total_retry_attempts': {'readonly': True}, + 'operation_info': {'readonly': True}, + 'services': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + 'build_version': {'key': 'properties.buildVersion', 'type': 'str'}, + 'artifact_source_id': {'key': 'properties.artifactSourceId', 'type': 'str'}, + 'target_service_topology_id': {'key': 'properties.targetServiceTopologyId', 'type': 'str'}, + 'step_groups': {'key': 'properties.stepGroups', 'type': '[StepGroup]'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'total_retry_attempts': {'key': 'properties.totalRetryAttempts', 'type': 'int'}, + 'operation_info': {'key': 'properties.operationInfo', 'type': 'RolloutOperationInfo'}, + 'services': {'key': 'properties.services', 'type': '[Service]'}, + } + + def __init__(self, **kwargs): + super(Rollout, self).__init__(**kwargs) + self.identity = kwargs.get('identity', None) + self.build_version = kwargs.get('build_version', None) + self.artifact_source_id = kwargs.get('artifact_source_id', None) + self.target_service_topology_id = kwargs.get('target_service_topology_id', None) + self.step_groups = kwargs.get('step_groups', None) + self.status = None + self.total_retry_attempts = None + self.operation_info = None + self.services = None + + +class RolloutOperationInfo(Model): + """Detailed runtime information of the rollout. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar retry_attempt: The ordinal count of the number of retry attempts on + a rollout. 0 if no retries of the rollout have been performed. If the + rollout is updated with a PUT, this count is reset to 0. + :vartype retry_attempt: int + :ivar skip_succeeded_on_retry: True, if all steps that succeeded on the + previous run/attempt were chosen to be skipped in this retry attempt. + False, otherwise. + :vartype skip_succeeded_on_retry: bool + :ivar start_time: The start time of the rollout in UTC. + :vartype start_time: datetime + :ivar end_time: The start time of the rollout in UTC. This property will + not be set if the rollout has not completed yet. + :vartype end_time: datetime + :ivar error: The detailed error information for any failure. + :vartype error: ~azure.mgmt.deploymentmanager.models.CloudErrorBody + """ + + _validation = { + 'retry_attempt': {'readonly': True}, + 'skip_succeeded_on_retry': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'error': {'readonly': True}, + } + + _attribute_map = { + 'retry_attempt': {'key': 'retryAttempt', 'type': 'int'}, + 'skip_succeeded_on_retry': {'key': 'skipSucceededOnRetry', 'type': 'bool'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'error': {'key': 'error', 'type': 'CloudErrorBody'}, + } + + def __init__(self, **kwargs): + super(RolloutOperationInfo, self).__init__(**kwargs) + self.retry_attempt = None + self.skip_succeeded_on_retry = None + self.start_time = None + self.end_time = None + self.error = None + + +class RolloutPropertiesModel(Model): + """Defines the properties of a rollout. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar status: The current status of the rollout. + :vartype status: str + :ivar total_retry_attempts: The cardinal count of total number of retries + performed on the rollout at a given time. + :vartype total_retry_attempts: int + :ivar operation_info: Operational information of the rollout. + :vartype operation_info: + ~azure.mgmt.deploymentmanager.models.RolloutOperationInfo + :ivar services: The detailed information on the services being deployed. + :vartype services: list[~azure.mgmt.deploymentmanager.models.Service] + """ + + _validation = { + 'status': {'readonly': True}, + 'total_retry_attempts': {'readonly': True}, + 'operation_info': {'readonly': True}, + 'services': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'total_retry_attempts': {'key': 'totalRetryAttempts', 'type': 'int'}, + 'operation_info': {'key': 'operationInfo', 'type': 'RolloutOperationInfo'}, + 'services': {'key': 'services', 'type': '[Service]'}, + } + + def __init__(self, **kwargs): + super(RolloutPropertiesModel, self).__init__(**kwargs) + self.status = None + self.total_retry_attempts = None + self.operation_info = None + self.services = None + + +class RolloutRequest(TrackedResource): + """Defines the PUT rollout request body. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :param identity: Required. Identity for the resource. + :type identity: ~azure.mgmt.deploymentmanager.models.Identity + :param build_version: Required. The version of the build being deployed. + :type build_version: str + :param artifact_source_id: The reference to the artifact source resource + Id where the payload is located. + :type artifact_source_id: str + :param target_service_topology_id: Required. The resource Id of the + service topology from which service units are being referenced in step + groups to be deployed. + :type target_service_topology_id: str + :param step_groups: Required. The list of step groups that define the + orchestration. + :type step_groups: list[~azure.mgmt.deploymentmanager.models.StepGroup] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'identity': {'required': True}, + 'build_version': {'required': True}, + 'target_service_topology_id': {'required': True}, + 'step_groups': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + 'build_version': {'key': 'properties.buildVersion', 'type': 'str'}, + 'artifact_source_id': {'key': 'properties.artifactSourceId', 'type': 'str'}, + 'target_service_topology_id': {'key': 'properties.targetServiceTopologyId', 'type': 'str'}, + 'step_groups': {'key': 'properties.stepGroups', 'type': '[StepGroup]'}, + } + + def __init__(self, **kwargs): + super(RolloutRequest, self).__init__(**kwargs) + self.identity = kwargs.get('identity', None) + self.build_version = kwargs.get('build_version', None) + self.artifact_source_id = kwargs.get('artifact_source_id', None) + self.target_service_topology_id = kwargs.get('target_service_topology_id', None) + self.step_groups = kwargs.get('step_groups', None) + + +class RolloutStep(Model): + """Defines a specific step on a target service unit. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of the step. + :type name: str + :ivar status: Current state of the step. + :vartype status: str + :param step_group: The step group the current step is part of. + :type step_group: str + :ivar operation_info: Detailed information of specific action execution. + :vartype operation_info: + ~azure.mgmt.deploymentmanager.models.StepOperationInfo + :ivar resource_operations: Set of resource operations that were performed, + if any, on an Azure resource. + :vartype resource_operations: + list[~azure.mgmt.deploymentmanager.models.ResourceOperation] + :ivar messages: Supplementary informative messages during rollout. + :vartype messages: list[~azure.mgmt.deploymentmanager.models.Message] + """ + + _validation = { + 'name': {'required': True}, + 'status': {'readonly': True}, + 'operation_info': {'readonly': True}, + 'resource_operations': {'readonly': True}, + 'messages': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'step_group': {'key': 'stepGroup', 'type': 'str'}, + 'operation_info': {'key': 'operationInfo', 'type': 'StepOperationInfo'}, + 'resource_operations': {'key': 'resourceOperations', 'type': '[ResourceOperation]'}, + 'messages': {'key': 'messages', 'type': '[Message]'}, + } + + def __init__(self, **kwargs): + super(RolloutStep, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.status = None + self.step_group = kwargs.get('step_group', None) + self.operation_info = None + self.resource_operations = None + self.messages = None + + +class SasAuthentication(Authentication): + """Defines the properties to access the artifacts using an Azure Storage SAS + URI. + + All required parameters must be populated in order to send to Azure. + + :param type: Required. Constant filled by server. + :type type: str + :param sas_uri: Required. The SAS URI to the Azure Storage blob container. + Any offset from the root of the container to where the artifacts are + located can be defined in the artifactRoot. + :type sas_uri: str + """ + + _validation = { + 'type': {'required': True}, + 'sas_uri': {'required': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'sas_uri': {'key': 'properties.sasUri', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SasAuthentication, self).__init__(**kwargs) + self.sas_uri = kwargs.get('sas_uri', None) + self.type = 'Sas' + + +class ServiceProperties(Model): + """The properties of a service. + + All required parameters must be populated in order to send to Azure. + + :param target_location: Required. The Azure location to which the + resources in the service belong to or should be deployed to. + :type target_location: str + :param target_subscription_id: Required. The subscription to which the + resources in the service belong to or should be deployed to. + :type target_subscription_id: str + """ + + _validation = { + 'target_location': {'required': True}, + 'target_subscription_id': {'required': True}, + } + + _attribute_map = { + 'target_location': {'key': 'targetLocation', 'type': 'str'}, + 'target_subscription_id': {'key': 'targetSubscriptionId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServiceProperties, self).__init__(**kwargs) + self.target_location = kwargs.get('target_location', None) + self.target_subscription_id = kwargs.get('target_subscription_id', None) + + +class Service(ServiceProperties): + """Defines a service. + + All required parameters must be populated in order to send to Azure. + + :param target_location: Required. The Azure location to which the + resources in the service belong to or should be deployed to. + :type target_location: str + :param target_subscription_id: Required. The subscription to which the + resources in the service belong to or should be deployed to. + :type target_subscription_id: str + :param name: Name of the service. + :type name: str + :param service_units: The detailed information about the units that make + up the service. + :type service_units: + list[~azure.mgmt.deploymentmanager.models.ServiceUnit] + """ + + _validation = { + 'target_location': {'required': True}, + 'target_subscription_id': {'required': True}, + } + + _attribute_map = { + 'target_location': {'key': 'targetLocation', 'type': 'str'}, + 'target_subscription_id': {'key': 'targetSubscriptionId', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'service_units': {'key': 'serviceUnits', 'type': '[ServiceUnit]'}, + } + + def __init__(self, **kwargs): + super(Service, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.service_units = kwargs.get('service_units', None) + + +class ServiceResource(TrackedResource): + """The resource representation of a service in a service topology. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :param target_location: Required. The Azure location to which the + resources in the service belong to or should be deployed to. + :type target_location: str + :param target_subscription_id: Required. The subscription to which the + resources in the service belong to or should be deployed to. + :type target_subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'target_location': {'required': True}, + 'target_subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'target_location': {'key': 'properties.targetLocation', 'type': 'str'}, + 'target_subscription_id': {'key': 'properties.targetSubscriptionId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServiceResource, self).__init__(**kwargs) + self.target_location = kwargs.get('target_location', None) + self.target_subscription_id = kwargs.get('target_subscription_id', None) + + +class ServiceTopologyProperties(Model): + """The properties of a service topology. + + :param artifact_source_id: The resource Id of the artifact source that + contains the artifacts that can be referenced in the service units. + :type artifact_source_id: str + """ + + _attribute_map = { + 'artifact_source_id': {'key': 'artifactSourceId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServiceTopologyProperties, self).__init__(**kwargs) + self.artifact_source_id = kwargs.get('artifact_source_id', None) + + +class ServiceTopologyResource(TrackedResource): + """The resource representation of a service topology. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :param artifact_source_id: The resource Id of the artifact source that + contains the artifacts that can be referenced in the service units. + :type artifact_source_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'artifact_source_id': {'key': 'properties.artifactSourceId', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServiceTopologyResource, self).__init__(**kwargs) + self.artifact_source_id = kwargs.get('artifact_source_id', None) + + +class ServiceUnitProperties(Model): + """Defines the properties of a service unit. + + All required parameters must be populated in order to send to Azure. + + :param target_resource_group: Required. The Azure Resource Group to which + the resources in the service unit belong to or should be deployed to. + :type target_resource_group: str + :param deployment_mode: Required. Describes the type of ARM deployment to + be performed on the resource. Possible values include: 'Incremental', + 'Complete' + :type deployment_mode: str or + ~azure.mgmt.deploymentmanager.models.DeploymentMode + :param artifacts: The artifacts for the service unit. + :type artifacts: ~azure.mgmt.deploymentmanager.models.ServiceUnitArtifacts + """ + + _validation = { + 'target_resource_group': {'required': True}, + 'deployment_mode': {'required': True}, + } + + _attribute_map = { + 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, + 'deployment_mode': {'key': 'deploymentMode', 'type': 'DeploymentMode'}, + 'artifacts': {'key': 'artifacts', 'type': 'ServiceUnitArtifacts'}, + } + + def __init__(self, **kwargs): + super(ServiceUnitProperties, self).__init__(**kwargs) + self.target_resource_group = kwargs.get('target_resource_group', None) + self.deployment_mode = kwargs.get('deployment_mode', None) + self.artifacts = kwargs.get('artifacts', None) + + +class ServiceUnit(ServiceUnitProperties): + """Defines a service unit. + + All required parameters must be populated in order to send to Azure. + + :param target_resource_group: Required. The Azure Resource Group to which + the resources in the service unit belong to or should be deployed to. + :type target_resource_group: str + :param deployment_mode: Required. Describes the type of ARM deployment to + be performed on the resource. Possible values include: 'Incremental', + 'Complete' + :type deployment_mode: str or + ~azure.mgmt.deploymentmanager.models.DeploymentMode + :param artifacts: The artifacts for the service unit. + :type artifacts: ~azure.mgmt.deploymentmanager.models.ServiceUnitArtifacts + :param name: Name of the service unit. + :type name: str + :param steps: Detailed step information, if present. + :type steps: list[~azure.mgmt.deploymentmanager.models.RolloutStep] + """ + + _validation = { + 'target_resource_group': {'required': True}, + 'deployment_mode': {'required': True}, + } + + _attribute_map = { + 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, + 'deployment_mode': {'key': 'deploymentMode', 'type': 'DeploymentMode'}, + 'artifacts': {'key': 'artifacts', 'type': 'ServiceUnitArtifacts'}, + 'name': {'key': 'name', 'type': 'str'}, + 'steps': {'key': 'steps', 'type': '[RolloutStep]'}, + } + + def __init__(self, **kwargs): + super(ServiceUnit, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.steps = kwargs.get('steps', None) + + +class ServiceUnitArtifacts(Model): + """Defines the artifacts of a service unit. + + :param template_uri: The full URI of the ARM template file with the SAS + token. + :type template_uri: str + :param parameters_uri: The full URI of the ARM parameters file with the + SAS token. + :type parameters_uri: str + :param template_artifact_source_relative_path: The path to the ARM + template file relative to the artifact source. + :type template_artifact_source_relative_path: str + :param parameters_artifact_source_relative_path: The path to the ARM + parameters file relative to the artifact source. + :type parameters_artifact_source_relative_path: str + """ + + _attribute_map = { + 'template_uri': {'key': 'templateUri', 'type': 'str'}, + 'parameters_uri': {'key': 'parametersUri', 'type': 'str'}, + 'template_artifact_source_relative_path': {'key': 'templateArtifactSourceRelativePath', 'type': 'str'}, + 'parameters_artifact_source_relative_path': {'key': 'parametersArtifactSourceRelativePath', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ServiceUnitArtifacts, self).__init__(**kwargs) + self.template_uri = kwargs.get('template_uri', None) + self.parameters_uri = kwargs.get('parameters_uri', None) + self.template_artifact_source_relative_path = kwargs.get('template_artifact_source_relative_path', None) + self.parameters_artifact_source_relative_path = kwargs.get('parameters_artifact_source_relative_path', None) + + +class ServiceUnitResource(TrackedResource): + """Represents the response of a service unit resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :param target_resource_group: Required. The Azure Resource Group to which + the resources in the service unit belong to or should be deployed to. + :type target_resource_group: str + :param deployment_mode: Required. Describes the type of ARM deployment to + be performed on the resource. Possible values include: 'Incremental', + 'Complete' + :type deployment_mode: str or + ~azure.mgmt.deploymentmanager.models.DeploymentMode + :param artifacts: The artifacts for the service unit. + :type artifacts: ~azure.mgmt.deploymentmanager.models.ServiceUnitArtifacts + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'target_resource_group': {'required': True}, + 'deployment_mode': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'target_resource_group': {'key': 'properties.targetResourceGroup', 'type': 'str'}, + 'deployment_mode': {'key': 'properties.deploymentMode', 'type': 'DeploymentMode'}, + 'artifacts': {'key': 'properties.artifacts', 'type': 'ServiceUnitArtifacts'}, + } + + def __init__(self, **kwargs): + super(ServiceUnitResource, self).__init__(**kwargs) + self.target_resource_group = kwargs.get('target_resource_group', None) + self.deployment_mode = kwargs.get('deployment_mode', None) + self.artifacts = kwargs.get('artifacts', None) + + +class StepGroup(Model): + """The properties that define a Step group in a rollout. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the step group. + :type name: str + :param depends_on_step_groups: The list of step group names on which this + step group depends on. + :type depends_on_step_groups: list[str] + :param pre_deployment_steps: The list of steps to be run before deploying + the target. + :type pre_deployment_steps: + list[~azure.mgmt.deploymentmanager.models.PrePostStep] + :param deployment_target_id: Required. The resource Id of service unit to + be deployed. The service unit should be from the service topology + referenced in targetServiceTopologyId + :type deployment_target_id: str + :param post_deployment_steps: The list of steps to be run after deploying + the target. + :type post_deployment_steps: + list[~azure.mgmt.deploymentmanager.models.PrePostStep] + """ + + _validation = { + 'name': {'required': True}, + 'deployment_target_id': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'depends_on_step_groups': {'key': 'dependsOnStepGroups', 'type': '[str]'}, + 'pre_deployment_steps': {'key': 'preDeploymentSteps', 'type': '[PrePostStep]'}, + 'deployment_target_id': {'key': 'deploymentTargetId', 'type': 'str'}, + 'post_deployment_steps': {'key': 'postDeploymentSteps', 'type': '[PrePostStep]'}, + } + + def __init__(self, **kwargs): + super(StepGroup, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.depends_on_step_groups = kwargs.get('depends_on_step_groups', None) + self.pre_deployment_steps = kwargs.get('pre_deployment_steps', None) + self.deployment_target_id = kwargs.get('deployment_target_id', None) + self.post_deployment_steps = kwargs.get('post_deployment_steps', None) + + +class StepOperationInfo(Model): + """Detailed information of a specific step run. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar deployment_name: The name of the ARM deployment initiated as part of + the step. + :vartype deployment_name: str + :ivar correlation_id: Unique identifier to track the request for ARM-based + resources. + :vartype correlation_id: str + :ivar start_time: Start time of the action in UTC. + :vartype start_time: datetime + :ivar end_time: End time of the action in UTC. + :vartype end_time: datetime + :ivar last_updated_time: Last time in UTC this operation was updated. + :vartype last_updated_time: datetime + :param error: The errors, if any, for the action. + :type error: ~azure.mgmt.deploymentmanager.models.CloudErrorBody + """ + + _validation = { + 'deployment_name': {'readonly': True}, + 'correlation_id': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'last_updated_time': {'readonly': True}, + } + + _attribute_map = { + 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, + 'correlation_id': {'key': 'correlationId', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'iso-8601'}, + 'error': {'key': 'error', 'type': 'CloudErrorBody'}, + } + + def __init__(self, **kwargs): + super(StepOperationInfo, self).__init__(**kwargs) + self.deployment_name = None + self.correlation_id = None + self.start_time = None + self.end_time = None + self.last_updated_time = None + self.error = kwargs.get('error', None) + + +class StepResource(TrackedResource): + """The resource representation of a rollout step. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :param properties: Required. The properties that define the step. + :type properties: ~azure.mgmt.deploymentmanager.models.StepProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'properties': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'StepProperties'}, + } + + def __init__(self, **kwargs): + super(StepResource, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class WaitStepAttributes(Model): + """The parameters for the wait step. + + All required parameters must be populated in order to send to Azure. + + :param duration: Required. The duration in ISO 8601 format of how long the + wait should be. + :type duration: str + """ + + _validation = { + 'duration': {'required': True}, + } + + _attribute_map = { + 'duration': {'key': 'duration', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(WaitStepAttributes, self).__init__(**kwargs) + self.duration = kwargs.get('duration', None) + + +class WaitStepProperties(StepProperties): + """Defines the properties of a Wait step. + + All required parameters must be populated in order to send to Azure. + + :param step_type: Required. Constant filled by server. + :type step_type: str + :param attributes: Required. The Wait attributes + :type attributes: ~azure.mgmt.deploymentmanager.models.WaitStepAttributes + """ + + _validation = { + 'step_type': {'required': True}, + 'attributes': {'required': True}, + } + + _attribute_map = { + 'step_type': {'key': 'stepType', 'type': 'str'}, + 'attributes': {'key': 'attributes', 'type': 'WaitStepAttributes'}, + } + + def __init__(self, **kwargs): + super(WaitStepProperties, self).__init__(**kwargs) + self.attributes = kwargs.get('attributes', None) + self.step_type = 'Wait' diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/_models_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/_models_py3.py new file mode 100644 index 000000000000..1af74c1f8a4d --- /dev/null +++ b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/_models_py3.py @@ -0,0 +1,1740 @@ +# coding=utf-8 +# -------------------------------------------------------------------------- +# Copyright (c) Microsoft Corporation. All rights reserved. +# Licensed under the MIT License. See License.txt in the project root for +# license information. +# +# Code generated by Microsoft (R) AutoRest Code Generator. +# Changes may cause incorrect behavior and will be lost if the code is +# regenerated. +# -------------------------------------------------------------------------- + +from msrest.serialization import Model +from msrest.exceptions import HttpOperationError + + +class Resource(Model): + """Resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class TrackedResource(Resource): + """The resource model definition for a ARM tracked top level resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + } + + def __init__(self, *, location: str, tags=None, **kwargs) -> None: + super(TrackedResource, self).__init__(**kwargs) + self.tags = tags + self.location = location + + +class ArtifactSource(TrackedResource): + """The resource that defines the source location where the artifacts are + located. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :param source_type: Required. The type of artifact source used. + :type source_type: str + :param artifact_root: The path from the location that the 'authentication' + property [say, a SAS URI to the blob container] refers to, to the location + of the artifacts. This can be used to differentiate different versions of + the artifacts. Or, different types of artifacts like binaries or + templates. The location referenced by the authentication property + concatenated with this optional artifactRoot path forms the artifact + source location where the artifacts are expected to be found. + :type artifact_root: str + :param authentication: Required. The authentication method to use to + access the artifact source. + :type authentication: ~azure.mgmt.deploymentmanager.models.Authentication + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'source_type': {'required': True}, + 'authentication': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'source_type': {'key': 'properties.sourceType', 'type': 'str'}, + 'artifact_root': {'key': 'properties.artifactRoot', 'type': 'str'}, + 'authentication': {'key': 'properties.authentication', 'type': 'Authentication'}, + } + + def __init__(self, *, location: str, source_type: str, authentication, tags=None, artifact_root: str=None, **kwargs) -> None: + super(ArtifactSource, self).__init__(tags=tags, location=location, **kwargs) + self.source_type = source_type + self.artifact_root = artifact_root + self.authentication = authentication + + +class ArtifactSourcePropertiesModel(Model): + """The properties that define the source location where the artifacts are + located. + + All required parameters must be populated in order to send to Azure. + + :param source_type: Required. The type of artifact source used. + :type source_type: str + :param artifact_root: The path from the location that the 'authentication' + property [say, a SAS URI to the blob container] refers to, to the location + of the artifacts. This can be used to differentiate different versions of + the artifacts. Or, different types of artifacts like binaries or + templates. The location referenced by the authentication property + concatenated with this optional artifactRoot path forms the artifact + source location where the artifacts are expected to be found. + :type artifact_root: str + :param authentication: Required. The authentication method to use to + access the artifact source. + :type authentication: ~azure.mgmt.deploymentmanager.models.Authentication + """ + + _validation = { + 'source_type': {'required': True}, + 'authentication': {'required': True}, + } + + _attribute_map = { + 'source_type': {'key': 'sourceType', 'type': 'str'}, + 'artifact_root': {'key': 'artifactRoot', 'type': 'str'}, + 'authentication': {'key': 'authentication', 'type': 'Authentication'}, + } + + def __init__(self, *, source_type: str, authentication, artifact_root: str=None, **kwargs) -> None: + super(ArtifactSourcePropertiesModel, self).__init__(**kwargs) + self.source_type = source_type + self.artifact_root = artifact_root + self.authentication = authentication + + +class Authentication(Model): + """Defines the authentication method and properties to access the artifacts. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: SasAuthentication + + All required parameters must be populated in order to send to Azure. + + :param type: Required. Constant filled by server. + :type type: str + """ + + _validation = { + 'type': {'required': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + } + + _subtype_map = { + 'type': {'Sas': 'SasAuthentication'} + } + + def __init__(self, **kwargs) -> None: + super(Authentication, self).__init__(**kwargs) + self.type = None + + +class AzureEntityResource(Resource): + """The resource model definition for a Azure Resource Manager resource with an + etag. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :ivar etag: Resource Etag. + :vartype etag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(AzureEntityResource, self).__init__(**kwargs) + self.etag = None + + +class CloudError(Model): + """The error information object. + + :param error: The properties that define the error. + :type error: ~azure.mgmt.deploymentmanager.models.CloudErrorBody + """ + + _attribute_map = { + 'error': {'key': 'error', 'type': 'CloudErrorBody'}, + } + + def __init__(self, *, error=None, **kwargs) -> None: + super(CloudError, self).__init__(**kwargs) + self.error = error + + +class CloudErrorException(HttpOperationError): + """Server responsed with exception of type: 'CloudError'. + + :param deserialize: A deserializer + :param response: Server response to be deserialized. + """ + + def __init__(self, deserialize, response, *args): + + super(CloudErrorException, self).__init__(deserialize, response, 'CloudError', *args) + + +class CloudErrorBody(Model): + """Detailed error information of any failure. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar code: Error code string. + :vartype code: str + :ivar message: Descriptive error information. + :vartype message: str + :param target: Error target + :type target: str + :param details: More detailed error information. + :type details: list[~azure.mgmt.deploymentmanager.models.CloudErrorBody] + """ + + _validation = { + 'code': {'readonly': True}, + 'message': {'readonly': True}, + } + + _attribute_map = { + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, + 'target': {'key': 'target', 'type': 'str'}, + 'details': {'key': 'details', 'type': '[CloudErrorBody]'}, + } + + def __init__(self, *, target: str=None, details=None, **kwargs) -> None: + super(CloudErrorBody, self).__init__(**kwargs) + self.code = None + self.message = None + self.target = target + self.details = details + + +class HealthCheckStepAttributes(Model): + """The attributes for the health check step. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: RestHealthCheckStepAttributes + + All required parameters must be populated in order to send to Azure. + + :param wait_duration: The duration in ISO 8601 format for which health + check waits idly without any checks. + :type wait_duration: str + :param max_elastic_duration: The duration in ISO 8601 format for which the + health check waits for the resource to become healthy. Health check fails + if it doesn't. Health check starts to enforce healthyStateDuration once + resource becomes healthy. + :type max_elastic_duration: str + :param healthy_state_duration: Required. The duration in ISO 8601 format + for which the resource is expected to be continuously healthy. If + maxElasticDuration is specified, healthy state duration is enforced after + the detection of first healthy signal. + :type healthy_state_duration: str + :param type: Required. Constant filled by server. + :type type: str + """ + + _validation = { + 'healthy_state_duration': {'required': True}, + 'type': {'required': True}, + } + + _attribute_map = { + 'wait_duration': {'key': 'waitDuration', 'type': 'str'}, + 'max_elastic_duration': {'key': 'maxElasticDuration', 'type': 'str'}, + 'healthy_state_duration': {'key': 'healthyStateDuration', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + _subtype_map = { + 'type': {'REST': 'RestHealthCheckStepAttributes'} + } + + def __init__(self, *, healthy_state_duration: str, wait_duration: str=None, max_elastic_duration: str=None, **kwargs) -> None: + super(HealthCheckStepAttributes, self).__init__(**kwargs) + self.wait_duration = wait_duration + self.max_elastic_duration = max_elastic_duration + self.healthy_state_duration = healthy_state_duration + self.type = None + + +class StepProperties(Model): + """The properties of a step resource. + + You probably want to use the sub-classes and not this class directly. Known + sub-classes are: HealthCheckStepProperties, WaitStepProperties + + All required parameters must be populated in order to send to Azure. + + :param step_type: Required. Constant filled by server. + :type step_type: str + """ + + _validation = { + 'step_type': {'required': True}, + } + + _attribute_map = { + 'step_type': {'key': 'stepType', 'type': 'str'}, + } + + _subtype_map = { + 'step_type': {'HealthCheck': 'HealthCheckStepProperties', 'Wait': 'WaitStepProperties'} + } + + def __init__(self, **kwargs) -> None: + super(StepProperties, self).__init__(**kwargs) + self.step_type = None + + +class HealthCheckStepProperties(StepProperties): + """Defines the properties of a health check step. + + All required parameters must be populated in order to send to Azure. + + :param step_type: Required. Constant filled by server. + :type step_type: str + :param attributes: Required. The health check step attributes + :type attributes: + ~azure.mgmt.deploymentmanager.models.HealthCheckStepAttributes + """ + + _validation = { + 'step_type': {'required': True}, + 'attributes': {'required': True}, + } + + _attribute_map = { + 'step_type': {'key': 'stepType', 'type': 'str'}, + 'attributes': {'key': 'attributes', 'type': 'HealthCheckStepAttributes'}, + } + + def __init__(self, *, attributes, **kwargs) -> None: + super(HealthCheckStepProperties, self).__init__(**kwargs) + self.attributes = attributes + self.step_type = 'HealthCheck' + + +class Identity(Model): + """Identity for the resource. + + All required parameters must be populated in order to send to Azure. + + :param type: Required. The identity type. + :type type: str + :param identity_ids: Required. The list of identities. + :type identity_ids: list[str] + """ + + _validation = { + 'type': {'required': True}, + 'identity_ids': {'required': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'identity_ids': {'key': 'identityIds', 'type': '[str]'}, + } + + def __init__(self, *, type: str, identity_ids, **kwargs) -> None: + super(Identity, self).__init__(**kwargs) + self.type = type + self.identity_ids = identity_ids + + +class Message(Model): + """Supplementary contextual messages during a rollout. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar time_stamp: Time in UTC this message was provided. + :vartype time_stamp: datetime + :ivar message: The actual message text. + :vartype message: str + """ + + _validation = { + 'time_stamp': {'readonly': True}, + 'message': {'readonly': True}, + } + + _attribute_map = { + 'time_stamp': {'key': 'timeStamp', 'type': 'iso-8601'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(Message, self).__init__(**kwargs) + self.time_stamp = None + self.message = None + + +class Operation(Model): + """Represents an operation that can be performed on the service. + + :param name: The name of the operation. + :type name: str + :param display: The display name of the operation. + :type display: ~azure.mgmt.deploymentmanager.models.OperationDetail + :param origin: The origin of the operation. + :type origin: str + :param properties: The properties of the operation. + :type properties: object + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'display': {'key': 'display', 'type': 'OperationDetail'}, + 'origin': {'key': 'origin', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'object'}, + } + + def __init__(self, *, name: str=None, display=None, origin: str=None, properties=None, **kwargs) -> None: + super(Operation, self).__init__(**kwargs) + self.name = name + self.display = display + self.origin = origin + self.properties = properties + + +class OperationDetail(Model): + """The detail about an operation. + + :param provider: The name of the provider that supports the operation. + :type provider: str + :param resource: The resource type on which this operation can be + performed. + :type resource: str + :param operation: The name of the operation. + :type operation: str + :param description: The description of the operation. + :type description: str + """ + + _attribute_map = { + 'provider': {'key': 'provider', 'type': 'str'}, + 'resource': {'key': 'resource', 'type': 'str'}, + 'operation': {'key': 'operation', 'type': 'str'}, + 'description': {'key': 'description', 'type': 'str'}, + } + + def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: + super(OperationDetail, self).__init__(**kwargs) + self.provider = provider + self.resource = resource + self.operation = operation + self.description = description + + +class OperationsList(Model): + """The operations response. + + :param value: The list of supported operations + :type value: ~azure.mgmt.deploymentmanager.models.Operation + """ + + _attribute_map = { + 'value': {'key': 'value', 'type': 'Operation'}, + } + + def __init__(self, *, value=None, **kwargs) -> None: + super(OperationsList, self).__init__(**kwargs) + self.value = value + + +class PrePostStep(Model): + """The properties that define a step. + + All required parameters must be populated in order to send to Azure. + + :param step_id: Required. The resource Id of the step to be run. + :type step_id: str + """ + + _validation = { + 'step_id': {'required': True}, + } + + _attribute_map = { + 'step_id': {'key': 'stepId', 'type': 'str'}, + } + + def __init__(self, *, step_id: str, **kwargs) -> None: + super(PrePostStep, self).__init__(**kwargs) + self.step_id = step_id + + +class ProxyResource(Resource): + """The resource model definition for a ARM proxy resource. It will have + everything other than required location and tags. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(ProxyResource, self).__init__(**kwargs) + + +class ResourceOperation(Model): + """Individual resource operation information. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :param resource_name: Name of the resource as specified in the artifacts. + For ARM resources, this is the name of the resource specified in the + template. + :type resource_name: str + :ivar operation_id: Unique identifier of the operation. For ARM resources, + this is the operationId obtained from ARM service. + :vartype operation_id: str + :param resource_type: Type of the resource as specified in the artifacts. + For ARM resources, this is the type of the resource specified in the + template. + :type resource_type: str + :ivar provisioning_state: State of the resource deployment. For ARM + resources, this is the current provisioning state of the resource. + :vartype provisioning_state: str + :ivar status_message: Descriptive information of the resource operation. + :vartype status_message: str + :ivar status_code: Http status code of the operation. + :vartype status_code: str + """ + + _validation = { + 'operation_id': {'readonly': True}, + 'provisioning_state': {'readonly': True}, + 'status_message': {'readonly': True}, + 'status_code': {'readonly': True}, + } + + _attribute_map = { + 'resource_name': {'key': 'resourceName', 'type': 'str'}, + 'operation_id': {'key': 'operationId', 'type': 'str'}, + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, + 'status_message': {'key': 'statusMessage', 'type': 'str'}, + 'status_code': {'key': 'statusCode', 'type': 'str'}, + } + + def __init__(self, *, resource_name: str=None, resource_type: str=None, **kwargs) -> None: + super(ResourceOperation, self).__init__(**kwargs) + self.resource_name = resource_name + self.operation_id = None + self.resource_type = resource_type + self.provisioning_state = None + self.status_message = None + self.status_code = None + + +class RestHealthCheck(Model): + """A REST based health check. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. A unique name for this check. + :type name: str + :param request: Required. The request to the health provider. + :type request: ~azure.mgmt.deploymentmanager.models.RestRequest + :param response: The expected response from the health provider. If no + expected response is provided, the default is to expect the received + response to have an HTTP status code of 200 OK. + :type response: ~azure.mgmt.deploymentmanager.models.RestResponse + """ + + _validation = { + 'name': {'required': True}, + 'request': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'request': {'key': 'request', 'type': 'RestRequest'}, + 'response': {'key': 'response', 'type': 'RestResponse'}, + } + + def __init__(self, *, name: str, request, response=None, **kwargs) -> None: + super(RestHealthCheck, self).__init__(**kwargs) + self.name = name + self.request = request + self.response = response + + +class RestHealthCheckStepAttributes(HealthCheckStepAttributes): + """Defines the REST health check step properties. + + All required parameters must be populated in order to send to Azure. + + :param wait_duration: The duration in ISO 8601 format for which health + check waits idly without any checks. + :type wait_duration: str + :param max_elastic_duration: The duration in ISO 8601 format for which the + health check waits for the resource to become healthy. Health check fails + if it doesn't. Health check starts to enforce healthyStateDuration once + resource becomes healthy. + :type max_elastic_duration: str + :param healthy_state_duration: Required. The duration in ISO 8601 format + for which the resource is expected to be continuously healthy. If + maxElasticDuration is specified, healthy state duration is enforced after + the detection of first healthy signal. + :type healthy_state_duration: str + :param type: Required. Constant filled by server. + :type type: str + :param health_checks: Required. The list of checks that form the health + check step. + :type health_checks: + list[~azure.mgmt.deploymentmanager.models.RestHealthCheck] + """ + + _validation = { + 'healthy_state_duration': {'required': True}, + 'type': {'required': True}, + 'health_checks': {'required': True}, + } + + _attribute_map = { + 'wait_duration': {'key': 'waitDuration', 'type': 'str'}, + 'max_elastic_duration': {'key': 'maxElasticDuration', 'type': 'str'}, + 'healthy_state_duration': {'key': 'healthyStateDuration', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'health_checks': {'key': 'properties.healthChecks', 'type': '[RestHealthCheck]'}, + } + + def __init__(self, *, healthy_state_duration: str, health_checks, wait_duration: str=None, max_elastic_duration: str=None, **kwargs) -> None: + super(RestHealthCheckStepAttributes, self).__init__(wait_duration=wait_duration, max_elastic_duration=max_elastic_duration, healthy_state_duration=healthy_state_duration, **kwargs) + self.health_checks = health_checks + self.type = 'REST' + + +class RestRequest(Model): + """The properties that make up a REST request. + + All required parameters must be populated in order to send to Azure. + + :param method: Required. The HTTP method to use for the request. Possible + values include: 'GET', 'POST' + :type method: str or + ~azure.mgmt.deploymentmanager.models.RestRequestMethod + :param uri: Required. The HTTP URI to use for the request. + :type uri: str + :param authentication: Required. The authentication information required + in the request to the health provider. + :type authentication: + ~azure.mgmt.deploymentmanager.models.RestRequestAuthentication + """ + + _validation = { + 'method': {'required': True}, + 'uri': {'required': True}, + 'authentication': {'required': True}, + } + + _attribute_map = { + 'method': {'key': 'method', 'type': 'RestRequestMethod'}, + 'uri': {'key': 'uri', 'type': 'str'}, + 'authentication': {'key': 'authentication', 'type': 'RestRequestAuthentication'}, + } + + def __init__(self, *, method, uri: str, authentication, **kwargs) -> None: + super(RestRequest, self).__init__(**kwargs) + self.method = method + self.uri = uri + self.authentication = authentication + + +class RestRequestAuthentication(Model): + """The authentication information required in the REST health check request to + the health provider. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar type: Required. The authentication type. ApiKey authentication gives + a name and a value that can be included in either the request header or + query parameters. Default value: "ApiKey" . + :vartype type: str + :param name: Required. The key name of the authentication key/value pair. + :type name: str + :param in_property: Required. The location of the authentication key/value + pair in the request. Possible values include: 'Query', 'Header' + :type in_property: str or + ~azure.mgmt.deploymentmanager.models.RestAuthLocation + :param value: Required. The value of the authentication key/value pair. + :type value: str + """ + + _validation = { + 'type': {'required': True, 'constant': True}, + 'name': {'required': True}, + 'in_property': {'required': True}, + 'value': {'required': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'in_property': {'key': 'in', 'type': 'RestAuthLocation'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + type = "ApiKey" + + def __init__(self, *, name: str, in_property, value: str, **kwargs) -> None: + super(RestRequestAuthentication, self).__init__(**kwargs) + self.name = name + self.in_property = in_property + self.value = value + + +class RestResponse(Model): + """The properties that make up the expected REST response. + + :param success_status_codes: The HTTP status codes expected in a + successful health check response. The response is expected to match one of + the given status codes. If no expected status codes are provided, default + expected status code is 200 OK. + :type success_status_codes: list[str] + :param regex: The regular expressions to match the response content with. + :type regex: ~azure.mgmt.deploymentmanager.models.RestResponseRegex + """ + + _attribute_map = { + 'success_status_codes': {'key': 'successStatusCodes', 'type': '[str]'}, + 'regex': {'key': 'regex', 'type': 'RestResponseRegex'}, + } + + def __init__(self, *, success_status_codes=None, regex=None, **kwargs) -> None: + super(RestResponse, self).__init__(**kwargs) + self.success_status_codes = success_status_codes + self.regex = regex + + +class RestResponseRegex(Model): + """The regular expressions to match the response content with. + + :param matches: The list of regular expressions. + :type matches: list[str] + :param match_quantifier: Indicates whether any or all of the expressions + should match with the response content. Possible values include: 'All', + 'Any' + :type match_quantifier: str or + ~azure.mgmt.deploymentmanager.models.RestMatchQuantifier + """ + + _attribute_map = { + 'matches': {'key': 'matches', 'type': '[str]'}, + 'match_quantifier': {'key': 'matchQuantifier', 'type': 'RestMatchQuantifier'}, + } + + def __init__(self, *, matches=None, match_quantifier=None, **kwargs) -> None: + super(RestResponseRegex, self).__init__(**kwargs) + self.matches = matches + self.match_quantifier = match_quantifier + + +class Rollout(TrackedResource): + """Defines the rollout. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :param identity: Identity for the resource. + :type identity: ~azure.mgmt.deploymentmanager.models.Identity + :param build_version: Required. The version of the build being deployed. + :type build_version: str + :param artifact_source_id: The reference to the artifact source resource + Id where the payload is located. + :type artifact_source_id: str + :param target_service_topology_id: Required. The resource Id of the + service topology from which service units are being referenced in step + groups to be deployed. + :type target_service_topology_id: str + :param step_groups: Required. The list of step groups that define the + orchestration. + :type step_groups: list[~azure.mgmt.deploymentmanager.models.StepGroup] + :ivar status: The current status of the rollout. + :vartype status: str + :ivar total_retry_attempts: The cardinal count of total number of retries + performed on the rollout at a given time. + :vartype total_retry_attempts: int + :ivar operation_info: Operational information of the rollout. + :vartype operation_info: + ~azure.mgmt.deploymentmanager.models.RolloutOperationInfo + :ivar services: The detailed information on the services being deployed. + :vartype services: list[~azure.mgmt.deploymentmanager.models.Service] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'build_version': {'required': True}, + 'target_service_topology_id': {'required': True}, + 'step_groups': {'required': True}, + 'status': {'readonly': True}, + 'total_retry_attempts': {'readonly': True}, + 'operation_info': {'readonly': True}, + 'services': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + 'build_version': {'key': 'properties.buildVersion', 'type': 'str'}, + 'artifact_source_id': {'key': 'properties.artifactSourceId', 'type': 'str'}, + 'target_service_topology_id': {'key': 'properties.targetServiceTopologyId', 'type': 'str'}, + 'step_groups': {'key': 'properties.stepGroups', 'type': '[StepGroup]'}, + 'status': {'key': 'properties.status', 'type': 'str'}, + 'total_retry_attempts': {'key': 'properties.totalRetryAttempts', 'type': 'int'}, + 'operation_info': {'key': 'properties.operationInfo', 'type': 'RolloutOperationInfo'}, + 'services': {'key': 'properties.services', 'type': '[Service]'}, + } + + def __init__(self, *, location: str, build_version: str, target_service_topology_id: str, step_groups, tags=None, identity=None, artifact_source_id: str=None, **kwargs) -> None: + super(Rollout, self).__init__(tags=tags, location=location, **kwargs) + self.identity = identity + self.build_version = build_version + self.artifact_source_id = artifact_source_id + self.target_service_topology_id = target_service_topology_id + self.step_groups = step_groups + self.status = None + self.total_retry_attempts = None + self.operation_info = None + self.services = None + + +class RolloutOperationInfo(Model): + """Detailed runtime information of the rollout. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar retry_attempt: The ordinal count of the number of retry attempts on + a rollout. 0 if no retries of the rollout have been performed. If the + rollout is updated with a PUT, this count is reset to 0. + :vartype retry_attempt: int + :ivar skip_succeeded_on_retry: True, if all steps that succeeded on the + previous run/attempt were chosen to be skipped in this retry attempt. + False, otherwise. + :vartype skip_succeeded_on_retry: bool + :ivar start_time: The start time of the rollout in UTC. + :vartype start_time: datetime + :ivar end_time: The start time of the rollout in UTC. This property will + not be set if the rollout has not completed yet. + :vartype end_time: datetime + :ivar error: The detailed error information for any failure. + :vartype error: ~azure.mgmt.deploymentmanager.models.CloudErrorBody + """ + + _validation = { + 'retry_attempt': {'readonly': True}, + 'skip_succeeded_on_retry': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'error': {'readonly': True}, + } + + _attribute_map = { + 'retry_attempt': {'key': 'retryAttempt', 'type': 'int'}, + 'skip_succeeded_on_retry': {'key': 'skipSucceededOnRetry', 'type': 'bool'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'error': {'key': 'error', 'type': 'CloudErrorBody'}, + } + + def __init__(self, **kwargs) -> None: + super(RolloutOperationInfo, self).__init__(**kwargs) + self.retry_attempt = None + self.skip_succeeded_on_retry = None + self.start_time = None + self.end_time = None + self.error = None + + +class RolloutPropertiesModel(Model): + """Defines the properties of a rollout. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar status: The current status of the rollout. + :vartype status: str + :ivar total_retry_attempts: The cardinal count of total number of retries + performed on the rollout at a given time. + :vartype total_retry_attempts: int + :ivar operation_info: Operational information of the rollout. + :vartype operation_info: + ~azure.mgmt.deploymentmanager.models.RolloutOperationInfo + :ivar services: The detailed information on the services being deployed. + :vartype services: list[~azure.mgmt.deploymentmanager.models.Service] + """ + + _validation = { + 'status': {'readonly': True}, + 'total_retry_attempts': {'readonly': True}, + 'operation_info': {'readonly': True}, + 'services': {'readonly': True}, + } + + _attribute_map = { + 'status': {'key': 'status', 'type': 'str'}, + 'total_retry_attempts': {'key': 'totalRetryAttempts', 'type': 'int'}, + 'operation_info': {'key': 'operationInfo', 'type': 'RolloutOperationInfo'}, + 'services': {'key': 'services', 'type': '[Service]'}, + } + + def __init__(self, **kwargs) -> None: + super(RolloutPropertiesModel, self).__init__(**kwargs) + self.status = None + self.total_retry_attempts = None + self.operation_info = None + self.services = None + + +class RolloutRequest(TrackedResource): + """Defines the PUT rollout request body. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :param identity: Required. Identity for the resource. + :type identity: ~azure.mgmt.deploymentmanager.models.Identity + :param build_version: Required. The version of the build being deployed. + :type build_version: str + :param artifact_source_id: The reference to the artifact source resource + Id where the payload is located. + :type artifact_source_id: str + :param target_service_topology_id: Required. The resource Id of the + service topology from which service units are being referenced in step + groups to be deployed. + :type target_service_topology_id: str + :param step_groups: Required. The list of step groups that define the + orchestration. + :type step_groups: list[~azure.mgmt.deploymentmanager.models.StepGroup] + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'identity': {'required': True}, + 'build_version': {'required': True}, + 'target_service_topology_id': {'required': True}, + 'step_groups': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'identity': {'key': 'identity', 'type': 'Identity'}, + 'build_version': {'key': 'properties.buildVersion', 'type': 'str'}, + 'artifact_source_id': {'key': 'properties.artifactSourceId', 'type': 'str'}, + 'target_service_topology_id': {'key': 'properties.targetServiceTopologyId', 'type': 'str'}, + 'step_groups': {'key': 'properties.stepGroups', 'type': '[StepGroup]'}, + } + + def __init__(self, *, location: str, identity, build_version: str, target_service_topology_id: str, step_groups, tags=None, artifact_source_id: str=None, **kwargs) -> None: + super(RolloutRequest, self).__init__(tags=tags, location=location, **kwargs) + self.identity = identity + self.build_version = build_version + self.artifact_source_id = artifact_source_id + self.target_service_topology_id = target_service_topology_id + self.step_groups = step_groups + + +class RolloutStep(Model): + """Defines a specific step on a target service unit. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of the step. + :type name: str + :ivar status: Current state of the step. + :vartype status: str + :param step_group: The step group the current step is part of. + :type step_group: str + :ivar operation_info: Detailed information of specific action execution. + :vartype operation_info: + ~azure.mgmt.deploymentmanager.models.StepOperationInfo + :ivar resource_operations: Set of resource operations that were performed, + if any, on an Azure resource. + :vartype resource_operations: + list[~azure.mgmt.deploymentmanager.models.ResourceOperation] + :ivar messages: Supplementary informative messages during rollout. + :vartype messages: list[~azure.mgmt.deploymentmanager.models.Message] + """ + + _validation = { + 'name': {'required': True}, + 'status': {'readonly': True}, + 'operation_info': {'readonly': True}, + 'resource_operations': {'readonly': True}, + 'messages': {'readonly': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'status': {'key': 'status', 'type': 'str'}, + 'step_group': {'key': 'stepGroup', 'type': 'str'}, + 'operation_info': {'key': 'operationInfo', 'type': 'StepOperationInfo'}, + 'resource_operations': {'key': 'resourceOperations', 'type': '[ResourceOperation]'}, + 'messages': {'key': 'messages', 'type': '[Message]'}, + } + + def __init__(self, *, name: str, step_group: str=None, **kwargs) -> None: + super(RolloutStep, self).__init__(**kwargs) + self.name = name + self.status = None + self.step_group = step_group + self.operation_info = None + self.resource_operations = None + self.messages = None + + +class SasAuthentication(Authentication): + """Defines the properties to access the artifacts using an Azure Storage SAS + URI. + + All required parameters must be populated in order to send to Azure. + + :param type: Required. Constant filled by server. + :type type: str + :param sas_uri: Required. The SAS URI to the Azure Storage blob container. + Any offset from the root of the container to where the artifacts are + located can be defined in the artifactRoot. + :type sas_uri: str + """ + + _validation = { + 'type': {'required': True}, + 'sas_uri': {'required': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'sas_uri': {'key': 'properties.sasUri', 'type': 'str'}, + } + + def __init__(self, *, sas_uri: str, **kwargs) -> None: + super(SasAuthentication, self).__init__(**kwargs) + self.sas_uri = sas_uri + self.type = 'Sas' + + +class ServiceProperties(Model): + """The properties of a service. + + All required parameters must be populated in order to send to Azure. + + :param target_location: Required. The Azure location to which the + resources in the service belong to or should be deployed to. + :type target_location: str + :param target_subscription_id: Required. The subscription to which the + resources in the service belong to or should be deployed to. + :type target_subscription_id: str + """ + + _validation = { + 'target_location': {'required': True}, + 'target_subscription_id': {'required': True}, + } + + _attribute_map = { + 'target_location': {'key': 'targetLocation', 'type': 'str'}, + 'target_subscription_id': {'key': 'targetSubscriptionId', 'type': 'str'}, + } + + def __init__(self, *, target_location: str, target_subscription_id: str, **kwargs) -> None: + super(ServiceProperties, self).__init__(**kwargs) + self.target_location = target_location + self.target_subscription_id = target_subscription_id + + +class Service(ServiceProperties): + """Defines a service. + + All required parameters must be populated in order to send to Azure. + + :param target_location: Required. The Azure location to which the + resources in the service belong to or should be deployed to. + :type target_location: str + :param target_subscription_id: Required. The subscription to which the + resources in the service belong to or should be deployed to. + :type target_subscription_id: str + :param name: Name of the service. + :type name: str + :param service_units: The detailed information about the units that make + up the service. + :type service_units: + list[~azure.mgmt.deploymentmanager.models.ServiceUnit] + """ + + _validation = { + 'target_location': {'required': True}, + 'target_subscription_id': {'required': True}, + } + + _attribute_map = { + 'target_location': {'key': 'targetLocation', 'type': 'str'}, + 'target_subscription_id': {'key': 'targetSubscriptionId', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'service_units': {'key': 'serviceUnits', 'type': '[ServiceUnit]'}, + } + + def __init__(self, *, target_location: str, target_subscription_id: str, name: str=None, service_units=None, **kwargs) -> None: + super(Service, self).__init__(target_location=target_location, target_subscription_id=target_subscription_id, **kwargs) + self.name = name + self.service_units = service_units + + +class ServiceResource(TrackedResource): + """The resource representation of a service in a service topology. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :param target_location: Required. The Azure location to which the + resources in the service belong to or should be deployed to. + :type target_location: str + :param target_subscription_id: Required. The subscription to which the + resources in the service belong to or should be deployed to. + :type target_subscription_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'target_location': {'required': True}, + 'target_subscription_id': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'target_location': {'key': 'properties.targetLocation', 'type': 'str'}, + 'target_subscription_id': {'key': 'properties.targetSubscriptionId', 'type': 'str'}, + } + + def __init__(self, *, location: str, target_location: str, target_subscription_id: str, tags=None, **kwargs) -> None: + super(ServiceResource, self).__init__(tags=tags, location=location, **kwargs) + self.target_location = target_location + self.target_subscription_id = target_subscription_id + + +class ServiceTopologyProperties(Model): + """The properties of a service topology. + + :param artifact_source_id: The resource Id of the artifact source that + contains the artifacts that can be referenced in the service units. + :type artifact_source_id: str + """ + + _attribute_map = { + 'artifact_source_id': {'key': 'artifactSourceId', 'type': 'str'}, + } + + def __init__(self, *, artifact_source_id: str=None, **kwargs) -> None: + super(ServiceTopologyProperties, self).__init__(**kwargs) + self.artifact_source_id = artifact_source_id + + +class ServiceTopologyResource(TrackedResource): + """The resource representation of a service topology. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :param artifact_source_id: The resource Id of the artifact source that + contains the artifacts that can be referenced in the service units. + :type artifact_source_id: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'artifact_source_id': {'key': 'properties.artifactSourceId', 'type': 'str'}, + } + + def __init__(self, *, location: str, tags=None, artifact_source_id: str=None, **kwargs) -> None: + super(ServiceTopologyResource, self).__init__(tags=tags, location=location, **kwargs) + self.artifact_source_id = artifact_source_id + + +class ServiceUnitProperties(Model): + """Defines the properties of a service unit. + + All required parameters must be populated in order to send to Azure. + + :param target_resource_group: Required. The Azure Resource Group to which + the resources in the service unit belong to or should be deployed to. + :type target_resource_group: str + :param deployment_mode: Required. Describes the type of ARM deployment to + be performed on the resource. Possible values include: 'Incremental', + 'Complete' + :type deployment_mode: str or + ~azure.mgmt.deploymentmanager.models.DeploymentMode + :param artifacts: The artifacts for the service unit. + :type artifacts: ~azure.mgmt.deploymentmanager.models.ServiceUnitArtifacts + """ + + _validation = { + 'target_resource_group': {'required': True}, + 'deployment_mode': {'required': True}, + } + + _attribute_map = { + 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, + 'deployment_mode': {'key': 'deploymentMode', 'type': 'DeploymentMode'}, + 'artifacts': {'key': 'artifacts', 'type': 'ServiceUnitArtifacts'}, + } + + def __init__(self, *, target_resource_group: str, deployment_mode, artifacts=None, **kwargs) -> None: + super(ServiceUnitProperties, self).__init__(**kwargs) + self.target_resource_group = target_resource_group + self.deployment_mode = deployment_mode + self.artifacts = artifacts + + +class ServiceUnit(ServiceUnitProperties): + """Defines a service unit. + + All required parameters must be populated in order to send to Azure. + + :param target_resource_group: Required. The Azure Resource Group to which + the resources in the service unit belong to or should be deployed to. + :type target_resource_group: str + :param deployment_mode: Required. Describes the type of ARM deployment to + be performed on the resource. Possible values include: 'Incremental', + 'Complete' + :type deployment_mode: str or + ~azure.mgmt.deploymentmanager.models.DeploymentMode + :param artifacts: The artifacts for the service unit. + :type artifacts: ~azure.mgmt.deploymentmanager.models.ServiceUnitArtifacts + :param name: Name of the service unit. + :type name: str + :param steps: Detailed step information, if present. + :type steps: list[~azure.mgmt.deploymentmanager.models.RolloutStep] + """ + + _validation = { + 'target_resource_group': {'required': True}, + 'deployment_mode': {'required': True}, + } + + _attribute_map = { + 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, + 'deployment_mode': {'key': 'deploymentMode', 'type': 'DeploymentMode'}, + 'artifacts': {'key': 'artifacts', 'type': 'ServiceUnitArtifacts'}, + 'name': {'key': 'name', 'type': 'str'}, + 'steps': {'key': 'steps', 'type': '[RolloutStep]'}, + } + + def __init__(self, *, target_resource_group: str, deployment_mode, artifacts=None, name: str=None, steps=None, **kwargs) -> None: + super(ServiceUnit, self).__init__(target_resource_group=target_resource_group, deployment_mode=deployment_mode, artifacts=artifacts, **kwargs) + self.name = name + self.steps = steps + + +class ServiceUnitArtifacts(Model): + """Defines the artifacts of a service unit. + + :param template_uri: The full URI of the ARM template file with the SAS + token. + :type template_uri: str + :param parameters_uri: The full URI of the ARM parameters file with the + SAS token. + :type parameters_uri: str + :param template_artifact_source_relative_path: The path to the ARM + template file relative to the artifact source. + :type template_artifact_source_relative_path: str + :param parameters_artifact_source_relative_path: The path to the ARM + parameters file relative to the artifact source. + :type parameters_artifact_source_relative_path: str + """ + + _attribute_map = { + 'template_uri': {'key': 'templateUri', 'type': 'str'}, + 'parameters_uri': {'key': 'parametersUri', 'type': 'str'}, + 'template_artifact_source_relative_path': {'key': 'templateArtifactSourceRelativePath', 'type': 'str'}, + 'parameters_artifact_source_relative_path': {'key': 'parametersArtifactSourceRelativePath', 'type': 'str'}, + } + + def __init__(self, *, template_uri: str=None, parameters_uri: str=None, template_artifact_source_relative_path: str=None, parameters_artifact_source_relative_path: str=None, **kwargs) -> None: + super(ServiceUnitArtifacts, self).__init__(**kwargs) + self.template_uri = template_uri + self.parameters_uri = parameters_uri + self.template_artifact_source_relative_path = template_artifact_source_relative_path + self.parameters_artifact_source_relative_path = parameters_artifact_source_relative_path + + +class ServiceUnitResource(TrackedResource): + """Represents the response of a service unit resource. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :param target_resource_group: Required. The Azure Resource Group to which + the resources in the service unit belong to or should be deployed to. + :type target_resource_group: str + :param deployment_mode: Required. Describes the type of ARM deployment to + be performed on the resource. Possible values include: 'Incremental', + 'Complete' + :type deployment_mode: str or + ~azure.mgmt.deploymentmanager.models.DeploymentMode + :param artifacts: The artifacts for the service unit. + :type artifacts: ~azure.mgmt.deploymentmanager.models.ServiceUnitArtifacts + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'target_resource_group': {'required': True}, + 'deployment_mode': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'target_resource_group': {'key': 'properties.targetResourceGroup', 'type': 'str'}, + 'deployment_mode': {'key': 'properties.deploymentMode', 'type': 'DeploymentMode'}, + 'artifacts': {'key': 'properties.artifacts', 'type': 'ServiceUnitArtifacts'}, + } + + def __init__(self, *, location: str, target_resource_group: str, deployment_mode, tags=None, artifacts=None, **kwargs) -> None: + super(ServiceUnitResource, self).__init__(tags=tags, location=location, **kwargs) + self.target_resource_group = target_resource_group + self.deployment_mode = deployment_mode + self.artifacts = artifacts + + +class StepGroup(Model): + """The properties that define a Step group in a rollout. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. The name of the step group. + :type name: str + :param depends_on_step_groups: The list of step group names on which this + step group depends on. + :type depends_on_step_groups: list[str] + :param pre_deployment_steps: The list of steps to be run before deploying + the target. + :type pre_deployment_steps: + list[~azure.mgmt.deploymentmanager.models.PrePostStep] + :param deployment_target_id: Required. The resource Id of service unit to + be deployed. The service unit should be from the service topology + referenced in targetServiceTopologyId + :type deployment_target_id: str + :param post_deployment_steps: The list of steps to be run after deploying + the target. + :type post_deployment_steps: + list[~azure.mgmt.deploymentmanager.models.PrePostStep] + """ + + _validation = { + 'name': {'required': True}, + 'deployment_target_id': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'depends_on_step_groups': {'key': 'dependsOnStepGroups', 'type': '[str]'}, + 'pre_deployment_steps': {'key': 'preDeploymentSteps', 'type': '[PrePostStep]'}, + 'deployment_target_id': {'key': 'deploymentTargetId', 'type': 'str'}, + 'post_deployment_steps': {'key': 'postDeploymentSteps', 'type': '[PrePostStep]'}, + } + + def __init__(self, *, name: str, deployment_target_id: str, depends_on_step_groups=None, pre_deployment_steps=None, post_deployment_steps=None, **kwargs) -> None: + super(StepGroup, self).__init__(**kwargs) + self.name = name + self.depends_on_step_groups = depends_on_step_groups + self.pre_deployment_steps = pre_deployment_steps + self.deployment_target_id = deployment_target_id + self.post_deployment_steps = post_deployment_steps + + +class StepOperationInfo(Model): + """Detailed information of a specific step run. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar deployment_name: The name of the ARM deployment initiated as part of + the step. + :vartype deployment_name: str + :ivar correlation_id: Unique identifier to track the request for ARM-based + resources. + :vartype correlation_id: str + :ivar start_time: Start time of the action in UTC. + :vartype start_time: datetime + :ivar end_time: End time of the action in UTC. + :vartype end_time: datetime + :ivar last_updated_time: Last time in UTC this operation was updated. + :vartype last_updated_time: datetime + :param error: The errors, if any, for the action. + :type error: ~azure.mgmt.deploymentmanager.models.CloudErrorBody + """ + + _validation = { + 'deployment_name': {'readonly': True}, + 'correlation_id': {'readonly': True}, + 'start_time': {'readonly': True}, + 'end_time': {'readonly': True}, + 'last_updated_time': {'readonly': True}, + } + + _attribute_map = { + 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, + 'correlation_id': {'key': 'correlationId', 'type': 'str'}, + 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, + 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, + 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'iso-8601'}, + 'error': {'key': 'error', 'type': 'CloudErrorBody'}, + } + + def __init__(self, *, error=None, **kwargs) -> None: + super(StepOperationInfo, self).__init__(**kwargs) + self.deployment_name = None + self.correlation_id = None + self.start_time = None + self.end_time = None + self.last_updated_time = None + self.error = error + + +class StepResource(TrackedResource): + """The resource representation of a rollout step. + + Variables are only populated by the server, and will be ignored when + sending a request. + + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource Id for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. Ex- + Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :vartype type: str + :param tags: Resource tags. + :type tags: dict[str, str] + :param location: Required. The geo-location where the resource lives + :type location: str + :param properties: Required. The properties that define the step. + :type properties: ~azure.mgmt.deploymentmanager.models.StepProperties + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'location': {'required': True}, + 'properties': {'required': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'tags': {'key': 'tags', 'type': '{str}'}, + 'location': {'key': 'location', 'type': 'str'}, + 'properties': {'key': 'properties', 'type': 'StepProperties'}, + } + + def __init__(self, *, location: str, properties, tags=None, **kwargs) -> None: + super(StepResource, self).__init__(tags=tags, location=location, **kwargs) + self.properties = properties + + +class WaitStepAttributes(Model): + """The parameters for the wait step. + + All required parameters must be populated in order to send to Azure. + + :param duration: Required. The duration in ISO 8601 format of how long the + wait should be. + :type duration: str + """ + + _validation = { + 'duration': {'required': True}, + } + + _attribute_map = { + 'duration': {'key': 'duration', 'type': 'str'}, + } + + def __init__(self, *, duration: str, **kwargs) -> None: + super(WaitStepAttributes, self).__init__(**kwargs) + self.duration = duration + + +class WaitStepProperties(StepProperties): + """Defines the properties of a Wait step. + + All required parameters must be populated in order to send to Azure. + + :param step_type: Required. Constant filled by server. + :type step_type: str + :param attributes: Required. The Wait attributes + :type attributes: ~azure.mgmt.deploymentmanager.models.WaitStepAttributes + """ + + _validation = { + 'step_type': {'required': True}, + 'attributes': {'required': True}, + } + + _attribute_map = { + 'step_type': {'key': 'stepType', 'type': 'str'}, + 'attributes': {'key': 'attributes', 'type': 'WaitStepAttributes'}, + } + + def __init__(self, *, attributes, **kwargs) -> None: + super(WaitStepProperties, self).__init__(**kwargs) + self.attributes = attributes + self.step_type = 'Wait' diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/artifact_source.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/artifact_source.py deleted file mode 100644 index 0a6cea848766..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/artifact_source.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .tracked_resource import TrackedResource - - -class ArtifactSource(TrackedResource): - """The resource that defines the source location where the artifacts are - located. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - :param source_type: Required. The type of artifact source used. - :type source_type: str - :param artifact_root: The path from the location that the 'authentication' - property [say, a SAS URI to the blob container] refers to, to the location - of the artifacts. This can be used to differentiate different versions of - the artifacts. Or, different types of artifacts like binaries or - templates. The location referenced by the authentication property - concatenated with this optional artifactRoot path forms the artifact - source location where the artifacts are expected to be found. - :type artifact_root: str - :param authentication: Required. The authentication method to use to - access the artifact source. - :type authentication: ~azure.mgmt.deploymentmanager.models.Authentication - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'source_type': {'required': True}, - 'authentication': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'source_type': {'key': 'properties.sourceType', 'type': 'str'}, - 'artifact_root': {'key': 'properties.artifactRoot', 'type': 'str'}, - 'authentication': {'key': 'properties.authentication', 'type': 'Authentication'}, - } - - def __init__(self, **kwargs): - super(ArtifactSource, self).__init__(**kwargs) - self.source_type = kwargs.get('source_type', None) - self.artifact_root = kwargs.get('artifact_root', None) - self.authentication = kwargs.get('authentication', None) diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/artifact_source_properties_model.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/artifact_source_properties_model.py deleted file mode 100644 index 534026c6a720..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/artifact_source_properties_model.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ArtifactSourcePropertiesModel(Model): - """The properties that define the source location where the artifacts are - located. - - All required parameters must be populated in order to send to Azure. - - :param source_type: Required. The type of artifact source used. - :type source_type: str - :param artifact_root: The path from the location that the 'authentication' - property [say, a SAS URI to the blob container] refers to, to the location - of the artifacts. This can be used to differentiate different versions of - the artifacts. Or, different types of artifacts like binaries or - templates. The location referenced by the authentication property - concatenated with this optional artifactRoot path forms the artifact - source location where the artifacts are expected to be found. - :type artifact_root: str - :param authentication: Required. The authentication method to use to - access the artifact source. - :type authentication: ~azure.mgmt.deploymentmanager.models.Authentication - """ - - _validation = { - 'source_type': {'required': True}, - 'authentication': {'required': True}, - } - - _attribute_map = { - 'source_type': {'key': 'sourceType', 'type': 'str'}, - 'artifact_root': {'key': 'artifactRoot', 'type': 'str'}, - 'authentication': {'key': 'authentication', 'type': 'Authentication'}, - } - - def __init__(self, **kwargs): - super(ArtifactSourcePropertiesModel, self).__init__(**kwargs) - self.source_type = kwargs.get('source_type', None) - self.artifact_root = kwargs.get('artifact_root', None) - self.authentication = kwargs.get('authentication', None) diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/artifact_source_properties_model_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/artifact_source_properties_model_py3.py deleted file mode 100644 index f46a7a9486da..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/artifact_source_properties_model_py3.py +++ /dev/null @@ -1,51 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ArtifactSourcePropertiesModel(Model): - """The properties that define the source location where the artifacts are - located. - - All required parameters must be populated in order to send to Azure. - - :param source_type: Required. The type of artifact source used. - :type source_type: str - :param artifact_root: The path from the location that the 'authentication' - property [say, a SAS URI to the blob container] refers to, to the location - of the artifacts. This can be used to differentiate different versions of - the artifacts. Or, different types of artifacts like binaries or - templates. The location referenced by the authentication property - concatenated with this optional artifactRoot path forms the artifact - source location where the artifacts are expected to be found. - :type artifact_root: str - :param authentication: Required. The authentication method to use to - access the artifact source. - :type authentication: ~azure.mgmt.deploymentmanager.models.Authentication - """ - - _validation = { - 'source_type': {'required': True}, - 'authentication': {'required': True}, - } - - _attribute_map = { - 'source_type': {'key': 'sourceType', 'type': 'str'}, - 'artifact_root': {'key': 'artifactRoot', 'type': 'str'}, - 'authentication': {'key': 'authentication', 'type': 'Authentication'}, - } - - def __init__(self, *, source_type: str, authentication, artifact_root: str=None, **kwargs) -> None: - super(ArtifactSourcePropertiesModel, self).__init__(**kwargs) - self.source_type = source_type - self.artifact_root = artifact_root - self.authentication = authentication diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/artifact_source_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/artifact_source_py3.py deleted file mode 100644 index 42d7816f6687..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/artifact_source_py3.py +++ /dev/null @@ -1,75 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .tracked_resource_py3 import TrackedResource - - -class ArtifactSource(TrackedResource): - """The resource that defines the source location where the artifacts are - located. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - :param source_type: Required. The type of artifact source used. - :type source_type: str - :param artifact_root: The path from the location that the 'authentication' - property [say, a SAS URI to the blob container] refers to, to the location - of the artifacts. This can be used to differentiate different versions of - the artifacts. Or, different types of artifacts like binaries or - templates. The location referenced by the authentication property - concatenated with this optional artifactRoot path forms the artifact - source location where the artifacts are expected to be found. - :type artifact_root: str - :param authentication: Required. The authentication method to use to - access the artifact source. - :type authentication: ~azure.mgmt.deploymentmanager.models.Authentication - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'source_type': {'required': True}, - 'authentication': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'source_type': {'key': 'properties.sourceType', 'type': 'str'}, - 'artifact_root': {'key': 'properties.artifactRoot', 'type': 'str'}, - 'authentication': {'key': 'properties.authentication', 'type': 'Authentication'}, - } - - def __init__(self, *, location: str, source_type: str, authentication, tags=None, artifact_root: str=None, **kwargs) -> None: - super(ArtifactSource, self).__init__(tags=tags, location=location, **kwargs) - self.source_type = source_type - self.artifact_root = artifact_root - self.authentication = authentication diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/authentication.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/authentication.py deleted file mode 100644 index 32ae67a966ba..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/authentication.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Authentication(Model): - """Defines the authentication method and properties to access the artifacts. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: SasAuthentication - - All required parameters must be populated in order to send to Azure. - - :param type: Required. Constant filled by server. - :type type: str - """ - - _validation = { - 'type': {'required': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - } - - _subtype_map = { - 'type': {'Sas': 'SasAuthentication'} - } - - def __init__(self, **kwargs): - super(Authentication, self).__init__(**kwargs) - self.type = None diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/authentication_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/authentication_py3.py deleted file mode 100644 index 55eabe16ff55..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/authentication_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Authentication(Model): - """Defines the authentication method and properties to access the artifacts. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: SasAuthentication - - All required parameters must be populated in order to send to Azure. - - :param type: Required. Constant filled by server. - :type type: str - """ - - _validation = { - 'type': {'required': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - } - - _subtype_map = { - 'type': {'Sas': 'SasAuthentication'} - } - - def __init__(self, **kwargs) -> None: - super(Authentication, self).__init__(**kwargs) - self.type = None diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/azure_entity_resource.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/azure_entity_resource.py deleted file mode 100644 index 3bffaab8d35b..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/azure_entity_resource.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class AzureEntityResource(Resource): - """The resource model definition for a Azure Resource Manager resource with an - etag. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - :vartype type: str - :ivar etag: Resource Etag. - :vartype etag: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'etag': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(AzureEntityResource, self).__init__(**kwargs) - self.etag = None diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/azure_entity_resource_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/azure_entity_resource_py3.py deleted file mode 100644 index d3f80d87498a..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/azure_entity_resource_py3.py +++ /dev/null @@ -1,50 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class AzureEntityResource(Resource): - """The resource model definition for a Azure Resource Manager resource with an - etag. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - :vartype type: str - :ivar etag: Resource Etag. - :vartype etag: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'etag': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'etag': {'key': 'etag', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(AzureEntityResource, self).__init__(**kwargs) - self.etag = None diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/cloud_error_body.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/cloud_error_body.py deleted file mode 100644 index a5ec07fbb5d7..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/cloud_error_body.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CloudErrorBody(Model): - """Detailed error information of any failure. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: Error code string. - :vartype code: str - :ivar message: Descriptive error information. - :vartype message: str - :param target: Error target - :type target: str - :param details: More detailed error information. - :type details: list[~azure.mgmt.deploymentmanager.models.CloudErrorBody] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[CloudErrorBody]'}, - } - - def __init__(self, **kwargs): - super(CloudErrorBody, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = kwargs.get('target', None) - self.details = kwargs.get('details', None) diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/cloud_error_body_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/cloud_error_body_py3.py deleted file mode 100644 index 3c66e0bfbd4a..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/cloud_error_body_py3.py +++ /dev/null @@ -1,48 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class CloudErrorBody(Model): - """Detailed error information of any failure. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar code: Error code string. - :vartype code: str - :ivar message: Descriptive error information. - :vartype message: str - :param target: Error target - :type target: str - :param details: More detailed error information. - :type details: list[~azure.mgmt.deploymentmanager.models.CloudErrorBody] - """ - - _validation = { - 'code': {'readonly': True}, - 'message': {'readonly': True}, - } - - _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, - 'target': {'key': 'target', 'type': 'str'}, - 'details': {'key': 'details', 'type': '[CloudErrorBody]'}, - } - - def __init__(self, *, target: str=None, details=None, **kwargs) -> None: - super(CloudErrorBody, self).__init__(**kwargs) - self.code = None - self.message = None - self.target = target - self.details = details diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/identity.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/identity.py deleted file mode 100644 index 535f1d89b220..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/identity.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Identity(Model): - """Identity for the resource. - - All required parameters must be populated in order to send to Azure. - - :param type: Required. The identity type. - :type type: str - :param identity_ids: Required. The list of identities. - :type identity_ids: list[str] - """ - - _validation = { - 'type': {'required': True}, - 'identity_ids': {'required': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'identity_ids': {'key': 'identityIds', 'type': '[str]'}, - } - - def __init__(self, **kwargs): - super(Identity, self).__init__(**kwargs) - self.type = kwargs.get('type', None) - self.identity_ids = kwargs.get('identity_ids', None) diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/identity_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/identity_py3.py deleted file mode 100644 index 7d7994ebb0f5..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/identity_py3.py +++ /dev/null @@ -1,39 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Identity(Model): - """Identity for the resource. - - All required parameters must be populated in order to send to Azure. - - :param type: Required. The identity type. - :type type: str - :param identity_ids: Required. The list of identities. - :type identity_ids: list[str] - """ - - _validation = { - 'type': {'required': True}, - 'identity_ids': {'required': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'identity_ids': {'key': 'identityIds', 'type': '[str]'}, - } - - def __init__(self, *, type: str, identity_ids, **kwargs) -> None: - super(Identity, self).__init__(**kwargs) - self.type = type - self.identity_ids = identity_ids diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/message.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/message.py deleted file mode 100644 index ac7fd4e0bf7a..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/message.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Message(Model): - """Supplementary contextual messages during a rollout. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar time_stamp: Time in UTC this message was provided. - :vartype time_stamp: datetime - :ivar message: The actual message text. - :vartype message: str - """ - - _validation = { - 'time_stamp': {'readonly': True}, - 'message': {'readonly': True}, - } - - _attribute_map = { - 'time_stamp': {'key': 'timeStamp', 'type': 'iso-8601'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Message, self).__init__(**kwargs) - self.time_stamp = None - self.message = None diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/message_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/message_py3.py deleted file mode 100644 index 76e746149f59..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/message_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Message(Model): - """Supplementary contextual messages during a rollout. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar time_stamp: Time in UTC this message was provided. - :vartype time_stamp: datetime - :ivar message: The actual message text. - :vartype message: str - """ - - _validation = { - 'time_stamp': {'readonly': True}, - 'message': {'readonly': True}, - } - - _attribute_map = { - 'time_stamp': {'key': 'timeStamp', 'type': 'iso-8601'}, - 'message': {'key': 'message', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(Message, self).__init__(**kwargs) - self.time_stamp = None - self.message = None diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/operation.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/operation.py deleted file mode 100644 index 2b45906d1d79..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/operation.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Operation(Model): - """Represents an operation that can be performed on the service. - - :param name: The name of the operation. - :type name: str - :param display: The display name of the operation. - :type display: ~azure.mgmt.deploymentmanager.models.OperationDetail - :param origin: The origin of the operation. - :type origin: str - :param properties: The properties of the operation. - :type properties: object - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDetail'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - } - - def __init__(self, **kwargs): - super(Operation, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.display = kwargs.get('display', None) - self.origin = kwargs.get('origin', None) - self.properties = kwargs.get('properties', None) diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/operation_detail.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/operation_detail.py deleted file mode 100644 index 4c6709406783..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/operation_detail.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationDetail(Model): - """The detail about an operation. - - :param provider: The name of the provider that supports the operation. - :type provider: str - :param resource: The resource type on which this operation can be - performed. - :type resource: str - :param operation: The name of the operation. - :type operation: str - :param description: The description of the operation. - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(OperationDetail, self).__init__(**kwargs) - self.provider = kwargs.get('provider', None) - self.resource = kwargs.get('resource', None) - self.operation = kwargs.get('operation', None) - self.description = kwargs.get('description', None) diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/operation_detail_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/operation_detail_py3.py deleted file mode 100644 index de8a38c27fc4..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/operation_detail_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class OperationDetail(Model): - """The detail about an operation. - - :param provider: The name of the provider that supports the operation. - :type provider: str - :param resource: The resource type on which this operation can be - performed. - :type resource: str - :param operation: The name of the operation. - :type operation: str - :param description: The description of the operation. - :type description: str - """ - - _attribute_map = { - 'provider': {'key': 'provider', 'type': 'str'}, - 'resource': {'key': 'resource', 'type': 'str'}, - 'operation': {'key': 'operation', 'type': 'str'}, - 'description': {'key': 'description', 'type': 'str'}, - } - - def __init__(self, *, provider: str=None, resource: str=None, operation: str=None, description: str=None, **kwargs) -> None: - super(OperationDetail, self).__init__(**kwargs) - self.provider = provider - self.resource = resource - self.operation = operation - self.description = description diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/operation_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/operation_py3.py deleted file mode 100644 index 695126102e0b..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/operation_py3.py +++ /dev/null @@ -1,40 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Operation(Model): - """Represents an operation that can be performed on the service. - - :param name: The name of the operation. - :type name: str - :param display: The display name of the operation. - :type display: ~azure.mgmt.deploymentmanager.models.OperationDetail - :param origin: The origin of the operation. - :type origin: str - :param properties: The properties of the operation. - :type properties: object - """ - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'OperationDetail'}, - 'origin': {'key': 'origin', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'object'}, - } - - def __init__(self, *, name: str=None, display=None, origin: str=None, properties=None, **kwargs) -> None: - super(Operation, self).__init__(**kwargs) - self.name = name - self.display = display - self.origin = origin - self.properties = properties diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/pre_post_step.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/pre_post_step.py deleted file mode 100644 index 6fed8a1c9fe1..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/pre_post_step.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PrePostStep(Model): - """The properties that define a step. - - All required parameters must be populated in order to send to Azure. - - :param step_id: Required. The resource Id of the step to be run. - :type step_id: str - """ - - _validation = { - 'step_id': {'required': True}, - } - - _attribute_map = { - 'step_id': {'key': 'stepId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(PrePostStep, self).__init__(**kwargs) - self.step_id = kwargs.get('step_id', None) diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/pre_post_step_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/pre_post_step_py3.py deleted file mode 100644 index 33bb9c3bf23a..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/pre_post_step_py3.py +++ /dev/null @@ -1,34 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class PrePostStep(Model): - """The properties that define a step. - - All required parameters must be populated in order to send to Azure. - - :param step_id: Required. The resource Id of the step to be run. - :type step_id: str - """ - - _validation = { - 'step_id': {'required': True}, - } - - _attribute_map = { - 'step_id': {'key': 'stepId', 'type': 'str'}, - } - - def __init__(self, *, step_id: str, **kwargs) -> None: - super(PrePostStep, self).__init__(**kwargs) - self.step_id = step_id diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/proxy_resource.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/proxy_resource.py deleted file mode 100644 index 0de8fb6bd420..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/proxy_resource.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have - everything other than required location and tags. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ProxyResource, self).__init__(**kwargs) diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/proxy_resource_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/proxy_resource_py3.py deleted file mode 100644 index 2e8391f912d6..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/proxy_resource_py3.py +++ /dev/null @@ -1,45 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have - everything other than required location and tags. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(ProxyResource, self).__init__(**kwargs) diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/resource.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/resource.py deleted file mode 100644 index 9333a2ac49ef..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/resource.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/resource_operation.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/resource_operation.py deleted file mode 100644 index e523f71297b5..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/resource_operation.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceOperation(Model): - """Individual resource operation information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param resource_name: Name of the resource as specified in the artifacts. - For ARM resources, this is the name of the resource specified in the - template. - :type resource_name: str - :ivar operation_id: Unique identifier of the operation. For ARM resources, - this is the operationId obtained from ARM service. - :vartype operation_id: str - :param resource_type: Type of the resource as specified in the artifacts. - For ARM resources, this is the type of the resource specified in the - template. - :type resource_type: str - :ivar provisioning_state: State of the resource deployment. For ARM - resources, this is the current provisioning state of the resource. - :vartype provisioning_state: str - :ivar status_message: Descriptive information of the resource operation. - :vartype status_message: str - :ivar status_code: Http status code of the operation. - :vartype status_code: str - """ - - _validation = { - 'operation_id': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'status_message': {'readonly': True}, - 'status_code': {'readonly': True}, - } - - _attribute_map = { - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - 'operation_id': {'key': 'operationId', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, - 'status_code': {'key': 'statusCode', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ResourceOperation, self).__init__(**kwargs) - self.resource_name = kwargs.get('resource_name', None) - self.operation_id = None - self.resource_type = kwargs.get('resource_type', None) - self.provisioning_state = None - self.status_message = None - self.status_code = None diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/resource_operation_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/resource_operation_py3.py deleted file mode 100644 index 6be4f5bb7011..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/resource_operation_py3.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ResourceOperation(Model): - """Individual resource operation information. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :param resource_name: Name of the resource as specified in the artifacts. - For ARM resources, this is the name of the resource specified in the - template. - :type resource_name: str - :ivar operation_id: Unique identifier of the operation. For ARM resources, - this is the operationId obtained from ARM service. - :vartype operation_id: str - :param resource_type: Type of the resource as specified in the artifacts. - For ARM resources, this is the type of the resource specified in the - template. - :type resource_type: str - :ivar provisioning_state: State of the resource deployment. For ARM - resources, this is the current provisioning state of the resource. - :vartype provisioning_state: str - :ivar status_message: Descriptive information of the resource operation. - :vartype status_message: str - :ivar status_code: Http status code of the operation. - :vartype status_code: str - """ - - _validation = { - 'operation_id': {'readonly': True}, - 'provisioning_state': {'readonly': True}, - 'status_message': {'readonly': True}, - 'status_code': {'readonly': True}, - } - - _attribute_map = { - 'resource_name': {'key': 'resourceName', 'type': 'str'}, - 'operation_id': {'key': 'operationId', 'type': 'str'}, - 'resource_type': {'key': 'resourceType', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, - 'status_message': {'key': 'statusMessage', 'type': 'str'}, - 'status_code': {'key': 'statusCode', 'type': 'str'}, - } - - def __init__(self, *, resource_name: str=None, resource_type: str=None, **kwargs) -> None: - super(ResourceOperation, self).__init__(**kwargs) - self.resource_name = resource_name - self.operation_id = None - self.resource_type = resource_type - self.provisioning_state = None - self.status_message = None - self.status_code = None diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/resource_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/resource_py3.py deleted file mode 100644 index 370e6c506581..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/resource_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Resource(Model): - """Resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - :vartype type: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - } - - def __init__(self, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) - self.id = None - self.name = None - self.type = None diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout.py deleted file mode 100644 index e9f691564816..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .tracked_resource import TrackedResource - - -class Rollout(TrackedResource): - """Defines the rollout. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - :param identity: Identity for the resource. - :type identity: ~azure.mgmt.deploymentmanager.models.Identity - :param build_version: Required. The version of the build being deployed. - :type build_version: str - :param artifact_source_id: The reference to the artifact source resource - Id where the payload is located. - :type artifact_source_id: str - :param target_service_topology_id: Required. The resource Id of the - service topology from which service units are being referenced in step - groups to be deployed. - :type target_service_topology_id: str - :param step_groups: Required. The list of step groups that define the - orchestration. - :type step_groups: list[~azure.mgmt.deploymentmanager.models.Step] - :ivar status: The current status of the rollout. - :vartype status: str - :ivar total_retry_attempts: The cardinal count of total number of retries - performed on the rollout at a given time. - :vartype total_retry_attempts: int - :ivar operation_info: Operational information of the rollout. - :vartype operation_info: - ~azure.mgmt.deploymentmanager.models.RolloutOperationInfo - :ivar services: The detailed information on the services being deployed. - :vartype services: list[~azure.mgmt.deploymentmanager.models.Service] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'build_version': {'required': True}, - 'target_service_topology_id': {'required': True}, - 'step_groups': {'required': True}, - 'status': {'readonly': True}, - 'total_retry_attempts': {'readonly': True}, - 'operation_info': {'readonly': True}, - 'services': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'identity': {'key': 'identity', 'type': 'Identity'}, - 'build_version': {'key': 'properties.buildVersion', 'type': 'str'}, - 'artifact_source_id': {'key': 'properties.artifactSourceId', 'type': 'str'}, - 'target_service_topology_id': {'key': 'properties.targetServiceTopologyId', 'type': 'str'}, - 'step_groups': {'key': 'properties.stepGroups', 'type': '[Step]'}, - 'status': {'key': 'properties.status', 'type': 'str'}, - 'total_retry_attempts': {'key': 'properties.totalRetryAttempts', 'type': 'int'}, - 'operation_info': {'key': 'properties.operationInfo', 'type': 'RolloutOperationInfo'}, - 'services': {'key': 'properties.services', 'type': '[Service]'}, - } - - def __init__(self, **kwargs): - super(Rollout, self).__init__(**kwargs) - self.identity = kwargs.get('identity', None) - self.build_version = kwargs.get('build_version', None) - self.artifact_source_id = kwargs.get('artifact_source_id', None) - self.target_service_topology_id = kwargs.get('target_service_topology_id', None) - self.step_groups = kwargs.get('step_groups', None) - self.status = None - self.total_retry_attempts = None - self.operation_info = None - self.services = None diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_operation_info.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_operation_info.py deleted file mode 100644 index 91d2d3b538c3..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_operation_info.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RolloutOperationInfo(Model): - """Detailed runtime information of the rollout. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar retry_attempt: The ordinal count of the number of retry attempts on - a rollout. 0 if no retries of the rollout have been performed. If the - rollout is updated with a PUT, this count is reset to 0. - :vartype retry_attempt: int - :ivar skip_succeeded_on_retry: True, if all steps that succeeded on the - previous run/attempt were chosen to be skipped in this retry attempt. - False, otherwise. - :vartype skip_succeeded_on_retry: bool - :ivar start_time: The start time of the rollout in UTC. - :vartype start_time: datetime - :ivar end_time: The start time of the rollout in UTC. This property will - not be set if the rollout has not completed yet. - :vartype end_time: datetime - :ivar error: The detailed error information for any failure. - :vartype error: ~azure.mgmt.deploymentmanager.models.CloudErrorBody - """ - - _validation = { - 'retry_attempt': {'readonly': True}, - 'skip_succeeded_on_retry': {'readonly': True}, - 'start_time': {'readonly': True}, - 'end_time': {'readonly': True}, - 'error': {'readonly': True}, - } - - _attribute_map = { - 'retry_attempt': {'key': 'retryAttempt', 'type': 'int'}, - 'skip_succeeded_on_retry': {'key': 'skipSucceededOnRetry', 'type': 'bool'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'error': {'key': 'error', 'type': 'CloudErrorBody'}, - } - - def __init__(self, **kwargs): - super(RolloutOperationInfo, self).__init__(**kwargs) - self.retry_attempt = None - self.skip_succeeded_on_retry = None - self.start_time = None - self.end_time = None - self.error = None diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_operation_info_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_operation_info_py3.py deleted file mode 100644 index 9dd400e0d95a..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_operation_info_py3.py +++ /dev/null @@ -1,60 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RolloutOperationInfo(Model): - """Detailed runtime information of the rollout. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar retry_attempt: The ordinal count of the number of retry attempts on - a rollout. 0 if no retries of the rollout have been performed. If the - rollout is updated with a PUT, this count is reset to 0. - :vartype retry_attempt: int - :ivar skip_succeeded_on_retry: True, if all steps that succeeded on the - previous run/attempt were chosen to be skipped in this retry attempt. - False, otherwise. - :vartype skip_succeeded_on_retry: bool - :ivar start_time: The start time of the rollout in UTC. - :vartype start_time: datetime - :ivar end_time: The start time of the rollout in UTC. This property will - not be set if the rollout has not completed yet. - :vartype end_time: datetime - :ivar error: The detailed error information for any failure. - :vartype error: ~azure.mgmt.deploymentmanager.models.CloudErrorBody - """ - - _validation = { - 'retry_attempt': {'readonly': True}, - 'skip_succeeded_on_retry': {'readonly': True}, - 'start_time': {'readonly': True}, - 'end_time': {'readonly': True}, - 'error': {'readonly': True}, - } - - _attribute_map = { - 'retry_attempt': {'key': 'retryAttempt', 'type': 'int'}, - 'skip_succeeded_on_retry': {'key': 'skipSucceededOnRetry', 'type': 'bool'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'error': {'key': 'error', 'type': 'CloudErrorBody'}, - } - - def __init__(self, **kwargs) -> None: - super(RolloutOperationInfo, self).__init__(**kwargs) - self.retry_attempt = None - self.skip_succeeded_on_retry = None - self.start_time = None - self.end_time = None - self.error = None diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_properties_model.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_properties_model.py deleted file mode 100644 index 50dacf5fc2ca..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_properties_model.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RolloutPropertiesModel(Model): - """Defines the properties of a rollout. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar status: The current status of the rollout. - :vartype status: str - :ivar total_retry_attempts: The cardinal count of total number of retries - performed on the rollout at a given time. - :vartype total_retry_attempts: int - :ivar operation_info: Operational information of the rollout. - :vartype operation_info: - ~azure.mgmt.deploymentmanager.models.RolloutOperationInfo - :ivar services: The detailed information on the services being deployed. - :vartype services: list[~azure.mgmt.deploymentmanager.models.Service] - """ - - _validation = { - 'status': {'readonly': True}, - 'total_retry_attempts': {'readonly': True}, - 'operation_info': {'readonly': True}, - 'services': {'readonly': True}, - } - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'total_retry_attempts': {'key': 'totalRetryAttempts', 'type': 'int'}, - 'operation_info': {'key': 'operationInfo', 'type': 'RolloutOperationInfo'}, - 'services': {'key': 'services', 'type': '[Service]'}, - } - - def __init__(self, **kwargs): - super(RolloutPropertiesModel, self).__init__(**kwargs) - self.status = None - self.total_retry_attempts = None - self.operation_info = None - self.services = None diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_properties_model_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_properties_model_py3.py deleted file mode 100644 index 3ba0d1a7fa72..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_properties_model_py3.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RolloutPropertiesModel(Model): - """Defines the properties of a rollout. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar status: The current status of the rollout. - :vartype status: str - :ivar total_retry_attempts: The cardinal count of total number of retries - performed on the rollout at a given time. - :vartype total_retry_attempts: int - :ivar operation_info: Operational information of the rollout. - :vartype operation_info: - ~azure.mgmt.deploymentmanager.models.RolloutOperationInfo - :ivar services: The detailed information on the services being deployed. - :vartype services: list[~azure.mgmt.deploymentmanager.models.Service] - """ - - _validation = { - 'status': {'readonly': True}, - 'total_retry_attempts': {'readonly': True}, - 'operation_info': {'readonly': True}, - 'services': {'readonly': True}, - } - - _attribute_map = { - 'status': {'key': 'status', 'type': 'str'}, - 'total_retry_attempts': {'key': 'totalRetryAttempts', 'type': 'int'}, - 'operation_info': {'key': 'operationInfo', 'type': 'RolloutOperationInfo'}, - 'services': {'key': 'services', 'type': '[Service]'}, - } - - def __init__(self, **kwargs) -> None: - super(RolloutPropertiesModel, self).__init__(**kwargs) - self.status = None - self.total_retry_attempts = None - self.operation_info = None - self.services = None diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_py3.py deleted file mode 100644 index 23e63e184112..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_py3.py +++ /dev/null @@ -1,102 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .tracked_resource_py3 import TrackedResource - - -class Rollout(TrackedResource): - """Defines the rollout. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - :param identity: Identity for the resource. - :type identity: ~azure.mgmt.deploymentmanager.models.Identity - :param build_version: Required. The version of the build being deployed. - :type build_version: str - :param artifact_source_id: The reference to the artifact source resource - Id where the payload is located. - :type artifact_source_id: str - :param target_service_topology_id: Required. The resource Id of the - service topology from which service units are being referenced in step - groups to be deployed. - :type target_service_topology_id: str - :param step_groups: Required. The list of step groups that define the - orchestration. - :type step_groups: list[~azure.mgmt.deploymentmanager.models.Step] - :ivar status: The current status of the rollout. - :vartype status: str - :ivar total_retry_attempts: The cardinal count of total number of retries - performed on the rollout at a given time. - :vartype total_retry_attempts: int - :ivar operation_info: Operational information of the rollout. - :vartype operation_info: - ~azure.mgmt.deploymentmanager.models.RolloutOperationInfo - :ivar services: The detailed information on the services being deployed. - :vartype services: list[~azure.mgmt.deploymentmanager.models.Service] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'build_version': {'required': True}, - 'target_service_topology_id': {'required': True}, - 'step_groups': {'required': True}, - 'status': {'readonly': True}, - 'total_retry_attempts': {'readonly': True}, - 'operation_info': {'readonly': True}, - 'services': {'readonly': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'identity': {'key': 'identity', 'type': 'Identity'}, - 'build_version': {'key': 'properties.buildVersion', 'type': 'str'}, - 'artifact_source_id': {'key': 'properties.artifactSourceId', 'type': 'str'}, - 'target_service_topology_id': {'key': 'properties.targetServiceTopologyId', 'type': 'str'}, - 'step_groups': {'key': 'properties.stepGroups', 'type': '[Step]'}, - 'status': {'key': 'properties.status', 'type': 'str'}, - 'total_retry_attempts': {'key': 'properties.totalRetryAttempts', 'type': 'int'}, - 'operation_info': {'key': 'properties.operationInfo', 'type': 'RolloutOperationInfo'}, - 'services': {'key': 'properties.services', 'type': '[Service]'}, - } - - def __init__(self, *, location: str, build_version: str, target_service_topology_id: str, step_groups, tags=None, identity=None, artifact_source_id: str=None, **kwargs) -> None: - super(Rollout, self).__init__(tags=tags, location=location, **kwargs) - self.identity = identity - self.build_version = build_version - self.artifact_source_id = artifact_source_id - self.target_service_topology_id = target_service_topology_id - self.step_groups = step_groups - self.status = None - self.total_retry_attempts = None - self.operation_info = None - self.services = None diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_request.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_request.py deleted file mode 100644 index 78588600ba34..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_request.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .tracked_resource import TrackedResource - - -class RolloutRequest(TrackedResource): - """Defines the PUT rollout request body. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - :param identity: Required. Identity for the resource. - :type identity: ~azure.mgmt.deploymentmanager.models.Identity - :param build_version: Required. The version of the build being deployed. - :type build_version: str - :param artifact_source_id: The reference to the artifact source resource - Id where the payload is located. - :type artifact_source_id: str - :param target_service_topology_id: Required. The resource Id of the - service topology from which service units are being referenced in step - groups to be deployed. - :type target_service_topology_id: str - :param step_groups: Required. The list of step groups that define the - orchestration. - :type step_groups: list[~azure.mgmt.deploymentmanager.models.Step] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'identity': {'required': True}, - 'build_version': {'required': True}, - 'target_service_topology_id': {'required': True}, - 'step_groups': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'identity': {'key': 'identity', 'type': 'Identity'}, - 'build_version': {'key': 'properties.buildVersion', 'type': 'str'}, - 'artifact_source_id': {'key': 'properties.artifactSourceId', 'type': 'str'}, - 'target_service_topology_id': {'key': 'properties.targetServiceTopologyId', 'type': 'str'}, - 'step_groups': {'key': 'properties.stepGroups', 'type': '[Step]'}, - } - - def __init__(self, **kwargs): - super(RolloutRequest, self).__init__(**kwargs) - self.identity = kwargs.get('identity', None) - self.build_version = kwargs.get('build_version', None) - self.artifact_source_id = kwargs.get('artifact_source_id', None) - self.target_service_topology_id = kwargs.get('target_service_topology_id', None) - self.step_groups = kwargs.get('step_groups', None) diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_request_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_request_py3.py deleted file mode 100644 index f2f73a5ab7e6..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_request_py3.py +++ /dev/null @@ -1,81 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .tracked_resource_py3 import TrackedResource - - -class RolloutRequest(TrackedResource): - """Defines the PUT rollout request body. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - :param identity: Required. Identity for the resource. - :type identity: ~azure.mgmt.deploymentmanager.models.Identity - :param build_version: Required. The version of the build being deployed. - :type build_version: str - :param artifact_source_id: The reference to the artifact source resource - Id where the payload is located. - :type artifact_source_id: str - :param target_service_topology_id: Required. The resource Id of the - service topology from which service units are being referenced in step - groups to be deployed. - :type target_service_topology_id: str - :param step_groups: Required. The list of step groups that define the - orchestration. - :type step_groups: list[~azure.mgmt.deploymentmanager.models.Step] - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'identity': {'required': True}, - 'build_version': {'required': True}, - 'target_service_topology_id': {'required': True}, - 'step_groups': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'identity': {'key': 'identity', 'type': 'Identity'}, - 'build_version': {'key': 'properties.buildVersion', 'type': 'str'}, - 'artifact_source_id': {'key': 'properties.artifactSourceId', 'type': 'str'}, - 'target_service_topology_id': {'key': 'properties.targetServiceTopologyId', 'type': 'str'}, - 'step_groups': {'key': 'properties.stepGroups', 'type': '[Step]'}, - } - - def __init__(self, *, location: str, identity, build_version: str, target_service_topology_id: str, step_groups, tags=None, artifact_source_id: str=None, **kwargs) -> None: - super(RolloutRequest, self).__init__(tags=tags, location=location, **kwargs) - self.identity = identity - self.build_version = build_version - self.artifact_source_id = artifact_source_id - self.target_service_topology_id = target_service_topology_id - self.step_groups = step_groups diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_step.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_step.py deleted file mode 100644 index 6201f4beb5ba..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_step.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RolloutStep(Model): - """Defines a specific step on a target service unit. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. Name of the step. - :type name: str - :ivar status: Current state of the step. - :vartype status: str - :param step_group: The step group the current step is part of. - :type step_group: str - :ivar operation_info: Detailed information of specific action execution. - :vartype operation_info: - ~azure.mgmt.deploymentmanager.models.StepOperationInfo - :ivar resource_operations: Set of resource operations that were performed, - if any, on an Azure resource. - :vartype resource_operations: - list[~azure.mgmt.deploymentmanager.models.ResourceOperation] - :ivar messages: Supplementary informative messages during rollout. - :vartype messages: list[~azure.mgmt.deploymentmanager.models.Message] - """ - - _validation = { - 'name': {'required': True}, - 'status': {'readonly': True}, - 'operation_info': {'readonly': True}, - 'resource_operations': {'readonly': True}, - 'messages': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'step_group': {'key': 'stepGroup', 'type': 'str'}, - 'operation_info': {'key': 'operationInfo', 'type': 'StepOperationInfo'}, - 'resource_operations': {'key': 'resourceOperations', 'type': '[ResourceOperation]'}, - 'messages': {'key': 'messages', 'type': '[Message]'}, - } - - def __init__(self, **kwargs): - super(RolloutStep, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.status = None - self.step_group = kwargs.get('step_group', None) - self.operation_info = None - self.resource_operations = None - self.messages = None diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_step_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_step_py3.py deleted file mode 100644 index 2ce0f2807c92..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/rollout_step_py3.py +++ /dev/null @@ -1,64 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class RolloutStep(Model): - """Defines a specific step on a target service unit. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. Name of the step. - :type name: str - :ivar status: Current state of the step. - :vartype status: str - :param step_group: The step group the current step is part of. - :type step_group: str - :ivar operation_info: Detailed information of specific action execution. - :vartype operation_info: - ~azure.mgmt.deploymentmanager.models.StepOperationInfo - :ivar resource_operations: Set of resource operations that were performed, - if any, on an Azure resource. - :vartype resource_operations: - list[~azure.mgmt.deploymentmanager.models.ResourceOperation] - :ivar messages: Supplementary informative messages during rollout. - :vartype messages: list[~azure.mgmt.deploymentmanager.models.Message] - """ - - _validation = { - 'name': {'required': True}, - 'status': {'readonly': True}, - 'operation_info': {'readonly': True}, - 'resource_operations': {'readonly': True}, - 'messages': {'readonly': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'status': {'key': 'status', 'type': 'str'}, - 'step_group': {'key': 'stepGroup', 'type': 'str'}, - 'operation_info': {'key': 'operationInfo', 'type': 'StepOperationInfo'}, - 'resource_operations': {'key': 'resourceOperations', 'type': '[ResourceOperation]'}, - 'messages': {'key': 'messages', 'type': '[Message]'}, - } - - def __init__(self, *, name: str, step_group: str=None, **kwargs) -> None: - super(RolloutStep, self).__init__(**kwargs) - self.name = name - self.status = None - self.step_group = step_group - self.operation_info = None - self.resource_operations = None - self.messages = None diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/sas_authentication.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/sas_authentication.py deleted file mode 100644 index 4901ca0a0297..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/sas_authentication.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .authentication import Authentication - - -class SasAuthentication(Authentication): - """Defines the properties to access the artifacts using an Azure Storage SAS - URI. - - All required parameters must be populated in order to send to Azure. - - :param type: Required. Constant filled by server. - :type type: str - :param sas_uri: Required. The SAS URI to the Azure Storage blob container. - Any offset from the root of the container to where the artifacts are - located can be defined in the artifactRoot. - :type sas_uri: str - """ - - _validation = { - 'type': {'required': True}, - 'sas_uri': {'required': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'sas_uri': {'key': 'properties.sasUri', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(SasAuthentication, self).__init__(**kwargs) - self.sas_uri = kwargs.get('sas_uri', None) - self.type = 'Sas' diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/sas_authentication_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/sas_authentication_py3.py deleted file mode 100644 index 450369cc1574..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/sas_authentication_py3.py +++ /dev/null @@ -1,42 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .authentication_py3 import Authentication - - -class SasAuthentication(Authentication): - """Defines the properties to access the artifacts using an Azure Storage SAS - URI. - - All required parameters must be populated in order to send to Azure. - - :param type: Required. Constant filled by server. - :type type: str - :param sas_uri: Required. The SAS URI to the Azure Storage blob container. - Any offset from the root of the container to where the artifacts are - located can be defined in the artifactRoot. - :type sas_uri: str - """ - - _validation = { - 'type': {'required': True}, - 'sas_uri': {'required': True}, - } - - _attribute_map = { - 'type': {'key': 'type', 'type': 'str'}, - 'sas_uri': {'key': 'properties.sasUri', 'type': 'str'}, - } - - def __init__(self, *, sas_uri: str, **kwargs) -> None: - super(SasAuthentication, self).__init__(**kwargs) - self.sas_uri = sas_uri - self.type = 'Sas' diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service.py deleted file mode 100644 index 9e4b37b21344..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .service_properties import ServiceProperties - - -class Service(ServiceProperties): - """Defines a service. - - All required parameters must be populated in order to send to Azure. - - :param target_location: Required. The Azure location to which the - resources in the service belong to or should be deployed to. - :type target_location: str - :param target_subscription_id: Required. The subscription to which the - resources in the service belong to or should be deployed to. - :type target_subscription_id: str - :param name: Name of the service. - :type name: str - :param service_units: The detailed information about the units that make - up the service. - :type service_units: - list[~azure.mgmt.deploymentmanager.models.ServiceUnit] - """ - - _validation = { - 'target_location': {'required': True}, - 'target_subscription_id': {'required': True}, - } - - _attribute_map = { - 'target_location': {'key': 'targetLocation', 'type': 'str'}, - 'target_subscription_id': {'key': 'targetSubscriptionId', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'service_units': {'key': 'serviceUnits', 'type': '[ServiceUnit]'}, - } - - def __init__(self, **kwargs): - super(Service, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.service_units = kwargs.get('service_units', None) diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_properties.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_properties.py deleted file mode 100644 index 68528981e030..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_properties.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ServiceProperties(Model): - """The properties of a service. - - All required parameters must be populated in order to send to Azure. - - :param target_location: Required. The Azure location to which the - resources in the service belong to or should be deployed to. - :type target_location: str - :param target_subscription_id: Required. The subscription to which the - resources in the service belong to or should be deployed to. - :type target_subscription_id: str - """ - - _validation = { - 'target_location': {'required': True}, - 'target_subscription_id': {'required': True}, - } - - _attribute_map = { - 'target_location': {'key': 'targetLocation', 'type': 'str'}, - 'target_subscription_id': {'key': 'targetSubscriptionId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ServiceProperties, self).__init__(**kwargs) - self.target_location = kwargs.get('target_location', None) - self.target_subscription_id = kwargs.get('target_subscription_id', None) diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_properties_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_properties_py3.py deleted file mode 100644 index 0abfc872cd7d..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_properties_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ServiceProperties(Model): - """The properties of a service. - - All required parameters must be populated in order to send to Azure. - - :param target_location: Required. The Azure location to which the - resources in the service belong to or should be deployed to. - :type target_location: str - :param target_subscription_id: Required. The subscription to which the - resources in the service belong to or should be deployed to. - :type target_subscription_id: str - """ - - _validation = { - 'target_location': {'required': True}, - 'target_subscription_id': {'required': True}, - } - - _attribute_map = { - 'target_location': {'key': 'targetLocation', 'type': 'str'}, - 'target_subscription_id': {'key': 'targetSubscriptionId', 'type': 'str'}, - } - - def __init__(self, *, target_location: str, target_subscription_id: str, **kwargs) -> None: - super(ServiceProperties, self).__init__(**kwargs) - self.target_location = target_location - self.target_subscription_id = target_subscription_id diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_py3.py deleted file mode 100644 index 8747205e5bd4..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_py3.py +++ /dev/null @@ -1,49 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .service_properties_py3 import ServiceProperties - - -class Service(ServiceProperties): - """Defines a service. - - All required parameters must be populated in order to send to Azure. - - :param target_location: Required. The Azure location to which the - resources in the service belong to or should be deployed to. - :type target_location: str - :param target_subscription_id: Required. The subscription to which the - resources in the service belong to or should be deployed to. - :type target_subscription_id: str - :param name: Name of the service. - :type name: str - :param service_units: The detailed information about the units that make - up the service. - :type service_units: - list[~azure.mgmt.deploymentmanager.models.ServiceUnit] - """ - - _validation = { - 'target_location': {'required': True}, - 'target_subscription_id': {'required': True}, - } - - _attribute_map = { - 'target_location': {'key': 'targetLocation', 'type': 'str'}, - 'target_subscription_id': {'key': 'targetSubscriptionId', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'service_units': {'key': 'serviceUnits', 'type': '[ServiceUnit]'}, - } - - def __init__(self, *, target_location: str, target_subscription_id: str, name: str=None, service_units=None, **kwargs) -> None: - super(Service, self).__init__(target_location=target_location, target_subscription_id=target_subscription_id, **kwargs) - self.name = name - self.service_units = service_units diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_resource.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_resource.py deleted file mode 100644 index db530c7e4ddc..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_resource.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .tracked_resource import TrackedResource - - -class ServiceResource(TrackedResource): - """The resource representation of a service in a service topology. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - :param target_location: Required. The Azure location to which the - resources in the service belong to or should be deployed to. - :type target_location: str - :param target_subscription_id: Required. The subscription to which the - resources in the service belong to or should be deployed to. - :type target_subscription_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'target_location': {'required': True}, - 'target_subscription_id': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'target_location': {'key': 'properties.targetLocation', 'type': 'str'}, - 'target_subscription_id': {'key': 'properties.targetSubscriptionId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ServiceResource, self).__init__(**kwargs) - self.target_location = kwargs.get('target_location', None) - self.target_subscription_id = kwargs.get('target_subscription_id', None) diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_resource_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_resource_py3.py deleted file mode 100644 index 35f0193e405b..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_resource_py3.py +++ /dev/null @@ -1,65 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .tracked_resource_py3 import TrackedResource - - -class ServiceResource(TrackedResource): - """The resource representation of a service in a service topology. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - :param target_location: Required. The Azure location to which the - resources in the service belong to or should be deployed to. - :type target_location: str - :param target_subscription_id: Required. The subscription to which the - resources in the service belong to or should be deployed to. - :type target_subscription_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'target_location': {'required': True}, - 'target_subscription_id': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'target_location': {'key': 'properties.targetLocation', 'type': 'str'}, - 'target_subscription_id': {'key': 'properties.targetSubscriptionId', 'type': 'str'}, - } - - def __init__(self, *, location: str, target_location: str, target_subscription_id: str, tags=None, **kwargs) -> None: - super(ServiceResource, self).__init__(tags=tags, location=location, **kwargs) - self.target_location = target_location - self.target_subscription_id = target_subscription_id diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_topology_properties.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_topology_properties.py deleted file mode 100644 index 88da92173426..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_topology_properties.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ServiceTopologyProperties(Model): - """The properties of a service topology. - - :param artifact_source_id: The resource Id of the artifact source that - contains the artifacts that can be referenced in the service units. - :type artifact_source_id: str - """ - - _attribute_map = { - 'artifact_source_id': {'key': 'artifactSourceId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ServiceTopologyProperties, self).__init__(**kwargs) - self.artifact_source_id = kwargs.get('artifact_source_id', None) diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_topology_properties_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_topology_properties_py3.py deleted file mode 100644 index 49a5bfd03a38..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_topology_properties_py3.py +++ /dev/null @@ -1,29 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ServiceTopologyProperties(Model): - """The properties of a service topology. - - :param artifact_source_id: The resource Id of the artifact source that - contains the artifacts that can be referenced in the service units. - :type artifact_source_id: str - """ - - _attribute_map = { - 'artifact_source_id': {'key': 'artifactSourceId', 'type': 'str'}, - } - - def __init__(self, *, artifact_source_id: str=None, **kwargs) -> None: - super(ServiceTopologyProperties, self).__init__(**kwargs) - self.artifact_source_id = artifact_source_id diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_topology_resource.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_topology_resource.py deleted file mode 100644 index c19d1f94e90e..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_topology_resource.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .tracked_resource import TrackedResource - - -class ServiceTopologyResource(TrackedResource): - """The resource representation of a service topology. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - :param artifact_source_id: The resource Id of the artifact source that - contains the artifacts that can be referenced in the service units. - :type artifact_source_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'artifact_source_id': {'key': 'properties.artifactSourceId', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ServiceTopologyResource, self).__init__(**kwargs) - self.artifact_source_id = kwargs.get('artifact_source_id', None) diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_topology_resource_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_topology_resource_py3.py deleted file mode 100644 index c73cc620ccfa..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_topology_resource_py3.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .tracked_resource_py3 import TrackedResource - - -class ServiceTopologyResource(TrackedResource): - """The resource representation of a service topology. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - :param artifact_source_id: The resource Id of the artifact source that - contains the artifacts that can be referenced in the service units. - :type artifact_source_id: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'artifact_source_id': {'key': 'properties.artifactSourceId', 'type': 'str'}, - } - - def __init__(self, *, location: str, tags=None, artifact_source_id: str=None, **kwargs) -> None: - super(ServiceTopologyResource, self).__init__(tags=tags, location=location, **kwargs) - self.artifact_source_id = artifact_source_id diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_unit.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_unit.py deleted file mode 100644 index d180b1f4ec18..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_unit.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .service_unit_properties import ServiceUnitProperties - - -class ServiceUnit(ServiceUnitProperties): - """Defines a service unit. - - All required parameters must be populated in order to send to Azure. - - :param target_resource_group: Required. The Azure Resource Group to which - the resources in the service unit belong to or should be deployed to. - :type target_resource_group: str - :param deployment_mode: Required. Describes the type of ARM deployment to - be performed on the resource. Possible values include: 'Incremental', - 'Complete' - :type deployment_mode: str or - ~azure.mgmt.deploymentmanager.models.DeploymentMode - :param artifacts: The artifacts for the service unit. - :type artifacts: ~azure.mgmt.deploymentmanager.models.ServiceUnitArtifacts - :param name: Name of the service unit. - :type name: str - :param steps: Detailed step information, if present. - :type steps: list[~azure.mgmt.deploymentmanager.models.RolloutStep] - """ - - _validation = { - 'target_resource_group': {'required': True}, - 'deployment_mode': {'required': True}, - } - - _attribute_map = { - 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, - 'deployment_mode': {'key': 'deploymentMode', 'type': 'DeploymentMode'}, - 'artifacts': {'key': 'artifacts', 'type': 'ServiceUnitArtifacts'}, - 'name': {'key': 'name', 'type': 'str'}, - 'steps': {'key': 'steps', 'type': '[RolloutStep]'}, - } - - def __init__(self, **kwargs): - super(ServiceUnit, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.steps = kwargs.get('steps', None) diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_unit_artifacts.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_unit_artifacts.py deleted file mode 100644 index bbde075fc51f..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_unit_artifacts.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ServiceUnitArtifacts(Model): - """Defines the artifacts of a service unit. - - :param template_uri: The full URI of the ARM template file with the SAS - token. - :type template_uri: str - :param parameters_uri: The full URI of the ARM parameters file with the - SAS token. - :type parameters_uri: str - :param template_artifact_source_relative_path: The path to the ARM - template file relative to the artifact source. - :type template_artifact_source_relative_path: str - :param parameters_artifact_source_relative_path: The path to the ARM - parameters file relative to the artifact source. - :type parameters_artifact_source_relative_path: str - """ - - _attribute_map = { - 'template_uri': {'key': 'templateUri', 'type': 'str'}, - 'parameters_uri': {'key': 'parametersUri', 'type': 'str'}, - 'template_artifact_source_relative_path': {'key': 'templateArtifactSourceRelativePath', 'type': 'str'}, - 'parameters_artifact_source_relative_path': {'key': 'parametersArtifactSourceRelativePath', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(ServiceUnitArtifacts, self).__init__(**kwargs) - self.template_uri = kwargs.get('template_uri', None) - self.parameters_uri = kwargs.get('parameters_uri', None) - self.template_artifact_source_relative_path = kwargs.get('template_artifact_source_relative_path', None) - self.parameters_artifact_source_relative_path = kwargs.get('parameters_artifact_source_relative_path', None) diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_unit_artifacts_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_unit_artifacts_py3.py deleted file mode 100644 index 9ba6f3efeb9a..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_unit_artifacts_py3.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ServiceUnitArtifacts(Model): - """Defines the artifacts of a service unit. - - :param template_uri: The full URI of the ARM template file with the SAS - token. - :type template_uri: str - :param parameters_uri: The full URI of the ARM parameters file with the - SAS token. - :type parameters_uri: str - :param template_artifact_source_relative_path: The path to the ARM - template file relative to the artifact source. - :type template_artifact_source_relative_path: str - :param parameters_artifact_source_relative_path: The path to the ARM - parameters file relative to the artifact source. - :type parameters_artifact_source_relative_path: str - """ - - _attribute_map = { - 'template_uri': {'key': 'templateUri', 'type': 'str'}, - 'parameters_uri': {'key': 'parametersUri', 'type': 'str'}, - 'template_artifact_source_relative_path': {'key': 'templateArtifactSourceRelativePath', 'type': 'str'}, - 'parameters_artifact_source_relative_path': {'key': 'parametersArtifactSourceRelativePath', 'type': 'str'}, - } - - def __init__(self, *, template_uri: str=None, parameters_uri: str=None, template_artifact_source_relative_path: str=None, parameters_artifact_source_relative_path: str=None, **kwargs) -> None: - super(ServiceUnitArtifacts, self).__init__(**kwargs) - self.template_uri = template_uri - self.parameters_uri = parameters_uri - self.template_artifact_source_relative_path = template_artifact_source_relative_path - self.parameters_artifact_source_relative_path = parameters_artifact_source_relative_path diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_unit_properties.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_unit_properties.py deleted file mode 100644 index 652cf0fac33c..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_unit_properties.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ServiceUnitProperties(Model): - """Defines the properties of a service unit. - - All required parameters must be populated in order to send to Azure. - - :param target_resource_group: Required. The Azure Resource Group to which - the resources in the service unit belong to or should be deployed to. - :type target_resource_group: str - :param deployment_mode: Required. Describes the type of ARM deployment to - be performed on the resource. Possible values include: 'Incremental', - 'Complete' - :type deployment_mode: str or - ~azure.mgmt.deploymentmanager.models.DeploymentMode - :param artifacts: The artifacts for the service unit. - :type artifacts: ~azure.mgmt.deploymentmanager.models.ServiceUnitArtifacts - """ - - _validation = { - 'target_resource_group': {'required': True}, - 'deployment_mode': {'required': True}, - } - - _attribute_map = { - 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, - 'deployment_mode': {'key': 'deploymentMode', 'type': 'DeploymentMode'}, - 'artifacts': {'key': 'artifacts', 'type': 'ServiceUnitArtifacts'}, - } - - def __init__(self, **kwargs): - super(ServiceUnitProperties, self).__init__(**kwargs) - self.target_resource_group = kwargs.get('target_resource_group', None) - self.deployment_mode = kwargs.get('deployment_mode', None) - self.artifacts = kwargs.get('artifacts', None) diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_unit_properties_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_unit_properties_py3.py deleted file mode 100644 index bdfbd4d6efa1..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_unit_properties_py3.py +++ /dev/null @@ -1,47 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class ServiceUnitProperties(Model): - """Defines the properties of a service unit. - - All required parameters must be populated in order to send to Azure. - - :param target_resource_group: Required. The Azure Resource Group to which - the resources in the service unit belong to or should be deployed to. - :type target_resource_group: str - :param deployment_mode: Required. Describes the type of ARM deployment to - be performed on the resource. Possible values include: 'Incremental', - 'Complete' - :type deployment_mode: str or - ~azure.mgmt.deploymentmanager.models.DeploymentMode - :param artifacts: The artifacts for the service unit. - :type artifacts: ~azure.mgmt.deploymentmanager.models.ServiceUnitArtifacts - """ - - _validation = { - 'target_resource_group': {'required': True}, - 'deployment_mode': {'required': True}, - } - - _attribute_map = { - 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, - 'deployment_mode': {'key': 'deploymentMode', 'type': 'DeploymentMode'}, - 'artifacts': {'key': 'artifacts', 'type': 'ServiceUnitArtifacts'}, - } - - def __init__(self, *, target_resource_group: str, deployment_mode, artifacts=None, **kwargs) -> None: - super(ServiceUnitProperties, self).__init__(**kwargs) - self.target_resource_group = target_resource_group - self.deployment_mode = deployment_mode - self.artifacts = artifacts diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_unit_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_unit_py3.py deleted file mode 100644 index 3d5852a53e06..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_unit_py3.py +++ /dev/null @@ -1,52 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .service_unit_properties_py3 import ServiceUnitProperties - - -class ServiceUnit(ServiceUnitProperties): - """Defines a service unit. - - All required parameters must be populated in order to send to Azure. - - :param target_resource_group: Required. The Azure Resource Group to which - the resources in the service unit belong to or should be deployed to. - :type target_resource_group: str - :param deployment_mode: Required. Describes the type of ARM deployment to - be performed on the resource. Possible values include: 'Incremental', - 'Complete' - :type deployment_mode: str or - ~azure.mgmt.deploymentmanager.models.DeploymentMode - :param artifacts: The artifacts for the service unit. - :type artifacts: ~azure.mgmt.deploymentmanager.models.ServiceUnitArtifacts - :param name: Name of the service unit. - :type name: str - :param steps: Detailed step information, if present. - :type steps: list[~azure.mgmt.deploymentmanager.models.RolloutStep] - """ - - _validation = { - 'target_resource_group': {'required': True}, - 'deployment_mode': {'required': True}, - } - - _attribute_map = { - 'target_resource_group': {'key': 'targetResourceGroup', 'type': 'str'}, - 'deployment_mode': {'key': 'deploymentMode', 'type': 'DeploymentMode'}, - 'artifacts': {'key': 'artifacts', 'type': 'ServiceUnitArtifacts'}, - 'name': {'key': 'name', 'type': 'str'}, - 'steps': {'key': 'steps', 'type': '[RolloutStep]'}, - } - - def __init__(self, *, target_resource_group: str, deployment_mode, artifacts=None, name: str=None, steps=None, **kwargs) -> None: - super(ServiceUnit, self).__init__(target_resource_group=target_resource_group, deployment_mode=deployment_mode, artifacts=artifacts, **kwargs) - self.name = name - self.steps = steps diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_unit_resource.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_unit_resource.py deleted file mode 100644 index 17a5b0fc3dd9..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_unit_resource.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .tracked_resource import TrackedResource - - -class ServiceUnitResource(TrackedResource): - """Represents the response of a service unit resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - :param target_resource_group: Required. The Azure Resource Group to which - the resources in the service unit belong to or should be deployed to. - :type target_resource_group: str - :param deployment_mode: Required. Describes the type of ARM deployment to - be performed on the resource. Possible values include: 'Incremental', - 'Complete' - :type deployment_mode: str or - ~azure.mgmt.deploymentmanager.models.DeploymentMode - :param artifacts: The artifacts for the service unit. - :type artifacts: ~azure.mgmt.deploymentmanager.models.ServiceUnitArtifacts - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'target_resource_group': {'required': True}, - 'deployment_mode': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'target_resource_group': {'key': 'properties.targetResourceGroup', 'type': 'str'}, - 'deployment_mode': {'key': 'properties.deploymentMode', 'type': 'DeploymentMode'}, - 'artifacts': {'key': 'properties.artifacts', 'type': 'ServiceUnitArtifacts'}, - } - - def __init__(self, **kwargs): - super(ServiceUnitResource, self).__init__(**kwargs) - self.target_resource_group = kwargs.get('target_resource_group', None) - self.deployment_mode = kwargs.get('deployment_mode', None) - self.artifacts = kwargs.get('artifacts', None) diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_unit_resource_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_unit_resource_py3.py deleted file mode 100644 index 91a6f7798df8..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/service_unit_resource_py3.py +++ /dev/null @@ -1,71 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .tracked_resource_py3 import TrackedResource - - -class ServiceUnitResource(TrackedResource): - """Represents the response of a service unit resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - :param target_resource_group: Required. The Azure Resource Group to which - the resources in the service unit belong to or should be deployed to. - :type target_resource_group: str - :param deployment_mode: Required. Describes the type of ARM deployment to - be performed on the resource. Possible values include: 'Incremental', - 'Complete' - :type deployment_mode: str or - ~azure.mgmt.deploymentmanager.models.DeploymentMode - :param artifacts: The artifacts for the service unit. - :type artifacts: ~azure.mgmt.deploymentmanager.models.ServiceUnitArtifacts - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'target_resource_group': {'required': True}, - 'deployment_mode': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'target_resource_group': {'key': 'properties.targetResourceGroup', 'type': 'str'}, - 'deployment_mode': {'key': 'properties.deploymentMode', 'type': 'DeploymentMode'}, - 'artifacts': {'key': 'properties.artifacts', 'type': 'ServiceUnitArtifacts'}, - } - - def __init__(self, *, location: str, target_resource_group: str, deployment_mode, tags=None, artifacts=None, **kwargs) -> None: - super(ServiceUnitResource, self).__init__(tags=tags, location=location, **kwargs) - self.target_resource_group = target_resource_group - self.deployment_mode = deployment_mode - self.artifacts = artifacts diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/step.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/step.py deleted file mode 100644 index babe264bc0b0..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/step.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Step(Model): - """The properties that define an Azure Deployment Manager step. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The name of the step group. - :type name: str - :param depends_on_step_groups: The list of step group names on which this - step group depends on. - :type depends_on_step_groups: list[str] - :param pre_deployment_steps: The list of steps to be run before deploying - the target. - :type pre_deployment_steps: - list[~azure.mgmt.deploymentmanager.models.PrePostStep] - :param deployment_target_id: Required. The resource Id of service unit to - be deployed. The service unit should be from the service topology - referenced in targetServiceTopologyId - :type deployment_target_id: str - :param post_deployment_steps: The list of steps to be run after deploying - the target. - :type post_deployment_steps: - list[~azure.mgmt.deploymentmanager.models.PrePostStep] - """ - - _validation = { - 'name': {'required': True}, - 'deployment_target_id': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'depends_on_step_groups': {'key': 'dependsOnStepGroups', 'type': '[str]'}, - 'pre_deployment_steps': {'key': 'preDeploymentSteps', 'type': '[PrePostStep]'}, - 'deployment_target_id': {'key': 'deploymentTargetId', 'type': 'str'}, - 'post_deployment_steps': {'key': 'postDeploymentSteps', 'type': '[PrePostStep]'}, - } - - def __init__(self, **kwargs): - super(Step, self).__init__(**kwargs) - self.name = kwargs.get('name', None) - self.depends_on_step_groups = kwargs.get('depends_on_step_groups', None) - self.pre_deployment_steps = kwargs.get('pre_deployment_steps', None) - self.deployment_target_id = kwargs.get('deployment_target_id', None) - self.post_deployment_steps = kwargs.get('post_deployment_steps', None) diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/step_operation_info.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/step_operation_info.py deleted file mode 100644 index de7bf27165ed..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/step_operation_info.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class StepOperationInfo(Model): - """Detailed information of a specific step run. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar deployment_name: The name of the ARM deployment initiated as part of - the step. - :vartype deployment_name: str - :ivar correlation_id: Unique identifier to track the request for ARM-based - resources. - :vartype correlation_id: str - :ivar start_time: Start time of the action in UTC. - :vartype start_time: datetime - :ivar end_time: End time of the action in UTC. - :vartype end_time: datetime - :ivar last_updated_time: Last time in UTC this operation was updated. - :vartype last_updated_time: datetime - :param error: The errors, if any, for the action. - :type error: ~azure.mgmt.deploymentmanager.models.CloudErrorBody - """ - - _validation = { - 'deployment_name': {'readonly': True}, - 'correlation_id': {'readonly': True}, - 'start_time': {'readonly': True}, - 'end_time': {'readonly': True}, - 'last_updated_time': {'readonly': True}, - } - - _attribute_map = { - 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, - 'correlation_id': {'key': 'correlationId', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'iso-8601'}, - 'error': {'key': 'error', 'type': 'CloudErrorBody'}, - } - - def __init__(self, **kwargs): - super(StepOperationInfo, self).__init__(**kwargs) - self.deployment_name = None - self.correlation_id = None - self.start_time = None - self.end_time = None - self.last_updated_time = None - self.error = kwargs.get('error', None) diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/step_operation_info_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/step_operation_info_py3.py deleted file mode 100644 index f04ffbf3f139..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/step_operation_info_py3.py +++ /dev/null @@ -1,61 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class StepOperationInfo(Model): - """Detailed information of a specific step run. - - Variables are only populated by the server, and will be ignored when - sending a request. - - :ivar deployment_name: The name of the ARM deployment initiated as part of - the step. - :vartype deployment_name: str - :ivar correlation_id: Unique identifier to track the request for ARM-based - resources. - :vartype correlation_id: str - :ivar start_time: Start time of the action in UTC. - :vartype start_time: datetime - :ivar end_time: End time of the action in UTC. - :vartype end_time: datetime - :ivar last_updated_time: Last time in UTC this operation was updated. - :vartype last_updated_time: datetime - :param error: The errors, if any, for the action. - :type error: ~azure.mgmt.deploymentmanager.models.CloudErrorBody - """ - - _validation = { - 'deployment_name': {'readonly': True}, - 'correlation_id': {'readonly': True}, - 'start_time': {'readonly': True}, - 'end_time': {'readonly': True}, - 'last_updated_time': {'readonly': True}, - } - - _attribute_map = { - 'deployment_name': {'key': 'deploymentName', 'type': 'str'}, - 'correlation_id': {'key': 'correlationId', 'type': 'str'}, - 'start_time': {'key': 'startTime', 'type': 'iso-8601'}, - 'end_time': {'key': 'endTime', 'type': 'iso-8601'}, - 'last_updated_time': {'key': 'lastUpdatedTime', 'type': 'iso-8601'}, - 'error': {'key': 'error', 'type': 'CloudErrorBody'}, - } - - def __init__(self, *, error=None, **kwargs) -> None: - super(StepOperationInfo, self).__init__(**kwargs) - self.deployment_name = None - self.correlation_id = None - self.start_time = None - self.end_time = None - self.last_updated_time = None - self.error = error diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/step_properties.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/step_properties.py deleted file mode 100644 index 7f0bd6168261..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/step_properties.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class StepProperties(Model): - """The properties of a step resource. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: WaitStepProperties - - All required parameters must be populated in order to send to Azure. - - :param step_type: Required. Constant filled by server. - :type step_type: str - """ - - _validation = { - 'step_type': {'required': True}, - } - - _attribute_map = { - 'step_type': {'key': 'stepType', 'type': 'str'}, - } - - _subtype_map = { - 'step_type': {'Wait': 'WaitStepProperties'} - } - - def __init__(self, **kwargs): - super(StepProperties, self).__init__(**kwargs) - self.step_type = None diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/step_properties_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/step_properties_py3.py deleted file mode 100644 index 784bb2c64c29..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/step_properties_py3.py +++ /dev/null @@ -1,41 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class StepProperties(Model): - """The properties of a step resource. - - You probably want to use the sub-classes and not this class directly. Known - sub-classes are: WaitStepProperties - - All required parameters must be populated in order to send to Azure. - - :param step_type: Required. Constant filled by server. - :type step_type: str - """ - - _validation = { - 'step_type': {'required': True}, - } - - _attribute_map = { - 'step_type': {'key': 'stepType', 'type': 'str'}, - } - - _subtype_map = { - 'step_type': {'Wait': 'WaitStepProperties'} - } - - def __init__(self, **kwargs) -> None: - super(StepProperties, self).__init__(**kwargs) - self.step_type = None diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/step_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/step_py3.py deleted file mode 100644 index e8c2c97158e5..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/step_py3.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class Step(Model): - """The properties that define an Azure Deployment Manager step. - - All required parameters must be populated in order to send to Azure. - - :param name: Required. The name of the step group. - :type name: str - :param depends_on_step_groups: The list of step group names on which this - step group depends on. - :type depends_on_step_groups: list[str] - :param pre_deployment_steps: The list of steps to be run before deploying - the target. - :type pre_deployment_steps: - list[~azure.mgmt.deploymentmanager.models.PrePostStep] - :param deployment_target_id: Required. The resource Id of service unit to - be deployed. The service unit should be from the service topology - referenced in targetServiceTopologyId - :type deployment_target_id: str - :param post_deployment_steps: The list of steps to be run after deploying - the target. - :type post_deployment_steps: - list[~azure.mgmt.deploymentmanager.models.PrePostStep] - """ - - _validation = { - 'name': {'required': True}, - 'deployment_target_id': {'required': True}, - } - - _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'depends_on_step_groups': {'key': 'dependsOnStepGroups', 'type': '[str]'}, - 'pre_deployment_steps': {'key': 'preDeploymentSteps', 'type': '[PrePostStep]'}, - 'deployment_target_id': {'key': 'deploymentTargetId', 'type': 'str'}, - 'post_deployment_steps': {'key': 'postDeploymentSteps', 'type': '[PrePostStep]'}, - } - - def __init__(self, *, name: str, deployment_target_id: str, depends_on_step_groups=None, pre_deployment_steps=None, post_deployment_steps=None, **kwargs) -> None: - super(Step, self).__init__(**kwargs) - self.name = name - self.depends_on_step_groups = depends_on_step_groups - self.pre_deployment_steps = pre_deployment_steps - self.deployment_target_id = deployment_target_id - self.post_deployment_steps = post_deployment_steps diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/step_resource.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/step_resource.py deleted file mode 100644 index 1a33362fbe96..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/step_resource.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .tracked_resource import TrackedResource - - -class StepResource(TrackedResource): - """The resource representation of a rollout step. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - :param properties: Required. The properties that define the step. - :type properties: ~azure.mgmt.deploymentmanager.models.StepProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'properties': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'StepProperties'}, - } - - def __init__(self, **kwargs): - super(StepResource, self).__init__(**kwargs) - self.properties = kwargs.get('properties', None) diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/step_resource_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/step_resource_py3.py deleted file mode 100644 index a3cd19a871c1..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/step_resource_py3.py +++ /dev/null @@ -1,58 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .tracked_resource_py3 import TrackedResource - - -class StepResource(TrackedResource): - """The resource representation of a rollout step. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - :param properties: Required. The properties that define the step. - :type properties: ~azure.mgmt.deploymentmanager.models.StepProperties - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - 'properties': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - 'properties': {'key': 'properties', 'type': 'StepProperties'}, - } - - def __init__(self, *, location: str, properties, tags=None, **kwargs) -> None: - super(StepResource, self).__init__(tags=tags, location=location, **kwargs) - self.properties = properties diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/tracked_resource.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/tracked_resource.py deleted file mode 100644 index 27ab94c7a8dd..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/tracked_resource.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource import Resource - - -class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(TrackedResource, self).__init__(**kwargs) - self.tags = kwargs.get('tags', None) - self.location = kwargs.get('location', None) diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/tracked_resource_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/tracked_resource_py3.py deleted file mode 100644 index b28cc1859448..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/tracked_resource_py3.py +++ /dev/null @@ -1,55 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .resource_py3 import Resource - - -class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. - - Variables are only populated by the server, and will be ignored when - sending a request. - - All required parameters must be populated in order to send to Azure. - - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} - :vartype id: str - :ivar name: The name of the resource - :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. - :vartype type: str - :param tags: Resource tags. - :type tags: dict[str, str] - :param location: Required. The geo-location where the resource lives - :type location: str - """ - - _validation = { - 'id': {'readonly': True}, - 'name': {'readonly': True}, - 'type': {'readonly': True}, - 'location': {'required': True}, - } - - _attribute_map = { - 'id': {'key': 'id', 'type': 'str'}, - 'name': {'key': 'name', 'type': 'str'}, - 'type': {'key': 'type', 'type': 'str'}, - 'tags': {'key': 'tags', 'type': '{str}'}, - 'location': {'key': 'location', 'type': 'str'}, - } - - def __init__(self, *, location: str, tags=None, **kwargs) -> None: - super(TrackedResource, self).__init__(**kwargs) - self.tags = tags - self.location = location diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/wait_step_attributes.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/wait_step_attributes.py deleted file mode 100644 index 59afb8daa834..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/wait_step_attributes.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class WaitStepAttributes(Model): - """The parameters for the wait step. - - All required parameters must be populated in order to send to Azure. - - :param duration: Required. The duration in ISO 8601 format of how long the - wait should be. - :type duration: str - """ - - _validation = { - 'duration': {'required': True}, - } - - _attribute_map = { - 'duration': {'key': 'duration', 'type': 'str'}, - } - - def __init__(self, **kwargs): - super(WaitStepAttributes, self).__init__(**kwargs) - self.duration = kwargs.get('duration', None) diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/wait_step_attributes_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/wait_step_attributes_py3.py deleted file mode 100644 index 9981c667560d..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/wait_step_attributes_py3.py +++ /dev/null @@ -1,35 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from msrest.serialization import Model - - -class WaitStepAttributes(Model): - """The parameters for the wait step. - - All required parameters must be populated in order to send to Azure. - - :param duration: Required. The duration in ISO 8601 format of how long the - wait should be. - :type duration: str - """ - - _validation = { - 'duration': {'required': True}, - } - - _attribute_map = { - 'duration': {'key': 'duration', 'type': 'str'}, - } - - def __init__(self, *, duration: str, **kwargs) -> None: - super(WaitStepAttributes, self).__init__(**kwargs) - self.duration = duration diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/wait_step_properties.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/wait_step_properties.py deleted file mode 100644 index 52eda802984a..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/wait_step_properties.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .step_properties import StepProperties - - -class WaitStepProperties(StepProperties): - """Defines the properties of a Wait step. - - All required parameters must be populated in order to send to Azure. - - :param step_type: Required. Constant filled by server. - :type step_type: str - :param attributes: The Wait attributes - :type attributes: ~azure.mgmt.deploymentmanager.models.WaitStepAttributes - """ - - _validation = { - 'step_type': {'required': True}, - } - - _attribute_map = { - 'step_type': {'key': 'stepType', 'type': 'str'}, - 'attributes': {'key': 'attributes', 'type': 'WaitStepAttributes'}, - } - - def __init__(self, **kwargs): - super(WaitStepProperties, self).__init__(**kwargs) - self.attributes = kwargs.get('attributes', None) - self.step_type = 'Wait' diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/wait_step_properties_py3.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/wait_step_properties_py3.py deleted file mode 100644 index 6d4b4c8c1099..000000000000 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/models/wait_step_properties_py3.py +++ /dev/null @@ -1,38 +0,0 @@ -# coding=utf-8 -# -------------------------------------------------------------------------- -# Copyright (c) Microsoft Corporation. All rights reserved. -# Licensed under the MIT License. See License.txt in the project root for -# license information. -# -# Code generated by Microsoft (R) AutoRest Code Generator. -# Changes may cause incorrect behavior and will be lost if the code is -# regenerated. -# -------------------------------------------------------------------------- - -from .step_properties_py3 import StepProperties - - -class WaitStepProperties(StepProperties): - """Defines the properties of a Wait step. - - All required parameters must be populated in order to send to Azure. - - :param step_type: Required. Constant filled by server. - :type step_type: str - :param attributes: The Wait attributes - :type attributes: ~azure.mgmt.deploymentmanager.models.WaitStepAttributes - """ - - _validation = { - 'step_type': {'required': True}, - } - - _attribute_map = { - 'step_type': {'key': 'stepType', 'type': 'str'}, - 'attributes': {'key': 'attributes', 'type': 'WaitStepAttributes'}, - } - - def __init__(self, *, attributes=None, **kwargs) -> None: - super(WaitStepProperties, self).__init__(**kwargs) - self.attributes = attributes - self.step_type = 'Wait' diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/__init__.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/__init__.py index 76ca297d2cb3..6f4757c2fe20 100644 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/__init__.py +++ b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/__init__.py @@ -9,13 +9,13 @@ # regenerated. # -------------------------------------------------------------------------- -from .service_topologies_operations import ServiceTopologiesOperations -from .services_operations import ServicesOperations -from .service_units_operations import ServiceUnitsOperations -from .steps_operations import StepsOperations -from .rollouts_operations import RolloutsOperations -from .artifact_sources_operations import ArtifactSourcesOperations -from .operations import Operations +from ._service_topologies_operations import ServiceTopologiesOperations +from ._services_operations import ServicesOperations +from ._service_units_operations import ServiceUnitsOperations +from ._steps_operations import StepsOperations +from ._rollouts_operations import RolloutsOperations +from ._artifact_sources_operations import ArtifactSourcesOperations +from ._operations import Operations __all__ = [ 'ServiceTopologiesOperations', diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/artifact_sources_operations.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/_artifact_sources_operations.py similarity index 77% rename from sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/artifact_sources_operations.py rename to sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/_artifact_sources_operations.py index 9f07092c0c0a..802c04843646 100644 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/artifact_sources_operations.py +++ b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/_artifact_sources_operations.py @@ -19,11 +19,13 @@ class ArtifactSourcesOperations(object): """ArtifactSourcesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for this operation. Constant value: "2018-09-01-preview". + :ivar api_version: The API version to use for this operation. Constant value: "2019-11-01-preview". """ models = models @@ -33,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-09-01-preview" + self.api_version = "2019-11-01-preview" self.config = config @@ -102,7 +104,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 201: deserialized = self._deserialize('ArtifactSource', response) @@ -165,7 +166,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ArtifactSource', response) @@ -229,3 +229,62 @@ def delete( client_raw_response = ClientRawResponse(None, response) return client_raw_response delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/artifactSources/{artifactSourceName}'} + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Lists the artifact sources in a resource group. + + :param resource_group_name: The name of the resource group. The name + is case insensitive. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: list or ClientRawResponse if raw=true + :rtype: list[~azure.mgmt.deploymentmanager.models.ArtifactSource] or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('[ArtifactSource]', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/artifactSources'} diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/operations.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/_operations.py similarity index 80% rename from sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/operations.py rename to sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/_operations.py index bfc7008090c8..875853f1989f 100644 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/operations.py +++ b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/_operations.py @@ -19,11 +19,13 @@ class Operations(object): """Operations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for this operation. Constant value: "2018-09-01-preview". + :ivar api_version: The API version to use for this operation. Constant value: "2019-11-01-preview". """ models = models @@ -33,30 +35,26 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-09-01-preview" + self.api_version = "2019-11-01-preview" self.config = config - def get( + def list( self, custom_headers=None, raw=False, **operation_config): - """Gets an operation resource. + """Lists the supported operations. :param dict custom_headers: headers that will be added to the request :param bool raw: returns the direct response alongside the deserialized response :param operation_config: :ref:`Operation configuration overrides`. - :return: list or ClientRawResponse if raw=true - :rtype: list[~azure.mgmt.deploymentmanager.models.Operation] or + :return: OperationsList or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.deploymentmanager.models.OperationsList or ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ # Construct URL - url = self.get.metadata['url'] - path_format_arguments = { - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') - } - url = self._client.format_url(url, **path_format_arguments) + url = self.list.metadata['url'] # Construct parameters query_parameters = {} @@ -82,13 +80,12 @@ def get( raise exp deserialized = None - if response.status_code == 200: - deserialized = self._deserialize('[Operation]', response) + deserialized = self._deserialize('OperationsList', response) if raw: client_raw_response = ClientRawResponse(deserialized, response) return client_raw_response return deserialized - get.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.DeploymentManager/operations'} + list.metadata = {'url': '/providers/Microsoft.DeploymentManager/operations'} diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/rollouts_operations.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/_rollouts_operations.py similarity index 86% rename from sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/rollouts_operations.py rename to sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/_rollouts_operations.py index 02e882420c56..b778ace97018 100644 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/rollouts_operations.py +++ b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/_rollouts_operations.py @@ -21,11 +21,13 @@ class RolloutsOperations(object): """RolloutsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for this operation. Constant value: "2018-09-01-preview". + :ivar api_version: The API version to use for this operation. Constant value: "2019-11-01-preview". """ models = models @@ -35,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-09-01-preview" + self.api_version = "2019-11-01-preview" self.config = config @@ -214,7 +216,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Rollout', response) @@ -335,7 +336,6 @@ def cancel( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Rollout', response) @@ -407,7 +407,6 @@ def restart( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('Rollout', response) @@ -417,3 +416,62 @@ def restart( return deserialized restart.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/rollouts/{rolloutName}/restart'} + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Lists the rollouts in a resource group. + + :param resource_group_name: The name of the resource group. The name + is case insensitive. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: list or ClientRawResponse if raw=true + :rtype: list[~azure.mgmt.deploymentmanager.models.Rollout] or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('[Rollout]', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/rollouts'} diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/service_topologies_operations.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/_service_topologies_operations.py similarity index 77% rename from sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/service_topologies_operations.py rename to sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/_service_topologies_operations.py index dfa9f8b0180f..fd55f76e2cdc 100644 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/service_topologies_operations.py +++ b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/_service_topologies_operations.py @@ -19,11 +19,13 @@ class ServiceTopologiesOperations(object): """ServiceTopologiesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for this operation. Constant value: "2018-09-01-preview". + :ivar api_version: The API version to use for this operation. Constant value: "2019-11-01-preview". """ models = models @@ -33,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-09-01-preview" + self.api_version = "2019-11-01-preview" self.config = config @@ -100,7 +102,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 201: deserialized = self._deserialize('ServiceTopologyResource', response) @@ -163,7 +164,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ServiceTopologyResource', response) @@ -227,3 +227,63 @@ def delete( client_raw_response = ClientRawResponse(None, response) return client_raw_response delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}'} + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Lists the service topologies in the resource group. + + :param resource_group_name: The name of the resource group. The name + is case insensitive. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: list or ClientRawResponse if raw=true + :rtype: + list[~azure.mgmt.deploymentmanager.models.ServiceTopologyResource] or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('[ServiceTopologyResource]', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies'} diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/service_units_operations.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/_service_units_operations.py similarity index 79% rename from sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/service_units_operations.py rename to sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/_service_units_operations.py index 56779520a0ab..dfb6977b6ed3 100644 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/service_units_operations.py +++ b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/_service_units_operations.py @@ -21,11 +21,13 @@ class ServiceUnitsOperations(object): """ServiceUnitsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for this operation. Constant value: "2018-09-01-preview". + :ivar api_version: The API version to use for this operation. Constant value: "2019-11-01-preview". """ models = models @@ -35,7 +37,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-09-01-preview" + self.api_version = "2019-11-01-preview" self.config = config @@ -220,7 +222,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ServiceUnitResource', response) @@ -290,3 +291,68 @@ def delete( client_raw_response = ClientRawResponse(None, response) return client_raw_response delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services/{serviceName}/serviceUnits/{serviceUnitName}'} + + def list( + self, resource_group_name, service_topology_name, service_name, custom_headers=None, raw=False, **operation_config): + """Lists the service units under a service in the service topology. + + :param resource_group_name: The name of the resource group. The name + is case insensitive. + :type resource_group_name: str + :param service_topology_name: The name of the service topology . + :type service_topology_name: str + :param service_name: The name of the service resource. + :type service_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: list or ClientRawResponse if raw=true + :rtype: list[~azure.mgmt.deploymentmanager.models.ServiceUnitResource] + or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'serviceTopologyName': self._serialize.url("service_topology_name", service_topology_name, 'str'), + 'serviceName': self._serialize.url("service_name", service_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('[ServiceUnitResource]', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services/{serviceName}/serviceUnits'} diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/services_operations.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/_services_operations.py similarity index 77% rename from sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/services_operations.py rename to sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/_services_operations.py index deb03e2a645e..c2f2b9ce527d 100644 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/services_operations.py +++ b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/_services_operations.py @@ -19,11 +19,13 @@ class ServicesOperations(object): """ServicesOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for this operation. Constant value: "2018-09-01-preview". + :ivar api_version: The API version to use for this operation. Constant value: "2019-11-01-preview". """ models = models @@ -33,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-09-01-preview" + self.api_version = "2019-11-01-preview" self.config = config @@ -101,7 +103,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 201: deserialized = self._deserialize('ServiceResource', response) @@ -167,7 +168,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('ServiceResource', response) @@ -234,3 +234,65 @@ def delete( client_raw_response = ClientRawResponse(None, response) return client_raw_response delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services/{serviceName}'} + + def list( + self, resource_group_name, service_topology_name, custom_headers=None, raw=False, **operation_config): + """Lists the services in the service topology. + + :param resource_group_name: The name of the resource group. The name + is case insensitive. + :type resource_group_name: str + :param service_topology_name: The name of the service topology . + :type service_topology_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: list or ClientRawResponse if raw=true + :rtype: list[~azure.mgmt.deploymentmanager.models.ServiceResource] or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$'), + 'serviceTopologyName': self._serialize.url("service_topology_name", service_topology_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('[ServiceResource]', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/serviceTopologies/{serviceTopologyName}/services'} diff --git a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/steps_operations.py b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/_steps_operations.py similarity index 77% rename from sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/steps_operations.py rename to sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/_steps_operations.py index eeb12488c11b..de415e59b7f6 100644 --- a/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/steps_operations.py +++ b/sdk/deploymentmanager/azure-mgmt-deploymentmanager/azure/mgmt/deploymentmanager/operations/_steps_operations.py @@ -19,11 +19,13 @@ class StepsOperations(object): """StepsOperations operations. + You should not instantiate directly this class, but create a Client instance that will create it for you and attach it as attribute. + :param client: Client for service requests. :param config: Configuration of service client. :param serializer: An object model serializer. :param deserializer: An object model deserializer. - :ivar api_version: The API version to use for this operation. Constant value: "2018-09-01-preview". + :ivar api_version: The API version to use for this operation. Constant value: "2019-11-01-preview". """ models = models @@ -33,7 +35,7 @@ def __init__(self, client, config, serializer, deserializer): self._client = client self._serialize = serializer self._deserialize = deserializer - self.api_version = "2018-09-01-preview" + self.api_version = "2019-11-01-preview" self.config = config @@ -100,7 +102,6 @@ def create_or_update( raise exp deserialized = None - if response.status_code == 201: deserialized = self._deserialize('StepResource', response) @@ -163,7 +164,6 @@ def get( raise exp deserialized = None - if response.status_code == 200: deserialized = self._deserialize('StepResource', response) @@ -227,3 +227,62 @@ def delete( client_raw_response = ClientRawResponse(None, response) return client_raw_response delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/steps/{stepName}'} + + def list( + self, resource_group_name, custom_headers=None, raw=False, **operation_config): + """Lists the steps in a resource group. + + :param resource_group_name: The name of the resource group. The name + is case insensitive. + :type resource_group_name: str + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: list or ClientRawResponse if raw=true + :rtype: list[~azure.mgmt.deploymentmanager.models.StepResource] or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.list.metadata['url'] + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str', max_length=90, min_length=1, pattern=r'^[-\w\._\(\)]+$') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Accept'] = 'application/json' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + deserialized = None + if response.status_code == 200: + deserialized = self._deserialize('[StepResource]', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DeploymentManager/steps'}