azure_mgmt_privatedns 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns.rb +51 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/aaaa_record.rb +46 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/arecord.rb +46 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/cname_record.rb +46 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/mx_record.rb +57 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/private_zone.rb +196 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/private_zone_list_result.rb +99 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/provisioning_state.rb +20 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/proxy_resource.rb +62 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/ptr_record.rb +46 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/record_set.rb +275 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/record_set_list_result.rb +100 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/record_type.rb +22 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/resource.rb +83 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/soa_record.rb +114 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/srv_record.rb +79 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/sub_resource.rb +46 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/tracked_resource.rb +92 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/txt_record.rb +54 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/virtual_network_link.rb +151 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/virtual_network_link_list_result.rb +101 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/models/virtual_network_link_state.rb +16 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/module_definition.rb +9 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/private_dns_management_client.rb +141 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/private_zones.rb +1051 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/record_sets.rb +1023 -0
- data/lib/2018-09-01/generated/azure_mgmt_privatedns/virtual_network_links.rb +908 -0
- data/lib/azure_mgmt_privatedns.rb +6 -0
- data/lib/module_definition.rb +8 -0
- data/lib/profiles/latest/modules/privatedns_profile_module.rb +149 -0
- data/lib/profiles/latest/privatedns_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/privatedns_module_definition.rb +8 -0
- data/lib/version.rb +7 -0
- metadata +153 -0
@@ -0,0 +1,100 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::PrivateDns::Mgmt::V2018_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The response to a record set list operation.
|
10
|
+
#
|
11
|
+
class RecordSetListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<RecordSet>] Information about the record sets in the
|
17
|
+
# response.
|
18
|
+
attr_accessor :value
|
19
|
+
|
20
|
+
# @return [String] The continuation token for the next page of results.
|
21
|
+
attr_accessor :next_link
|
22
|
+
|
23
|
+
# return [Proc] with next page method call.
|
24
|
+
attr_accessor :next_method
|
25
|
+
|
26
|
+
#
|
27
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
28
|
+
#
|
29
|
+
# @return [Array<RecordSet>] operation results.
|
30
|
+
#
|
31
|
+
def get_all_items
|
32
|
+
items = @value
|
33
|
+
page = self
|
34
|
+
while page.next_link != nil do
|
35
|
+
page = page.get_next_page
|
36
|
+
items.concat(page.value)
|
37
|
+
end
|
38
|
+
items
|
39
|
+
end
|
40
|
+
|
41
|
+
#
|
42
|
+
# Gets the next page of results.
|
43
|
+
#
|
44
|
+
# @return [RecordSetListResult] with next page content.
|
45
|
+
#
|
46
|
+
def get_next_page
|
47
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
48
|
+
unless response.nil?
|
49
|
+
@next_link = response.body.next_link
|
50
|
+
@value = response.body.value
|
51
|
+
self
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
#
|
56
|
+
# Mapper for RecordSetListResult class as Ruby Hash.
|
57
|
+
# This will be used for serialization/deserialization.
|
58
|
+
#
|
59
|
+
def self.mapper()
|
60
|
+
{
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'RecordSetListResult',
|
64
|
+
type: {
|
65
|
+
name: 'Composite',
|
66
|
+
class_name: 'RecordSetListResult',
|
67
|
+
model_properties: {
|
68
|
+
value: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'value',
|
72
|
+
type: {
|
73
|
+
name: 'Sequence',
|
74
|
+
element: {
|
75
|
+
client_side_validation: true,
|
76
|
+
required: false,
|
77
|
+
serialized_name: 'RecordSetElementType',
|
78
|
+
type: {
|
79
|
+
name: 'Composite',
|
80
|
+
class_name: 'RecordSet'
|
81
|
+
}
|
82
|
+
}
|
83
|
+
}
|
84
|
+
},
|
85
|
+
next_link: {
|
86
|
+
client_side_validation: true,
|
87
|
+
required: false,
|
88
|
+
read_only: true,
|
89
|
+
serialized_name: 'nextLink',
|
90
|
+
type: {
|
91
|
+
name: 'String'
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::PrivateDns::Mgmt::V2018_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for RecordType
|
10
|
+
#
|
11
|
+
module RecordType
|
12
|
+
A = "A"
|
13
|
+
AAAA = "AAAA"
|
14
|
+
CNAME = "CNAME"
|
15
|
+
MX = "MX"
|
16
|
+
PTR = "PTR"
|
17
|
+
SOA = "SOA"
|
18
|
+
SRV = "SRV"
|
19
|
+
TXT = "TXT"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,83 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::PrivateDns::Mgmt::V2018_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The core properties of ARM resources
|
10
|
+
#
|
11
|
+
class Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Fully qualified resource Id for the resource. Example
|
16
|
+
# -
|
17
|
+
# '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/privateDnsZones/{privateDnsZoneName}'.
|
18
|
+
attr_accessor :id
|
19
|
+
|
20
|
+
# @return [String] The name of the resource
|
21
|
+
attr_accessor :name
|
22
|
+
|
23
|
+
# @return [String] The type of the resource. Example -
|
24
|
+
# 'Microsoft.Network/privateDnsZones'.
|
25
|
+
attr_accessor :type
|
26
|
+
|
27
|
+
|
28
|
+
# @return [String] the name of the resource group of the resource.
|
29
|
+
def resource_group
|
30
|
+
unless self.id.nil?
|
31
|
+
groups = self.id.match(/.+\/resourceGroups\/([^\/]+)\/.+/)
|
32
|
+
groups.captures[0].strip if groups
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
|
37
|
+
#
|
38
|
+
# Mapper for Resource class as Ruby Hash.
|
39
|
+
# This will be used for serialization/deserialization.
|
40
|
+
#
|
41
|
+
def self.mapper()
|
42
|
+
{
|
43
|
+
client_side_validation: true,
|
44
|
+
required: false,
|
45
|
+
serialized_name: 'Resource',
|
46
|
+
type: {
|
47
|
+
name: 'Composite',
|
48
|
+
class_name: 'Resource',
|
49
|
+
model_properties: {
|
50
|
+
id: {
|
51
|
+
client_side_validation: true,
|
52
|
+
required: false,
|
53
|
+
read_only: true,
|
54
|
+
serialized_name: 'id',
|
55
|
+
type: {
|
56
|
+
name: 'String'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
name: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
read_only: true,
|
63
|
+
serialized_name: 'name',
|
64
|
+
type: {
|
65
|
+
name: 'String'
|
66
|
+
}
|
67
|
+
},
|
68
|
+
type: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
read_only: true,
|
72
|
+
serialized_name: 'type',
|
73
|
+
type: {
|
74
|
+
name: 'String'
|
75
|
+
}
|
76
|
+
}
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
end
|
81
|
+
end
|
82
|
+
end
|
83
|
+
end
|
@@ -0,0 +1,114 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::PrivateDns::Mgmt::V2018_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# An SOA record.
|
10
|
+
#
|
11
|
+
class SoaRecord
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] The domain name of the authoritative name server for
|
16
|
+
# this SOA record.
|
17
|
+
attr_accessor :host
|
18
|
+
|
19
|
+
# @return [String] The email contact for this SOA record.
|
20
|
+
attr_accessor :email
|
21
|
+
|
22
|
+
# @return [Integer] The serial number for this SOA record.
|
23
|
+
attr_accessor :serial_number
|
24
|
+
|
25
|
+
# @return [Integer] The refresh value for this SOA record.
|
26
|
+
attr_accessor :refresh_time
|
27
|
+
|
28
|
+
# @return [Integer] The retry time for this SOA record.
|
29
|
+
attr_accessor :retry_time
|
30
|
+
|
31
|
+
# @return [Integer] The expire time for this SOA record.
|
32
|
+
attr_accessor :expire_time
|
33
|
+
|
34
|
+
# @return [Integer] The minimum value for this SOA record. By convention
|
35
|
+
# this is used to determine the negative caching duration.
|
36
|
+
attr_accessor :minimum_ttl
|
37
|
+
|
38
|
+
|
39
|
+
#
|
40
|
+
# Mapper for SoaRecord class as Ruby Hash.
|
41
|
+
# This will be used for serialization/deserialization.
|
42
|
+
#
|
43
|
+
def self.mapper()
|
44
|
+
{
|
45
|
+
client_side_validation: true,
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'SoaRecord',
|
48
|
+
type: {
|
49
|
+
name: 'Composite',
|
50
|
+
class_name: 'SoaRecord',
|
51
|
+
model_properties: {
|
52
|
+
host: {
|
53
|
+
client_side_validation: true,
|
54
|
+
required: false,
|
55
|
+
serialized_name: 'host',
|
56
|
+
type: {
|
57
|
+
name: 'String'
|
58
|
+
}
|
59
|
+
},
|
60
|
+
email: {
|
61
|
+
client_side_validation: true,
|
62
|
+
required: false,
|
63
|
+
serialized_name: 'email',
|
64
|
+
type: {
|
65
|
+
name: 'String'
|
66
|
+
}
|
67
|
+
},
|
68
|
+
serial_number: {
|
69
|
+
client_side_validation: true,
|
70
|
+
required: false,
|
71
|
+
serialized_name: 'serialNumber',
|
72
|
+
type: {
|
73
|
+
name: 'Number'
|
74
|
+
}
|
75
|
+
},
|
76
|
+
refresh_time: {
|
77
|
+
client_side_validation: true,
|
78
|
+
required: false,
|
79
|
+
serialized_name: 'refreshTime',
|
80
|
+
type: {
|
81
|
+
name: 'Number'
|
82
|
+
}
|
83
|
+
},
|
84
|
+
retry_time: {
|
85
|
+
client_side_validation: true,
|
86
|
+
required: false,
|
87
|
+
serialized_name: 'retryTime',
|
88
|
+
type: {
|
89
|
+
name: 'Number'
|
90
|
+
}
|
91
|
+
},
|
92
|
+
expire_time: {
|
93
|
+
client_side_validation: true,
|
94
|
+
required: false,
|
95
|
+
serialized_name: 'expireTime',
|
96
|
+
type: {
|
97
|
+
name: 'Number'
|
98
|
+
}
|
99
|
+
},
|
100
|
+
minimum_ttl: {
|
101
|
+
client_side_validation: true,
|
102
|
+
required: false,
|
103
|
+
serialized_name: 'minimumTtl',
|
104
|
+
type: {
|
105
|
+
name: 'Number'
|
106
|
+
}
|
107
|
+
}
|
108
|
+
}
|
109
|
+
}
|
110
|
+
}
|
111
|
+
end
|
112
|
+
end
|
113
|
+
end
|
114
|
+
end
|
@@ -0,0 +1,79 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::PrivateDns::Mgmt::V2018_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# An SRV record.
|
10
|
+
#
|
11
|
+
class SrvRecord
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [Integer] The priority value for this SRV record.
|
16
|
+
attr_accessor :priority
|
17
|
+
|
18
|
+
# @return [Integer] The weight value for this SRV record.
|
19
|
+
attr_accessor :weight
|
20
|
+
|
21
|
+
# @return [Integer] The port value for this SRV record.
|
22
|
+
attr_accessor :port
|
23
|
+
|
24
|
+
# @return [String] The target domain name for this SRV record.
|
25
|
+
attr_accessor :target
|
26
|
+
|
27
|
+
|
28
|
+
#
|
29
|
+
# Mapper for SrvRecord class as Ruby Hash.
|
30
|
+
# This will be used for serialization/deserialization.
|
31
|
+
#
|
32
|
+
def self.mapper()
|
33
|
+
{
|
34
|
+
client_side_validation: true,
|
35
|
+
required: false,
|
36
|
+
serialized_name: 'SrvRecord',
|
37
|
+
type: {
|
38
|
+
name: 'Composite',
|
39
|
+
class_name: 'SrvRecord',
|
40
|
+
model_properties: {
|
41
|
+
priority: {
|
42
|
+
client_side_validation: true,
|
43
|
+
required: false,
|
44
|
+
serialized_name: 'priority',
|
45
|
+
type: {
|
46
|
+
name: 'Number'
|
47
|
+
}
|
48
|
+
},
|
49
|
+
weight: {
|
50
|
+
client_side_validation: true,
|
51
|
+
required: false,
|
52
|
+
serialized_name: 'weight',
|
53
|
+
type: {
|
54
|
+
name: 'Number'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
port: {
|
58
|
+
client_side_validation: true,
|
59
|
+
required: false,
|
60
|
+
serialized_name: 'port',
|
61
|
+
type: {
|
62
|
+
name: 'Number'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
target: {
|
66
|
+
client_side_validation: true,
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'target',
|
69
|
+
type: {
|
70
|
+
name: 'String'
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::PrivateDns::Mgmt::V2018_09_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Reference to another subresource.
|
10
|
+
#
|
11
|
+
class SubResource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Resource ID.
|
16
|
+
attr_accessor :id
|
17
|
+
|
18
|
+
|
19
|
+
#
|
20
|
+
# Mapper for SubResource class as Ruby Hash.
|
21
|
+
# This will be used for serialization/deserialization.
|
22
|
+
#
|
23
|
+
def self.mapper()
|
24
|
+
{
|
25
|
+
client_side_validation: true,
|
26
|
+
required: false,
|
27
|
+
serialized_name: 'SubResource',
|
28
|
+
type: {
|
29
|
+
name: 'Composite',
|
30
|
+
class_name: 'SubResource',
|
31
|
+
model_properties: {
|
32
|
+
id: {
|
33
|
+
client_side_validation: true,
|
34
|
+
required: false,
|
35
|
+
serialized_name: 'id',
|
36
|
+
type: {
|
37
|
+
name: 'String'
|
38
|
+
}
|
39
|
+
}
|
40
|
+
}
|
41
|
+
}
|
42
|
+
}
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|