Skip to content

Commit

Permalink
[AutoPR dns/resource-manager] Add DNS 2017-10-01 API version (#2077)
Browse files Browse the repository at this point in the history
* Generated from 4709b831b9515ed6c45240d5a4421a63d0d7c1ea

Add DNS 2017-10-01 API version

* Generated from 95b6f270e9e4fb0221e5f8b8a92a788b457219d6

Add x-ms-client-name for recordsetnamesuffix for RecordSets_ListAllByDnsZone
  • Loading branch information
AutorestCI committed Mar 7, 2018
1 parent f262d80 commit 38f8c84
Show file tree
Hide file tree
Showing 18 changed files with 278 additions and 69 deletions.
4 changes: 2 additions & 2 deletions azure-mgmt-dns/azure/mgmt/dns/dns_management_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def __init__(

super(DnsManagementClientConfiguration, self).__init__(base_url)

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

self.credentials = credentials
Expand Down Expand Up @@ -78,7 +78,7 @@ def __init__(
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 = '2017-09-01'
self.api_version = '2017-10-01'
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)

Expand Down
1 change: 1 addition & 0 deletions azure-mgmt-dns/azure/mgmt/dns/models/aaaa_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ class AaaaRecord(Model):
}

def __init__(self, ipv6_address=None):
super(AaaaRecord, self).__init__()
self.ipv6_address = ipv6_address
1 change: 1 addition & 0 deletions azure-mgmt-dns/azure/mgmt/dns/models/arecord.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ class ARecord(Model):
}

def __init__(self, ipv4_address=None):
super(ARecord, self).__init__()
self.ipv4_address = ipv4_address
1 change: 1 addition & 0 deletions azure-mgmt-dns/azure/mgmt/dns/models/caa_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class CaaRecord(Model):
}

def __init__(self, flags=None, tag=None, value=None):
super(CaaRecord, self).__init__()
self.flags = flags
self.tag = tag
self.value = value
1 change: 1 addition & 0 deletions azure-mgmt-dns/azure/mgmt/dns/models/cname_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ class CnameRecord(Model):
}

def __init__(self, cname=None):
super(CnameRecord, self).__init__()
self.cname = cname
1 change: 1 addition & 0 deletions azure-mgmt-dns/azure/mgmt/dns/models/mx_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,6 @@ class MxRecord(Model):
}

def __init__(self, preference=None, exchange=None):
super(MxRecord, self).__init__()
self.preference = preference
self.exchange = exchange
1 change: 1 addition & 0 deletions azure-mgmt-dns/azure/mgmt/dns/models/ns_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ class NsRecord(Model):
}

def __init__(self, nsdname=None):
super(NsRecord, self).__init__()
self.nsdname = nsdname
1 change: 1 addition & 0 deletions azure-mgmt-dns/azure/mgmt/dns/models/ptr_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ class PtrRecord(Model):
}

def __init__(self, ptrdname=None):
super(PtrRecord, self).__init__()
self.ptrdname = ptrdname
1 change: 1 addition & 0 deletions azure-mgmt-dns/azure/mgmt/dns/models/record_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ class RecordSet(Model):
}

def __init__(self, etag=None, metadata=None, ttl=None, arecords=None, aaaa_records=None, mx_records=None, ns_records=None, ptr_records=None, srv_records=None, txt_records=None, cname_record=None, soa_record=None, caa_records=None):
super(RecordSet, self).__init__()
self.id = None
self.name = None
self.type = None
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,5 @@ class RecordSetUpdateParameters(Model):
}

def __init__(self, record_set=None):
super(RecordSetUpdateParameters, self).__init__()
self.record_set = record_set
4 changes: 2 additions & 2 deletions azure-mgmt-dns/azure/mgmt/dns/models/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ class Resource(Model):
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
}

_attribute_map = {
Expand All @@ -45,7 +44,8 @@ class Resource(Model):
'tags': {'key': 'tags', 'type': '{str}'},
}

def __init__(self, location, tags=None):
def __init__(self, location=None, tags=None):
super(Resource, self).__init__()
self.id = None
self.name = None
self.type = None
Expand Down
1 change: 1 addition & 0 deletions azure-mgmt-dns/azure/mgmt/dns/models/soa_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ class SoaRecord(Model):
}

def __init__(self, host=None, email=None, serial_number=None, refresh_time=None, retry_time=None, expire_time=None, minimum_ttl=None):
super(SoaRecord, self).__init__()
self.host = host
self.email = email
self.serial_number = serial_number
Expand Down
1 change: 1 addition & 0 deletions azure-mgmt-dns/azure/mgmt/dns/models/srv_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ class SrvRecord(Model):
}

def __init__(self, priority=None, weight=None, port=None, target=None):
super(SrvRecord, self).__init__()
self.priority = priority
self.weight = weight
self.port = port
Expand Down
1 change: 1 addition & 0 deletions azure-mgmt-dns/azure/mgmt/dns/models/txt_record.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,5 @@ class TxtRecord(Model):
}

def __init__(self, value=None):
super(TxtRecord, self).__init__()
self.value = value
3 changes: 1 addition & 2 deletions azure-mgmt-dns/azure/mgmt/dns/models/zone.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,6 @@ class Zone(Resource):
'id': {'readonly': True},
'name': {'readonly': True},
'type': {'readonly': True},
'location': {'required': True},
'max_number_of_record_sets': {'readonly': True},
'number_of_record_sets': {'readonly': True},
'name_servers': {'readonly': True},
Expand All @@ -65,7 +64,7 @@ class Zone(Resource):
'name_servers': {'key': 'properties.nameServers', 'type': '[str]'},
}

def __init__(self, location, tags=None, etag=None):
def __init__(self, location=None, tags=None, etag=None):
super(Zone, self).__init__(location=location, tags=tags)
self.etag = etag
self.max_number_of_record_sets = None
Expand Down
Loading

0 comments on commit 38f8c84

Please sign in to comment.