Skip to content

Commit 9bb9c6a

Browse files
authored
Generated from 0b4ea6f759e997ca495a1da7c47ea2ff6ba8e2f9 (#5491)
fix: provisioningState casing in examples
1 parent 4d9560c commit 9bb9c6a

File tree

141 files changed

+8942
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

141 files changed

+8942
-0
lines changed
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .dns_management_client import DnsManagementClient
13+
from .version import VERSION
14+
15+
__all__ = ['DnsManagementClient']
16+
17+
__version__ = VERSION
18+
Lines changed: 86 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,86 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.service_client import SDKClient
13+
from msrest import Serializer, Deserializer
14+
from msrestazure import AzureConfiguration
15+
from .version import VERSION
16+
from .operations.record_sets_operations import RecordSetsOperations
17+
from .operations.zones_operations import ZonesOperations
18+
from . import models
19+
20+
21+
class DnsManagementClientConfiguration(AzureConfiguration):
22+
"""Configuration for DnsManagementClient
23+
Note that all parameters used to create this instance are saved as instance
24+
attributes.
25+
26+
:param credentials: Credentials needed for the client to connect to Azure.
27+
:type credentials: :mod:`A msrestazure Credentials
28+
object<msrestazure.azure_active_directory>`
29+
:param subscription_id: The ID of the target subscription.
30+
:type subscription_id: str
31+
:param str base_url: Service URL
32+
"""
33+
34+
def __init__(
35+
self, credentials, subscription_id, base_url=None):
36+
37+
if credentials is None:
38+
raise ValueError("Parameter 'credentials' must not be None.")
39+
if subscription_id is None:
40+
raise ValueError("Parameter 'subscription_id' must not be None.")
41+
if not base_url:
42+
base_url = 'https://management.azure.com'
43+
44+
super(DnsManagementClientConfiguration, self).__init__(base_url)
45+
46+
self.add_user_agent('azure-mgmt-dns/{}'.format(VERSION))
47+
self.add_user_agent('Azure-SDK-For-Python')
48+
49+
self.credentials = credentials
50+
self.subscription_id = subscription_id
51+
52+
53+
class DnsManagementClient(SDKClient):
54+
"""The DNS Management Client.
55+
56+
:ivar config: Configuration for client.
57+
:vartype config: DnsManagementClientConfiguration
58+
59+
:ivar record_sets: RecordSets operations
60+
:vartype record_sets: azure.mgmt.dns.v2016_04_01.operations.RecordSetsOperations
61+
:ivar zones: Zones operations
62+
:vartype zones: azure.mgmt.dns.v2016_04_01.operations.ZonesOperations
63+
64+
:param credentials: Credentials needed for the client to connect to Azure.
65+
:type credentials: :mod:`A msrestazure Credentials
66+
object<msrestazure.azure_active_directory>`
67+
:param subscription_id: The ID of the target subscription.
68+
:type subscription_id: str
69+
:param str base_url: Service URL
70+
"""
71+
72+
def __init__(
73+
self, credentials, subscription_id, base_url=None):
74+
75+
self.config = DnsManagementClientConfiguration(credentials, subscription_id, base_url)
76+
super(DnsManagementClient, self).__init__(self.config.credentials, self.config)
77+
78+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
79+
self.api_version = '2016-04-01'
80+
self._serialize = Serializer(client_models)
81+
self._deserialize = Deserializer(client_models)
82+
83+
self.record_sets = RecordSetsOperations(
84+
self._client, self.config, self._serialize, self._deserialize)
85+
self.zones = ZonesOperations(
86+
self._client, self.config, self._serialize, self._deserialize)
Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
try:
13+
from .arecord_py3 import ARecord
14+
from .aaaa_record_py3 import AaaaRecord
15+
from .mx_record_py3 import MxRecord
16+
from .ns_record_py3 import NsRecord
17+
from .ptr_record_py3 import PtrRecord
18+
from .srv_record_py3 import SrvRecord
19+
from .txt_record_py3 import TxtRecord
20+
from .cname_record_py3 import CnameRecord
21+
from .soa_record_py3 import SoaRecord
22+
from .record_set_py3 import RecordSet
23+
from .record_set_update_parameters_py3 import RecordSetUpdateParameters
24+
from .zone_py3 import Zone
25+
from .zone_delete_result_py3 import ZoneDeleteResult
26+
from .proxy_resource_py3 import ProxyResource
27+
from .azure_entity_resource_py3 import AzureEntityResource
28+
from .resource_py3 import Resource
29+
from .tracked_resource_py3 import TrackedResource
30+
except (SyntaxError, ImportError):
31+
from .arecord import ARecord
32+
from .aaaa_record import AaaaRecord
33+
from .mx_record import MxRecord
34+
from .ns_record import NsRecord
35+
from .ptr_record import PtrRecord
36+
from .srv_record import SrvRecord
37+
from .txt_record import TxtRecord
38+
from .cname_record import CnameRecord
39+
from .soa_record import SoaRecord
40+
from .record_set import RecordSet
41+
from .record_set_update_parameters import RecordSetUpdateParameters
42+
from .zone import Zone
43+
from .zone_delete_result import ZoneDeleteResult
44+
from .proxy_resource import ProxyResource
45+
from .azure_entity_resource import AzureEntityResource
46+
from .resource import Resource
47+
from .tracked_resource import TrackedResource
48+
from .record_set_paged import RecordSetPaged
49+
from .zone_paged import ZonePaged
50+
from .dns_management_client_enums import (
51+
OperationStatus,
52+
HttpStatusCode,
53+
RecordType,
54+
)
55+
56+
__all__ = [
57+
'ARecord',
58+
'AaaaRecord',
59+
'MxRecord',
60+
'NsRecord',
61+
'PtrRecord',
62+
'SrvRecord',
63+
'TxtRecord',
64+
'CnameRecord',
65+
'SoaRecord',
66+
'RecordSet',
67+
'RecordSetUpdateParameters',
68+
'Zone',
69+
'ZoneDeleteResult',
70+
'ProxyResource',
71+
'AzureEntityResource',
72+
'Resource',
73+
'TrackedResource',
74+
'RecordSetPaged',
75+
'ZonePaged',
76+
'OperationStatus',
77+
'HttpStatusCode',
78+
'RecordType',
79+
]
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class AaaaRecord(Model):
16+
"""An AAAA record.
17+
18+
:param ipv6_address: The IPv6 address of this AAAA record.
19+
:type ipv6_address: str
20+
"""
21+
22+
_attribute_map = {
23+
'ipv6_address': {'key': 'ipv6Address', 'type': 'str'},
24+
}
25+
26+
def __init__(self, **kwargs):
27+
super(AaaaRecord, self).__init__(**kwargs)
28+
self.ipv6_address = kwargs.get('ipv6_address', None)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class AaaaRecord(Model):
16+
"""An AAAA record.
17+
18+
:param ipv6_address: The IPv6 address of this AAAA record.
19+
:type ipv6_address: str
20+
"""
21+
22+
_attribute_map = {
23+
'ipv6_address': {'key': 'ipv6Address', 'type': 'str'},
24+
}
25+
26+
def __init__(self, *, ipv6_address: str=None, **kwargs) -> None:
27+
super(AaaaRecord, self).__init__(**kwargs)
28+
self.ipv6_address = ipv6_address
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class ARecord(Model):
16+
"""An A record.
17+
18+
:param ipv4_address: The IPv4 address of this A record.
19+
:type ipv4_address: str
20+
"""
21+
22+
_attribute_map = {
23+
'ipv4_address': {'key': 'ipv4Address', 'type': 'str'},
24+
}
25+
26+
def __init__(self, **kwargs):
27+
super(ARecord, self).__init__(**kwargs)
28+
self.ipv4_address = kwargs.get('ipv4_address', None)
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from msrest.serialization import Model
13+
14+
15+
class ARecord(Model):
16+
"""An A record.
17+
18+
:param ipv4_address: The IPv4 address of this A record.
19+
:type ipv4_address: str
20+
"""
21+
22+
_attribute_map = {
23+
'ipv4_address': {'key': 'ipv4Address', 'type': 'str'},
24+
}
25+
26+
def __init__(self, *, ipv4_address: str=None, **kwargs) -> None:
27+
super(ARecord, self).__init__(**kwargs)
28+
self.ipv4_address = ipv4_address
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
12+
from .resource import Resource
13+
14+
15+
class AzureEntityResource(Resource):
16+
"""The resource model definition for a Azure Resource Manager resource with an
17+
etag.
18+
19+
Variables are only populated by the server, and will be ignored when
20+
sending a request.
21+
22+
:ivar id: Fully qualified resource Id for the resource. Ex -
23+
/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}
24+
:vartype id: str
25+
:ivar name: The name of the resource
26+
:vartype name: str
27+
:ivar type: The type of the resource. Ex-
28+
Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts.
29+
:vartype type: str
30+
:ivar etag: Resource Etag.
31+
:vartype etag: str
32+
"""
33+
34+
_validation = {
35+
'id': {'readonly': True},
36+
'name': {'readonly': True},
37+
'type': {'readonly': True},
38+
'etag': {'readonly': True},
39+
}
40+
41+
_attribute_map = {
42+
'id': {'key': 'id', 'type': 'str'},
43+
'name': {'key': 'name', 'type': 'str'},
44+
'type': {'key': 'type', 'type': 'str'},
45+
'etag': {'key': 'etag', 'type': 'str'},
46+
}
47+
48+
def __init__(self, **kwargs):
49+
super(AzureEntityResource, self).__init__(**kwargs)
50+
self.etag = None

0 commit comments

Comments
 (0)