From daae8777f9fa91bcb36da1a5c33c617ff4a693d0 Mon Sep 17 00:00:00 2001 From: SDK Automation Date: Tue, 10 Nov 2020 00:19:45 +0000 Subject: [PATCH] Generated from 23bcbdbab81104a92f2f24b59e03438bee900144 --- sdk/network/azure-mgmt-dns/README.md | 30 +++---- .../mgmt/dns/v2016_04_01/models/_models.py | 85 +++++++++++++------ .../dns/v2016_04_01/models/_models_py3.py | 85 +++++++++++++------ .../dns/v2018_03_01_preview/models/_models.py | 74 ++++++++++------ .../v2018_03_01_preview/models/_models_py3.py | 74 ++++++++++------ .../mgmt/dns/v2018_05_01/models/_models.py | 24 ++++-- .../dns/v2018_05_01/models/_models_py3.py | 24 ++++-- sdk/network/azure-mgmt-dns/setup.py | 6 +- 8 files changed, 259 insertions(+), 143 deletions(-) diff --git a/sdk/network/azure-mgmt-dns/README.md b/sdk/network/azure-mgmt-dns/README.md index 03583b7cf94a..3f4798586efe 100644 --- a/sdk/network/azure-mgmt-dns/README.md +++ b/sdk/network/azure-mgmt-dns/README.md @@ -1,29 +1,21 @@ -## Microsoft Azure SDK for Python +# Microsoft Azure SDK for Python This is the Microsoft Azure DNS Management Client Library. +This package has been tested with Python 2.7, 3.5, 3.6, 3.7 and 3.8. +For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all). -Azure Resource Manager (ARM) is the next generation of management APIs -that replace the old Azure Service Management (ASM). -This package has been tested with Python 2.7, 3.4, 3.5, 3.6 and 3.7. +# Usage -For the older Azure Service Management (ASM) libraries, see -[azure-servicemanagement-legacy](https://pypi.python.org/pypi/azure-servicemanagement-legacy) -library. +For code examples, see [DNS Management](https://docs.microsoft.com/python/api/overview/azure/dns) +on docs.microsoft.com. -For a more complete set of Azure libraries, see the -[azure sdk python release](https://aka.ms/azsdk/python/all). -## Usage +# Provide Feedback -For code examples, see [DNS -Management](https://docs.microsoft.com/python/api/overview/azure/dns) on -docs.microsoft.com. - -## Provide Feedback - -If you encounter any bugs or have suggestions, please file an issue in -the [Issues](https://github.com/Azure/azure-sdk-for-python/issues) +If you encounter any bugs or have suggestions, please file an issue in the +[Issues](https://github.com/Azure/azure-sdk-for-python/issues) section of the project. -![image](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-dns%2FREADME.png) + +![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-dns%2FREADME.png) diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/models/_models.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/models/_models.py index fccceaa82d1a..37008b569487 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/models/_models.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/models/_models.py @@ -48,16 +48,19 @@ def __init__(self, **kwargs): 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 - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str """ @@ -81,19 +84,21 @@ def __init__(self, **kwargs): class AzureEntityResource(Resource): - """The resource model definition for a Azure Resource Manager resource with an - etag. + """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 - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :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 @@ -119,9 +124,9 @@ def __init__(self, **kwargs): class CloudError(Model): - """CloudError. + """An error response from the service. - :param error: + :param error: Cloud error body. :type error: ~azure.mgmt.dns.v2016_04_01.models.CloudErrorBody """ @@ -147,15 +152,18 @@ def __init__(self, deserialize, response, *args): class CloudErrorBody(Model): - """CloudErrorBody. + """An error response from the service. - :param code: + :param code: An identifier for the error. Codes are invariant and are + intended to be consumed programmatically. :type code: str - :param message: + :param message: A message describing the error, intended to be suitable + for display in a user interface. :type message: str - :param target: + :param target: The target of the particular error. For example, the name + of the property in error. :type target: str - :param details: + :param details: A list of additional details about the error. :type details: list[~azure.mgmt.dns.v2016_04_01.models.CloudErrorBody] """ @@ -227,19 +235,21 @@ def __init__(self, **kwargs): 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 - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str """ @@ -279,6 +289,9 @@ class RecordSet(Model): """Describes a DNS record set (a collection of DNS records with the same name and type). + Variables are only populated by the server, and will be ignored when + sending a request. + :param id: The ID of the record set. :type id: str :param name: The name of the record set. @@ -291,6 +304,8 @@ class RecordSet(Model): :type metadata: dict[str, str] :param ttl: The TTL (time-to-live) of the records in the record set. :type ttl: long + :ivar fqdn: Fully qualified domain name of the record set. + :vartype fqdn: str :param arecords: The list of A records in the record set. :type arecords: list[~azure.mgmt.dns.v2016_04_01.models.ARecord] :param aaaa_records: The list of AAAA records in the record set. @@ -311,6 +326,10 @@ class RecordSet(Model): :type soa_record: ~azure.mgmt.dns.v2016_04_01.models.SoaRecord """ + _validation = { + 'fqdn': {'readonly': True}, + } + _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, @@ -318,6 +337,7 @@ class RecordSet(Model): 'etag': {'key': 'etag', 'type': 'str'}, 'metadata': {'key': 'properties.metadata', 'type': '{str}'}, 'ttl': {'key': 'properties.TTL', 'type': 'long'}, + 'fqdn': {'key': 'properties.fqdn', 'type': 'str'}, 'arecords': {'key': 'properties.ARecords', 'type': '[ARecord]'}, 'aaaa_records': {'key': 'properties.AAAARecords', 'type': '[AaaaRecord]'}, 'mx_records': {'key': 'properties.MXRecords', 'type': '[MxRecord]'}, @@ -337,6 +357,7 @@ def __init__(self, **kwargs): self.etag = kwargs.get('etag', None) self.metadata = kwargs.get('metadata', None) self.ttl = kwargs.get('ttl', None) + self.fqdn = None self.arecords = kwargs.get('arecords', None) self.aaaa_records = kwargs.get('aaaa_records', None) self.mx_records = kwargs.get('mx_records', None) @@ -452,20 +473,23 @@ 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. All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :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] @@ -518,13 +542,13 @@ class Zone(TrackedResource): All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :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] @@ -536,6 +560,10 @@ class Zone(TrackedResource): can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored. :type max_number_of_record_sets: long + :ivar max_number_of_records_per_record_set: The maximum number of records + per record set that can be created in this DNS zone. This is a read-only + property and any attempt to set this value will be ignored. + :vartype max_number_of_records_per_record_set: long :param number_of_record_sets: The current number of record sets in this DNS zone. This is a read-only property and any attempt to set this value will be ignored. @@ -550,6 +578,7 @@ class Zone(TrackedResource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'max_number_of_records_per_record_set': {'readonly': True}, 'name_servers': {'readonly': True}, } @@ -561,6 +590,7 @@ class Zone(TrackedResource): 'location': {'key': 'location', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, 'max_number_of_record_sets': {'key': 'properties.maxNumberOfRecordSets', 'type': 'long'}, + 'max_number_of_records_per_record_set': {'key': 'properties.maxNumberOfRecordsPerRecordSet', 'type': 'long'}, 'number_of_record_sets': {'key': 'properties.numberOfRecordSets', 'type': 'long'}, 'name_servers': {'key': 'properties.nameServers', 'type': '[str]'}, } @@ -569,6 +599,7 @@ def __init__(self, **kwargs): super(Zone, self).__init__(**kwargs) self.etag = kwargs.get('etag', None) self.max_number_of_record_sets = kwargs.get('max_number_of_record_sets', None) + self.max_number_of_records_per_record_set = None self.number_of_record_sets = kwargs.get('number_of_record_sets', None) self.name_servers = None diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/models/_models_py3.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/models/_models_py3.py index 896a715c6452..5ea0da410814 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/models/_models_py3.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/models/_models_py3.py @@ -48,16 +48,19 @@ def __init__(self, *, ipv4_address: str=None, **kwargs) -> None: 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 - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str """ @@ -81,19 +84,21 @@ def __init__(self, **kwargs) -> None: class AzureEntityResource(Resource): - """The resource model definition for a Azure Resource Manager resource with an - etag. + """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 - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :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 @@ -119,9 +124,9 @@ def __init__(self, **kwargs) -> None: class CloudError(Model): - """CloudError. + """An error response from the service. - :param error: + :param error: Cloud error body. :type error: ~azure.mgmt.dns.v2016_04_01.models.CloudErrorBody """ @@ -147,15 +152,18 @@ def __init__(self, deserialize, response, *args): class CloudErrorBody(Model): - """CloudErrorBody. + """An error response from the service. - :param code: + :param code: An identifier for the error. Codes are invariant and are + intended to be consumed programmatically. :type code: str - :param message: + :param message: A message describing the error, intended to be suitable + for display in a user interface. :type message: str - :param target: + :param target: The target of the particular error. For example, the name + of the property in error. :type target: str - :param details: + :param details: A list of additional details about the error. :type details: list[~azure.mgmt.dns.v2016_04_01.models.CloudErrorBody] """ @@ -227,19 +235,21 @@ def __init__(self, *, nsdname: str=None, **kwargs) -> 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 - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str """ @@ -279,6 +289,9 @@ class RecordSet(Model): """Describes a DNS record set (a collection of DNS records with the same name and type). + Variables are only populated by the server, and will be ignored when + sending a request. + :param id: The ID of the record set. :type id: str :param name: The name of the record set. @@ -291,6 +304,8 @@ class RecordSet(Model): :type metadata: dict[str, str] :param ttl: The TTL (time-to-live) of the records in the record set. :type ttl: long + :ivar fqdn: Fully qualified domain name of the record set. + :vartype fqdn: str :param arecords: The list of A records in the record set. :type arecords: list[~azure.mgmt.dns.v2016_04_01.models.ARecord] :param aaaa_records: The list of AAAA records in the record set. @@ -311,6 +326,10 @@ class RecordSet(Model): :type soa_record: ~azure.mgmt.dns.v2016_04_01.models.SoaRecord """ + _validation = { + 'fqdn': {'readonly': True}, + } + _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, @@ -318,6 +337,7 @@ class RecordSet(Model): 'etag': {'key': 'etag', 'type': 'str'}, 'metadata': {'key': 'properties.metadata', 'type': '{str}'}, 'ttl': {'key': 'properties.TTL', 'type': 'long'}, + 'fqdn': {'key': 'properties.fqdn', 'type': 'str'}, 'arecords': {'key': 'properties.ARecords', 'type': '[ARecord]'}, 'aaaa_records': {'key': 'properties.AAAARecords', 'type': '[AaaaRecord]'}, 'mx_records': {'key': 'properties.MXRecords', 'type': '[MxRecord]'}, @@ -337,6 +357,7 @@ def __init__(self, *, id: str=None, name: str=None, type: str=None, etag: str=No self.etag = etag self.metadata = metadata self.ttl = ttl + self.fqdn = None self.arecords = arecords self.aaaa_records = aaaa_records self.mx_records = mx_records @@ -452,20 +473,23 @@ def __init__(self, *, id: str=None, **kwargs) -> None: 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. All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :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] @@ -518,13 +542,13 @@ class Zone(TrackedResource): All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :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] @@ -536,6 +560,10 @@ class Zone(TrackedResource): can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored. :type max_number_of_record_sets: long + :ivar max_number_of_records_per_record_set: The maximum number of records + per record set that can be created in this DNS zone. This is a read-only + property and any attempt to set this value will be ignored. + :vartype max_number_of_records_per_record_set: long :param number_of_record_sets: The current number of record sets in this DNS zone. This is a read-only property and any attempt to set this value will be ignored. @@ -550,6 +578,7 @@ class Zone(TrackedResource): 'name': {'readonly': True}, 'type': {'readonly': True}, 'location': {'required': True}, + 'max_number_of_records_per_record_set': {'readonly': True}, 'name_servers': {'readonly': True}, } @@ -561,6 +590,7 @@ class Zone(TrackedResource): 'location': {'key': 'location', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, 'max_number_of_record_sets': {'key': 'properties.maxNumberOfRecordSets', 'type': 'long'}, + 'max_number_of_records_per_record_set': {'key': 'properties.maxNumberOfRecordsPerRecordSet', 'type': 'long'}, 'number_of_record_sets': {'key': 'properties.numberOfRecordSets', 'type': 'long'}, 'name_servers': {'key': 'properties.nameServers', 'type': '[str]'}, } @@ -569,6 +599,7 @@ def __init__(self, *, location: str, tags=None, etag: str=None, max_number_of_re super(Zone, self).__init__(tags=tags, location=location, **kwargs) self.etag = etag self.max_number_of_record_sets = max_number_of_record_sets + self.max_number_of_records_per_record_set = None self.number_of_record_sets = number_of_record_sets self.name_servers = None diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/models/_models.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/models/_models.py index 57b66c8942a0..c78a66e5ae35 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/models/_models.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/models/_models.py @@ -48,16 +48,19 @@ def __init__(self, **kwargs): 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 - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str """ @@ -81,19 +84,21 @@ def __init__(self, **kwargs): class AzureEntityResource(Resource): - """The resource model definition for a Azure Resource Manager resource with an - etag. + """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 - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :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 @@ -144,9 +149,9 @@ def __init__(self, **kwargs): class CloudError(Model): - """An error message. + """An error response from the service. - :param error: The error message body + :param error: Cloud error body. :type error: ~azure.mgmt.dns.v2018_03_01_preview.models.CloudErrorBody """ @@ -172,15 +177,18 @@ def __init__(self, deserialize, response, *args): class CloudErrorBody(Model): - """The body of an error message. + """An error response from the service. - :param code: The error code + :param code: An identifier for the error. Codes are invariant and are + intended to be consumed programmatically. :type code: str - :param message: A description of what caused the error + :param message: A message describing the error, intended to be suitable + for display in a user interface. :type message: str - :param target: The target resource of the error message + :param target: The target of the particular error. For example, the name + of the property in error. :type target: str - :param details: Extra error information + :param details: A list of additional details about the error. :type details: list[~azure.mgmt.dns.v2018_03_01_preview.models.CloudErrorBody] """ @@ -253,19 +261,21 @@ def __init__(self, **kwargs): 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 - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str """ @@ -503,20 +513,23 @@ 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. All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :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] @@ -569,13 +582,13 @@ class Zone(TrackedResource): All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :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] @@ -587,6 +600,10 @@ class Zone(TrackedResource): can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored. :vartype max_number_of_record_sets: long + :ivar max_number_of_records_per_record_set: The maximum number of records + per record set that can be created in this DNS zone. This is a read-only + property and any attempt to set this value will be ignored. + :vartype max_number_of_records_per_record_set: long :ivar number_of_record_sets: The current number of record sets in this DNS zone. This is a read-only property and any attempt to set this value will be ignored. @@ -616,6 +633,7 @@ class Zone(TrackedResource): 'type': {'readonly': True}, 'location': {'required': True}, 'max_number_of_record_sets': {'readonly': True}, + 'max_number_of_records_per_record_set': {'readonly': True}, 'number_of_record_sets': {'readonly': True}, 'name_servers': {'readonly': True}, } @@ -628,6 +646,7 @@ class Zone(TrackedResource): 'location': {'key': 'location', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, 'max_number_of_record_sets': {'key': 'properties.maxNumberOfRecordSets', 'type': 'long'}, + 'max_number_of_records_per_record_set': {'key': 'properties.maxNumberOfRecordsPerRecordSet', 'type': 'long'}, 'number_of_record_sets': {'key': 'properties.numberOfRecordSets', 'type': 'long'}, 'name_servers': {'key': 'properties.nameServers', 'type': '[str]'}, 'zone_type': {'key': 'properties.zoneType', 'type': 'ZoneType'}, @@ -639,6 +658,7 @@ def __init__(self, **kwargs): super(Zone, self).__init__(**kwargs) self.etag = kwargs.get('etag', None) self.max_number_of_record_sets = None + self.max_number_of_records_per_record_set = None self.number_of_record_sets = None self.name_servers = None self.zone_type = kwargs.get('zone_type', "Public") diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/models/_models_py3.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/models/_models_py3.py index 4d8cf1ec41c4..5919ceac4ec8 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/models/_models_py3.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_03_01_preview/models/_models_py3.py @@ -48,16 +48,19 @@ def __init__(self, *, ipv4_address: str=None, **kwargs) -> None: 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 - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str """ @@ -81,19 +84,21 @@ def __init__(self, **kwargs) -> None: class AzureEntityResource(Resource): - """The resource model definition for a Azure Resource Manager resource with an - etag. + """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 - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :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 @@ -144,9 +149,9 @@ def __init__(self, *, flags: int=None, tag: str=None, value: str=None, **kwargs) class CloudError(Model): - """An error message. + """An error response from the service. - :param error: The error message body + :param error: Cloud error body. :type error: ~azure.mgmt.dns.v2018_03_01_preview.models.CloudErrorBody """ @@ -172,15 +177,18 @@ def __init__(self, deserialize, response, *args): class CloudErrorBody(Model): - """The body of an error message. + """An error response from the service. - :param code: The error code + :param code: An identifier for the error. Codes are invariant and are + intended to be consumed programmatically. :type code: str - :param message: A description of what caused the error + :param message: A message describing the error, intended to be suitable + for display in a user interface. :type message: str - :param target: The target resource of the error message + :param target: The target of the particular error. For example, the name + of the property in error. :type target: str - :param details: Extra error information + :param details: A list of additional details about the error. :type details: list[~azure.mgmt.dns.v2018_03_01_preview.models.CloudErrorBody] """ @@ -253,19 +261,21 @@ def __init__(self, *, nsdname: str=None, **kwargs) -> 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 - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :ivar type: The type of the resource. E.g. + "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts" :vartype type: str """ @@ -503,20 +513,23 @@ def __init__(self, *, id: str=None, **kwargs) -> None: 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. All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :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] @@ -569,13 +582,13 @@ class Zone(TrackedResource): All required parameters must be populated in order to send to Azure. - :ivar id: Fully qualified resource Id for the resource. Ex - + :ivar id: Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName} :vartype id: str :ivar name: The name of the resource :vartype name: str - :ivar type: The type of the resource. Ex- - Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + :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] @@ -587,6 +600,10 @@ class Zone(TrackedResource): can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored. :vartype max_number_of_record_sets: long + :ivar max_number_of_records_per_record_set: The maximum number of records + per record set that can be created in this DNS zone. This is a read-only + property and any attempt to set this value will be ignored. + :vartype max_number_of_records_per_record_set: long :ivar number_of_record_sets: The current number of record sets in this DNS zone. This is a read-only property and any attempt to set this value will be ignored. @@ -616,6 +633,7 @@ class Zone(TrackedResource): 'type': {'readonly': True}, 'location': {'required': True}, 'max_number_of_record_sets': {'readonly': True}, + 'max_number_of_records_per_record_set': {'readonly': True}, 'number_of_record_sets': {'readonly': True}, 'name_servers': {'readonly': True}, } @@ -628,6 +646,7 @@ class Zone(TrackedResource): 'location': {'key': 'location', 'type': 'str'}, 'etag': {'key': 'etag', 'type': 'str'}, 'max_number_of_record_sets': {'key': 'properties.maxNumberOfRecordSets', 'type': 'long'}, + 'max_number_of_records_per_record_set': {'key': 'properties.maxNumberOfRecordsPerRecordSet', 'type': 'long'}, 'number_of_record_sets': {'key': 'properties.numberOfRecordSets', 'type': 'long'}, 'name_servers': {'key': 'properties.nameServers', 'type': '[str]'}, 'zone_type': {'key': 'properties.zoneType', 'type': 'ZoneType'}, @@ -639,6 +658,7 @@ def __init__(self, *, location: str, tags=None, etag: str=None, zone_type="Publi super(Zone, self).__init__(tags=tags, location=location, **kwargs) self.etag = etag self.max_number_of_record_sets = None + self.max_number_of_records_per_record_set = None self.number_of_record_sets = None self.name_servers = None self.zone_type = zone_type diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/models/_models.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/models/_models.py index 64e18daa3bed..73ff86d71c19 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/models/_models.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/models/_models.py @@ -71,9 +71,9 @@ def __init__(self, **kwargs): class CloudError(Model): - """An error message. + """An error response from the service. - :param error: The error message body + :param error: Cloud error body. :type error: ~azure.mgmt.dns.v2018_05_01.models.CloudErrorBody """ @@ -99,15 +99,18 @@ def __init__(self, deserialize, response, *args): class CloudErrorBody(Model): - """The body of an error message. + """An error response from the service. - :param code: The error code + :param code: An identifier for the error. Codes are invariant and are + intended to be consumed programmatically. :type code: str - :param message: A description of what caused the error + :param message: A message describing the error, intended to be suitable + for display in a user interface. :type message: str - :param target: The target resource of the error message + :param target: The target of the particular error. For example, the name + of the property in error. :type target: str - :param details: Extra error information + :param details: A list of additional details about the error. :type details: list[~azure.mgmt.dns.v2018_05_01.models.CloudErrorBody] """ @@ -540,6 +543,10 @@ class Zone(Resource): can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored. :vartype max_number_of_record_sets: long + :ivar max_number_of_records_per_record_set: The maximum number of records + per record set that can be created in this DNS zone. This is a read-only + property and any attempt to set this value will be ignored. + :vartype max_number_of_records_per_record_set: long :ivar number_of_record_sets: The current number of record sets in this DNS zone. This is a read-only property and any attempt to set this value will be ignored. @@ -568,6 +575,7 @@ class Zone(Resource): 'type': {'readonly': True}, 'location': {'required': True}, 'max_number_of_record_sets': {'readonly': True}, + 'max_number_of_records_per_record_set': {'readonly': True}, 'number_of_record_sets': {'readonly': True}, 'name_servers': {'readonly': True}, } @@ -580,6 +588,7 @@ class Zone(Resource): 'tags': {'key': 'tags', 'type': '{str}'}, 'etag': {'key': 'etag', 'type': 'str'}, 'max_number_of_record_sets': {'key': 'properties.maxNumberOfRecordSets', 'type': 'long'}, + 'max_number_of_records_per_record_set': {'key': 'properties.maxNumberOfRecordsPerRecordSet', 'type': 'long'}, 'number_of_record_sets': {'key': 'properties.numberOfRecordSets', 'type': 'long'}, 'name_servers': {'key': 'properties.nameServers', 'type': '[str]'}, 'zone_type': {'key': 'properties.zoneType', 'type': 'ZoneType'}, @@ -591,6 +600,7 @@ def __init__(self, **kwargs): super(Zone, self).__init__(**kwargs) self.etag = kwargs.get('etag', None) self.max_number_of_record_sets = None + self.max_number_of_records_per_record_set = None self.number_of_record_sets = None self.name_servers = None self.zone_type = kwargs.get('zone_type', "Public") diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/models/_models_py3.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/models/_models_py3.py index 6f0bcac5818b..446dcb456acf 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/models/_models_py3.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2018_05_01/models/_models_py3.py @@ -71,9 +71,9 @@ def __init__(self, *, flags: int=None, tag: str=None, value: str=None, **kwargs) class CloudError(Model): - """An error message. + """An error response from the service. - :param error: The error message body + :param error: Cloud error body. :type error: ~azure.mgmt.dns.v2018_05_01.models.CloudErrorBody """ @@ -99,15 +99,18 @@ def __init__(self, deserialize, response, *args): class CloudErrorBody(Model): - """The body of an error message. + """An error response from the service. - :param code: The error code + :param code: An identifier for the error. Codes are invariant and are + intended to be consumed programmatically. :type code: str - :param message: A description of what caused the error + :param message: A message describing the error, intended to be suitable + for display in a user interface. :type message: str - :param target: The target resource of the error message + :param target: The target of the particular error. For example, the name + of the property in error. :type target: str - :param details: Extra error information + :param details: A list of additional details about the error. :type details: list[~azure.mgmt.dns.v2018_05_01.models.CloudErrorBody] """ @@ -540,6 +543,10 @@ class Zone(Resource): can be created in this DNS zone. This is a read-only property and any attempt to set this value will be ignored. :vartype max_number_of_record_sets: long + :ivar max_number_of_records_per_record_set: The maximum number of records + per record set that can be created in this DNS zone. This is a read-only + property and any attempt to set this value will be ignored. + :vartype max_number_of_records_per_record_set: long :ivar number_of_record_sets: The current number of record sets in this DNS zone. This is a read-only property and any attempt to set this value will be ignored. @@ -568,6 +575,7 @@ class Zone(Resource): 'type': {'readonly': True}, 'location': {'required': True}, 'max_number_of_record_sets': {'readonly': True}, + 'max_number_of_records_per_record_set': {'readonly': True}, 'number_of_record_sets': {'readonly': True}, 'name_servers': {'readonly': True}, } @@ -580,6 +588,7 @@ class Zone(Resource): 'tags': {'key': 'tags', 'type': '{str}'}, 'etag': {'key': 'etag', 'type': 'str'}, 'max_number_of_record_sets': {'key': 'properties.maxNumberOfRecordSets', 'type': 'long'}, + 'max_number_of_records_per_record_set': {'key': 'properties.maxNumberOfRecordsPerRecordSet', 'type': 'long'}, 'number_of_record_sets': {'key': 'properties.numberOfRecordSets', 'type': 'long'}, 'name_servers': {'key': 'properties.nameServers', 'type': '[str]'}, 'zone_type': {'key': 'properties.zoneType', 'type': 'ZoneType'}, @@ -591,6 +600,7 @@ def __init__(self, *, location: str, tags=None, etag: str=None, zone_type="Publi super(Zone, self).__init__(location=location, tags=tags, **kwargs) self.etag = etag self.max_number_of_record_sets = None + self.max_number_of_records_per_record_set = None self.number_of_record_sets = None self.name_servers = None self.zone_type = zone_type diff --git a/sdk/network/azure-mgmt-dns/setup.py b/sdk/network/azure-mgmt-dns/setup.py index 14c3e0e1b201..10e4a4bf0a42 100644 --- a/sdk/network/azure-mgmt-dns/setup.py +++ b/sdk/network/azure-mgmt-dns/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) @@ -64,10 +66,10 @@ 'Programming Language :: Python :: 2', 'Programming Language :: Python :: 2.7', 'Programming Language :: Python :: 3', - 'Programming Language :: Python :: 3.4', 'Programming Language :: Python :: 3.5', 'Programming Language :: Python :: 3.6', 'Programming Language :: Python :: 3.7', + 'Programming Language :: Python :: 3.8', 'License :: OSI Approved :: MIT License', ], zip_safe=False,