From 60353c17d4e3e1da8fe138baa677cab974356478 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Fri, 15 May 2020 04:02:25 +0000 Subject: [PATCH 1/2] Update from master --- .../_app_platform_management_client.py | 10 + .../azure/mgmt/appplatform/models/__init__.py | 26 +- .../_app_platform_management_client_enums.py | 12 +- .../azure/mgmt/appplatform/models/_models.py | 234 +- .../mgmt/appplatform/models/_models_py3.py | 240 +- .../mgmt/appplatform/models/_paged_models.py | 26 + .../mgmt/appplatform/operations/__init__.py | 4 + .../operations/_apps_operations.py | 36 +- .../operations/_bindings_operations.py | 18 +- .../operations/_certificates_operations.py | 312 +++ .../operations/_custom_domains_operations.py | 477 ++++ .../operations/_deployments_operations.py | 22 +- .../operations/_services_operations.py | 31 +- .../azure-mgmt-appplatform/setup.py | 4 +- ...cli_mgmt_appplatform.test_appplatform.yaml | 2181 ----------------- .../tests/test_cli_mgmt_appplatform.py | 343 --- 16 files changed, 1350 insertions(+), 2626 deletions(-) create mode 100644 sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_certificates_operations.py create mode 100644 sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_custom_domains_operations.py delete mode 100644 sdk/appplatform/azure-mgmt-appplatform/tests/recordings/test_cli_mgmt_appplatform.test_appplatform.yaml delete mode 100644 sdk/appplatform/azure-mgmt-appplatform/tests/test_cli_mgmt_appplatform.py diff --git a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/_app_platform_management_client.py b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/_app_platform_management_client.py index 176133a5f297..6081e8e91e68 100644 --- a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/_app_platform_management_client.py +++ b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/_app_platform_management_client.py @@ -16,6 +16,8 @@ from .operations import ServicesOperations from .operations import AppsOperations from .operations import BindingsOperations +from .operations import CertificatesOperations +from .operations import CustomDomainsOperations from .operations import DeploymentsOperations from .operations import Operations from . import models @@ -33,6 +35,10 @@ class AppPlatformManagementClient(SDKClient): :vartype apps: azure.mgmt.appplatform.operations.AppsOperations :ivar bindings: Bindings operations :vartype bindings: azure.mgmt.appplatform.operations.BindingsOperations + :ivar certificates: Certificates operations + :vartype certificates: azure.mgmt.appplatform.operations.CertificatesOperations + :ivar custom_domains: CustomDomains operations + :vartype custom_domains: azure.mgmt.appplatform.operations.CustomDomainsOperations :ivar deployments: Deployments operations :vartype deployments: azure.mgmt.appplatform.operations.DeploymentsOperations :ivar operations: Operations operations @@ -65,6 +71,10 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.bindings = BindingsOperations( self._client, self.config, self._serialize, self._deserialize) + self.certificates = CertificatesOperations( + self._client, self.config, self._serialize, self._deserialize) + self.custom_domains = CustomDomainsOperations( + self._client, self.config, self._serialize, self._deserialize) self.deployments = DeploymentsOperations( self._client, self.config, self._serialize, self._deserialize) self.operations = Operations( diff --git a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/__init__.py b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/__init__.py index 1bee2b655937..128d3f0f9e55 100644 --- a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/__init__.py +++ b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/__init__.py @@ -14,10 +14,16 @@ from ._models_py3 import AppResourceProperties from ._models_py3 import BindingResource from ._models_py3 import BindingResourceProperties + from ._models_py3 import CertificateProperties + from ._models_py3 import CertificateResource from ._models_py3 import ClusterResourceProperties from ._models_py3 import ConfigServerGitProperty from ._models_py3 import ConfigServerProperties from ._models_py3 import ConfigServerSettings + from ._models_py3 import CustomDomainProperties + from ._models_py3 import CustomDomainResource + from ._models_py3 import CustomDomainValidatePayload + from ._models_py3 import CustomDomainValidateResult from ._models_py3 import DeploymentInstance from ._models_py3 import DeploymentResource from ._models_py3 import DeploymentResourceProperties @@ -50,10 +56,16 @@ from ._models import AppResourceProperties from ._models import BindingResource from ._models import BindingResourceProperties + from ._models import CertificateProperties + from ._models import CertificateResource from ._models import ClusterResourceProperties from ._models import ConfigServerGitProperty from ._models import ConfigServerProperties from ._models import ConfigServerSettings + from ._models import CustomDomainProperties + from ._models import CustomDomainResource + from ._models import CustomDomainValidatePayload + from ._models import CustomDomainValidateResult from ._models import DeploymentInstance from ._models import DeploymentResource from ._models import DeploymentResourceProperties @@ -83,6 +95,8 @@ from ._models import UserSourceInfo from ._paged_models import AppResourcePaged from ._paged_models import BindingResourcePaged +from ._paged_models import CertificateResourcePaged +from ._paged_models import CustomDomainResourcePaged from ._paged_models import DeploymentResourcePaged from ._paged_models import OperationDetailPaged from ._paged_models import ServiceResourcePaged @@ -93,8 +107,8 @@ TestKeyType, AppResourceProvisioningState, UserSourceType, - DeploymentResourceProvisioningState, RuntimeVersion, + DeploymentResourceProvisioningState, DeploymentResourceStatus, ) @@ -103,10 +117,16 @@ 'AppResourceProperties', 'BindingResource', 'BindingResourceProperties', + 'CertificateProperties', + 'CertificateResource', 'ClusterResourceProperties', 'ConfigServerGitProperty', 'ConfigServerProperties', 'ConfigServerSettings', + 'CustomDomainProperties', + 'CustomDomainResource', + 'CustomDomainValidatePayload', + 'CustomDomainValidateResult', 'DeploymentInstance', 'DeploymentResource', 'DeploymentResourceProperties', @@ -137,6 +157,8 @@ 'ServiceResourcePaged', 'AppResourcePaged', 'BindingResourcePaged', + 'CertificateResourcePaged', + 'CustomDomainResourcePaged', 'DeploymentResourcePaged', 'OperationDetailPaged', 'ProvisioningState', @@ -145,7 +167,7 @@ 'TestKeyType', 'AppResourceProvisioningState', 'UserSourceType', - 'DeploymentResourceProvisioningState', 'RuntimeVersion', + 'DeploymentResourceProvisioningState', 'DeploymentResourceStatus', ] diff --git a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_app_platform_management_client_enums.py b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_app_platform_management_client_enums.py index d285514c52b0..2978170fb08c 100644 --- a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_app_platform_management_client_enums.py +++ b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_app_platform_management_client_enums.py @@ -62,6 +62,12 @@ class UserSourceType(str, Enum): source = "Source" +class RuntimeVersion(str, Enum): + + java_8 = "Java_8" + java_11 = "Java_11" + + class DeploymentResourceProvisioningState(str, Enum): creating = "Creating" @@ -70,12 +76,6 @@ class DeploymentResourceProvisioningState(str, Enum): failed = "Failed" -class RuntimeVersion(str, Enum): - - java_8 = "Java_8" - java_11 = "Java_11" - - class DeploymentResourceStatus(str, Enum): unknown = "Unknown" diff --git a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_models.py b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_models.py index 04edddf0bb8f..deffa406f077 100644 --- a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_models.py +++ b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_models.py @@ -91,6 +91,9 @@ class AppResource(ProxyResource): :vartype type: str :param properties: Properties of the App resource :type properties: ~azure.mgmt.appplatform.models.AppResourceProperties + :param location: The GEO location of the application, always the same with + its parent resource + :type location: str """ _validation = { @@ -104,11 +107,13 @@ class AppResource(ProxyResource): 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'AppResourceProperties'}, + 'location': {'key': 'location', 'type': 'str'}, } def __init__(self, **kwargs): super(AppResource, self).__init__(**kwargs) self.properties = kwargs.get('properties', None) + self.location = kwargs.get('location', None) class AppResourceProperties(Model): @@ -127,6 +132,10 @@ class AppResourceProperties(Model): ~azure.mgmt.appplatform.models.AppResourceProvisioningState :param active_deployment_name: Name of the active deployment of the App :type active_deployment_name: str + :param fqdn: Fully qualified dns Name. + :type fqdn: str + :param https_only: Indicate if only https is allowed. + :type https_only: bool :ivar created_time: Date time when the resource is created :vartype created_time: datetime :param temporary_disk: Temporary disk settings @@ -146,6 +155,8 @@ class AppResourceProperties(Model): 'url': {'key': 'url', 'type': 'str'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'active_deployment_name': {'key': 'activeDeploymentName', 'type': 'str'}, + 'fqdn': {'key': 'fqdn', 'type': 'str'}, + 'https_only': {'key': 'httpsOnly', 'type': 'bool'}, 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, 'temporary_disk': {'key': 'temporaryDisk', 'type': 'TemporaryDisk'}, 'persistent_disk': {'key': 'persistentDisk', 'type': 'PersistentDisk'}, @@ -157,6 +168,8 @@ def __init__(self, **kwargs): self.url = None self.provisioning_state = None self.active_deployment_name = kwargs.get('active_deployment_name', None) + self.fqdn = kwargs.get('fqdn', None) + self.https_only = kwargs.get('https_only', None) self.created_time = None self.temporary_disk = kwargs.get('temporary_disk', None) self.persistent_disk = kwargs.get('persistent_disk', None) @@ -251,6 +264,109 @@ def __init__(self, **kwargs): self.updated_at = None +class CertificateProperties(Model): + """Certificate resource payload. + + 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 thumbprint: The thumbprint of certificate. + :vartype thumbprint: str + :param vault_uri: Required. The vault uri of user key vault. + :type vault_uri: str + :param key_vault_cert_name: Required. The certificate name of key vault. + :type key_vault_cert_name: str + :param cert_version: The certificate version of key vault. + :type cert_version: str + :ivar issuer: The issuer of certificate. + :vartype issuer: str + :ivar issued_date: The issue date of certificate. + :vartype issued_date: str + :ivar expiration_date: The expiration date of certificate. + :vartype expiration_date: str + :ivar activate_date: The activate date of certificate. + :vartype activate_date: str + :ivar subject_name: The subject name of certificate. + :vartype subject_name: str + :ivar dns_names: The domain list of certificate. + :vartype dns_names: list[str] + """ + + _validation = { + 'thumbprint': {'readonly': True}, + 'vault_uri': {'required': True}, + 'key_vault_cert_name': {'required': True}, + 'issuer': {'readonly': True}, + 'issued_date': {'readonly': True}, + 'expiration_date': {'readonly': True}, + 'activate_date': {'readonly': True}, + 'subject_name': {'readonly': True}, + 'dns_names': {'readonly': True}, + } + + _attribute_map = { + 'thumbprint': {'key': 'thumbprint', 'type': 'str'}, + 'vault_uri': {'key': 'vaultUri', 'type': 'str'}, + 'key_vault_cert_name': {'key': 'keyVaultCertName', 'type': 'str'}, + 'cert_version': {'key': 'certVersion', 'type': 'str'}, + 'issuer': {'key': 'issuer', 'type': 'str'}, + 'issued_date': {'key': 'issuedDate', 'type': 'str'}, + 'expiration_date': {'key': 'expirationDate', 'type': 'str'}, + 'activate_date': {'key': 'activateDate', 'type': 'str'}, + 'subject_name': {'key': 'subjectName', 'type': 'str'}, + 'dns_names': {'key': 'dnsNames', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(CertificateProperties, self).__init__(**kwargs) + self.thumbprint = None + self.vault_uri = kwargs.get('vault_uri', None) + self.key_vault_cert_name = kwargs.get('key_vault_cert_name', None) + self.cert_version = kwargs.get('cert_version', None) + self.issuer = None + self.issued_date = None + self.expiration_date = None + self.activate_date = None + self.subject_name = None + self.dns_names = None + + +class CertificateResource(ProxyResource): + """Certificate resource payload. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param properties: Properties of the certificate resource payload. + :type properties: ~azure.mgmt.appplatform.models.CertificateProperties + """ + + _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'}, + 'properties': {'key': 'properties', 'type': 'CertificateProperties'}, + } + + def __init__(self, **kwargs): + super(CertificateResource, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + class CloudError(Model): """An error response from the service. @@ -464,6 +580,106 @@ def __init__(self, **kwargs): self.git_property = kwargs.get('git_property', None) +class CustomDomainProperties(Model): + """Custom domain of app resource payload. + + :param thumbprint: The thumbprint of bound certificate. + :type thumbprint: str + :param app_name: The app name of domain. + :type app_name: str + :param cert_name: The bound certificate name of domain. + :type cert_name: str + """ + + _attribute_map = { + 'thumbprint': {'key': 'thumbprint', 'type': 'str'}, + 'app_name': {'key': 'appName', 'type': 'str'}, + 'cert_name': {'key': 'certName', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CustomDomainProperties, self).__init__(**kwargs) + self.thumbprint = kwargs.get('thumbprint', None) + self.app_name = kwargs.get('app_name', None) + self.cert_name = kwargs.get('cert_name', None) + + +class CustomDomainResource(ProxyResource): + """Custom domain resource payload. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param properties: Properties of the custom domain resource. + :type properties: ~azure.mgmt.appplatform.models.CustomDomainProperties + """ + + _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'}, + 'properties': {'key': 'properties', 'type': 'CustomDomainProperties'}, + } + + def __init__(self, **kwargs): + super(CustomDomainResource, self).__init__(**kwargs) + self.properties = kwargs.get('properties', None) + + +class CustomDomainValidatePayload(Model): + """Custom domain validate payload. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name to be validated + :type name: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CustomDomainValidatePayload, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + + +class CustomDomainValidateResult(Model): + """Validation result for custom domain. + + :param is_valid: Indicates if domain name is valid. + :type is_valid: bool + :param message: Message of why domain name is invalid. + :type message: str + """ + + _attribute_map = { + 'is_valid': {'key': 'isValid', 'type': 'bool'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(CustomDomainValidateResult, self).__init__(**kwargs) + self.is_valid = kwargs.get('is_valid', None) + self.message = kwargs.get('message', None) + + class DeploymentInstance(Model): """Deployment instance payload. @@ -547,13 +763,13 @@ class DeploymentResourceProperties(Model): :type source: ~azure.mgmt.appplatform.models.UserSourceInfo :ivar app_name: App name of the deployment :vartype app_name: str + :param deployment_settings: Deployment settings of the Deployment + :type deployment_settings: + ~azure.mgmt.appplatform.models.DeploymentSettings :ivar provisioning_state: Provisioning state of the Deployment. Possible values include: 'Creating', 'Updating', 'Succeeded', 'Failed' :vartype provisioning_state: str or ~azure.mgmt.appplatform.models.DeploymentResourceProvisioningState - :param deployment_settings: Deployment settings of the Deployment - :type deployment_settings: - ~azure.mgmt.appplatform.models.DeploymentSettings :ivar status: Status of the Deployment. Possible values include: 'Unknown', 'Stopped', 'Running', 'Failed', 'Allocating', 'Upgrading', 'Compiling' @@ -580,8 +796,8 @@ class DeploymentResourceProperties(Model): _attribute_map = { 'source': {'key': 'source', 'type': 'UserSourceInfo'}, 'app_name': {'key': 'appName', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'deployment_settings': {'key': 'deploymentSettings', 'type': 'DeploymentSettings'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'status': {'key': 'status', 'type': 'str'}, 'active': {'key': 'active', 'type': 'bool'}, 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, @@ -592,8 +808,8 @@ def __init__(self, **kwargs): super(DeploymentResourceProperties, self).__init__(**kwargs) self.source = kwargs.get('source', None) self.app_name = None - self.provisioning_state = None self.deployment_settings = kwargs.get('deployment_settings', None) + self.provisioning_state = None self.status = None self.active = None self.created_time = None @@ -904,8 +1120,8 @@ class OperationDetail(Model): :param name: Name of the operation :type name: str - :param data_action: Indicates whether the operation is a data action - :type data_action: bool + :param is_data_action: Indicates whether the operation is a data action + :type is_data_action: bool :param display: Display of the operation :type display: ~azure.mgmt.appplatform.models.OperationDisplay :param origin: Origin of the operation @@ -916,7 +1132,7 @@ class OperationDetail(Model): _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, - 'data_action': {'key': 'dataAction', 'type': 'bool'}, + 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, 'display': {'key': 'display', 'type': 'OperationDisplay'}, 'origin': {'key': 'origin', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'OperationProperties'}, @@ -925,7 +1141,7 @@ class OperationDetail(Model): def __init__(self, **kwargs): super(OperationDetail, self).__init__(**kwargs) self.name = kwargs.get('name', None) - self.data_action = kwargs.get('data_action', None) + self.is_data_action = kwargs.get('is_data_action', None) self.display = kwargs.get('display', None) self.origin = kwargs.get('origin', None) self.properties = kwargs.get('properties', None) diff --git a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_models_py3.py b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_models_py3.py index 467dba09ed08..37402fc85841 100644 --- a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_models_py3.py +++ b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_models_py3.py @@ -91,6 +91,9 @@ class AppResource(ProxyResource): :vartype type: str :param properties: Properties of the App resource :type properties: ~azure.mgmt.appplatform.models.AppResourceProperties + :param location: The GEO location of the application, always the same with + its parent resource + :type location: str """ _validation = { @@ -104,11 +107,13 @@ class AppResource(ProxyResource): 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'AppResourceProperties'}, + 'location': {'key': 'location', 'type': 'str'}, } - def __init__(self, *, properties=None, **kwargs) -> None: + def __init__(self, *, properties=None, location: str=None, **kwargs) -> None: super(AppResource, self).__init__(**kwargs) self.properties = properties + self.location = location class AppResourceProperties(Model): @@ -127,6 +132,10 @@ class AppResourceProperties(Model): ~azure.mgmt.appplatform.models.AppResourceProvisioningState :param active_deployment_name: Name of the active deployment of the App :type active_deployment_name: str + :param fqdn: Fully qualified dns Name. + :type fqdn: str + :param https_only: Indicate if only https is allowed. + :type https_only: bool :ivar created_time: Date time when the resource is created :vartype created_time: datetime :param temporary_disk: Temporary disk settings @@ -146,17 +155,21 @@ class AppResourceProperties(Model): 'url': {'key': 'url', 'type': 'str'}, 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'active_deployment_name': {'key': 'activeDeploymentName', 'type': 'str'}, + 'fqdn': {'key': 'fqdn', 'type': 'str'}, + 'https_only': {'key': 'httpsOnly', 'type': 'bool'}, 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, 'temporary_disk': {'key': 'temporaryDisk', 'type': 'TemporaryDisk'}, 'persistent_disk': {'key': 'persistentDisk', 'type': 'PersistentDisk'}, } - def __init__(self, *, public: bool=None, active_deployment_name: str=None, temporary_disk=None, persistent_disk=None, **kwargs) -> None: + def __init__(self, *, public: bool=None, active_deployment_name: str=None, fqdn: str=None, https_only: bool=None, temporary_disk=None, persistent_disk=None, **kwargs) -> None: super(AppResourceProperties, self).__init__(**kwargs) self.public = public self.url = None self.provisioning_state = None self.active_deployment_name = active_deployment_name + self.fqdn = fqdn + self.https_only = https_only self.created_time = None self.temporary_disk = temporary_disk self.persistent_disk = persistent_disk @@ -251,6 +264,109 @@ def __init__(self, *, resource_name: str=None, resource_type: str=None, resource self.updated_at = None +class CertificateProperties(Model): + """Certificate resource payload. + + 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 thumbprint: The thumbprint of certificate. + :vartype thumbprint: str + :param vault_uri: Required. The vault uri of user key vault. + :type vault_uri: str + :param key_vault_cert_name: Required. The certificate name of key vault. + :type key_vault_cert_name: str + :param cert_version: The certificate version of key vault. + :type cert_version: str + :ivar issuer: The issuer of certificate. + :vartype issuer: str + :ivar issued_date: The issue date of certificate. + :vartype issued_date: str + :ivar expiration_date: The expiration date of certificate. + :vartype expiration_date: str + :ivar activate_date: The activate date of certificate. + :vartype activate_date: str + :ivar subject_name: The subject name of certificate. + :vartype subject_name: str + :ivar dns_names: The domain list of certificate. + :vartype dns_names: list[str] + """ + + _validation = { + 'thumbprint': {'readonly': True}, + 'vault_uri': {'required': True}, + 'key_vault_cert_name': {'required': True}, + 'issuer': {'readonly': True}, + 'issued_date': {'readonly': True}, + 'expiration_date': {'readonly': True}, + 'activate_date': {'readonly': True}, + 'subject_name': {'readonly': True}, + 'dns_names': {'readonly': True}, + } + + _attribute_map = { + 'thumbprint': {'key': 'thumbprint', 'type': 'str'}, + 'vault_uri': {'key': 'vaultUri', 'type': 'str'}, + 'key_vault_cert_name': {'key': 'keyVaultCertName', 'type': 'str'}, + 'cert_version': {'key': 'certVersion', 'type': 'str'}, + 'issuer': {'key': 'issuer', 'type': 'str'}, + 'issued_date': {'key': 'issuedDate', 'type': 'str'}, + 'expiration_date': {'key': 'expirationDate', 'type': 'str'}, + 'activate_date': {'key': 'activateDate', 'type': 'str'}, + 'subject_name': {'key': 'subjectName', 'type': 'str'}, + 'dns_names': {'key': 'dnsNames', 'type': '[str]'}, + } + + def __init__(self, *, vault_uri: str, key_vault_cert_name: str, cert_version: str=None, **kwargs) -> None: + super(CertificateProperties, self).__init__(**kwargs) + self.thumbprint = None + self.vault_uri = vault_uri + self.key_vault_cert_name = key_vault_cert_name + self.cert_version = cert_version + self.issuer = None + self.issued_date = None + self.expiration_date = None + self.activate_date = None + self.subject_name = None + self.dns_names = None + + +class CertificateResource(ProxyResource): + """Certificate resource payload. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param properties: Properties of the certificate resource payload. + :type properties: ~azure.mgmt.appplatform.models.CertificateProperties + """ + + _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'}, + 'properties': {'key': 'properties', 'type': 'CertificateProperties'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(CertificateResource, self).__init__(**kwargs) + self.properties = properties + + class CloudError(Model): """An error response from the service. @@ -464,6 +580,106 @@ def __init__(self, *, git_property=None, **kwargs) -> None: self.git_property = git_property +class CustomDomainProperties(Model): + """Custom domain of app resource payload. + + :param thumbprint: The thumbprint of bound certificate. + :type thumbprint: str + :param app_name: The app name of domain. + :type app_name: str + :param cert_name: The bound certificate name of domain. + :type cert_name: str + """ + + _attribute_map = { + 'thumbprint': {'key': 'thumbprint', 'type': 'str'}, + 'app_name': {'key': 'appName', 'type': 'str'}, + 'cert_name': {'key': 'certName', 'type': 'str'}, + } + + def __init__(self, *, thumbprint: str=None, app_name: str=None, cert_name: str=None, **kwargs) -> None: + super(CustomDomainProperties, self).__init__(**kwargs) + self.thumbprint = thumbprint + self.app_name = app_name + self.cert_name = cert_name + + +class CustomDomainResource(ProxyResource): + """Custom domain resource payload. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource Id for the resource. + :vartype id: str + :ivar name: The name of the resource. + :vartype name: str + :ivar type: The type of the resource. + :vartype type: str + :param properties: Properties of the custom domain resource. + :type properties: ~azure.mgmt.appplatform.models.CustomDomainProperties + """ + + _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'}, + 'properties': {'key': 'properties', 'type': 'CustomDomainProperties'}, + } + + def __init__(self, *, properties=None, **kwargs) -> None: + super(CustomDomainResource, self).__init__(**kwargs) + self.properties = properties + + +class CustomDomainValidatePayload(Model): + """Custom domain validate payload. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name to be validated + :type name: str + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + } + + def __init__(self, *, name: str, **kwargs) -> None: + super(CustomDomainValidatePayload, self).__init__(**kwargs) + self.name = name + + +class CustomDomainValidateResult(Model): + """Validation result for custom domain. + + :param is_valid: Indicates if domain name is valid. + :type is_valid: bool + :param message: Message of why domain name is invalid. + :type message: str + """ + + _attribute_map = { + 'is_valid': {'key': 'isValid', 'type': 'bool'}, + 'message': {'key': 'message', 'type': 'str'}, + } + + def __init__(self, *, is_valid: bool=None, message: str=None, **kwargs) -> None: + super(CustomDomainValidateResult, self).__init__(**kwargs) + self.is_valid = is_valid + self.message = message + + class DeploymentInstance(Model): """Deployment instance payload. @@ -547,13 +763,13 @@ class DeploymentResourceProperties(Model): :type source: ~azure.mgmt.appplatform.models.UserSourceInfo :ivar app_name: App name of the deployment :vartype app_name: str + :param deployment_settings: Deployment settings of the Deployment + :type deployment_settings: + ~azure.mgmt.appplatform.models.DeploymentSettings :ivar provisioning_state: Provisioning state of the Deployment. Possible values include: 'Creating', 'Updating', 'Succeeded', 'Failed' :vartype provisioning_state: str or ~azure.mgmt.appplatform.models.DeploymentResourceProvisioningState - :param deployment_settings: Deployment settings of the Deployment - :type deployment_settings: - ~azure.mgmt.appplatform.models.DeploymentSettings :ivar status: Status of the Deployment. Possible values include: 'Unknown', 'Stopped', 'Running', 'Failed', 'Allocating', 'Upgrading', 'Compiling' @@ -580,8 +796,8 @@ class DeploymentResourceProperties(Model): _attribute_map = { 'source': {'key': 'source', 'type': 'UserSourceInfo'}, 'app_name': {'key': 'appName', 'type': 'str'}, - 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'deployment_settings': {'key': 'deploymentSettings', 'type': 'DeploymentSettings'}, + 'provisioning_state': {'key': 'provisioningState', 'type': 'str'}, 'status': {'key': 'status', 'type': 'str'}, 'active': {'key': 'active', 'type': 'bool'}, 'created_time': {'key': 'createdTime', 'type': 'iso-8601'}, @@ -592,8 +808,8 @@ def __init__(self, *, source=None, deployment_settings=None, **kwargs) -> None: super(DeploymentResourceProperties, self).__init__(**kwargs) self.source = source self.app_name = None - self.provisioning_state = None self.deployment_settings = deployment_settings + self.provisioning_state = None self.status = None self.active = None self.created_time = None @@ -904,8 +1120,8 @@ class OperationDetail(Model): :param name: Name of the operation :type name: str - :param data_action: Indicates whether the operation is a data action - :type data_action: bool + :param is_data_action: Indicates whether the operation is a data action + :type is_data_action: bool :param display: Display of the operation :type display: ~azure.mgmt.appplatform.models.OperationDisplay :param origin: Origin of the operation @@ -916,16 +1132,16 @@ class OperationDetail(Model): _attribute_map = { 'name': {'key': 'name', 'type': 'str'}, - 'data_action': {'key': 'dataAction', 'type': 'bool'}, + 'is_data_action': {'key': 'isDataAction', 'type': 'bool'}, 'display': {'key': 'display', 'type': 'OperationDisplay'}, 'origin': {'key': 'origin', 'type': 'str'}, 'properties': {'key': 'properties', 'type': 'OperationProperties'}, } - def __init__(self, *, name: str=None, data_action: bool=None, display=None, origin: str=None, properties=None, **kwargs) -> None: + def __init__(self, *, name: str=None, is_data_action: bool=None, display=None, origin: str=None, properties=None, **kwargs) -> None: super(OperationDetail, self).__init__(**kwargs) self.name = name - self.data_action = data_action + self.is_data_action = is_data_action self.display = display self.origin = origin self.properties = properties diff --git a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_paged_models.py b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_paged_models.py index 248668eb6cb0..63c872c720bb 100644 --- a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_paged_models.py +++ b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_paged_models.py @@ -51,6 +51,32 @@ class BindingResourcePaged(Paged): def __init__(self, *args, **kwargs): super(BindingResourcePaged, self).__init__(*args, **kwargs) +class CertificateResourcePaged(Paged): + """ + A paging container for iterating over a list of :class:`CertificateResource ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[CertificateResource]'} + } + + def __init__(self, *args, **kwargs): + + super(CertificateResourcePaged, self).__init__(*args, **kwargs) +class CustomDomainResourcePaged(Paged): + """ + A paging container for iterating over a list of :class:`CustomDomainResource ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[CustomDomainResource]'} + } + + def __init__(self, *args, **kwargs): + + super(CustomDomainResourcePaged, self).__init__(*args, **kwargs) class DeploymentResourcePaged(Paged): """ A paging container for iterating over a list of :class:`DeploymentResource ` object diff --git a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/__init__.py b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/__init__.py index caf4e58455d0..e6ebd5353e70 100644 --- a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/__init__.py +++ b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/__init__.py @@ -12,6 +12,8 @@ from ._services_operations import ServicesOperations from ._apps_operations import AppsOperations from ._bindings_operations import BindingsOperations +from ._certificates_operations import CertificatesOperations +from ._custom_domains_operations import CustomDomainsOperations from ._deployments_operations import DeploymentsOperations from ._operations import Operations @@ -19,6 +21,8 @@ 'ServicesOperations', 'AppsOperations', 'BindingsOperations', + 'CertificatesOperations', + 'CustomDomainsOperations', 'DeploymentsOperations', 'Operations', ] diff --git a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_apps_operations.py b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_apps_operations.py index 22b7af0eb1d3..482213a628a1 100644 --- a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_apps_operations.py +++ b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_apps_operations.py @@ -77,9 +77,9 @@ def get( # Construct parameters query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') if sync_status is not None: query_parameters['syncStatus'] = self._serialize.query("sync_status", sync_status, 'str') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') # Construct headers header_parameters = {} @@ -113,10 +113,8 @@ def get( def _create_or_update_initial( - self, resource_group_name, service_name, app_name, properties=None, custom_headers=None, raw=False, **operation_config): - app_resource = None - if properties is not None: - app_resource = models.AppResource(properties=properties) + self, resource_group_name, service_name, app_name, properties=None, location=None, custom_headers=None, raw=False, **operation_config): + app_resource = models.AppResource(properties=properties, location=location) # Construct URL url = self.create_or_update.metadata['url'] @@ -144,10 +142,7 @@ def _create_or_update_initial( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body - if app_resource is not None: - body_content = self._serialize.body(app_resource, 'AppResource') - else: - body_content = None + body_content = self._serialize.body(app_resource, 'AppResource') # Construct and send request request = self._client.put(url, query_parameters, header_parameters, body_content) @@ -172,7 +167,7 @@ def _create_or_update_initial( return deserialized def create_or_update( - self, resource_group_name, service_name, app_name, properties=None, custom_headers=None, raw=False, polling=True, **operation_config): + self, resource_group_name, service_name, app_name, properties=None, location=None, custom_headers=None, raw=False, polling=True, **operation_config): """Create a new App or update an exiting App. :param resource_group_name: The name of the resource group that @@ -185,6 +180,9 @@ def create_or_update( :type app_name: str :param properties: Properties of the App resource :type properties: ~azure.mgmt.appplatform.models.AppResourceProperties + :param location: The GEO location of the application, always the same + with its parent resource + :type location: str :param dict custom_headers: headers that will be added to the request :param bool raw: The poller return type is ClientRawResponse, the direct response alongside the deserialized response @@ -203,6 +201,7 @@ def create_or_update( service_name=service_name, app_name=app_name, properties=properties, + location=location, custom_headers=custom_headers, raw=True, **operation_config @@ -286,10 +285,8 @@ def delete( def _update_initial( - self, resource_group_name, service_name, app_name, properties=None, custom_headers=None, raw=False, **operation_config): - app_resource = None - if properties is not None: - app_resource = models.AppResource(properties=properties) + self, resource_group_name, service_name, app_name, properties=None, location=None, custom_headers=None, raw=False, **operation_config): + app_resource = models.AppResource(properties=properties, location=location) # Construct URL url = self.update.metadata['url'] @@ -317,10 +314,7 @@ def _update_initial( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body - if app_resource is not None: - body_content = self._serialize.body(app_resource, 'AppResource') - else: - body_content = None + body_content = self._serialize.body(app_resource, 'AppResource') # Construct and send request request = self._client.patch(url, query_parameters, header_parameters, body_content) @@ -345,7 +339,7 @@ def _update_initial( return deserialized def update( - self, resource_group_name, service_name, app_name, properties=None, custom_headers=None, raw=False, polling=True, **operation_config): + self, resource_group_name, service_name, app_name, properties=None, location=None, custom_headers=None, raw=False, polling=True, **operation_config): """Operation to update an exiting App. :param resource_group_name: The name of the resource group that @@ -358,6 +352,9 @@ def update( :type app_name: str :param properties: Properties of the App resource :type properties: ~azure.mgmt.appplatform.models.AppResourceProperties + :param location: The GEO location of the application, always the same + with its parent resource + :type location: str :param dict custom_headers: headers that will be added to the request :param bool raw: The poller return type is ClientRawResponse, the direct response alongside the deserialized response @@ -376,6 +373,7 @@ def update( service_name=service_name, app_name=app_name, properties=properties, + location=location, custom_headers=custom_headers, raw=True, **operation_config diff --git a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_bindings_operations.py b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_bindings_operations.py index 2a5b4322ca07..1be603bdfc98 100644 --- a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_bindings_operations.py +++ b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_bindings_operations.py @@ -135,9 +135,7 @@ def create_or_update( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ - binding_resource = None - if properties is not None: - binding_resource = models.BindingResource(properties=properties) + binding_resource = models.BindingResource(properties=properties) # Construct URL url = self.create_or_update.metadata['url'] @@ -166,10 +164,7 @@ def create_or_update( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body - if binding_resource is not None: - body_content = self._serialize.body(binding_resource, 'BindingResource') - else: - body_content = None + body_content = self._serialize.body(binding_resource, 'BindingResource') # Construct and send request request = self._client.put(url, query_parameters, header_parameters, body_content) @@ -279,9 +274,7 @@ def update( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ - binding_resource = None - if properties is not None: - binding_resource = models.BindingResource(properties=properties) + binding_resource = models.BindingResource(properties=properties) # Construct URL url = self.update.metadata['url'] @@ -310,10 +303,7 @@ def update( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body - if binding_resource is not None: - body_content = self._serialize.body(binding_resource, 'BindingResource') - else: - body_content = None + body_content = self._serialize.body(binding_resource, 'BindingResource') # Construct and send request request = self._client.patch(url, query_parameters, header_parameters, body_content) diff --git a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_certificates_operations.py b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_certificates_operations.py new file mode 100644 index 000000000000..004280167587 --- /dev/null +++ b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_certificates_operations.py @@ -0,0 +1,312 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class CertificatesOperations(object): + """CertificatesOperations 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: Client Api Version. Constant value: "2019-05-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2019-05-01-preview" + + self.config = config + + def get( + self, resource_group_name, service_name, certificate_name, custom_headers=None, raw=False, **operation_config): + """Get the certificate resource. + + :param resource_group_name: The name of the resource group that + contains the resource. You can obtain this value from the Azure + Resource Manager API or the portal. + :type resource_group_name: str + :param service_name: The name of the Service resource. + :type service_name: str + :param certificate_name: The name of the certificate resource. + :type certificate_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: CertificateResource or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.appplatform.models.CertificateResource 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'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'certificateName': self._serialize.url("certificate_name", certificate_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('CertificateResource', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}'} + + def create_or_update( + self, resource_group_name, service_name, certificate_name, properties=None, custom_headers=None, raw=False, **operation_config): + """Create or update certificate resource. + + :param resource_group_name: The name of the resource group that + contains the resource. You can obtain this value from the Azure + Resource Manager API or the portal. + :type resource_group_name: str + :param service_name: The name of the Service resource. + :type service_name: str + :param certificate_name: The name of the certificate resource. + :type certificate_name: str + :param properties: Properties of the certificate resource payload. + :type properties: ~azure.mgmt.appplatform.models.CertificateProperties + :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: CertificateResource or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.appplatform.models.CertificateResource or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + certificate_resource = models.CertificateResource(properties=properties) + + # Construct URL + url = self.create_or_update.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'), + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'certificateName': self._serialize.url("certificate_name", certificate_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' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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 body + body_content = self._serialize.body(certificate_resource, 'CertificateResource') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + 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('CertificateResource', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}'} + + def delete( + self, resource_group_name, service_name, certificate_name, custom_headers=None, raw=False, **operation_config): + """Delete the certificate resource. + + :param resource_group_name: The name of the resource group that + contains the resource. You can obtain this value from the Azure + Resource Manager API or the portal. + :type resource_group_name: str + :param service_name: The name of the Service resource. + :type service_name: str + :param certificate_name: The name of the certificate resource. + :type certificate_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: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.delete.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'), + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'certificateName': self._serialize.url("certificate_name", certificate_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 = {} + 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.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates/{certificateName}'} + + def list( + self, resource_group_name, service_name, custom_headers=None, raw=False, **operation_config): + """List all the certificates of one user. + + :param resource_group_name: The name of the resource group that + contains the resource. You can obtain this value from the Azure + Resource Manager API or the portal. + :type resource_group_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: An iterator like instance of CertificateResource + :rtype: + ~azure.mgmt.appplatform.models.CertificateResourcePaged[~azure.mgmt.appplatform.models.CertificateResource] + :raises: :class:`CloudError` + """ + def prepare_request(next_link=None): + if not next_link: + # 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'), + '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') + + else: + url = next_link + query_parameters = {} + + # 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) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + 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 + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.CertificateResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/certificates'} diff --git a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_custom_domains_operations.py b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_custom_domains_operations.py new file mode 100644 index 000000000000..f7f88db69a48 --- /dev/null +++ b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_custom_domains_operations.py @@ -0,0 +1,477 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class CustomDomainsOperations(object): + """CustomDomainsOperations 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: Client Api Version. Constant value: "2019-05-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2019-05-01-preview" + + self.config = config + + def get( + self, resource_group_name, service_name, app_name, domain_name, custom_headers=None, raw=False, **operation_config): + """Get the custom domain of one lifecycle application. + + :param resource_group_name: The name of the resource group that + contains the resource. You can obtain this value from the Azure + Resource Manager API or the portal. + :type resource_group_name: str + :param service_name: The name of the Service resource. + :type service_name: str + :param app_name: The name of the App resource. + :type app_name: str + :param domain_name: The name of the custom domain resource. + :type domain_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: CustomDomainResource or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.appplatform.models.CustomDomainResource 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'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'appName': self._serialize.url("app_name", app_name, 'str'), + 'domainName': self._serialize.url("domain_name", domain_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('CustomDomainResource', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + get.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}'} + + def create_or_update( + self, resource_group_name, service_name, app_name, domain_name, properties=None, custom_headers=None, raw=False, **operation_config): + """Create or update custom domain of one lifecycle application. + + :param resource_group_name: The name of the resource group that + contains the resource. You can obtain this value from the Azure + Resource Manager API or the portal. + :type resource_group_name: str + :param service_name: The name of the Service resource. + :type service_name: str + :param app_name: The name of the App resource. + :type app_name: str + :param domain_name: The name of the custom domain resource. + :type domain_name: str + :param properties: Properties of the custom domain resource. + :type properties: + ~azure.mgmt.appplatform.models.CustomDomainProperties + :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: CustomDomainResource or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.appplatform.models.CustomDomainResource or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + domain_resource = models.CustomDomainResource(properties=properties) + + # Construct URL + url = self.create_or_update.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'), + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'appName': self._serialize.url("app_name", app_name, 'str'), + 'domainName': self._serialize.url("domain_name", domain_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' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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 body + body_content = self._serialize.body(domain_resource, 'CustomDomainResource') + + # Construct and send request + request = self._client.put(url, query_parameters, header_parameters, body_content) + 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('CustomDomainResource', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + create_or_update.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}'} + + def delete( + self, resource_group_name, service_name, app_name, domain_name, custom_headers=None, raw=False, **operation_config): + """Delete the custom domain of one lifecycle application. + + :param resource_group_name: The name of the resource group that + contains the resource. You can obtain this value from the Azure + Resource Manager API or the portal. + :type resource_group_name: str + :param service_name: The name of the Service resource. + :type service_name: str + :param app_name: The name of the App resource. + :type app_name: str + :param domain_name: The name of the custom domain resource. + :type domain_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: None or ClientRawResponse if raw=true + :rtype: None or ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + # Construct URL + url = self.delete.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'), + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'appName': self._serialize.url("app_name", app_name, 'str'), + 'domainName': self._serialize.url("domain_name", domain_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 = {} + 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.delete(url, query_parameters, header_parameters) + response = self._client.send(request, stream=False, **operation_config) + + if response.status_code not in [200, 204]: + exp = CloudError(response) + exp.request_id = response.headers.get('x-ms-request-id') + raise exp + + if raw: + client_raw_response = ClientRawResponse(None, response) + return client_raw_response + delete.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}'} + + def patch( + self, resource_group_name, service_name, app_name, domain_name, properties=None, custom_headers=None, raw=False, **operation_config): + """Update custom domain of one lifecycle application. + + :param resource_group_name: The name of the resource group that + contains the resource. You can obtain this value from the Azure + Resource Manager API or the portal. + :type resource_group_name: str + :param service_name: The name of the Service resource. + :type service_name: str + :param app_name: The name of the App resource. + :type app_name: str + :param domain_name: The name of the custom domain resource. + :type domain_name: str + :param properties: Properties of the custom domain resource. + :type properties: + ~azure.mgmt.appplatform.models.CustomDomainProperties + :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: CustomDomainResource or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.appplatform.models.CustomDomainResource or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + domain_resource = models.CustomDomainResource(properties=properties) + + # Construct URL + url = self.patch.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'), + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'appName': self._serialize.url("app_name", app_name, 'str'), + 'domainName': self._serialize.url("domain_name", domain_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' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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 body + body_content = self._serialize.body(domain_resource, 'CustomDomainResource') + + # Construct and send request + request = self._client.patch(url, query_parameters, header_parameters, body_content) + 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('CustomDomainResource', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + patch.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/{domainName}'} + + def list( + self, resource_group_name, service_name, app_name, custom_headers=None, raw=False, **operation_config): + """List the custom domains of one lifecycle application. + + :param resource_group_name: The name of the resource group that + contains the resource. You can obtain this value from the Azure + Resource Manager API or the portal. + :type resource_group_name: str + :param service_name: The name of the Service resource. + :type service_name: str + :param app_name: The name of the App resource. + :type app_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: An iterator like instance of CustomDomainResource + :rtype: + ~azure.mgmt.appplatform.models.CustomDomainResourcePaged[~azure.mgmt.appplatform.models.CustomDomainResource] + :raises: :class:`CloudError` + """ + def prepare_request(next_link=None): + if not next_link: + # 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'), + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'appName': self._serialize.url("app_name", app_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') + + else: + url = next_link + query_parameters = {} + + # 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) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + 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 + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.CustomDomainResourcePaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains'} + + def validate( + self, resource_group_name, service_name, app_name, name, custom_headers=None, raw=False, **operation_config): + """Check the resource name is valid as well as not in use. + + :param resource_group_name: The name of the resource group that + contains the resource. You can obtain this value from the Azure + Resource Manager API or the portal. + :type resource_group_name: str + :param service_name: The name of the Service resource. + :type service_name: str + :param app_name: The name of the App resource. + :type app_name: str + :param name: Name to be validated + :type 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: CustomDomainValidateResult or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.appplatform.models.CustomDomainValidateResult or + ~msrest.pipeline.ClientRawResponse + :raises: :class:`CloudError` + """ + validate_payload = models.CustomDomainValidatePayload(name=name) + + # Construct URL + url = self.validate.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'), + 'serviceName': self._serialize.url("service_name", service_name, 'str'), + 'appName': self._serialize.url("app_name", app_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' + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + 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 body + body_content = self._serialize.body(validate_payload, 'CustomDomainValidatePayload') + + # Construct and send request + request = self._client.post(url, query_parameters, header_parameters, body_content) + 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('CustomDomainValidateResult', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + validate.metadata = {'url': '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppPlatform/Spring/{serviceName}/apps/{appName}/domains/validate'} diff --git a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_deployments_operations.py b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_deployments_operations.py index 9d07e4221749..53205447fd4c 100644 --- a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_deployments_operations.py +++ b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_deployments_operations.py @@ -113,9 +113,7 @@ def get( def _create_or_update_initial( self, resource_group_name, service_name, app_name, deployment_name, properties=None, custom_headers=None, raw=False, **operation_config): - deployment_resource = None - if properties is not None: - deployment_resource = models.DeploymentResource(properties=properties) + deployment_resource = models.DeploymentResource(properties=properties) # Construct URL url = self.create_or_update.metadata['url'] @@ -144,10 +142,7 @@ def _create_or_update_initial( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body - if deployment_resource is not None: - body_content = self._serialize.body(deployment_resource, 'DeploymentResource') - else: - body_content = None + body_content = self._serialize.body(deployment_resource, 'DeploymentResource') # Construct and send request request = self._client.put(url, query_parameters, header_parameters, body_content) @@ -294,9 +289,7 @@ def delete( def _update_initial( self, resource_group_name, service_name, app_name, deployment_name, properties=None, custom_headers=None, raw=False, **operation_config): - deployment_resource = None - if properties is not None: - deployment_resource = models.DeploymentResource(properties=properties) + deployment_resource = models.DeploymentResource(properties=properties) # Construct URL url = self.update.metadata['url'] @@ -325,10 +318,7 @@ def _update_initial( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body - if deployment_resource is not None: - body_content = self._serialize.body(deployment_resource, 'DeploymentResource') - else: - body_content = None + body_content = self._serialize.body(deployment_resource, 'DeploymentResource') # Construct and send request request = self._client.patch(url, query_parameters, header_parameters, body_content) @@ -449,9 +439,9 @@ def prepare_request(next_link=None): # Construct parameters query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') if version is not None: query_parameters['version'] = self._serialize.query("version", version, '[str]', div=',') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') else: url = next_link @@ -527,9 +517,9 @@ def prepare_request(next_link=None): # Construct parameters query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') if version is not None: query_parameters['version'] = self._serialize.query("version", version, '[str]', div=',') - query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') else: url = next_link diff --git a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_services_operations.py b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_services_operations.py index 95a200815e9d..3fb045d78002 100644 --- a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_services_operations.py +++ b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_services_operations.py @@ -106,7 +106,7 @@ def get( def _create_or_update_initial( - self, resource_group_name, service_name, resource=None, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, service_name, resource, custom_headers=None, raw=False, **operation_config): # Construct URL url = self.create_or_update.metadata['url'] path_format_arguments = { @@ -132,10 +132,7 @@ def _create_or_update_initial( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body - if resource is not None: - body_content = self._serialize.body(resource, 'ServiceResource') - else: - body_content = None + body_content = self._serialize.body(resource, 'ServiceResource') # Construct and send request request = self._client.put(url, query_parameters, header_parameters, body_content) @@ -160,7 +157,7 @@ def _create_or_update_initial( return deserialized def create_or_update( - self, resource_group_name, service_name, resource=None, custom_headers=None, raw=False, polling=True, **operation_config): + self, resource_group_name, service_name, resource, custom_headers=None, raw=False, polling=True, **operation_config): """Create a new Service or update an exiting Service. :param resource_group_name: The name of the resource group that @@ -294,7 +291,7 @@ def get_long_running_output(response): def _update_initial( - self, resource_group_name, service_name, resource=None, custom_headers=None, raw=False, **operation_config): + self, resource_group_name, service_name, resource, custom_headers=None, raw=False, **operation_config): # Construct URL url = self.update.metadata['url'] path_format_arguments = { @@ -320,10 +317,7 @@ def _update_initial( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body - if resource is not None: - body_content = self._serialize.body(resource, 'ServiceResource') - else: - body_content = None + body_content = self._serialize.body(resource, 'ServiceResource') # Construct and send request request = self._client.patch(url, query_parameters, header_parameters, body_content) @@ -348,7 +342,7 @@ def _update_initial( return deserialized def update( - self, resource_group_name, service_name, resource=None, custom_headers=None, raw=False, polling=True, **operation_config): + self, resource_group_name, service_name, resource, custom_headers=None, raw=False, polling=True, **operation_config): """Operation to update an exiting Service. :param resource_group_name: The name of the resource group that @@ -485,9 +479,7 @@ def regenerate_test_key( ~msrest.pipeline.ClientRawResponse :raises: :class:`CloudError` """ - regenerate_test_key_request = None - if key_type is not None: - regenerate_test_key_request = models.RegenerateTestKeyRequestPayload(key_type=key_type) + regenerate_test_key_request = models.RegenerateTestKeyRequestPayload(key_type=key_type) # Construct URL url = self.regenerate_test_key.metadata['url'] @@ -514,10 +506,7 @@ def regenerate_test_key( header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') # Construct body - if regenerate_test_key_request is not None: - body_content = self._serialize.body(regenerate_test_key_request, 'RegenerateTestKeyRequestPayload') - else: - body_content = None + body_content = self._serialize.body(regenerate_test_key_request, 'RegenerateTestKeyRequestPayload') # Construct and send request request = self._client.post(url, query_parameters, header_parameters, body_content) @@ -682,8 +671,8 @@ def check_name_availability( # Construct URL url = self.check_name_availability.metadata['url'] path_format_arguments = { - 'location': self._serialize.url("location", location, 'str'), - 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str') + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'location': self._serialize.url("location", location, 'str') } url = self._client.format_url(url, **path_format_arguments) diff --git a/sdk/appplatform/azure-mgmt-appplatform/setup.py b/sdk/appplatform/azure-mgmt-appplatform/setup.py index 72f2b8893ef8..4857bcb5ab4f 100644 --- a/sdk/appplatform/azure-mgmt-appplatform/setup.py +++ b/sdk/appplatform/azure-mgmt-appplatform/setup.py @@ -36,9 +36,7 @@ pass # Version extraction inspired from 'requests' -with open(os.path.join(package_folder_path, 'version.py') - if os.path.exists(os.path.join(package_folder_path, 'version.py')) - else os.path.join(package_folder_path, '_version.py'), 'r') as fd: +with open(os.path.join(package_folder_path, 'version.py'), 'r') as fd: version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) diff --git a/sdk/appplatform/azure-mgmt-appplatform/tests/recordings/test_cli_mgmt_appplatform.test_appplatform.yaml b/sdk/appplatform/azure-mgmt-appplatform/tests/recordings/test_cli_mgmt_appplatform.test_appplatform.yaml deleted file mode 100644 index 8b3889d71d20..000000000000 --- a/sdk/appplatform/azure-mgmt-appplatform/tests/recordings/test_cli_mgmt_appplatform.test_appplatform.yaml +++ /dev/null @@ -1,2181 +0,0 @@ -interactions: -- request: - body: 'b''{"location": "eastus", "tags": {"key1": "value1"}, "properties": {"configServerProperties": - {"configServer": {"gitProperty": {"uri": "https://github.com/fake-user/fake-repository.git", - "label": "master", "searchPaths": ["/"]}}}, "trace": {"enabled": true, "appInsightInstrumentationKey": - "00000000-0000-0000-0000-000000000000"}}}''' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '329' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice?api-version=2019-05-01-preview - response: - body: - string: '{"properties":{"provisioningState":"Creating","configServerProperties":{"state":"NotAvailable"},"trace":{"state":"NotAvailable","enabled":true,"appInsightInstrumentationKey":"00000000-0000-0000-0000-000000000000"},"version":2,"serviceId":"9dad9944e4d94634948313a6304a556e"},"type":"Microsoft.AppPlatform/Spring","identity":null,"sku":{"name":"S0","tier":"Standard"},"location":"eastus","tags":{"key1":"value1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice","name":"myservice"}' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd?api-version=2019-05-01-preview - cache-control: - - no-cache - content-length: - - '604' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 20:58:52 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationResults/cf216091-7383-47c6-915f-6324398c34dd/Spring/myservice?api-version=2019-05-01-preview - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 201 - message: Created -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd","name":"cf216091-7383-47c6-915f-6324398c34dd","status":"Running","startTime":"2020-04-30T20:58:49.7795906Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 20:59:24 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd","name":"cf216091-7383-47c6-915f-6324398c34dd","status":"Running","startTime":"2020-04-30T20:58:49.7795906Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 20:59:54 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd","name":"cf216091-7383-47c6-915f-6324398c34dd","status":"Running","startTime":"2020-04-30T20:58:49.7795906Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:00:24 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd","name":"cf216091-7383-47c6-915f-6324398c34dd","status":"Running","startTime":"2020-04-30T20:58:49.7795906Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:00:54 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd","name":"cf216091-7383-47c6-915f-6324398c34dd","status":"Running","startTime":"2020-04-30T20:58:49.7795906Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:01:25 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd","name":"cf216091-7383-47c6-915f-6324398c34dd","status":"Running","startTime":"2020-04-30T20:58:49.7795906Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:01:55 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd","name":"cf216091-7383-47c6-915f-6324398c34dd","status":"Running","startTime":"2020-04-30T20:58:49.7795906Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:02:25 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd","name":"cf216091-7383-47c6-915f-6324398c34dd","status":"Succeeded","startTime":"2020-04-30T20:58:49.7795906Z","endTime":"2020-04-30T21:02:47.4320716Z"}' - headers: - cache-control: - - no-cache - content-length: - - '401' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:02:55 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice?api-version=2019-05-01-preview - response: - body: - string: '{"properties":{"provisioningState":"Succeeded","configServerProperties":{"state":"NotAvailable"},"trace":{"state":"Succeeded","enabled":true,"appInsightInstrumentationKey":"00000000-0000-0000-0000-000000000000"},"version":2,"serviceId":"9dad9944e4d94634948313a6304a556e"},"type":"Microsoft.AppPlatform/Spring","identity":null,"sku":{"name":"S0","tier":"Standard"},"location":"eastus","tags":{"key1":"value1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice","name":"myservice"}' - headers: - cache-control: - - no-cache - content-length: - - '602' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:02:56 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: '{"properties": {"public": true, "activeDeploymentName": "mydeployment1", - "temporaryDisk": {"sizeInGB": 2, "mountPath": "/mytemporarydisk"}, "persistentDisk": - {"sizeInGB": 2, "mountPath": "/mypersistentdisk"}}}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '209' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - accept-language: - - en-US - method: PUT - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp?api-version=2019-05-01-preview - response: - body: - string: '{"properties":{"public":true,"provisioningState":"Succeeded","httpsOnly":false,"createdTime":"2020-04-30T21:02:58.782Z","temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp","name":"myapp"}' - headers: - cache-control: - - no-cache - content-length: - - '508' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:02:58 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp?api-version=2019-05-01-preview - response: - body: - string: '{"properties":{"public":true,"provisioningState":"Succeeded","fqdn":"myservice.azuremicroservices.io","httpsOnly":false,"createdTime":"2020-04-30T21:02:58.782Z","temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp","name":"myapp"}' - headers: - cache-control: - - no-cache - content-length: - - '549' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:02:58 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - accept-language: - - en-US - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice?api-version=2019-05-01-preview - response: - body: - string: '{"properties":{"provisioningState":"Succeeded","configServerProperties":{"state":"NotAvailable"},"trace":{"state":"Succeeded","enabled":true,"appInsightInstrumentationKey":"00000000-0000-0000-0000-000000000000"},"version":2,"serviceId":"9dad9944e4d94634948313a6304a556e"},"type":"Microsoft.AppPlatform/Spring","identity":null,"sku":{"name":"S0","tier":"Standard"},"location":"eastus","tags":{"key1":"value1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice","name":"myservice"}' - headers: - cache-control: - - no-cache - content-length: - - '602' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:02:58 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - accept-language: - - en-US - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/getResourceUploadUrl?api-version=2019-05-01-preview - response: - body: - string: '{"relativePath":"resources/c1b70247946b22975617cfe4f3fdebe8bad9114057300be745f0632c007d2cc9-2020043021-8791c8af-c840-4237-b1fd-715e4c92a545","uploadUrl":"https://0fc58c34e2b942d29270250e.file.core.windows.net/9dad9944e4d94634948313a6304a556e/resources/c1b70247946b22975617cfe4f3fdebe8bad9114057300be745f0632c007d2cc9-2020043021-8791c8af-c840-4237-b1fd-715e4c92a545?sv=2018-03-28&sr=f&sig=i0Y9Cm7OW34z3hi8BIMKlZuan958mBR2fMAuqPyP%2Fdk%3D&se=2020-04-30T23%3A03%3A00Z&sp=w"}' - headers: - cache-control: - - no-cache - content-length: - - '471' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:02:59 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1199' - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - accept-language: - - en-US - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice/disableTestEndpoint?api-version=2019-05-01-preview - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Thu, 30 Apr 2020 21:03:00 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1198' - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - accept-language: - - en-US - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice/enableTestEndpoint?api-version=2019-05-01-preview - response: - body: - string: '{"primaryKey":"WBIPge558t6MgIwHqgY37QRvC5nPs2dBX5h1ClPtizAXfnzlGEp3J4iS3XlNvZSr","secondaryKey":"ZhevlIer5CdIRUUjbZ6Vj3xLadCcXA1UJKol9Ryv2MLzrvaRvDyV38OGQyBpar9X","primaryTestEndpoint":"https://primary:WBIPge558t6MgIwHqgY37QRvC5nPs2dBX5h1ClPtizAXfnzlGEp3J4iS3XlNvZSr@myservice.test.azuremicroservices.io","secondaryTestEndpoint":"https://secondary:ZhevlIer5CdIRUUjbZ6Vj3xLadCcXA1UJKol9Ryv2MLzrvaRvDyV38OGQyBpar9X@myservice.test.azuremicroservices.io","enabled":true}' - headers: - cache-control: - - no-cache - content-length: - - '466' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:03:01 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1197' - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: '{"keyType": "Primary"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '22' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - accept-language: - - en-US - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice/regenerateTestKey?api-version=2019-05-01-preview - response: - body: - string: '{"primaryKey":"6XVTbEfjdYyU9OYiRlDYf7IpQ6xJLGpfZPMrI57llZJsioccTMkk8oe4ilRilD4A","secondaryKey":"ZhevlIer5CdIRUUjbZ6Vj3xLadCcXA1UJKol9Ryv2MLzrvaRvDyV38OGQyBpar9X","primaryTestEndpoint":"https://primary:6XVTbEfjdYyU9OYiRlDYf7IpQ6xJLGpfZPMrI57llZJsioccTMkk8oe4ilRilD4A@myservice.test.azuremicroservices.io","secondaryTestEndpoint":"https://secondary:ZhevlIer5CdIRUUjbZ6Vj3xLadCcXA1UJKol9Ryv2MLzrvaRvDyV38OGQyBpar9X@myservice.test.azuremicroservices.io","enabled":true}' - headers: - cache-control: - - no-cache - content-length: - - '466' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:03:01 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1196' - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - accept-language: - - en-US - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice/listTestKeys?api-version=2019-05-01-preview - response: - body: - string: '{"primaryKey":"6XVTbEfjdYyU9OYiRlDYf7IpQ6xJLGpfZPMrI57llZJsioccTMkk8oe4ilRilD4A","secondaryKey":"ZhevlIer5CdIRUUjbZ6Vj3xLadCcXA1UJKol9Ryv2MLzrvaRvDyV38OGQyBpar9X","primaryTestEndpoint":"https://primary:6XVTbEfjdYyU9OYiRlDYf7IpQ6xJLGpfZPMrI57llZJsioccTMkk8oe4ilRilD4A@myservice.test.azuremicroservices.io","secondaryTestEndpoint":"https://secondary:ZhevlIer5CdIRUUjbZ6Vj3xLadCcXA1UJKol9Ryv2MLzrvaRvDyV38OGQyBpar9X@myservice.test.azuremicroservices.io","enabled":true}' - headers: - cache-control: - - no-cache - content-length: - - '466' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:03:02 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1195' - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: '{"type": "Microsoft.AppPlatform/Spring", "name": "myservice"}' - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '61' - Content-Type: - - application/json; charset=utf-8 - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - accept-language: - - en-US - method: POST - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppPlatform/locations/eastus/checkNameAvailability?api-version=2019-05-01-preview - response: - body: - string: '{"nameAvailable":false,"reason":"AlreadyExists","message":"Resource - name already exists."}' - headers: - cache-control: - - no-cache - content-length: - - '90' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:03:03 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-writes: - - '1194' - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - accept-language: - - en-US - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp?api-version=2019-05-01-preview - response: - body: - string: '' - headers: - cache-control: - - no-cache - content-length: - - '0' - date: - - Thu, 30 Apr 2020 21:03:04 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14998' - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - Content-Length: - - '0' - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - accept-language: - - en-US - method: DELETE - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice?api-version=2019-05-01-preview - response: - body: - string: '' - headers: - azure-asyncoperation: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - cache-control: - - no-cache - content-length: - - '0' - date: - - Thu, 30 Apr 2020 21:03:05 GMT - expires: - - '-1' - location: - - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationResults/1f7d3c40-52bc-46a1-ab77-56b60747490e/Spring/myservice?api-version=2019-05-01-preview - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - x-content-type-options: - - nosniff - x-ms-ratelimit-remaining-subscription-deletes: - - '14997' - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 202 - message: Accepted -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:03:37 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:04:07 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:04:37 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:05:07 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:05:37 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:06:09 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:06:39 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:07:09 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:07:40 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:08:10 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:08:40 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:09:10 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:09:42 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:10:12 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:10:43 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:11:13 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:11:43 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:12:13 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:12:43 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:13:14 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:13:44 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:14:14 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:14:45 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:15:15 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' - headers: - cache-control: - - no-cache - content-length: - - '358' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:15:45 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -- request: - body: null - headers: - Accept: - - application/json - Accept-Encoding: - - gzip, deflate - Connection: - - keep-alive - User-Agent: - - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 - msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python - method: GET - uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview - response: - body: - string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Succeeded","startTime":"2020-04-30T21:03:06.5893186Z","endTime":"2020-04-30T21:16:14.2365669Z"}' - headers: - cache-control: - - no-cache - content-length: - - '401' - content-type: - - application/json; charset=utf-8 - date: - - Thu, 30 Apr 2020 21:16:21 GMT - expires: - - '-1' - pragma: - - no-cache - server: - - nginx/1.17.7 - strict-transport-security: - - max-age=31536000; includeSubDomains - transfer-encoding: - - chunked - vary: - - Accept-Encoding,Accept-Encoding - x-content-type-options: - - nosniff - x-rp-server-mvid: - - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae - status: - code: 200 - message: OK -version: 1 diff --git a/sdk/appplatform/azure-mgmt-appplatform/tests/test_cli_mgmt_appplatform.py b/sdk/appplatform/azure-mgmt-appplatform/tests/test_cli_mgmt_appplatform.py deleted file mode 100644 index 742f4aa8292e..000000000000 --- a/sdk/appplatform/azure-mgmt-appplatform/tests/test_cli_mgmt_appplatform.py +++ /dev/null @@ -1,343 +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. -#-------------------------------------------------------------------------- - - -# TEST SCENARIO COVERAGE -# ---------------------- -# Methods Total : 43 -# Methods Covered : 43 -# Examples Total : 43 -# Examples Tested : 19 -# Coverage % : 44 -# ---------------------- - -import unittest - -import azure.mgmt.appplatform -from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer - -AZURE_LOCATION = 'eastus' - -class MgmtAppPlatformTest(AzureMgmtTestCase): - - def setUp(self): - super(MgmtAppPlatformTest, self).setUp() - self.mgmt_client = self.create_mgmt_client( - azure.mgmt.appplatform.AppPlatformManagementClient - ) - - @ResourceGroupPreparer(location=AZURE_LOCATION) - def test_appplatform(self, resource_group): - - SUBSCRIPTION_ID = self.settings.SUBSCRIPTION_ID - TENANT_ID = self.settings.TENANT_ID - RESOURCE_GROUP = resource_group.name - SERVICE_NAME = "myservice" - LOCATION = "myLocation" - APP_NAME = "myapp" - BINDING_NAME = "mybinding" - DATABASE_ACCOUNT_NAME = "myDatabaseAccount" - CERTIFICATE_NAME = "myCertificate" - DOMAIN_NAME = "myDomain" - DEPLOYMENT_NAME = "mydeployment" - - # /Services/put/Services_CreateOrUpdate[put] - BODY = { - "properties": { - "config_server_properties": { - "config_server": { - "git_property": { - "uri": "https://github.com/fake-user/fake-repository.git", - "label": "master", - "search_paths": [ - "/" - ] - } - } - }, - "trace": { - "enabled": True, - "app_insight_instrumentation_key": "00000000-0000-0000-0000-000000000000" - } - }, - "tags": { - "key1": "value1" - }, - "location": "eastus" - } - result = self.mgmt_client.services.create_or_update(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, resource=BODY) - result = result.result() - - # /Apps/put/Apps_CreateOrUpdate[put] - PROPERTIES = { - "public": True, - "active_deployment_name": "mydeployment1", - "fqdn": "myapp.mydomain.com", - "https_only": False, - "temporary_disk": { - "size_in_gb": "2", - "mount_path": "/mytemporarydisk" - }, - "persistent_disk": { - "size_in_gb": "2", - "mount_path": "/mypersistentdisk" - } - } - result = self.mgmt_client.apps.create_or_update(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, properties= PROPERTIES, location="eastus") - result = result.result() - - # Not available/tested yet - # /Certificates/put/Certificates_CreateOrUpdate[put] - PROPERTIES = { - "vault_uri": "https://myvault.vault.azure.net", - "key_vault_cert_name": "mycert", - "cert_version": "08a219d06d874795a96db47e06fbb01e" - } - # result = self.mgmt_client.certificates.create_or_update(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, certificate_name=CERTIFICATE_NAME, properties= PROPERTIES) - - # Not available/tested yet - # /CustomDomains/put/CustomDomains_CreateOrUpdate[put] - PROPERTIES = { - "thumbprint": "934367bf1c97033f877db0f15cb1b586957d3133", - "app_name": "myapp", - "cert_name": "mycert" - } - # result = self.mgmt_client.custom_domains.create_or_update(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, domain_name=DOMAIN_NAME, properties= PROPERTIES) - - # Not available/tested yet - # /Bindings/put/Bindings_CreateOrUpdate[put] - PROPERTIES = { - "resource_name": "my-cosmosdb-1", - "resource_type": "Microsoft.DocumentDB", - "resource_id": "/subscriptions/" + SUBSCRIPTION_ID + "/resourceGroups/" + RESOURCE_GROUP + "/providers/Microsoft.DocumentDB/databaseAccounts/" + DATABASE_ACCOUNT_NAME + "", - "key": "xxxx", - "binding_parameters": { - "database_name": "db1", - "api_type": "SQL" - } - } - # result = self.mgmt_client.bindings.create_or_update(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, binding_name=BINDING_NAME, properties= PROPERTIES) - - # Not available/tested yet - # /Deployments/put/Deployments_CreateOrUpdate[put] - PROPERTIES = { - "source": { - "type": "Source", - "relative_path": "resources/a172cedcae47474b615c54d510a5d84a8dea3032e958587430b413538be3f333-2019082605-e3095339-1723-44b7-8b5e-31b1003978bc", - "version": "1.0", - "artifact_selector": "sub-module-1" - }, - "deployment_settings": { - "cpu": "1", - "memory_in_gb": "3", - "jvm_options": "-Xms1G -Xmx3G", - "instance_count": "1", - "environment_variables": { - "env": "test" - }, - "runtime_version": "Java_8" - } - } - # result = self.mgmt_client.deployments.create_or_update(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, deployment_name=DEPLOYMENT_NAME, properties= PROPERTIES) - # result = result.result() - - # Not available/tested yet - # /Deployments/get/Deployments_Get[get] - # result = self.mgmt_client.deployments.get(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, deployment_name=DEPLOYMENT_NAME) - - # Not available/tested yet - # /Bindings/get/Bindings_Get[get] - # result = self.mgmt_client.bindings.get(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, binding_name=BINDING_NAME) - - # Not available/tested yet - # /CustomDomains/get/CustomDomains_Get[get] - # result = self.mgmt_client.custom_domains.get(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, domain_name=DOMAIN_NAME) - - # Not available/tested yet - # /Certificates/get/Certificates_Get[get] - # result = self.mgmt_client.certificates.get(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, certificate_name=CERTIFICATE_NAME) - - # /Deployments/get/Deployments_List[get] - result = self.mgmt_client.deployments.list(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME) - - # /Bindings/get/Bindings_List[get] - result = self.mgmt_client.bindings.list(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME) - - # Not available/tested yet - # /CustomDomains/get/CustomDomains_List[get] - # result = self.mgmt_client.custom_domains.list(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME) - - # /Apps/get/Apps_Get[get] - result = self.mgmt_client.apps.get(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME) - - # Not available/tested yet - # /Certificates/get/Certificates_List[get] - # result = self.mgmt_client.certificates.list(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME) - - # /Deployments/get/Deployments_ListClusterAllDeployments[get] - result = self.mgmt_client.deployments.list_cluster_all_deployments(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME) - - # /Apps/get/Apps_List[get] - result = self.mgmt_client.apps.list(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME) - - # /Services/get/Services_Get[get] - result = self.mgmt_client.services.get(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME) - - # /Services/get/Services_List[get] - result = self.mgmt_client.services.list(resource_group_name=RESOURCE_GROUP) - - # /Services/get/Services_ListBySubscription[get] - result = self.mgmt_client.services.list_by_subscription() - - # /Operations/get/Operations_List[get] - result = self.mgmt_client.operations.list() - - # Not available/tested yet - # /Deployments/post/Deployments_GetLogFileUrl[post] - # result = self.mgmt_client.deployments.get_log_file_url(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, deployment_name=DEPLOYMENT_NAME) - - # Not available/tested yet - # /Deployments/post/Deployments_Restart[post] - # result = self.mgmt_client.deployments.restart(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, deployment_name=DEPLOYMENT_NAME) - # result = result.result() - - # Not available/tested yet - # /Deployments/post/Deployments_Start[post] - # result = self.mgmt_client.deployments.start(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, deployment_name=DEPLOYMENT_NAME) - # result = result.result() - - # Not available/tested yet - # /Deployments/post/Deployments_Stop[post] - # result = self.mgmt_client.deployments.stop(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, deployment_name=DEPLOYMENT_NAME) - # result = result.result() - - # Not available/tested yet - # /Deployments/patch/Deployments_Update[patch] - PROPERTIES = { - "source": { - "type": "Source", - "relative_path": "resources/a172cedcae47474b615c54d510a5d84a8dea3032e958587430b413538be3f333-2019082605-e3095339-1723-44b7-8b5e-31b1003978bc", - "version": "1.0", - "artifact_selector": "sub-module-1" - } - } - # result = self.mgmt_client.deployments.update(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, deployment_name=DEPLOYMENT_NAME, properties= PROPERTIES) - # result = result.result() - - # Not available/tested yet - # /Bindings/patch/Bindings_Update[patch] - PROPERTIES = { - "key": "xxxx", - "binding_parameters": { - "database_name": "db1", - "api_type": "SQL" - } - } - # result = self.mgmt_client.bindings.update(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, binding_name=BINDING_NAME, properties= PROPERTIES) - - # Not available/tested yet - # /CustomDomains/patch/CustomDomains_Patch[patch] - PROPERTIES = { - "thumbprint": "934367bf1c97033f877db0f15cb1b586957d3133", - "app_name": "myapp", - "cert_name": "mycert" - } - # result = self.mgmt_client.custom_domains.patch(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, domain_name=DOMAIN_NAME, properties= PROPERTIES) - - # Not available/tested yet - # /CustomDomains/post/CustomDomains_Validate[post] - # result = self.mgmt_client.custom_domains.validate(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, domain_name=DOMAIN_NAME, name="mydomain.io") - - # /Apps/post/Apps_GetResourceUploadUrl[post] - result = self.mgmt_client.apps.get_resource_upload_url(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME) - - # Not available/tested yet - # /Apps/patch/Apps_Update[patch] - PROPERTIES = { - "public": True, - "active_deployment_name": "mydeployment1", - "fqdn": "myapp.mydomain.com", - "https_only": False, - "temporary_disk": { - "size_in_gb": "2", - "mount_path": "/mytemporarydisk" - }, - "persistent_disk": { - "size_in_gb": "2", - "mount_path": "/mypersistentdisk" - } - } - # result = self.mgmt_client.apps.update(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, properties= PROPERTIES, location="eastus") - # result = result.result() - - # /Services/post/Services_DisableTestEndpoint[post] - result = self.mgmt_client.services.disable_test_endpoint(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME) - - # /Services/post/Services_EnableTestEndpoint[post] - result = self.mgmt_client.services.enable_test_endpoint(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME) - - # /Services/post/Services_RegenerateTestKey[post] - result = self.mgmt_client.services.regenerate_test_key(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, key_type="Primary") - - # /Services/post/Services_ListTestKeys[post] - result = self.mgmt_client.services.list_test_keys(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME) - - # Not available/tested yet - # /Services/patch/Services_Update[patch] - BODY = { - "properties": { - "config_server_properties": { - "config_server": { - "git_property": { - "uri": "https://github.com/fake-user/fake-repository.git", - "label": "master", - "search_paths": [ - "/" - ] - } - } - }, - "trace": { - "enabled": True, - "app_insight_instrumentation_key": "00000000-0000-0000-0000-000000000000" - } - }, - "location": "eastus", - "tags": { - "key1": "value1" - } - } - # result = self.mgmt_client.services.update(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, resource=BODY) - # result = result.result() - - # /Services/post/Services_CheckNameAvailability[post] - result = self.mgmt_client.services.check_name_availability(azure_location=AZURE_LOCATION, type="Microsoft.AppPlatform/Spring", name="myservice") - - # Not available/tested yet - # /Bindings/delete/Bindings_Delete[delete] - # result = self.mgmt_client.bindings.delete(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, binding_name=BINDING_NAME) - - # Not available/tested yet - # /CustomDomains/delete/CustomDomains_Delete[delete] - # result = self.mgmt_client.custom_domains.delete(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, domain_name=DOMAIN_NAME) - - # Not available/tested yet - # /Certificates/delete/Certificates_Delete[delete] - # result = self.mgmt_client.certificates.delete(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, certificate_name=CERTIFICATE_NAME) - - # /Apps/delete/Apps_Delete[delete] - result = self.mgmt_client.apps.delete(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME) - - # /Services/delete/Services_Delete[delete] - result = self.mgmt_client.services.delete(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME) - result = result.result() - - -#------------------------------------------------------------------------------ -if __name__ == '__main__': - unittest.main() From 86ac008572615dc53dcd546901988939b878e1b5 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Fri, 15 May 2020 07:49:45 +0000 Subject: [PATCH 2/2] Generated from 061b7ec93df428428b6b36b81d96d711b4b73791 add resource sku definition --- .../_app_platform_management_client.py | 5 + .../azure/mgmt/appplatform/models/__init__.py | 32 + .../_app_platform_management_client_enums.py | 19 + .../azure/mgmt/appplatform/models/_models.py | 240 ++ .../mgmt/appplatform/models/_models_py3.py | 242 +- .../mgmt/appplatform/models/_paged_models.py | 13 + .../mgmt/appplatform/operations/__init__.py | 2 + .../appplatform/operations/_sku_operations.py | 106 + .../azure-mgmt-appplatform/setup.py | 4 +- ...cli_mgmt_appplatform.test_appplatform.yaml | 2181 +++++++++++++++++ .../tests/test_cli_mgmt_appplatform.py | 343 +++ 11 files changed, 3185 insertions(+), 2 deletions(-) create mode 100644 sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_sku_operations.py create mode 100644 sdk/appplatform/azure-mgmt-appplatform/tests/recordings/test_cli_mgmt_appplatform.test_appplatform.yaml create mode 100644 sdk/appplatform/azure-mgmt-appplatform/tests/test_cli_mgmt_appplatform.py diff --git a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/_app_platform_management_client.py b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/_app_platform_management_client.py index 6081e8e91e68..4b2272208cef 100644 --- a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/_app_platform_management_client.py +++ b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/_app_platform_management_client.py @@ -20,6 +20,7 @@ from .operations import CustomDomainsOperations from .operations import DeploymentsOperations from .operations import Operations +from .operations import SkuOperations from . import models @@ -43,6 +44,8 @@ class AppPlatformManagementClient(SDKClient): :vartype deployments: azure.mgmt.appplatform.operations.DeploymentsOperations :ivar operations: Operations operations :vartype operations: azure.mgmt.appplatform.operations.Operations + :ivar sku: Sku operations + :vartype sku: azure.mgmt.appplatform.operations.SkuOperations :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials @@ -79,3 +82,5 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.operations = Operations( self._client, self.config, self._serialize, self._deserialize) + self.sku = SkuOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/__init__.py b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/__init__.py index 128d3f0f9e55..4b35aff8cb9d 100644 --- a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/__init__.py +++ b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/__init__.py @@ -43,9 +43,17 @@ from ._models_py3 import ProxyResource from ._models_py3 import RegenerateTestKeyRequestPayload from ._models_py3 import Resource + from ._models_py3 import ResourceSku + from ._models_py3 import ResourceSkuCapabilities + from ._models_py3 import ResourceSkuLocationInfo + from ._models_py3 import ResourceSkuRestrictionInfo + from ._models_py3 import ResourceSkuRestrictions + from ._models_py3 import ResourceSkuZoneDetails from ._models_py3 import ResourceUploadDefinition from ._models_py3 import ServiceResource from ._models_py3 import ServiceSpecification + from ._models_py3 import Sku + from ._models_py3 import SkuCapacity from ._models_py3 import TemporaryDisk from ._models_py3 import TestKeys from ._models_py3 import TraceProperties @@ -85,9 +93,17 @@ from ._models import ProxyResource from ._models import RegenerateTestKeyRequestPayload from ._models import Resource + from ._models import ResourceSku + from ._models import ResourceSkuCapabilities + from ._models import ResourceSkuLocationInfo + from ._models import ResourceSkuRestrictionInfo + from ._models import ResourceSkuRestrictions + from ._models import ResourceSkuZoneDetails from ._models import ResourceUploadDefinition from ._models import ServiceResource from ._models import ServiceSpecification + from ._models import Sku + from ._models import SkuCapacity from ._models import TemporaryDisk from ._models import TestKeys from ._models import TraceProperties @@ -99,6 +115,7 @@ from ._paged_models import CustomDomainResourcePaged from ._paged_models import DeploymentResourcePaged from ._paged_models import OperationDetailPaged +from ._paged_models import ResourceSkuPaged from ._paged_models import ServiceResourcePaged from ._app_platform_management_client_enums import ( ProvisioningState, @@ -110,6 +127,9 @@ RuntimeVersion, DeploymentResourceProvisioningState, DeploymentResourceStatus, + SkuScaleType, + ResourceSkuRestrictionsType, + ResourceSkuRestrictionsReasonCode, ) __all__ = [ @@ -146,9 +166,17 @@ 'ProxyResource', 'RegenerateTestKeyRequestPayload', 'Resource', + 'ResourceSku', + 'ResourceSkuCapabilities', + 'ResourceSkuLocationInfo', + 'ResourceSkuRestrictionInfo', + 'ResourceSkuRestrictions', + 'ResourceSkuZoneDetails', 'ResourceUploadDefinition', 'ServiceResource', 'ServiceSpecification', + 'Sku', + 'SkuCapacity', 'TemporaryDisk', 'TestKeys', 'TraceProperties', @@ -161,6 +189,7 @@ 'CustomDomainResourcePaged', 'DeploymentResourcePaged', 'OperationDetailPaged', + 'ResourceSkuPaged', 'ProvisioningState', 'ConfigServerState', 'TraceProxyState', @@ -170,4 +199,7 @@ 'RuntimeVersion', 'DeploymentResourceProvisioningState', 'DeploymentResourceStatus', + 'SkuScaleType', + 'ResourceSkuRestrictionsType', + 'ResourceSkuRestrictionsReasonCode', ] diff --git a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_app_platform_management_client_enums.py b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_app_platform_management_client_enums.py index 2978170fb08c..875f3bc85733 100644 --- a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_app_platform_management_client_enums.py +++ b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_app_platform_management_client_enums.py @@ -85,3 +85,22 @@ class DeploymentResourceStatus(str, Enum): allocating = "Allocating" upgrading = "Upgrading" compiling = "Compiling" + + +class SkuScaleType(str, Enum): + + none = "None" + manual = "Manual" + automatic = "Automatic" + + +class ResourceSkuRestrictionsType(str, Enum): + + location = "Location" + zone = "Zone" + + +class ResourceSkuRestrictionsReasonCode(str, Enum): + + quota_id = "QuotaId" + not_available_for_subscription = "NotAvailableForSubscription" diff --git a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_models.py b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_models.py index deffa406f077..3154e267221a 100644 --- a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_models.py +++ b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_models.py @@ -1247,6 +1247,177 @@ def __init__(self, **kwargs): self.key_type = kwargs.get('key_type', None) +class ResourceSku(Model): + """Describes an available Azure Spring Cloud SKU. + + :param resource_type: Gets the type of resource the SKU applies to. + :type resource_type: str + :param name: Gets the name of SKU. + :type name: str + :param tier: Gets the tier of SKU. + :type tier: str + :param capacity: Gets the capacity of SKU. + :type capacity: ~azure.mgmt.appplatform.models.SkuCapacity + :param locations: Gets the set of locations that the SKU is available. + :type locations: list[str] + :param location_info: Gets a list of locations and availability zones in + those locations where the SKU is available. + :type location_info: + list[~azure.mgmt.appplatform.models.ResourceSkuLocationInfo] + :param restrictions: Gets the restrictions because of which SKU cannot be + used. This is + empty if there are no restrictions. + :type restrictions: + list[~azure.mgmt.appplatform.models.ResourceSkuRestrictions] + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'SkuCapacity'}, + 'locations': {'key': 'locations', 'type': '[str]'}, + 'location_info': {'key': 'locationInfo', 'type': '[ResourceSkuLocationInfo]'}, + 'restrictions': {'key': 'restrictions', 'type': '[ResourceSkuRestrictions]'}, + } + + def __init__(self, **kwargs): + super(ResourceSku, self).__init__(**kwargs) + self.resource_type = kwargs.get('resource_type', None) + self.name = kwargs.get('name', None) + self.tier = kwargs.get('tier', None) + self.capacity = kwargs.get('capacity', None) + self.locations = kwargs.get('locations', None) + self.location_info = kwargs.get('location_info', None) + self.restrictions = kwargs.get('restrictions', None) + + +class ResourceSkuCapabilities(Model): + """ResourceSkuCapabilities. + + :param name: Gets an invariant to describe the feature. + :type name: str + :param value: Gets an invariant if the feature is measured by quantity. + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceSkuCapabilities, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.value = kwargs.get('value', None) + + +class ResourceSkuLocationInfo(Model): + """ResourceSkuLocationInfo. + + :param location: Gets location of the SKU + :type location: str + :param zones: Gets list of availability zones where the SKU is supported. + :type zones: list[str] + :param zone_details: Gets details of capabilities available to a SKU in + specific zones. + :type zone_details: + list[~azure.mgmt.appplatform.models.ResourceSkuZoneDetails] + """ + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'zones': {'key': 'zones', 'type': '[str]'}, + 'zone_details': {'key': 'zoneDetails', 'type': '[ResourceSkuZoneDetails]'}, + } + + def __init__(self, **kwargs): + super(ResourceSkuLocationInfo, self).__init__(**kwargs) + self.location = kwargs.get('location', None) + self.zones = kwargs.get('zones', None) + self.zone_details = kwargs.get('zone_details', None) + + +class ResourceSkuRestrictionInfo(Model): + """ResourceSkuRestrictionInfo. + + :param locations: Gets locations where the SKU is restricted + :type locations: list[str] + :param zones: Gets list of availability zones where the SKU is restricted. + :type zones: list[str] + """ + + _attribute_map = { + 'locations': {'key': 'locations', 'type': '[str]'}, + 'zones': {'key': 'zones', 'type': '[str]'}, + } + + def __init__(self, **kwargs): + super(ResourceSkuRestrictionInfo, self).__init__(**kwargs) + self.locations = kwargs.get('locations', None) + self.zones = kwargs.get('zones', None) + + +class ResourceSkuRestrictions(Model): + """ResourceSkuRestrictions. + + :param type: Gets the type of restrictions. Possible values include: + 'Location', 'Zone' + :type type: str or + ~azure.mgmt.appplatform.models.ResourceSkuRestrictionsType + :param values: Gets the value of restrictions. If the restriction type is + set to + location. This would be different locations where the SKU is restricted. + :type values: list[str] + :param restriction_info: Gets the information about the restriction where + the SKU cannot be used. + :type restriction_info: + ~azure.mgmt.appplatform.models.ResourceSkuRestrictionInfo + :param reason_code: Gets the reason for restriction. Possible values + include: 'QuotaId', 'NotAvailableForSubscription' + :type reason_code: str or + ~azure.mgmt.appplatform.models.ResourceSkuRestrictionsReasonCode + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[str]'}, + 'restriction_info': {'key': 'restrictionInfo', 'type': 'ResourceSkuRestrictionInfo'}, + 'reason_code': {'key': 'reasonCode', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(ResourceSkuRestrictions, self).__init__(**kwargs) + self.type = kwargs.get('type', None) + self.values = kwargs.get('values', None) + self.restriction_info = kwargs.get('restriction_info', None) + self.reason_code = kwargs.get('reason_code', None) + + +class ResourceSkuZoneDetails(Model): + """ResourceSkuZoneDetails. + + :param name: Gets the set of zones that the SKU is available in with the + specified capabilities. + :type name: list[str] + :param capabilities: Gets a list of capabilities that are available for + the SKU in the + specified list of zones. + :type capabilities: + list[~azure.mgmt.appplatform.models.ResourceSkuCapabilities] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': '[str]'}, + 'capabilities': {'key': 'capabilities', 'type': '[ResourceSkuCapabilities]'}, + } + + def __init__(self, **kwargs): + super(ResourceSkuZoneDetails, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.capabilities = kwargs.get('capabilities', None) + + class ResourceUploadDefinition(Model): """Resource upload definition payload. @@ -1325,6 +1496,8 @@ class ServiceResource(TrackedResource): :type tags: dict[str, str] :param properties: Properties of the Service resource :type properties: ~azure.mgmt.appplatform.models.ClusterResourceProperties + :param sku: Sku of the Service resource + :type sku: ~azure.mgmt.appplatform.models.Sku """ _validation = { @@ -1340,11 +1513,13 @@ class ServiceResource(TrackedResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'properties': {'key': 'properties', 'type': 'ClusterResourceProperties'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, } def __init__(self, **kwargs): super(ServiceResource, self).__init__(**kwargs) self.properties = kwargs.get('properties', None) + self.sku = kwargs.get('sku', None) class ServiceSpecification(Model): @@ -1370,6 +1545,71 @@ def __init__(self, **kwargs): self.metric_specifications = kwargs.get('metric_specifications', None) +class Sku(Model): + """Sku of Azure Spring Cloud. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of the Sku + :type name: str + :param tier: Tier of the Sku + :type tier: str + :param capacity: Current capacity of the target resource + :type capacity: int + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__(self, **kwargs): + super(Sku, self).__init__(**kwargs) + self.name = kwargs.get('name', None) + self.tier = kwargs.get('tier', None) + self.capacity = kwargs.get('capacity', None) + + +class SkuCapacity(Model): + """The SKU capacity. + + All required parameters must be populated in order to send to Azure. + + :param minimum: Required. Gets or sets the minimum. + :type minimum: int + :param maximum: Gets or sets the maximum. + :type maximum: int + :param default: Gets or sets the default. + :type default: int + :param scale_type: Gets or sets the type of the scale. Possible values + include: 'None', 'Manual', 'Automatic' + :type scale_type: str or ~azure.mgmt.appplatform.models.SkuScaleType + """ + + _validation = { + 'minimum': {'required': True}, + } + + _attribute_map = { + 'minimum': {'key': 'minimum', 'type': 'int'}, + 'maximum': {'key': 'maximum', 'type': 'int'}, + 'default': {'key': 'default', 'type': 'int'}, + 'scale_type': {'key': 'scaleType', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(SkuCapacity, self).__init__(**kwargs) + self.minimum = kwargs.get('minimum', None) + self.maximum = kwargs.get('maximum', None) + self.default = kwargs.get('default', None) + self.scale_type = kwargs.get('scale_type', None) + + class TemporaryDisk(Model): """Temporary disk payload. diff --git a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_models_py3.py b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_models_py3.py index 37402fc85841..eef558fc2f81 100644 --- a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_models_py3.py +++ b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_models_py3.py @@ -1247,6 +1247,177 @@ def __init__(self, *, key_type, **kwargs) -> None: self.key_type = key_type +class ResourceSku(Model): + """Describes an available Azure Spring Cloud SKU. + + :param resource_type: Gets the type of resource the SKU applies to. + :type resource_type: str + :param name: Gets the name of SKU. + :type name: str + :param tier: Gets the tier of SKU. + :type tier: str + :param capacity: Gets the capacity of SKU. + :type capacity: ~azure.mgmt.appplatform.models.SkuCapacity + :param locations: Gets the set of locations that the SKU is available. + :type locations: list[str] + :param location_info: Gets a list of locations and availability zones in + those locations where the SKU is available. + :type location_info: + list[~azure.mgmt.appplatform.models.ResourceSkuLocationInfo] + :param restrictions: Gets the restrictions because of which SKU cannot be + used. This is + empty if there are no restrictions. + :type restrictions: + list[~azure.mgmt.appplatform.models.ResourceSkuRestrictions] + """ + + _attribute_map = { + 'resource_type': {'key': 'resourceType', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'SkuCapacity'}, + 'locations': {'key': 'locations', 'type': '[str]'}, + 'location_info': {'key': 'locationInfo', 'type': '[ResourceSkuLocationInfo]'}, + 'restrictions': {'key': 'restrictions', 'type': '[ResourceSkuRestrictions]'}, + } + + def __init__(self, *, resource_type: str=None, name: str=None, tier: str=None, capacity=None, locations=None, location_info=None, restrictions=None, **kwargs) -> None: + super(ResourceSku, self).__init__(**kwargs) + self.resource_type = resource_type + self.name = name + self.tier = tier + self.capacity = capacity + self.locations = locations + self.location_info = location_info + self.restrictions = restrictions + + +class ResourceSkuCapabilities(Model): + """ResourceSkuCapabilities. + + :param name: Gets an invariant to describe the feature. + :type name: str + :param value: Gets an invariant if the feature is measured by quantity. + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, *, name: str=None, value: str=None, **kwargs) -> None: + super(ResourceSkuCapabilities, self).__init__(**kwargs) + self.name = name + self.value = value + + +class ResourceSkuLocationInfo(Model): + """ResourceSkuLocationInfo. + + :param location: Gets location of the SKU + :type location: str + :param zones: Gets list of availability zones where the SKU is supported. + :type zones: list[str] + :param zone_details: Gets details of capabilities available to a SKU in + specific zones. + :type zone_details: + list[~azure.mgmt.appplatform.models.ResourceSkuZoneDetails] + """ + + _attribute_map = { + 'location': {'key': 'location', 'type': 'str'}, + 'zones': {'key': 'zones', 'type': '[str]'}, + 'zone_details': {'key': 'zoneDetails', 'type': '[ResourceSkuZoneDetails]'}, + } + + def __init__(self, *, location: str=None, zones=None, zone_details=None, **kwargs) -> None: + super(ResourceSkuLocationInfo, self).__init__(**kwargs) + self.location = location + self.zones = zones + self.zone_details = zone_details + + +class ResourceSkuRestrictionInfo(Model): + """ResourceSkuRestrictionInfo. + + :param locations: Gets locations where the SKU is restricted + :type locations: list[str] + :param zones: Gets list of availability zones where the SKU is restricted. + :type zones: list[str] + """ + + _attribute_map = { + 'locations': {'key': 'locations', 'type': '[str]'}, + 'zones': {'key': 'zones', 'type': '[str]'}, + } + + def __init__(self, *, locations=None, zones=None, **kwargs) -> None: + super(ResourceSkuRestrictionInfo, self).__init__(**kwargs) + self.locations = locations + self.zones = zones + + +class ResourceSkuRestrictions(Model): + """ResourceSkuRestrictions. + + :param type: Gets the type of restrictions. Possible values include: + 'Location', 'Zone' + :type type: str or + ~azure.mgmt.appplatform.models.ResourceSkuRestrictionsType + :param values: Gets the value of restrictions. If the restriction type is + set to + location. This would be different locations where the SKU is restricted. + :type values: list[str] + :param restriction_info: Gets the information about the restriction where + the SKU cannot be used. + :type restriction_info: + ~azure.mgmt.appplatform.models.ResourceSkuRestrictionInfo + :param reason_code: Gets the reason for restriction. Possible values + include: 'QuotaId', 'NotAvailableForSubscription' + :type reason_code: str or + ~azure.mgmt.appplatform.models.ResourceSkuRestrictionsReasonCode + """ + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'values': {'key': 'values', 'type': '[str]'}, + 'restriction_info': {'key': 'restrictionInfo', 'type': 'ResourceSkuRestrictionInfo'}, + 'reason_code': {'key': 'reasonCode', 'type': 'str'}, + } + + def __init__(self, *, type=None, values=None, restriction_info=None, reason_code=None, **kwargs) -> None: + super(ResourceSkuRestrictions, self).__init__(**kwargs) + self.type = type + self.values = values + self.restriction_info = restriction_info + self.reason_code = reason_code + + +class ResourceSkuZoneDetails(Model): + """ResourceSkuZoneDetails. + + :param name: Gets the set of zones that the SKU is available in with the + specified capabilities. + :type name: list[str] + :param capabilities: Gets a list of capabilities that are available for + the SKU in the + specified list of zones. + :type capabilities: + list[~azure.mgmt.appplatform.models.ResourceSkuCapabilities] + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': '[str]'}, + 'capabilities': {'key': 'capabilities', 'type': '[ResourceSkuCapabilities]'}, + } + + def __init__(self, *, name=None, capabilities=None, **kwargs) -> None: + super(ResourceSkuZoneDetails, self).__init__(**kwargs) + self.name = name + self.capabilities = capabilities + + class ResourceUploadDefinition(Model): """Resource upload definition payload. @@ -1325,6 +1496,8 @@ class ServiceResource(TrackedResource): :type tags: dict[str, str] :param properties: Properties of the Service resource :type properties: ~azure.mgmt.appplatform.models.ClusterResourceProperties + :param sku: Sku of the Service resource + :type sku: ~azure.mgmt.appplatform.models.Sku """ _validation = { @@ -1340,11 +1513,13 @@ class ServiceResource(TrackedResource): 'location': {'key': 'location', 'type': 'str'}, 'tags': {'key': 'tags', 'type': '{str}'}, 'properties': {'key': 'properties', 'type': 'ClusterResourceProperties'}, + 'sku': {'key': 'sku', 'type': 'Sku'}, } - def __init__(self, *, location: str=None, tags=None, properties=None, **kwargs) -> None: + def __init__(self, *, location: str=None, tags=None, properties=None, sku=None, **kwargs) -> None: super(ServiceResource, self).__init__(location=location, tags=tags, **kwargs) self.properties = properties + self.sku = sku class ServiceSpecification(Model): @@ -1370,6 +1545,71 @@ def __init__(self, *, log_specifications=None, metric_specifications=None, **kwa self.metric_specifications = metric_specifications +class Sku(Model): + """Sku of Azure Spring Cloud. + + All required parameters must be populated in order to send to Azure. + + :param name: Required. Name of the Sku + :type name: str + :param tier: Tier of the Sku + :type tier: str + :param capacity: Current capacity of the target resource + :type capacity: int + """ + + _validation = { + 'name': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'tier': {'key': 'tier', 'type': 'str'}, + 'capacity': {'key': 'capacity', 'type': 'int'}, + } + + def __init__(self, *, name: str, tier: str=None, capacity: int=None, **kwargs) -> None: + super(Sku, self).__init__(**kwargs) + self.name = name + self.tier = tier + self.capacity = capacity + + +class SkuCapacity(Model): + """The SKU capacity. + + All required parameters must be populated in order to send to Azure. + + :param minimum: Required. Gets or sets the minimum. + :type minimum: int + :param maximum: Gets or sets the maximum. + :type maximum: int + :param default: Gets or sets the default. + :type default: int + :param scale_type: Gets or sets the type of the scale. Possible values + include: 'None', 'Manual', 'Automatic' + :type scale_type: str or ~azure.mgmt.appplatform.models.SkuScaleType + """ + + _validation = { + 'minimum': {'required': True}, + } + + _attribute_map = { + 'minimum': {'key': 'minimum', 'type': 'int'}, + 'maximum': {'key': 'maximum', 'type': 'int'}, + 'default': {'key': 'default', 'type': 'int'}, + 'scale_type': {'key': 'scaleType', 'type': 'str'}, + } + + def __init__(self, *, minimum: int, maximum: int=None, default: int=None, scale_type=None, **kwargs) -> None: + super(SkuCapacity, self).__init__(**kwargs) + self.minimum = minimum + self.maximum = maximum + self.default = default + self.scale_type = scale_type + + class TemporaryDisk(Model): """Temporary disk payload. diff --git a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_paged_models.py b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_paged_models.py index 63c872c720bb..d04b54cc3066 100644 --- a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_paged_models.py +++ b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/models/_paged_models.py @@ -103,3 +103,16 @@ class OperationDetailPaged(Paged): def __init__(self, *args, **kwargs): super(OperationDetailPaged, self).__init__(*args, **kwargs) +class ResourceSkuPaged(Paged): + """ + A paging container for iterating over a list of :class:`ResourceSku ` object + """ + + _attribute_map = { + 'next_link': {'key': 'nextLink', 'type': 'str'}, + 'current_page': {'key': 'value', 'type': '[ResourceSku]'} + } + + def __init__(self, *args, **kwargs): + + super(ResourceSkuPaged, self).__init__(*args, **kwargs) diff --git a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/__init__.py b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/__init__.py index e6ebd5353e70..45301a531c0e 100644 --- a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/__init__.py +++ b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/__init__.py @@ -16,6 +16,7 @@ from ._custom_domains_operations import CustomDomainsOperations from ._deployments_operations import DeploymentsOperations from ._operations import Operations +from ._sku_operations import SkuOperations __all__ = [ 'ServicesOperations', @@ -25,4 +26,5 @@ 'CustomDomainsOperations', 'DeploymentsOperations', 'Operations', + 'SkuOperations', ] diff --git a/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_sku_operations.py b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_sku_operations.py new file mode 100644 index 000000000000..26330c9b0656 --- /dev/null +++ b/sdk/appplatform/azure-mgmt-appplatform/azure/mgmt/appplatform/operations/_sku_operations.py @@ -0,0 +1,106 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse +from msrestazure.azure_exceptions import CloudError + +from .. import models + + +class SkuOperations(object): + """SkuOperations 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: Client Api Version. Constant value: "2019-05-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2019-05-01-preview" + + self.config = config + + def list( + self, custom_headers=None, raw=False, **operation_config): + """ + + :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: An iterator like instance of ResourceSku + :rtype: + ~azure.mgmt.appplatform.models.ResourceSkuPaged[~azure.mgmt.appplatform.models.ResourceSku] + :raises: :class:`CloudError` + """ + def prepare_request(next_link=None): + if not next_link: + # Construct URL + url = self.list.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) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + else: + url = next_link + query_parameters = {} + + # 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) + return request + + def internal_paging(next_link=None): + request = prepare_request(next_link) + + 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 + + return response + + # Deserialize response + header_dict = None + if raw: + header_dict = {} + deserialized = models.ResourceSkuPaged(internal_paging, self._deserialize.dependencies, header_dict) + + return deserialized + list.metadata = {'url': '/subscriptions/{subscriptionId}/providers/Microsoft.AppPlatform/skus'} diff --git a/sdk/appplatform/azure-mgmt-appplatform/setup.py b/sdk/appplatform/azure-mgmt-appplatform/setup.py index 4857bcb5ab4f..72f2b8893ef8 100644 --- a/sdk/appplatform/azure-mgmt-appplatform/setup.py +++ b/sdk/appplatform/azure-mgmt-appplatform/setup.py @@ -36,7 +36,9 @@ pass # Version extraction inspired from 'requests' -with open(os.path.join(package_folder_path, 'version.py'), 'r') as fd: +with open(os.path.join(package_folder_path, 'version.py') + if os.path.exists(os.path.join(package_folder_path, 'version.py')) + else os.path.join(package_folder_path, '_version.py'), 'r') as fd: version = re.search(r'^VERSION\s*=\s*[\'"]([^\'"]*)[\'"]', fd.read(), re.MULTILINE).group(1) diff --git a/sdk/appplatform/azure-mgmt-appplatform/tests/recordings/test_cli_mgmt_appplatform.test_appplatform.yaml b/sdk/appplatform/azure-mgmt-appplatform/tests/recordings/test_cli_mgmt_appplatform.test_appplatform.yaml new file mode 100644 index 000000000000..8b3889d71d20 --- /dev/null +++ b/sdk/appplatform/azure-mgmt-appplatform/tests/recordings/test_cli_mgmt_appplatform.test_appplatform.yaml @@ -0,0 +1,2181 @@ +interactions: +- request: + body: 'b''{"location": "eastus", "tags": {"key1": "value1"}, "properties": {"configServerProperties": + {"configServer": {"gitProperty": {"uri": "https://github.com/fake-user/fake-repository.git", + "label": "master", "searchPaths": ["/"]}}}, "trace": {"enabled": true, "appInsightInstrumentationKey": + "00000000-0000-0000-0000-000000000000"}}}''' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '329' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice?api-version=2019-05-01-preview + response: + body: + string: '{"properties":{"provisioningState":"Creating","configServerProperties":{"state":"NotAvailable"},"trace":{"state":"NotAvailable","enabled":true,"appInsightInstrumentationKey":"00000000-0000-0000-0000-000000000000"},"version":2,"serviceId":"9dad9944e4d94634948313a6304a556e"},"type":"Microsoft.AppPlatform/Spring","identity":null,"sku":{"name":"S0","tier":"Standard"},"location":"eastus","tags":{"key1":"value1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice","name":"myservice"}' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd?api-version=2019-05-01-preview + cache-control: + - no-cache + content-length: + - '604' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 20:58:52 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationResults/cf216091-7383-47c6-915f-6324398c34dd/Spring/myservice?api-version=2019-05-01-preview + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 201 + message: Created +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd","name":"cf216091-7383-47c6-915f-6324398c34dd","status":"Running","startTime":"2020-04-30T20:58:49.7795906Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 20:59:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd","name":"cf216091-7383-47c6-915f-6324398c34dd","status":"Running","startTime":"2020-04-30T20:58:49.7795906Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 20:59:54 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd","name":"cf216091-7383-47c6-915f-6324398c34dd","status":"Running","startTime":"2020-04-30T20:58:49.7795906Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:00:24 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd","name":"cf216091-7383-47c6-915f-6324398c34dd","status":"Running","startTime":"2020-04-30T20:58:49.7795906Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:00:54 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd","name":"cf216091-7383-47c6-915f-6324398c34dd","status":"Running","startTime":"2020-04-30T20:58:49.7795906Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:01:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd","name":"cf216091-7383-47c6-915f-6324398c34dd","status":"Running","startTime":"2020-04-30T20:58:49.7795906Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:01:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd","name":"cf216091-7383-47c6-915f-6324398c34dd","status":"Running","startTime":"2020-04-30T20:58:49.7795906Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:02:25 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/cf216091-7383-47c6-915f-6324398c34dd","name":"cf216091-7383-47c6-915f-6324398c34dd","status":"Succeeded","startTime":"2020-04-30T20:58:49.7795906Z","endTime":"2020-04-30T21:02:47.4320716Z"}' + headers: + cache-control: + - no-cache + content-length: + - '401' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:02:55 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice?api-version=2019-05-01-preview + response: + body: + string: '{"properties":{"provisioningState":"Succeeded","configServerProperties":{"state":"NotAvailable"},"trace":{"state":"Succeeded","enabled":true,"appInsightInstrumentationKey":"00000000-0000-0000-0000-000000000000"},"version":2,"serviceId":"9dad9944e4d94634948313a6304a556e"},"type":"Microsoft.AppPlatform/Spring","identity":null,"sku":{"name":"S0","tier":"Standard"},"location":"eastus","tags":{"key1":"value1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice","name":"myservice"}' + headers: + cache-control: + - no-cache + content-length: + - '602' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:02:56 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: '{"properties": {"public": true, "activeDeploymentName": "mydeployment1", + "temporaryDisk": {"sizeInGB": 2, "mountPath": "/mytemporarydisk"}, "persistentDisk": + {"sizeInGB": 2, "mountPath": "/mypersistentdisk"}}}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '209' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + accept-language: + - en-US + method: PUT + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp?api-version=2019-05-01-preview + response: + body: + string: '{"properties":{"public":true,"provisioningState":"Succeeded","httpsOnly":false,"createdTime":"2020-04-30T21:02:58.782Z","temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp","name":"myapp"}' + headers: + cache-control: + - no-cache + content-length: + - '508' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:02:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp?api-version=2019-05-01-preview + response: + body: + string: '{"properties":{"public":true,"provisioningState":"Succeeded","fqdn":"myservice.azuremicroservices.io","httpsOnly":false,"createdTime":"2020-04-30T21:02:58.782Z","temporaryDisk":{"sizeInGB":5,"mountPath":"/tmp"},"persistentDisk":{"sizeInGB":0,"mountPath":"/persistent"}},"type":"Microsoft.AppPlatform/Spring/apps","identity":null,"location":"eastus","id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp","name":"myapp"}' + headers: + cache-control: + - no-cache + content-length: + - '549' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:02:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + accept-language: + - en-US + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice?api-version=2019-05-01-preview + response: + body: + string: '{"properties":{"provisioningState":"Succeeded","configServerProperties":{"state":"NotAvailable"},"trace":{"state":"Succeeded","enabled":true,"appInsightInstrumentationKey":"00000000-0000-0000-0000-000000000000"},"version":2,"serviceId":"9dad9944e4d94634948313a6304a556e"},"type":"Microsoft.AppPlatform/Spring","identity":null,"sku":{"name":"S0","tier":"Standard"},"location":"eastus","tags":{"key1":"value1"},"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice","name":"myservice"}' + headers: + cache-control: + - no-cache + content-length: + - '602' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:02:58 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp/getResourceUploadUrl?api-version=2019-05-01-preview + response: + body: + string: '{"relativePath":"resources/c1b70247946b22975617cfe4f3fdebe8bad9114057300be745f0632c007d2cc9-2020043021-8791c8af-c840-4237-b1fd-715e4c92a545","uploadUrl":"https://0fc58c34e2b942d29270250e.file.core.windows.net/9dad9944e4d94634948313a6304a556e/resources/c1b70247946b22975617cfe4f3fdebe8bad9114057300be745f0632c007d2cc9-2020043021-8791c8af-c840-4237-b1fd-715e4c92a545?sv=2018-03-28&sr=f&sig=i0Y9Cm7OW34z3hi8BIMKlZuan958mBR2fMAuqPyP%2Fdk%3D&se=2020-04-30T23%3A03%3A00Z&sp=w"}' + headers: + cache-control: + - no-cache + content-length: + - '471' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:02:59 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1199' + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice/disableTestEndpoint?api-version=2019-05-01-preview + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Thu, 30 Apr 2020 21:03:00 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1198' + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice/enableTestEndpoint?api-version=2019-05-01-preview + response: + body: + string: '{"primaryKey":"WBIPge558t6MgIwHqgY37QRvC5nPs2dBX5h1ClPtizAXfnzlGEp3J4iS3XlNvZSr","secondaryKey":"ZhevlIer5CdIRUUjbZ6Vj3xLadCcXA1UJKol9Ryv2MLzrvaRvDyV38OGQyBpar9X","primaryTestEndpoint":"https://primary:WBIPge558t6MgIwHqgY37QRvC5nPs2dBX5h1ClPtizAXfnzlGEp3J4iS3XlNvZSr@myservice.test.azuremicroservices.io","secondaryTestEndpoint":"https://secondary:ZhevlIer5CdIRUUjbZ6Vj3xLadCcXA1UJKol9Ryv2MLzrvaRvDyV38OGQyBpar9X@myservice.test.azuremicroservices.io","enabled":true}' + headers: + cache-control: + - no-cache + content-length: + - '466' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:03:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1197' + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: '{"keyType": "Primary"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '22' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice/regenerateTestKey?api-version=2019-05-01-preview + response: + body: + string: '{"primaryKey":"6XVTbEfjdYyU9OYiRlDYf7IpQ6xJLGpfZPMrI57llZJsioccTMkk8oe4ilRilD4A","secondaryKey":"ZhevlIer5CdIRUUjbZ6Vj3xLadCcXA1UJKol9Ryv2MLzrvaRvDyV38OGQyBpar9X","primaryTestEndpoint":"https://primary:6XVTbEfjdYyU9OYiRlDYf7IpQ6xJLGpfZPMrI57llZJsioccTMkk8oe4ilRilD4A@myservice.test.azuremicroservices.io","secondaryTestEndpoint":"https://secondary:ZhevlIer5CdIRUUjbZ6Vj3xLadCcXA1UJKol9Ryv2MLzrvaRvDyV38OGQyBpar9X@myservice.test.azuremicroservices.io","enabled":true}' + headers: + cache-control: + - no-cache + content-length: + - '466' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:03:01 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1196' + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice/listTestKeys?api-version=2019-05-01-preview + response: + body: + string: '{"primaryKey":"6XVTbEfjdYyU9OYiRlDYf7IpQ6xJLGpfZPMrI57llZJsioccTMkk8oe4ilRilD4A","secondaryKey":"ZhevlIer5CdIRUUjbZ6Vj3xLadCcXA1UJKol9Ryv2MLzrvaRvDyV38OGQyBpar9X","primaryTestEndpoint":"https://primary:6XVTbEfjdYyU9OYiRlDYf7IpQ6xJLGpfZPMrI57llZJsioccTMkk8oe4ilRilD4A@myservice.test.azuremicroservices.io","secondaryTestEndpoint":"https://secondary:ZhevlIer5CdIRUUjbZ6Vj3xLadCcXA1UJKol9Ryv2MLzrvaRvDyV38OGQyBpar9X@myservice.test.azuremicroservices.io","enabled":true}' + headers: + cache-control: + - no-cache + content-length: + - '466' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:03:02 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1195' + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: '{"type": "Microsoft.AppPlatform/Spring", "name": "myservice"}' + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '61' + Content-Type: + - application/json; charset=utf-8 + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + accept-language: + - en-US + method: POST + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/providers/Microsoft.AppPlatform/locations/eastus/checkNameAvailability?api-version=2019-05-01-preview + response: + body: + string: '{"nameAvailable":false,"reason":"AlreadyExists","message":"Resource + name already exists."}' + headers: + cache-control: + - no-cache + content-length: + - '90' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:03:03 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-writes: + - '1194' + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice/apps/myapp?api-version=2019-05-01-preview + response: + body: + string: '' + headers: + cache-control: + - no-cache + content-length: + - '0' + date: + - Thu, 30 Apr 2020 21:03:04 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14998' + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + Content-Length: + - '0' + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + accept-language: + - en-US + method: DELETE + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/Spring/myservice?api-version=2019-05-01-preview + response: + body: + string: '' + headers: + azure-asyncoperation: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + cache-control: + - no-cache + content-length: + - '0' + date: + - Thu, 30 Apr 2020 21:03:05 GMT + expires: + - '-1' + location: + - https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationResults/1f7d3c40-52bc-46a1-ab77-56b60747490e/Spring/myservice?api-version=2019-05-01-preview + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + x-content-type-options: + - nosniff + x-ms-ratelimit-remaining-subscription-deletes: + - '14997' + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 202 + message: Accepted +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:03:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:04:07 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:04:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:05:07 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:05:37 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:06:09 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:06:39 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:07:09 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:07:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:08:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:08:40 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:09:10 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:09:42 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:10:12 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:10:43 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:11:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:11:43 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:12:13 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:12:43 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:13:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:13:44 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:14:14 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:14:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:15:15 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Running","startTime":"2020-04-30T21:03:06.5893186Z"}' + headers: + cache-control: + - no-cache + content-length: + - '358' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:15:45 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +- request: + body: null + headers: + Accept: + - application/json + Accept-Encoding: + - gzip, deflate + Connection: + - keep-alive + User-Agent: + - python/3.6.9 (Linux-4.9.184-linuxkit-x86_64-with-Ubuntu-18.04-bionic) msrest/0.6.10 + msrest_azure/0.6.2 azure-mgmt-appplatform/0.1.0 Azure-SDK-For-Python + method: GET + uri: https://management.azure.com/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e?api-version=2019-05-01-preview + response: + body: + string: '{"id":"/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/test_cli_mgmt_appplatform_test_appplatform755e1164/providers/Microsoft.AppPlatform/locations/eastus/operationStatus/myservice/operationId/1f7d3c40-52bc-46a1-ab77-56b60747490e","name":"1f7d3c40-52bc-46a1-ab77-56b60747490e","status":"Succeeded","startTime":"2020-04-30T21:03:06.5893186Z","endTime":"2020-04-30T21:16:14.2365669Z"}' + headers: + cache-control: + - no-cache + content-length: + - '401' + content-type: + - application/json; charset=utf-8 + date: + - Thu, 30 Apr 2020 21:16:21 GMT + expires: + - '-1' + pragma: + - no-cache + server: + - nginx/1.17.7 + strict-transport-security: + - max-age=31536000; includeSubDomains + transfer-encoding: + - chunked + vary: + - Accept-Encoding,Accept-Encoding + x-content-type-options: + - nosniff + x-rp-server-mvid: + - afbe1e12-8584-4dc5-aa1e-547e4b04d8ae + status: + code: 200 + message: OK +version: 1 diff --git a/sdk/appplatform/azure-mgmt-appplatform/tests/test_cli_mgmt_appplatform.py b/sdk/appplatform/azure-mgmt-appplatform/tests/test_cli_mgmt_appplatform.py new file mode 100644 index 000000000000..742f4aa8292e --- /dev/null +++ b/sdk/appplatform/azure-mgmt-appplatform/tests/test_cli_mgmt_appplatform.py @@ -0,0 +1,343 @@ +# 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. +#-------------------------------------------------------------------------- + + +# TEST SCENARIO COVERAGE +# ---------------------- +# Methods Total : 43 +# Methods Covered : 43 +# Examples Total : 43 +# Examples Tested : 19 +# Coverage % : 44 +# ---------------------- + +import unittest + +import azure.mgmt.appplatform +from devtools_testutils import AzureMgmtTestCase, ResourceGroupPreparer + +AZURE_LOCATION = 'eastus' + +class MgmtAppPlatformTest(AzureMgmtTestCase): + + def setUp(self): + super(MgmtAppPlatformTest, self).setUp() + self.mgmt_client = self.create_mgmt_client( + azure.mgmt.appplatform.AppPlatformManagementClient + ) + + @ResourceGroupPreparer(location=AZURE_LOCATION) + def test_appplatform(self, resource_group): + + SUBSCRIPTION_ID = self.settings.SUBSCRIPTION_ID + TENANT_ID = self.settings.TENANT_ID + RESOURCE_GROUP = resource_group.name + SERVICE_NAME = "myservice" + LOCATION = "myLocation" + APP_NAME = "myapp" + BINDING_NAME = "mybinding" + DATABASE_ACCOUNT_NAME = "myDatabaseAccount" + CERTIFICATE_NAME = "myCertificate" + DOMAIN_NAME = "myDomain" + DEPLOYMENT_NAME = "mydeployment" + + # /Services/put/Services_CreateOrUpdate[put] + BODY = { + "properties": { + "config_server_properties": { + "config_server": { + "git_property": { + "uri": "https://github.com/fake-user/fake-repository.git", + "label": "master", + "search_paths": [ + "/" + ] + } + } + }, + "trace": { + "enabled": True, + "app_insight_instrumentation_key": "00000000-0000-0000-0000-000000000000" + } + }, + "tags": { + "key1": "value1" + }, + "location": "eastus" + } + result = self.mgmt_client.services.create_or_update(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, resource=BODY) + result = result.result() + + # /Apps/put/Apps_CreateOrUpdate[put] + PROPERTIES = { + "public": True, + "active_deployment_name": "mydeployment1", + "fqdn": "myapp.mydomain.com", + "https_only": False, + "temporary_disk": { + "size_in_gb": "2", + "mount_path": "/mytemporarydisk" + }, + "persistent_disk": { + "size_in_gb": "2", + "mount_path": "/mypersistentdisk" + } + } + result = self.mgmt_client.apps.create_or_update(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, properties= PROPERTIES, location="eastus") + result = result.result() + + # Not available/tested yet + # /Certificates/put/Certificates_CreateOrUpdate[put] + PROPERTIES = { + "vault_uri": "https://myvault.vault.azure.net", + "key_vault_cert_name": "mycert", + "cert_version": "08a219d06d874795a96db47e06fbb01e" + } + # result = self.mgmt_client.certificates.create_or_update(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, certificate_name=CERTIFICATE_NAME, properties= PROPERTIES) + + # Not available/tested yet + # /CustomDomains/put/CustomDomains_CreateOrUpdate[put] + PROPERTIES = { + "thumbprint": "934367bf1c97033f877db0f15cb1b586957d3133", + "app_name": "myapp", + "cert_name": "mycert" + } + # result = self.mgmt_client.custom_domains.create_or_update(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, domain_name=DOMAIN_NAME, properties= PROPERTIES) + + # Not available/tested yet + # /Bindings/put/Bindings_CreateOrUpdate[put] + PROPERTIES = { + "resource_name": "my-cosmosdb-1", + "resource_type": "Microsoft.DocumentDB", + "resource_id": "/subscriptions/" + SUBSCRIPTION_ID + "/resourceGroups/" + RESOURCE_GROUP + "/providers/Microsoft.DocumentDB/databaseAccounts/" + DATABASE_ACCOUNT_NAME + "", + "key": "xxxx", + "binding_parameters": { + "database_name": "db1", + "api_type": "SQL" + } + } + # result = self.mgmt_client.bindings.create_or_update(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, binding_name=BINDING_NAME, properties= PROPERTIES) + + # Not available/tested yet + # /Deployments/put/Deployments_CreateOrUpdate[put] + PROPERTIES = { + "source": { + "type": "Source", + "relative_path": "resources/a172cedcae47474b615c54d510a5d84a8dea3032e958587430b413538be3f333-2019082605-e3095339-1723-44b7-8b5e-31b1003978bc", + "version": "1.0", + "artifact_selector": "sub-module-1" + }, + "deployment_settings": { + "cpu": "1", + "memory_in_gb": "3", + "jvm_options": "-Xms1G -Xmx3G", + "instance_count": "1", + "environment_variables": { + "env": "test" + }, + "runtime_version": "Java_8" + } + } + # result = self.mgmt_client.deployments.create_or_update(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, deployment_name=DEPLOYMENT_NAME, properties= PROPERTIES) + # result = result.result() + + # Not available/tested yet + # /Deployments/get/Deployments_Get[get] + # result = self.mgmt_client.deployments.get(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, deployment_name=DEPLOYMENT_NAME) + + # Not available/tested yet + # /Bindings/get/Bindings_Get[get] + # result = self.mgmt_client.bindings.get(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, binding_name=BINDING_NAME) + + # Not available/tested yet + # /CustomDomains/get/CustomDomains_Get[get] + # result = self.mgmt_client.custom_domains.get(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, domain_name=DOMAIN_NAME) + + # Not available/tested yet + # /Certificates/get/Certificates_Get[get] + # result = self.mgmt_client.certificates.get(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, certificate_name=CERTIFICATE_NAME) + + # /Deployments/get/Deployments_List[get] + result = self.mgmt_client.deployments.list(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME) + + # /Bindings/get/Bindings_List[get] + result = self.mgmt_client.bindings.list(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME) + + # Not available/tested yet + # /CustomDomains/get/CustomDomains_List[get] + # result = self.mgmt_client.custom_domains.list(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME) + + # /Apps/get/Apps_Get[get] + result = self.mgmt_client.apps.get(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME) + + # Not available/tested yet + # /Certificates/get/Certificates_List[get] + # result = self.mgmt_client.certificates.list(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME) + + # /Deployments/get/Deployments_ListClusterAllDeployments[get] + result = self.mgmt_client.deployments.list_cluster_all_deployments(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME) + + # /Apps/get/Apps_List[get] + result = self.mgmt_client.apps.list(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME) + + # /Services/get/Services_Get[get] + result = self.mgmt_client.services.get(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME) + + # /Services/get/Services_List[get] + result = self.mgmt_client.services.list(resource_group_name=RESOURCE_GROUP) + + # /Services/get/Services_ListBySubscription[get] + result = self.mgmt_client.services.list_by_subscription() + + # /Operations/get/Operations_List[get] + result = self.mgmt_client.operations.list() + + # Not available/tested yet + # /Deployments/post/Deployments_GetLogFileUrl[post] + # result = self.mgmt_client.deployments.get_log_file_url(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, deployment_name=DEPLOYMENT_NAME) + + # Not available/tested yet + # /Deployments/post/Deployments_Restart[post] + # result = self.mgmt_client.deployments.restart(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, deployment_name=DEPLOYMENT_NAME) + # result = result.result() + + # Not available/tested yet + # /Deployments/post/Deployments_Start[post] + # result = self.mgmt_client.deployments.start(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, deployment_name=DEPLOYMENT_NAME) + # result = result.result() + + # Not available/tested yet + # /Deployments/post/Deployments_Stop[post] + # result = self.mgmt_client.deployments.stop(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, deployment_name=DEPLOYMENT_NAME) + # result = result.result() + + # Not available/tested yet + # /Deployments/patch/Deployments_Update[patch] + PROPERTIES = { + "source": { + "type": "Source", + "relative_path": "resources/a172cedcae47474b615c54d510a5d84a8dea3032e958587430b413538be3f333-2019082605-e3095339-1723-44b7-8b5e-31b1003978bc", + "version": "1.0", + "artifact_selector": "sub-module-1" + } + } + # result = self.mgmt_client.deployments.update(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, deployment_name=DEPLOYMENT_NAME, properties= PROPERTIES) + # result = result.result() + + # Not available/tested yet + # /Bindings/patch/Bindings_Update[patch] + PROPERTIES = { + "key": "xxxx", + "binding_parameters": { + "database_name": "db1", + "api_type": "SQL" + } + } + # result = self.mgmt_client.bindings.update(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, binding_name=BINDING_NAME, properties= PROPERTIES) + + # Not available/tested yet + # /CustomDomains/patch/CustomDomains_Patch[patch] + PROPERTIES = { + "thumbprint": "934367bf1c97033f877db0f15cb1b586957d3133", + "app_name": "myapp", + "cert_name": "mycert" + } + # result = self.mgmt_client.custom_domains.patch(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, domain_name=DOMAIN_NAME, properties= PROPERTIES) + + # Not available/tested yet + # /CustomDomains/post/CustomDomains_Validate[post] + # result = self.mgmt_client.custom_domains.validate(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, domain_name=DOMAIN_NAME, name="mydomain.io") + + # /Apps/post/Apps_GetResourceUploadUrl[post] + result = self.mgmt_client.apps.get_resource_upload_url(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME) + + # Not available/tested yet + # /Apps/patch/Apps_Update[patch] + PROPERTIES = { + "public": True, + "active_deployment_name": "mydeployment1", + "fqdn": "myapp.mydomain.com", + "https_only": False, + "temporary_disk": { + "size_in_gb": "2", + "mount_path": "/mytemporarydisk" + }, + "persistent_disk": { + "size_in_gb": "2", + "mount_path": "/mypersistentdisk" + } + } + # result = self.mgmt_client.apps.update(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, properties= PROPERTIES, location="eastus") + # result = result.result() + + # /Services/post/Services_DisableTestEndpoint[post] + result = self.mgmt_client.services.disable_test_endpoint(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME) + + # /Services/post/Services_EnableTestEndpoint[post] + result = self.mgmt_client.services.enable_test_endpoint(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME) + + # /Services/post/Services_RegenerateTestKey[post] + result = self.mgmt_client.services.regenerate_test_key(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, key_type="Primary") + + # /Services/post/Services_ListTestKeys[post] + result = self.mgmt_client.services.list_test_keys(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME) + + # Not available/tested yet + # /Services/patch/Services_Update[patch] + BODY = { + "properties": { + "config_server_properties": { + "config_server": { + "git_property": { + "uri": "https://github.com/fake-user/fake-repository.git", + "label": "master", + "search_paths": [ + "/" + ] + } + } + }, + "trace": { + "enabled": True, + "app_insight_instrumentation_key": "00000000-0000-0000-0000-000000000000" + } + }, + "location": "eastus", + "tags": { + "key1": "value1" + } + } + # result = self.mgmt_client.services.update(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, resource=BODY) + # result = result.result() + + # /Services/post/Services_CheckNameAvailability[post] + result = self.mgmt_client.services.check_name_availability(azure_location=AZURE_LOCATION, type="Microsoft.AppPlatform/Spring", name="myservice") + + # Not available/tested yet + # /Bindings/delete/Bindings_Delete[delete] + # result = self.mgmt_client.bindings.delete(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, binding_name=BINDING_NAME) + + # Not available/tested yet + # /CustomDomains/delete/CustomDomains_Delete[delete] + # result = self.mgmt_client.custom_domains.delete(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME, domain_name=DOMAIN_NAME) + + # Not available/tested yet + # /Certificates/delete/Certificates_Delete[delete] + # result = self.mgmt_client.certificates.delete(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, certificate_name=CERTIFICATE_NAME) + + # /Apps/delete/Apps_Delete[delete] + result = self.mgmt_client.apps.delete(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME, app_name=APP_NAME) + + # /Services/delete/Services_Delete[delete] + result = self.mgmt_client.services.delete(resource_group_name=RESOURCE_GROUP, service_name=SERVICE_NAME) + result = result.result() + + +#------------------------------------------------------------------------------ +if __name__ == '__main__': + unittest.main()