From 48931bd7bb626131dde5597e33c3b910403eb1ad Mon Sep 17 00:00:00 2001 From: SDKAuto Date: Tue, 16 Mar 2021 08:36:57 +0000 Subject: [PATCH] CodeGen from PR 13367 in Azure/azure-rest-api-specs Merge 661f957583dd708c3413deca3d9b284d120230d2 into e05b5a2b68745a5850ba64c04e158483aa4d626e --- .../mgmt/dns/v2016_04_01/models/__init__.py | 2 + .../models/_dns_management_client_enums.py | 6 ++ .../mgmt/dns/v2016_04_01/models/_models.py | 90 ++++++++++++------ .../dns/v2016_04_01/models/_models_py3.py | 92 +++++++++++++------ .../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 +++-- 8 files changed, 263 insertions(+), 123 deletions(-) diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/models/__init__.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/models/__init__.py index 7fee7bca9579..8dff69c91a07 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/models/__init__.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/models/__init__.py @@ -48,6 +48,7 @@ from ._paged_models import RecordSetPaged from ._paged_models import ZonePaged from ._dns_management_client_enums import ( + ZoneType, OperationStatus, HttpStatusCode, RecordType, @@ -73,6 +74,7 @@ 'ZoneDeleteResult', 'RecordSetPaged', 'ZonePaged', + 'ZoneType', 'OperationStatus', 'HttpStatusCode', 'RecordType', diff --git a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/models/_dns_management_client_enums.py b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/models/_dns_management_client_enums.py index 8417b67339b5..90ca4d07dfc1 100644 --- a/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/models/_dns_management_client_enums.py +++ b/sdk/network/azure-mgmt-dns/azure/mgmt/dns/v2016_04_01/models/_dns_management_client_enums.py @@ -12,6 +12,12 @@ from enum import Enum +class ZoneType(str, Enum): + + public = "Public" + private = "Private" + + class OperationStatus(str, Enum): in_progress = "InProgress" 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..60c2e51842bb 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. @@ -543,6 +571,9 @@ class Zone(TrackedResource): :ivar name_servers: The name servers for this DNS zone. This is a read-only property and any attempt to set this value will be ignored. :vartype name_servers: list[str] + :param zone_type: The type of this DNS zone (Public or Private). Possible + values include: 'Public', 'Private'. Default value: "Public" . + :type zone_type: str or ~azure.mgmt.dns.v2016_04_01.models.ZoneType """ _validation = { @@ -550,6 +581,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,16 +593,20 @@ 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'}, } 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 + self.zone_type = kwargs.get('zone_type', "Public") class ZoneDeleteResult(Model): 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..b0c5291bc567 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. @@ -543,6 +571,9 @@ class Zone(TrackedResource): :ivar name_servers: The name servers for this DNS zone. This is a read-only property and any attempt to set this value will be ignored. :vartype name_servers: list[str] + :param zone_type: The type of this DNS zone (Public or Private). Possible + values include: 'Public', 'Private'. Default value: "Public" . + :type zone_type: str or ~azure.mgmt.dns.v2016_04_01.models.ZoneType """ _validation = { @@ -550,6 +581,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,16 +593,20 @@ 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'}, } - def __init__(self, *, location: str, tags=None, etag: str=None, max_number_of_record_sets: int=None, number_of_record_sets: int=None, **kwargs) -> None: + def __init__(self, *, location: str, tags=None, etag: str=None, max_number_of_record_sets: int=None, number_of_record_sets: int=None, zone_type="Public", **kwargs) -> None: 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 + self.zone_type = zone_type class ZoneDeleteResult(Model): 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