azure_mgmt_dns 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +7 -0
  2. data/.rspec +3 -0
  3. data/LICENSE.txt +21 -0
  4. data/Rakefile +5 -0
  5. data/azure_mgmt_dns.gemspec +34 -0
  6. data/lib/azure_mgmt_dns.rb +5 -0
  7. data/lib/generated/azure_mgmt_dns/dns_management_client.rb +72 -0
  8. data/lib/generated/azure_mgmt_dns/models/aaaa_record.rb +45 -0
  9. data/lib/generated/azure_mgmt_dns/models/arecord.rb +45 -0
  10. data/lib/generated/azure_mgmt_dns/models/cname_record.rb +45 -0
  11. data/lib/generated/azure_mgmt_dns/models/htp_status_code.rb +61 -0
  12. data/lib/generated/azure_mgmt_dns/models/mx_record.rb +55 -0
  13. data/lib/generated/azure_mgmt_dns/models/ns_record.rb +45 -0
  14. data/lib/generated/azure_mgmt_dns/models/operation_status.rb +17 -0
  15. data/lib/generated/azure_mgmt_dns/models/ptr_record.rb +45 -0
  16. data/lib/generated/azure_mgmt_dns/models/record_set.rb +258 -0
  17. data/lib/generated/azure_mgmt_dns/models/record_set_list_result.rb +94 -0
  18. data/lib/generated/azure_mgmt_dns/models/record_set_update_parameters.rb +46 -0
  19. data/lib/generated/azure_mgmt_dns/models/record_type.rb +23 -0
  20. data/lib/generated/azure_mgmt_dns/models/soa_record.rb +105 -0
  21. data/lib/generated/azure_mgmt_dns/models/srv_record.rb +75 -0
  22. data/lib/generated/azure_mgmt_dns/models/txt_record.rb +51 -0
  23. data/lib/generated/azure_mgmt_dns/models/zone.rb +132 -0
  24. data/lib/generated/azure_mgmt_dns/models/zone_delete_result.rb +92 -0
  25. data/lib/generated/azure_mgmt_dns/models/zone_list_result.rb +94 -0
  26. data/lib/generated/azure_mgmt_dns/module_definition.rb +8 -0
  27. data/lib/generated/azure_mgmt_dns/record_sets.rb +989 -0
  28. data/lib/generated/azure_mgmt_dns/version.rb +8 -0
  29. data/lib/generated/azure_mgmt_dns/zones.rb +827 -0
  30. data/lib/generated/azure_mgmt_dns.rb +47 -0
  31. metadata +142 -0
@@ -0,0 +1,132 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Dns
7
+ module Models
8
+ #
9
+ # Describes a DNS zone.
10
+ #
11
+ class Zone < MsRestAzure::Resource
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the ETag of the zone that is being
16
+ # updated, as received from a Get operation.
17
+ attr_accessor :etag
18
+
19
+ # @return [Integer] Gets or sets the maximum number of record sets that
20
+ # can be created in this zone.
21
+ attr_accessor :max_number_of_record_sets
22
+
23
+ # @return [Integer] Gets or sets the current number of record sets in
24
+ # this zone.
25
+ attr_accessor :number_of_record_sets
26
+
27
+ # @return [Array<String>] Gets the name servers populated for this zone.
28
+ # This is a read-only property and any attempt to set this value will
29
+ # be ignored.
30
+ attr_accessor :name_servers
31
+
32
+
33
+ #
34
+ # Mapper for Zone class as Ruby Hash.
35
+ # This will be used for serialization/deserialization.
36
+ #
37
+ def self.mapper()
38
+ {
39
+ required: false,
40
+ serialized_name: 'Zone',
41
+ type: {
42
+ name: 'Composite',
43
+ class_name: 'Zone',
44
+ model_properties: {
45
+ id: {
46
+ required: false,
47
+ read_only: true,
48
+ serialized_name: 'id',
49
+ type: {
50
+ name: 'String'
51
+ }
52
+ },
53
+ name: {
54
+ required: false,
55
+ read_only: true,
56
+ serialized_name: 'name',
57
+ type: {
58
+ name: 'String'
59
+ }
60
+ },
61
+ type: {
62
+ required: false,
63
+ read_only: true,
64
+ serialized_name: 'type',
65
+ type: {
66
+ name: 'String'
67
+ }
68
+ },
69
+ location: {
70
+ required: true,
71
+ serialized_name: 'location',
72
+ type: {
73
+ name: 'String'
74
+ }
75
+ },
76
+ tags: {
77
+ required: false,
78
+ serialized_name: 'tags',
79
+ type: {
80
+ name: 'Dictionary',
81
+ value: {
82
+ required: false,
83
+ serialized_name: 'StringElementType',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ }
88
+ }
89
+ },
90
+ etag: {
91
+ required: false,
92
+ serialized_name: 'etag',
93
+ type: {
94
+ name: 'String'
95
+ }
96
+ },
97
+ max_number_of_record_sets: {
98
+ required: false,
99
+ serialized_name: 'properties.maxNumberOfRecordSets',
100
+ type: {
101
+ name: 'Number'
102
+ }
103
+ },
104
+ number_of_record_sets: {
105
+ required: false,
106
+ serialized_name: 'properties.numberOfRecordSets',
107
+ type: {
108
+ name: 'Number'
109
+ }
110
+ },
111
+ name_servers: {
112
+ required: false,
113
+ read_only: true,
114
+ serialized_name: 'properties.nameServers',
115
+ type: {
116
+ name: 'Sequence',
117
+ element: {
118
+ required: false,
119
+ serialized_name: 'StringElementType',
120
+ type: {
121
+ name: 'String'
122
+ }
123
+ }
124
+ }
125
+ }
126
+ }
127
+ }
128
+ }
129
+ end
130
+ end
131
+ end
132
+ end
@@ -0,0 +1,92 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Dns
7
+ module Models
8
+ #
9
+ # The response to a Zone Delete operation.
10
+ #
11
+ class ZoneDeleteResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Users can perform a Get on Azure-AsyncOperation to
16
+ # get the status of their delete Zone operations
17
+ attr_accessor :azure_async_operation
18
+
19
+ # @return [OperationStatus] Possible values include: 'InProgress',
20
+ # 'Succeeded', 'Failed'
21
+ attr_accessor :status
22
+
23
+ # @return [HtpStatusCode] Possible values include: 'Continue',
24
+ # 'SwitchingProtocols', 'OK', 'Created', 'Accepted',
25
+ # 'NonAuthoritativeInformation', 'NoContent', 'ResetContent',
26
+ # 'PartialContent', 'MultipleChoices', 'Ambiguous', 'MovedPermanently',
27
+ # 'Moved', 'Found', 'Redirect', 'SeeOther', 'RedirectMethod',
28
+ # 'NotModified', 'UseProxy', 'Unused', 'TemporaryRedirect',
29
+ # 'RedirectKeepVerb', 'BadRequest', 'Unauthorized', 'PaymentRequired',
30
+ # 'Forbidden', 'NotFound', 'MethodNotAllowed', 'NotAcceptable',
31
+ # 'ProxyAuthenticationRequired', 'RequestTimeout', 'Conflict', 'Gone',
32
+ # 'LengthRequired', 'PreconditionFailed', 'RequestEntityTooLarge',
33
+ # 'RequestUriTooLong', 'UnsupportedMediaType',
34
+ # 'RequestedRangeNotSatisfiable', 'ExpectationFailed',
35
+ # 'UpgradeRequired', 'InternalServerError', 'NotImplemented',
36
+ # 'BadGateway', 'ServiceUnavailable', 'GatewayTimeout',
37
+ # 'HttpVersionNotSupported'
38
+ attr_accessor :status_code
39
+
40
+ # @return [String]
41
+ attr_accessor :request_id
42
+
43
+
44
+ #
45
+ # Mapper for ZoneDeleteResult class as Ruby Hash.
46
+ # This will be used for serialization/deserialization.
47
+ #
48
+ def self.mapper()
49
+ {
50
+ required: false,
51
+ serialized_name: 'ZoneDeleteResult',
52
+ type: {
53
+ name: 'Composite',
54
+ class_name: 'ZoneDeleteResult',
55
+ model_properties: {
56
+ azure_async_operation: {
57
+ required: false,
58
+ serialized_name: 'azureAsyncOperation',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ },
63
+ status: {
64
+ required: false,
65
+ serialized_name: 'status',
66
+ type: {
67
+ name: 'Enum',
68
+ module: 'OperationStatus'
69
+ }
70
+ },
71
+ status_code: {
72
+ required: false,
73
+ serialized_name: 'statusCode',
74
+ type: {
75
+ name: 'Enum',
76
+ module: 'HtpStatusCode'
77
+ }
78
+ },
79
+ request_id: {
80
+ required: false,
81
+ serialized_name: 'requestId',
82
+ type: {
83
+ name: 'String'
84
+ }
85
+ }
86
+ }
87
+ }
88
+ }
89
+ end
90
+ end
91
+ end
92
+ end
@@ -0,0 +1,94 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::Dns
7
+ module Models
8
+ #
9
+ # The response to a Zone List or ListAll operation.
10
+ #
11
+ class ZoneListResult
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Array<Zone>] Gets or sets information about the zones in the
16
+ # response.
17
+ attr_accessor :value
18
+
19
+ # @return [String] Gets or sets the continuation token for the next page.
20
+ attr_accessor :next_link
21
+
22
+ # return [Proc] with next page method call.
23
+ attr_accessor :next_method
24
+
25
+ #
26
+ # Gets the rest of the items for the request, enabling auto-pagination.
27
+ #
28
+ # @return [Array<Zone>] operation results.
29
+ #
30
+ def get_all_items
31
+ items = @value
32
+ page = self
33
+ while page.next_link != nil do
34
+ page = page.get_next_page
35
+ items.concat(page.value)
36
+ end
37
+ items
38
+ end
39
+
40
+ #
41
+ # Gets the next page of results.
42
+ #
43
+ # @return [ZoneListResult] with next page content.
44
+ #
45
+ def get_next_page
46
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
47
+ unless response.nil?
48
+ @next_link = response.body.next_link
49
+ @value = response.body.value
50
+ self
51
+ end
52
+ end
53
+
54
+ #
55
+ # Mapper for ZoneListResult class as Ruby Hash.
56
+ # This will be used for serialization/deserialization.
57
+ #
58
+ def self.mapper()
59
+ {
60
+ required: false,
61
+ serialized_name: 'ZoneListResult',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'ZoneListResult',
65
+ model_properties: {
66
+ value: {
67
+ required: false,
68
+ serialized_name: 'value',
69
+ type: {
70
+ name: 'Sequence',
71
+ element: {
72
+ required: false,
73
+ serialized_name: 'ZoneElementType',
74
+ type: {
75
+ name: 'Composite',
76
+ class_name: 'Zone'
77
+ }
78
+ }
79
+ }
80
+ },
81
+ next_link: {
82
+ required: false,
83
+ serialized_name: 'nextLink',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ }
88
+ }
89
+ }
90
+ }
91
+ end
92
+ end
93
+ end
94
+ end
@@ -0,0 +1,8 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 0.17.0.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure end
7
+ module Azure::ARM end
8
+ module Azure::ARM::Dns end