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 b35beb03ae11..88bf56af8995 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 @@ -219,11 +219,11 @@ class BindingResourceProperties(Model): Variables are only populated by the server, and will be ignored when sending a request. - :param resource_name: The name of the bound resource - :type resource_name: str - :param resource_type: The standard Azure resource type of the bound + :ivar resource_name: The name of the bound resource + :vartype resource_name: str + :ivar resource_type: The standard Azure resource type of the bound resource - :type resource_type: str + :vartype resource_type: str :param resource_id: The Azure resource id of the bound resource :type resource_id: str :param key: The key of the bound resource @@ -240,6 +240,8 @@ class BindingResourceProperties(Model): """ _validation = { + 'resource_name': {'readonly': True}, + 'resource_type': {'readonly': True}, 'generated_properties': {'readonly': True}, 'created_at': {'readonly': True}, 'updated_at': {'readonly': True}, @@ -258,8 +260,8 @@ class BindingResourceProperties(Model): def __init__(self, **kwargs): super(BindingResourceProperties, self).__init__(**kwargs) - self.resource_name = kwargs.get('resource_name', None) - self.resource_type = kwargs.get('resource_type', None) + self.resource_name = None + self.resource_type = None self.resource_id = kwargs.get('resource_id', None) self.key = kwargs.get('key', None) self.binding_parameters = kwargs.get('binding_parameters', None) @@ -587,14 +589,21 @@ def __init__(self, **kwargs): class CustomDomainProperties(Model): """Custom domain of app resource payload. + Variables are only populated by the server, and will be ignored when + sending a request. + :param thumbprint: The thumbprint of bound certificate. :type thumbprint: str - :param app_name: The app name of domain. - :type app_name: str + :ivar app_name: The app name of domain. + :vartype app_name: str :param cert_name: The bound certificate name of domain. :type cert_name: str """ + _validation = { + 'app_name': {'readonly': True}, + } + _attribute_map = { 'thumbprint': {'key': 'thumbprint', 'type': 'str'}, 'app_name': {'key': 'appName', 'type': 'str'}, @@ -604,7 +613,7 @@ class CustomDomainProperties(Model): def __init__(self, **kwargs): super(CustomDomainProperties, self).__init__(**kwargs) self.thumbprint = kwargs.get('thumbprint', None) - self.app_name = kwargs.get('app_name', None) + self.app_name = None self.cert_name = kwargs.get('cert_name', 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 02ca3876fb32..625a8905343c 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 @@ -219,11 +219,11 @@ class BindingResourceProperties(Model): Variables are only populated by the server, and will be ignored when sending a request. - :param resource_name: The name of the bound resource - :type resource_name: str - :param resource_type: The standard Azure resource type of the bound + :ivar resource_name: The name of the bound resource + :vartype resource_name: str + :ivar resource_type: The standard Azure resource type of the bound resource - :type resource_type: str + :vartype resource_type: str :param resource_id: The Azure resource id of the bound resource :type resource_id: str :param key: The key of the bound resource @@ -240,6 +240,8 @@ class BindingResourceProperties(Model): """ _validation = { + 'resource_name': {'readonly': True}, + 'resource_type': {'readonly': True}, 'generated_properties': {'readonly': True}, 'created_at': {'readonly': True}, 'updated_at': {'readonly': True}, @@ -256,10 +258,10 @@ class BindingResourceProperties(Model): 'updated_at': {'key': 'updatedAt', 'type': 'str'}, } - def __init__(self, *, resource_name: str=None, resource_type: str=None, resource_id: str=None, key: str=None, binding_parameters=None, **kwargs) -> None: + def __init__(self, *, resource_id: str=None, key: str=None, binding_parameters=None, **kwargs) -> None: super(BindingResourceProperties, self).__init__(**kwargs) - self.resource_name = resource_name - self.resource_type = resource_type + self.resource_name = None + self.resource_type = None self.resource_id = resource_id self.key = key self.binding_parameters = binding_parameters @@ -587,24 +589,31 @@ def __init__(self, *, git_property=None, **kwargs) -> None: class CustomDomainProperties(Model): """Custom domain of app resource payload. + Variables are only populated by the server, and will be ignored when + sending a request. + :param thumbprint: The thumbprint of bound certificate. :type thumbprint: str - :param app_name: The app name of domain. - :type app_name: str + :ivar app_name: The app name of domain. + :vartype app_name: str :param cert_name: The bound certificate name of domain. :type cert_name: str """ + _validation = { + 'app_name': {'readonly': True}, + } + _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: + def __init__(self, *, thumbprint: str=None, cert_name: str=None, **kwargs) -> None: super(CustomDomainProperties, self).__init__(**kwargs) self.thumbprint = thumbprint - self.app_name = app_name + self.app_name = None self.cert_name = cert_name