Skip to content

Commit

Permalink
Regenerate DNS
Browse files Browse the repository at this point in the history
  • Loading branch information
lmazuel committed Apr 19, 2017
1 parent e77dd69 commit d66982d
Show file tree
Hide file tree
Showing 24 changed files with 68 additions and 97 deletions.
Empty file modified azure-mgmt-dns/azure/mgmt/dns/__init__.py
100644 → 100755
Empty file.
43 changes: 5 additions & 38 deletions azure-mgmt-dns/azure/mgmt/dns/dns_management_client.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -29,49 +29,28 @@ class DnsManagementClientConfiguration(AzureConfiguration):
:param subscription_id: Specifies the Azure subscription ID, which
uniquely identifies the Microsoft Azure subscription.
:type subscription_id: str
:param api_version: Specifies the API version.
:type api_version: str
:param accept_language: Gets or sets the preferred language for the
response.
:type accept_language: str
:param long_running_operation_retry_timeout: Gets or sets the retry
timeout in seconds for Long Running Operations. Default value is 30.
:type long_running_operation_retry_timeout: int
:param generate_client_request_id: When set to true a unique
x-ms-client-request-id value is generated and included in each request.
Default is true.
:type generate_client_request_id: bool
:param str base_url: Service URL
:param str filepath: Existing config
"""

def __init__(
self, credentials, subscription_id, api_version='2016-04-01', accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None):
self, credentials, subscription_id, base_url=None):

if credentials is None:
raise ValueError("Parameter 'credentials' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
if not isinstance(subscription_id, str):
raise TypeError("Parameter 'subscription_id' must be str.")
if api_version is not None and not isinstance(api_version, str):
raise TypeError("Optional parameter 'api_version' must be str.")
if accept_language is not None and not isinstance(accept_language, str):
raise TypeError("Optional parameter 'accept_language' must be str.")
if not base_url:
base_url = 'https://management.azure.com'

super(DnsManagementClientConfiguration, self).__init__(base_url, filepath)
super(DnsManagementClientConfiguration, self).__init__(base_url)

self.add_user_agent('dnsmanagementclient/{}'.format(VERSION))
self.add_user_agent('Azure-SDK-For-Python')

self.credentials = credentials
self.subscription_id = subscription_id
self.api_version = api_version
self.accept_language = accept_language
self.long_running_operation_retry_timeout = long_running_operation_retry_timeout
self.generate_client_request_id = generate_client_request_id


class DnsManagementClient(object):
Expand All @@ -91,29 +70,17 @@ class DnsManagementClient(object):
:param subscription_id: Specifies the Azure subscription ID, which
uniquely identifies the Microsoft Azure subscription.
:type subscription_id: str
:param api_version: Specifies the API version.
:type api_version: str
:param accept_language: Gets or sets the preferred language for the
response.
:type accept_language: str
:param long_running_operation_retry_timeout: Gets or sets the retry
timeout in seconds for Long Running Operations. Default value is 30.
:type long_running_operation_retry_timeout: int
:param generate_client_request_id: When set to true a unique
x-ms-client-request-id value is generated and included in each request.
Default is true.
:type generate_client_request_id: bool
:param str base_url: Service URL
:param str filepath: Existing config
"""

def __init__(
self, credentials, subscription_id, api_version='2016-04-01', accept_language='en-US', long_running_operation_retry_timeout=30, generate_client_request_id=True, base_url=None, filepath=None):
self, credentials, subscription_id, base_url=None):

self.config = DnsManagementClientConfiguration(credentials, subscription_id, api_version, accept_language, long_running_operation_retry_timeout, generate_client_request_id, base_url, filepath)
self.config = DnsManagementClientConfiguration(credentials, subscription_id, base_url)
self._client = ServiceClient(self.config.credentials, self.config)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self.api_version = '2016-04-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down
Empty file modified azure-mgmt-dns/azure/mgmt/dns/models/__init__.py
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion azure-mgmt-dns/azure/mgmt/dns/models/aaaa_record.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class AaaaRecord(Model):
:param ipv6_address: The IPv6 address of this AAAA record.
:type ipv6_address: str
"""
"""

_attribute_map = {
'ipv6_address': {'key': 'ipv6Address', 'type': 'str'},
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-dns/azure/mgmt/dns/models/arecord.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class ARecord(Model):
:param ipv4_address: The IPv4 address of this A record.
:type ipv4_address: str
"""
"""

_attribute_map = {
'ipv4_address': {'key': 'ipv4Address', 'type': 'str'},
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-dns/azure/mgmt/dns/models/cname_record.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class CnameRecord(Model):
:param cname: The canonical name for this CNAME record.
:type cname: str
"""
"""

_attribute_map = {
'cname': {'key': 'cname', 'type': 'str'},
Expand Down
Empty file.
2 changes: 1 addition & 1 deletion azure-mgmt-dns/azure/mgmt/dns/models/mx_record.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class MxRecord(Model):
:type preference: int
:param exchange: The domain name of the mail host for this MX record.
:type exchange: str
"""
"""

_attribute_map = {
'preference': {'key': 'preference', 'type': 'int'},
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-dns/azure/mgmt/dns/models/ns_record.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class NsRecord(Model):
:param nsdname: The name server name for this NS record.
:type nsdname: str
"""
"""

_attribute_map = {
'nsdname': {'key': 'nsdname', 'type': 'str'},
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-dns/azure/mgmt/dns/models/ptr_record.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class PtrRecord(Model):
:param ptrdname: The PTR target domain name for this PTR record.
:type ptrdname: str
"""
"""

_attribute_map = {
'ptrdname': {'key': 'ptrdname', 'type': 'str'},
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-dns/azure/mgmt/dns/models/record_set.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class RecordSet(Model):
<azure.mgmt.dns.models.CnameRecord>`
:param soa_record: The SOA record in the record set.
:type soa_record: :class:`SoaRecord <azure.mgmt.dns.models.SoaRecord>`
"""
"""

_attribute_map = {
'id': {'key': 'id', 'type': 'str'},
Expand Down
Empty file modified azure-mgmt-dns/azure/mgmt/dns/models/record_set_paged.py
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion azure-mgmt-dns/azure/mgmt/dns/models/record_set_update_parameters.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class RecordSetUpdateParameters(Model):
:param record_set: Specifies information about the record set being
updated.
:type record_set: :class:`RecordSet <azure.mgmt.dns.models.RecordSet>`
"""
"""

_attribute_map = {
'record_set': {'key': 'RecordSet', 'type': 'RecordSet'},
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-dns/azure/mgmt/dns/models/resource.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class Resource(Model):
:type location: str
:param tags: Resource tags.
:type tags: dict
"""
"""

_validation = {
'id': {'readonly': True},
Expand Down
6 changes: 3 additions & 3 deletions azure-mgmt-dns/azure/mgmt/dns/models/soa_record.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
class SoaRecord(Model):
"""An SOA record.
:param host: The domain name of the authoritative name server for this
SOA record.
:param host: The domain name of the authoritative name server for this SOA
record.
:type host: str
:param email: The email contact for this SOA record.
:type email: str
Expand All @@ -31,7 +31,7 @@ class SoaRecord(Model):
:param minimum_ttl: The minimum value for this SOA record. By convention
this is used to determine the negative caching duration.
:type minimum_ttl: long
"""
"""

_attribute_map = {
'host': {'key': 'host', 'type': 'str'},
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-dns/azure/mgmt/dns/models/srv_record.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class SrvRecord(Model):
:type port: int
:param target: The target domain name for this SRV record.
:type target: str
"""
"""

_attribute_map = {
'priority': {'key': 'priority', 'type': 'int'},
Expand Down
2 changes: 1 addition & 1 deletion azure-mgmt-dns/azure/mgmt/dns/models/txt_record.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class TxtRecord(Model):
:param value: The text value of this TXT record.
:type value: list of str
"""
"""

_attribute_map = {
'value': {'key': 'value', 'type': '[str]'},
Expand Down
6 changes: 3 additions & 3 deletions azure-mgmt-dns/azure/mgmt/dns/models/zone.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,13 @@ class Zone(Resource):
attempt to set this value will be ignored.
:type max_number_of_record_sets: 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.
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 of str
"""
"""

_validation = {
'id': {'readonly': True},
Expand Down
22 changes: 11 additions & 11 deletions azure-mgmt-dns/azure/mgmt/dns/models/zone_delete_result.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -26,21 +26,21 @@ class ZoneDeleteResult(Model):
'SwitchingProtocols', 'OK', 'Created', 'Accepted',
'NonAuthoritativeInformation', 'NoContent', 'ResetContent',
'PartialContent', 'MultipleChoices', 'Ambiguous', 'MovedPermanently',
'Moved', 'Found', 'Redirect', 'SeeOther', 'RedirectMethod',
'NotModified', 'UseProxy', 'Unused', 'TemporaryRedirect',
'RedirectKeepVerb', 'BadRequest', 'Unauthorized', 'PaymentRequired',
'Forbidden', 'NotFound', 'MethodNotAllowed', 'NotAcceptable',
'ProxyAuthenticationRequired', 'RequestTimeout', 'Conflict', 'Gone',
'LengthRequired', 'PreconditionFailed', 'RequestEntityTooLarge',
'RequestUriTooLong', 'UnsupportedMediaType',
'RequestedRangeNotSatisfiable', 'ExpectationFailed', 'UpgradeRequired',
'InternalServerError', 'NotImplemented', 'BadGateway',
'ServiceUnavailable', 'GatewayTimeout', 'HttpVersionNotSupported'
'Moved', 'Found', 'Redirect', 'SeeOther', 'RedirectMethod', 'NotModified',
'UseProxy', 'Unused', 'TemporaryRedirect', 'RedirectKeepVerb',
'BadRequest', 'Unauthorized', 'PaymentRequired', 'Forbidden', 'NotFound',
'MethodNotAllowed', 'NotAcceptable', 'ProxyAuthenticationRequired',
'RequestTimeout', 'Conflict', 'Gone', 'LengthRequired',
'PreconditionFailed', 'RequestEntityTooLarge', 'RequestUriTooLong',
'UnsupportedMediaType', 'RequestedRangeNotSatisfiable',
'ExpectationFailed', 'UpgradeRequired', 'InternalServerError',
'NotImplemented', 'BadGateway', 'ServiceUnavailable', 'GatewayTimeout',
'HttpVersionNotSupported'
:type status_code: str or :class:`HttpStatusCode
<azure.mgmt.dns.models.HttpStatusCode>`
:param request_id:
:type request_id: str
"""
"""

_attribute_map = {
'azure_async_operation': {'key': 'azureAsyncOperation', 'type': 'str'},
Expand Down
Empty file modified azure-mgmt-dns/azure/mgmt/dns/models/zone_paged.py
100644 → 100755
Empty file.
Empty file modified azure-mgmt-dns/azure/mgmt/dns/operations/__init__.py
100644 → 100755
Empty file.
50 changes: 26 additions & 24 deletions azure-mgmt-dns/azure/mgmt/dns/operations/record_sets_operations.py
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ class RecordSetsOperations(object):
:param config: Configuration of service client.
:param serializer: An object model serializer.
:param deserializer: An objec model deserializer.
:ivar api_version: Specifies the API version. Constant value: "2016-04-01".
"""

def __init__(self, client, config, serializer, deserializer):

self._client = client
self._serialize = serializer
self._deserialize = deserializer
self.api_version = "2016-04-01"

self.config = config

Expand All @@ -52,9 +54,9 @@ def update(
<azure.mgmt.dns.models.RecordType>`
:param parameters: Parameters supplied to the Update operation.
:type parameters: :class:`RecordSet <azure.mgmt.dns.models.RecordSet>`
:param if_match: The etag of the record set. Omit this value to
always overwrite the current record set. Specify the last-seen etag
value to prevent accidentally overwritting concurrent changes.
:param if_match: The etag of the record set. Omit this value to always
overwrite the current record set. Specify the last-seen etag value to
prevent accidentally overwritting concurrent changes.
:type if_match: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
Expand All @@ -79,7 +81,7 @@ def update(

# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')

# Construct headers
header_parameters = {}
Expand Down Expand Up @@ -130,21 +132,21 @@ def create_or_update(
to the name of the zone.
:type relative_record_set_name: str
:param record_type: The type of DNS record in this record set. Record
sets of type SOA can be updated but not created (they are created
when the DNS zone is created). Possible values include: 'A', 'AAAA',
sets of type SOA can be updated but not created (they are created when
the DNS zone is created). Possible values include: 'A', 'AAAA',
'CNAME', 'MX', 'NS', 'PTR', 'SOA', 'SRV', 'TXT'
:type record_type: str or :class:`RecordType
<azure.mgmt.dns.models.RecordType>`
:param parameters: Parameters supplied to the CreateOrUpdate
operation.
:type parameters: :class:`RecordSet <azure.mgmt.dns.models.RecordSet>`
:param if_match: The etag of the record set. Omit this value to
always overwrite the current record set. Specify the last-seen etag
value to prevent accidentally overwritting any concurrent changes.
:param if_match: The etag of the record set. Omit this value to always
overwrite the current record set. Specify the last-seen etag value to
prevent accidentally overwritting any concurrent changes.
:type if_match: str
:param if_none_match: Set to '*' to allow a new record set to be
created, but to prevent updating an existing record set. Other
values will be ignored.
created, but to prevent updating an existing record set. Other values
will be ignored.
:type if_none_match: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
Expand All @@ -169,7 +171,7 @@ def create_or_update(

# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')

# Construct headers
header_parameters = {}
Expand Down Expand Up @@ -224,14 +226,14 @@ def delete(
to the name of the zone.
:type relative_record_set_name: str
:param record_type: The type of DNS record in this record set. Record
sets of type SOA cannot be deleted (they are deleted when the DNS
zone is deleted). Possible values include: 'A', 'AAAA', 'CNAME',
'MX', 'NS', 'PTR', 'SOA', 'SRV', 'TXT'
sets of type SOA cannot be deleted (they are deleted when the DNS zone
is deleted). Possible values include: 'A', 'AAAA', 'CNAME', 'MX',
'NS', 'PTR', 'SOA', 'SRV', 'TXT'
:type record_type: str or :class:`RecordType
<azure.mgmt.dns.models.RecordType>`
:param if_match: The etag of the record set. Omit this value to
always delete the current record set. Specify the last-seen etag
value to prevent accidentally deleting any concurrent changes.
:param if_match: The etag of the record set. Omit this value to always
delete the current record set. Specify the last-seen etag value to
prevent accidentally deleting any concurrent changes.
:type if_match: str
:param dict custom_headers: headers that will be added to the request
:param bool raw: returns the direct response alongside the
Expand All @@ -256,7 +258,7 @@ def delete(

# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')

# Construct headers
header_parameters = {}
Expand Down Expand Up @@ -323,7 +325,7 @@ def get(

# Construct parameters
query_parameters = {}
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')

# Construct headers
header_parameters = {}
Expand Down Expand Up @@ -365,8 +367,8 @@ def list_by_type(
dot).
:type zone_name: str
:param record_type: The type of record sets to enumerate. Possible
values include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA',
'SRV', 'TXT'
values include: 'A', 'AAAA', 'CNAME', 'MX', 'NS', 'PTR', 'SOA', 'SRV',
'TXT'
:type record_type: str or :class:`RecordType
<azure.mgmt.dns.models.RecordType>`
:param top: The maximum number of record sets to return. If not
Expand Down Expand Up @@ -397,7 +399,7 @@ def internal_paging(next_link=None, raw=False):
query_parameters = {}
if top is not None:
query_parameters['$top'] = self._serialize.query("top", top, 'int')
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')

else:
url = next_link
Expand Down Expand Up @@ -471,7 +473,7 @@ def internal_paging(next_link=None, raw=False):
query_parameters = {}
if top is not None:
query_parameters['$top'] = self._serialize.query("top", top, 'int')
query_parameters['api-version'] = self._serialize.query("self.config.api_version", self.config.api_version, 'str')
query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str')

else:
url = next_link
Expand Down
Loading

0 comments on commit d66982d

Please sign in to comment.