Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ReleasePR track2_azure-mgmt-dns] dns t2 readme config #18038

Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions sdk/network/azure-mgmt-dns/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
include _meta.json
recursive-include tests *.py *.yaml
include *.md
include azure/__init__.py
Expand Down
8 changes: 8 additions & 0 deletions sdk/network/azure-mgmt-dns/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"autorest": "V2",
"use": "@microsoft.azure/autorest.python@~4.0.71",
"commit": "6fa6101166a28f1fd82d6a60b8038c9af236e2be",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest_command": "autorest specification/dns/resource-manager/readme.md --keep-version-file --multiapi --no-async --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk [email protected]/autorest.python@~4.0.71 --version=V2",
"readme": "specification/dns/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
from ._paged_models import RecordSetPaged
from ._paged_models import ZonePaged
from ._dns_management_client_enums import (
ZoneType,
OperationStatus,
HttpStatusCode,
RecordType,
Expand All @@ -73,6 +74,7 @@
'ZoneDeleteResult',
'RecordSetPaged',
'ZonePaged',
'ZoneType',
'OperationStatus',
'HttpStatusCode',
'RecordType',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@
from enum import Enum


class ZoneType(str, Enum):

public = "Public"
private = "Private"


class OperationStatus(str, Enum):

in_progress = "InProgress"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
"""

Expand All @@ -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
Expand All @@ -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
"""

Expand All @@ -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]
"""

Expand Down Expand Up @@ -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
"""

Expand Down Expand Up @@ -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.
Expand All @@ -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.
Expand All @@ -311,13 +326,18 @@ 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'},
'type': {'key': 'type', 'type': 'str'},
'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]'},
Expand All @@ -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)
Expand Down Expand Up @@ -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]
Expand Down Expand Up @@ -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]
Expand All @@ -536,20 +560,28 @@ 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.
:type number_of_record_sets: long
: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 = {
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
'max_number_of_records_per_record_set': {'readonly': True},
'name_servers': {'readonly': True},
}

Expand All @@ -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):
Expand Down
Loading