From 3c293326f77d194ec7f59359b46506d67df9c7ff Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Fri, 26 Feb 2021 09:19:24 +0000 Subject: [PATCH 1/2] CodeGen from PR 13166 in Azure/azure-rest-api-specs Enable swagger ci for azure-powershell for some RPs (#13166) --- .../azure/mgmt/hanaonazure/models/__init__.py | 6 + .../azure/mgmt/hanaonazure/models/_models.py | 196 ++++++++++++----- .../mgmt/hanaonazure/models/_models_py3.py | 206 ++++++++++++------ 3 files changed, 285 insertions(+), 123 deletions(-) diff --git a/sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/__init__.py b/sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/__init__.py index edf9a1ac8042..1491df09d57b 100644 --- a/sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/__init__.py +++ b/sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/__init__.py @@ -10,8 +10,10 @@ # -------------------------------------------------------------------------- try: + from ._models_py3 import AzureEntityResource from ._models_py3 import Display from ._models_py3 import ErrorResponse, ErrorResponseException + from ._models_py3 import ErrorResponseError from ._models_py3 import Operation from ._models_py3 import ProviderInstance from ._models_py3 import ProxyResource @@ -20,8 +22,10 @@ from ._models_py3 import Tags from ._models_py3 import TrackedResource except (SyntaxError, ImportError): + from ._models import AzureEntityResource from ._models import Display from ._models import ErrorResponse, ErrorResponseException + from ._models import ErrorResponseError from ._models import Operation from ._models import ProviderInstance from ._models import ProxyResource @@ -37,8 +41,10 @@ ) __all__ = [ + 'AzureEntityResource', 'Display', 'ErrorResponse', 'ErrorResponseException', + 'ErrorResponseError', 'Operation', 'ProviderInstance', 'ProxyResource', diff --git a/sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/_models.py b/sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/_models.py index f707289710cf..1745f6bb6c32 100644 --- a/sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/_models.py +++ b/sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/_models.py @@ -13,6 +13,84 @@ from msrest.exceptions import HttpOperationError +class Resource(Model): + """Resource. + + Common fields that are returned in the response for all Azure Resource + Manager resources. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class AzureEntityResource(Resource): + """Entity Resource. + + The resource model definition for an Azure Resource Manager resource with + an etag. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + :ivar etag: Resource Etag. + :vartype etag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs): + super(AzureEntityResource, self).__init__(**kwargs) + self.etag = None + + class CloudError(Model): """CloudError. """ @@ -79,21 +157,17 @@ def __init__(self, **kwargs): class ErrorResponse(Model): """Describes the format of Error response. - :param code: Error code - :type code: str - :param message: Error message indicating why the operation failed. - :type message: str + :param error: Describes the error object. + :type error: ~azure.mgmt.hanaonazure.models.ErrorResponseError """ _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'ErrorResponseError'}, } def __init__(self, **kwargs): super(ErrorResponse, self).__init__(**kwargs) - self.code = kwargs.get('code', None) - self.message = kwargs.get('message', None) + self.error = kwargs.get('error', None) class ErrorResponseException(HttpOperationError): @@ -108,84 +182,79 @@ def __init__(self, deserialize, response, *args): super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) -class Operation(Model): - """HANA operation information. +class ErrorResponseError(Model): + """Describes the error object. Variables are only populated by the server, and will be ignored when sending a request. - :ivar name: The name of the operation being performed on this particular - object. This name should match the action name that appears in RBAC / the - event service. - :vartype name: str - :param display: Displayed HANA operation information - :type display: ~azure.mgmt.hanaonazure.models.Display + :ivar code: Error code + :vartype code: str + :ivar message: Error message indicating why the operation failed. + :vartype message: str """ _validation = { - 'name': {'readonly': True}, + 'code': {'readonly': True}, + 'message': {'readonly': True}, } _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'Display'}, + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, } def __init__(self, **kwargs): - super(Operation, self).__init__(**kwargs) - self.name = None - self.display = kwargs.get('display', None) + super(ErrorResponseError, self).__init__(**kwargs) + self.code = None + self.message = None -class Resource(Model): - """The core properties of ARM resources. +class Operation(Model): + """HANA operation information. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName} - :vartype id: str - :ivar name: The name of the resource + :ivar name: The name of the operation being performed on this particular + object. This name should match the action name that appears in RBAC / the + event service. :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Network/trafficManagerProfiles. - :vartype type: str + :param display: Displayed HANA operation information + :type display: ~azure.mgmt.hanaonazure.models.Display """ _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'}, + 'display': {'key': 'display', 'type': 'Display'}, } def __init__(self, **kwargs): - super(Resource, self).__init__(**kwargs) - self.id = None + super(Operation, self).__init__(**kwargs) self.name = None - self.type = None + self.display = kwargs.get('display', None) class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have - everything other than required location and tags. + """Proxy Resource. + + The resource model definition for a Azure Resource Manager proxy resource. + It will not have tags and a location. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName} + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Network/trafficManagerProfiles. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str """ @@ -211,13 +280,13 @@ class ProviderInstance(ProxyResource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName} + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Network/trafficManagerProfiles. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param provider_instance_type: The type of provider instance. :type provider_instance_type: str @@ -260,22 +329,27 @@ def __init__(self, **kwargs): class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. + """Tracked Resource. + + The resource model definition for an Azure Resource Manager tracked top + level resource which has 'tags' and a 'location'. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName} + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Network/trafficManagerProfiles. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param tags: Resource tags. :type tags: dict[str, str] - :param location: The Azure Region where the resource lives + :param location: Required. The geo-location where the resource lives :type location: str """ @@ -283,6 +357,7 @@ class TrackedResource(Resource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'location': {'required': True}, } _attribute_map = { @@ -305,17 +380,19 @@ class SapMonitor(TrackedResource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName} + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Network/trafficManagerProfiles. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param tags: Resource tags. :type tags: dict[str, str] - :param location: The Azure Region where the resource lives + :param location: Required. The geo-location where the resource lives :type location: str :ivar provisioning_state: State of provisioning of the HanaInstance. Possible values include: 'Accepted', 'Creating', 'Updating', 'Failed', @@ -349,6 +426,7 @@ class SapMonitor(TrackedResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'location': {'required': True}, 'provisioning_state': {'readonly': True}, 'managed_resource_group_name': {'readonly': True}, 'sap_monitor_collector_version': {'readonly': True}, diff --git a/sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/_models_py3.py b/sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/_models_py3.py index a69a56494bd2..6400fda29e21 100644 --- a/sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/_models_py3.py +++ b/sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/models/_models_py3.py @@ -13,6 +13,84 @@ from msrest.exceptions import HttpOperationError +class Resource(Model): + """Resource. + + Common fields that are returned in the response for all Azure Resource + Manager resources. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(Resource, self).__init__(**kwargs) + self.id = None + self.name = None + self.type = None + + +class AzureEntityResource(Resource): + """Entity Resource. + + The resource model definition for an Azure Resource Manager resource with + an etag. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} + :vartype id: str + :ivar name: The name of the resource + :vartype name: str + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" + :vartype type: str + :ivar etag: Resource Etag. + :vartype etag: str + """ + + _validation = { + 'id': {'readonly': True}, + 'name': {'readonly': True}, + 'type': {'readonly': True}, + 'etag': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'etag': {'key': 'etag', 'type': 'str'}, + } + + def __init__(self, **kwargs) -> None: + super(AzureEntityResource, self).__init__(**kwargs) + self.etag = None + + class CloudError(Model): """CloudError. """ @@ -79,21 +157,17 @@ def __init__(self, **kwargs) -> None: class ErrorResponse(Model): """Describes the format of Error response. - :param code: Error code - :type code: str - :param message: Error message indicating why the operation failed. - :type message: str + :param error: Describes the error object. + :type error: ~azure.mgmt.hanaonazure.models.ErrorResponseError """ _attribute_map = { - 'code': {'key': 'code', 'type': 'str'}, - 'message': {'key': 'message', 'type': 'str'}, + 'error': {'key': 'error', 'type': 'ErrorResponseError'}, } - def __init__(self, *, code: str=None, message: str=None, **kwargs) -> None: + def __init__(self, *, error=None, **kwargs) -> None: super(ErrorResponse, self).__init__(**kwargs) - self.code = code - self.message = message + self.error = error class ErrorResponseException(HttpOperationError): @@ -108,84 +182,79 @@ def __init__(self, deserialize, response, *args): super(ErrorResponseException, self).__init__(deserialize, response, 'ErrorResponse', *args) -class Operation(Model): - """HANA operation information. +class ErrorResponseError(Model): + """Describes the error object. Variables are only populated by the server, and will be ignored when sending a request. - :ivar name: The name of the operation being performed on this particular - object. This name should match the action name that appears in RBAC / the - event service. - :vartype name: str - :param display: Displayed HANA operation information - :type display: ~azure.mgmt.hanaonazure.models.Display + :ivar code: Error code + :vartype code: str + :ivar message: Error message indicating why the operation failed. + :vartype message: str """ _validation = { - 'name': {'readonly': True}, + 'code': {'readonly': True}, + 'message': {'readonly': True}, } _attribute_map = { - 'name': {'key': 'name', 'type': 'str'}, - 'display': {'key': 'display', 'type': 'Display'}, + 'code': {'key': 'code', 'type': 'str'}, + 'message': {'key': 'message', 'type': 'str'}, } - def __init__(self, *, display=None, **kwargs) -> None: - super(Operation, self).__init__(**kwargs) - self.name = None - self.display = display + def __init__(self, **kwargs) -> None: + super(ErrorResponseError, self).__init__(**kwargs) + self.code = None + self.message = None -class Resource(Model): - """The core properties of ARM resources. +class Operation(Model): + """HANA operation information. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName} - :vartype id: str - :ivar name: The name of the resource + :ivar name: The name of the operation being performed on this particular + object. This name should match the action name that appears in RBAC / the + event service. :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Network/trafficManagerProfiles. - :vartype type: str + :param display: Displayed HANA operation information + :type display: ~azure.mgmt.hanaonazure.models.Display """ _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'}, + 'display': {'key': 'display', 'type': 'Display'}, } - def __init__(self, **kwargs) -> None: - super(Resource, self).__init__(**kwargs) - self.id = None + def __init__(self, *, display=None, **kwargs) -> None: + super(Operation, self).__init__(**kwargs) self.name = None - self.type = None + self.display = display class ProxyResource(Resource): - """The resource model definition for a ARM proxy resource. It will have - everything other than required location and tags. + """Proxy Resource. + + The resource model definition for a Azure Resource Manager proxy resource. + It will not have tags and a location. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName} + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Network/trafficManagerProfiles. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str """ @@ -211,13 +280,13 @@ class ProviderInstance(ProxyResource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName} + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Network/trafficManagerProfiles. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param provider_instance_type: The type of provider instance. :type provider_instance_type: str @@ -260,22 +329,27 @@ def __init__(self, *, provider_instance_type: str=None, properties: str=None, me class TrackedResource(Resource): - """The resource model definition for a ARM tracked top level resource. + """Tracked Resource. + + The resource model definition for an Azure Resource Manager tracked top + level resource which has 'tags' and a 'location'. Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName} + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Network/trafficManagerProfiles. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param tags: Resource tags. :type tags: dict[str, str] - :param location: The Azure Region where the resource lives + :param location: Required. The geo-location where the resource lives :type location: str """ @@ -283,6 +357,7 @@ class TrackedResource(Resource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'location': {'required': True}, } _attribute_map = { @@ -293,7 +368,7 @@ class TrackedResource(Resource): 'location': {'key': 'location', 'type': 'str'}, } - def __init__(self, *, tags=None, location: str=None, **kwargs) -> None: + def __init__(self, *, location: str, tags=None, **kwargs) -> None: super(TrackedResource, self).__init__(**kwargs) self.tags = tags self.location = location @@ -305,17 +380,19 @@ class SapMonitor(TrackedResource): Variables are only populated by the server, and will be ignored when sending a request. - :ivar id: Fully qualified resource Id for the resource. Ex - - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficManagerProfiles/{resourceName} + All required parameters must be populated in order to send to Azure. + + :ivar id: Fully qualified resource ID for the resource. Ex - + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Network/trafficManagerProfiles. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str :param tags: Resource tags. :type tags: dict[str, str] - :param location: The Azure Region where the resource lives + :param location: Required. The geo-location where the resource lives :type location: str :ivar provisioning_state: State of provisioning of the HanaInstance. Possible values include: 'Accepted', 'Creating', 'Updating', 'Failed', @@ -349,6 +426,7 @@ class SapMonitor(TrackedResource): 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, + 'location': {'required': True}, 'provisioning_state': {'readonly': True}, 'managed_resource_group_name': {'readonly': True}, 'sap_monitor_collector_version': {'readonly': True}, @@ -370,7 +448,7 @@ class SapMonitor(TrackedResource): 'monitor_subnet': {'key': 'properties.monitorSubnet', 'type': 'str'}, } - def __init__(self, *, tags=None, location: str=None, log_analytics_workspace_arm_id: str=None, enable_customer_analytics: bool=None, log_analytics_workspace_id: str=None, log_analytics_workspace_shared_key: str=None, monitor_subnet: str=None, **kwargs) -> None: + def __init__(self, *, location: str, tags=None, log_analytics_workspace_arm_id: str=None, enable_customer_analytics: bool=None, log_analytics_workspace_id: str=None, log_analytics_workspace_shared_key: str=None, monitor_subnet: str=None, **kwargs) -> None: super(SapMonitor, self).__init__(tags=tags, location=location, **kwargs) self.provisioning_state = None self.managed_resource_group_name = None From b6e9169d7dd711fce87a56a2f17176362af2a425 Mon Sep 17 00:00:00 2001 From: "Yan Zhang (WICRESOFT NORTH AMERICA LTD)" Date: Fri, 5 Mar 2021 10:23:37 +0800 Subject: [PATCH 2/2] test,version,CHANGELOG --- sdk/hanaonazure/azure-mgmt-hanaonazure/CHANGELOG.md | 8 ++++++++ .../azure/mgmt/hanaonazure/version.py | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/sdk/hanaonazure/azure-mgmt-hanaonazure/CHANGELOG.md b/sdk/hanaonazure/azure-mgmt-hanaonazure/CHANGELOG.md index 291003e4e762..429479ac8743 100644 --- a/sdk/hanaonazure/azure-mgmt-hanaonazure/CHANGELOG.md +++ b/sdk/hanaonazure/azure-mgmt-hanaonazure/CHANGELOG.md @@ -1,5 +1,13 @@ # Release History +## 0.15.0 (2021-03-05) + +**Breaking changes** + + - Parameter location of model SapMonitor is now required + - Parameter location of model TrackedResource is now required + - Model ErrorResponse has a new signature + ## 0.14.0 (2020-05-14) **Features** diff --git a/sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/version.py b/sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/version.py index eba31a2798cf..2f147316d9cb 100644 --- a/sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/version.py +++ b/sdk/hanaonazure/azure-mgmt-hanaonazure/azure/mgmt/hanaonazure/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.14.0" +VERSION = "0.15.0"