azure_mgmt_dns 0.16.0 → 0.16.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2016-04-01/generated/azure_mgmt_dns/dns_management_client.rb +1 -1
  3. data/lib/2017-09-01/generated/azure_mgmt_dns/dns_management_client.rb +1 -1
  4. data/lib/2017-10-01/generated/azure_mgmt_dns.rb +47 -0
  5. data/lib/2017-10-01/generated/azure_mgmt_dns/dns_management_client.rb +135 -0
  6. data/lib/2017-10-01/generated/azure_mgmt_dns/models/aaaa_record.rb +46 -0
  7. data/lib/2017-10-01/generated/azure_mgmt_dns/models/arecord.rb +46 -0
  8. data/lib/2017-10-01/generated/azure_mgmt_dns/models/caa_record.rb +69 -0
  9. data/lib/2017-10-01/generated/azure_mgmt_dns/models/cname_record.rb +46 -0
  10. data/lib/2017-10-01/generated/azure_mgmt_dns/models/mx_record.rb +57 -0
  11. data/lib/2017-10-01/generated/azure_mgmt_dns/models/ns_record.rb +46 -0
  12. data/lib/2017-10-01/generated/azure_mgmt_dns/models/ptr_record.rb +46 -0
  13. data/lib/2017-10-01/generated/azure_mgmt_dns/models/record_set.rb +311 -0
  14. data/lib/2017-10-01/generated/azure_mgmt_dns/models/record_set_list_result.rb +100 -0
  15. data/lib/2017-10-01/generated/azure_mgmt_dns/models/record_set_update_parameters.rb +48 -0
  16. data/lib/2017-10-01/generated/azure_mgmt_dns/models/record_type.rb +24 -0
  17. data/lib/2017-10-01/generated/azure_mgmt_dns/models/resource.rb +101 -0
  18. data/lib/2017-10-01/generated/azure_mgmt_dns/models/soa_record.rb +114 -0
  19. data/lib/2017-10-01/generated/azure_mgmt_dns/models/srv_record.rb +79 -0
  20. data/lib/2017-10-01/generated/azure_mgmt_dns/models/txt_record.rb +54 -0
  21. data/lib/2017-10-01/generated/azure_mgmt_dns/models/zone.rb +146 -0
  22. data/lib/2017-10-01/generated/azure_mgmt_dns/models/zone_list_result.rb +99 -0
  23. data/lib/2017-10-01/generated/azure_mgmt_dns/models/zone_update.rb +54 -0
  24. data/lib/2017-10-01/generated/azure_mgmt_dns/module_definition.rb +9 -0
  25. data/lib/2017-10-01/generated/azure_mgmt_dns/record_sets.rb +1250 -0
  26. data/lib/2017-10-01/generated/azure_mgmt_dns/zones.rb +922 -0
  27. data/lib/2018-03-01-preview/generated/azure_mgmt_dns.rb +49 -0
  28. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/dns_management_client.rb +135 -0
  29. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/aaaa_record.rb +46 -0
  30. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/arecord.rb +46 -0
  31. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/caa_record.rb +69 -0
  32. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/cname_record.rb +46 -0
  33. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/mx_record.rb +57 -0
  34. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/ns_record.rb +46 -0
  35. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/ptr_record.rb +46 -0
  36. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/record_set.rb +311 -0
  37. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/record_set_list_result.rb +100 -0
  38. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/record_set_update_parameters.rb +48 -0
  39. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/record_type.rb +24 -0
  40. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/resource.rb +101 -0
  41. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/soa_record.rb +114 -0
  42. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/srv_record.rb +79 -0
  43. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/sub_resource.rb +46 -0
  44. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/txt_record.rb +54 -0
  45. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/zone.rb +204 -0
  46. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/zone_list_result.rb +99 -0
  47. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/zone_type.rb +16 -0
  48. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/models/zone_update.rb +54 -0
  49. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/module_definition.rb +9 -0
  50. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/record_sets.rb +1250 -0
  51. data/lib/2018-03-01-preview/generated/azure_mgmt_dns/zones.rb +922 -0
  52. data/lib/azure_mgmt_dns.rb +2 -0
  53. data/lib/profiles/latest/modules/dns_profile_module.rb +59 -47
  54. data/lib/version.rb +1 -1
  55. metadata +50 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 291c4ff3032ac39d863edf6cb15e4dc29d5c6e1c
4
- data.tar.gz: 05fa51bf3b981520cab18a7c48f8a39079b2f3b1
3
+ metadata.gz: 8137b9c9fd272049a06f0a0a08112486c1e0802a
4
+ data.tar.gz: a5033767009c172ef97ded4c8d13e04739d42371
5
5
  SHA512:
6
- metadata.gz: 99f2040b66604df545a059d826a79832a5289cf65bdc02d2b116acc4d9d51d3b83503a93fa91c5aca181fc4abaaaf46c955bbb7c109ddc9ffde15bdcc6bff9b5
7
- data.tar.gz: 1cb5deba6c739da29f4f34011f605df63d88abe879269aa5d977aec6ce6cae61f8356a496f7ece3002bc04914470b3f22f9da8f1cba4769fa52fd9f1a88403bd
6
+ metadata.gz: 32095dfaba008b2b6643243f773c29a332cb907503f9369a37769d3629932eba417b93dbc08d5bf85c14f8441a67cac4ff525b074520b8cbdb25c7d495313f2f
7
+ data.tar.gz: 3aa5e3dfdd05048dbffd10473749dd0ea04211f1566e22b96e2bf0e01d949467618c59acca59e0281da702954ac7fce9534e9ba127140d45c384f51651dbe8b4
@@ -128,7 +128,7 @@ module Azure::Dns::Mgmt::V2016_04_01
128
128
  #
129
129
  def add_telemetry
130
130
  sdk_information = 'azure_mgmt_dns'
131
- sdk_information = "#{sdk_information}/0.16.0"
131
+ sdk_information = "#{sdk_information}/0.16.1"
132
132
  add_user_agent_information(sdk_information)
133
133
  end
134
134
  end
@@ -128,7 +128,7 @@ module Azure::Dns::Mgmt::V2017_09_01
128
128
  #
129
129
  def add_telemetry
130
130
  sdk_information = 'azure_mgmt_dns'
131
- sdk_information = "#{sdk_information}/0.16.0"
131
+ sdk_information = "#{sdk_information}/0.16.1"
132
132
  add_user_agent_information(sdk_information)
133
133
  end
134
134
  end
@@ -0,0 +1,47 @@
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
+ require 'uri'
7
+ require 'cgi'
8
+ require 'date'
9
+ require 'json'
10
+ require 'base64'
11
+ require 'erb'
12
+ require 'securerandom'
13
+ require 'time'
14
+ require 'timeliness'
15
+ require 'faraday'
16
+ require 'faraday-cookie_jar'
17
+ require 'concurrent'
18
+ require 'ms_rest'
19
+ require '2017-10-01/generated/azure_mgmt_dns/module_definition'
20
+ require 'ms_rest_azure'
21
+
22
+ module Azure::Dns::Mgmt::V2017_10_01
23
+ autoload :RecordSets, '2017-10-01/generated/azure_mgmt_dns/record_sets.rb'
24
+ autoload :Zones, '2017-10-01/generated/azure_mgmt_dns/zones.rb'
25
+ autoload :DnsManagementClient, '2017-10-01/generated/azure_mgmt_dns/dns_management_client.rb'
26
+
27
+ module Models
28
+ autoload :CaaRecord, '2017-10-01/generated/azure_mgmt_dns/models/caa_record.rb'
29
+ autoload :RecordSet, '2017-10-01/generated/azure_mgmt_dns/models/record_set.rb'
30
+ autoload :AaaaRecord, '2017-10-01/generated/azure_mgmt_dns/models/aaaa_record.rb'
31
+ autoload :RecordSetUpdateParameters, '2017-10-01/generated/azure_mgmt_dns/models/record_set_update_parameters.rb'
32
+ autoload :NsRecord, '2017-10-01/generated/azure_mgmt_dns/models/ns_record.rb'
33
+ autoload :RecordSetListResult, '2017-10-01/generated/azure_mgmt_dns/models/record_set_list_result.rb'
34
+ autoload :SrvRecord, '2017-10-01/generated/azure_mgmt_dns/models/srv_record.rb'
35
+ autoload :TxtRecord, '2017-10-01/generated/azure_mgmt_dns/models/txt_record.rb'
36
+ autoload :SoaRecord, '2017-10-01/generated/azure_mgmt_dns/models/soa_record.rb'
37
+ autoload :ZoneUpdate, '2017-10-01/generated/azure_mgmt_dns/models/zone_update.rb'
38
+ autoload :MxRecord, '2017-10-01/generated/azure_mgmt_dns/models/mx_record.rb'
39
+ autoload :ZoneListResult, '2017-10-01/generated/azure_mgmt_dns/models/zone_list_result.rb'
40
+ autoload :CnameRecord, '2017-10-01/generated/azure_mgmt_dns/models/cname_record.rb'
41
+ autoload :Resource, '2017-10-01/generated/azure_mgmt_dns/models/resource.rb'
42
+ autoload :PtrRecord, '2017-10-01/generated/azure_mgmt_dns/models/ptr_record.rb'
43
+ autoload :ARecord, '2017-10-01/generated/azure_mgmt_dns/models/arecord.rb'
44
+ autoload :Zone, '2017-10-01/generated/azure_mgmt_dns/models/zone.rb'
45
+ autoload :RecordType, '2017-10-01/generated/azure_mgmt_dns/models/record_type.rb'
46
+ end
47
+ end
@@ -0,0 +1,135 @@
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::Dns::Mgmt::V2017_10_01
7
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class DnsManagementClient < MsRestAzure::AzureServiceClient
11
+ include MsRestAzure
12
+ include MsRestAzure::Serialization
13
+
14
+ # @return [String] the base URI of the service.
15
+ attr_accessor :base_url
16
+
17
+ # @return Credentials needed for the client to connect to Azure.
18
+ attr_reader :credentials
19
+
20
+ # @return [String] Specifies the Azure subscription ID, which uniquely
21
+ # identifies the Microsoft Azure subscription.
22
+ attr_accessor :subscription_id
23
+
24
+ # @return [String] Specifies the API version.
25
+ attr_reader :api_version
26
+
27
+ # @return [String] Gets or sets the preferred language for the response.
28
+ attr_accessor :accept_language
29
+
30
+ # @return [Integer] Gets or sets the retry timeout in seconds for Long
31
+ # Running Operations. Default value is 30.
32
+ attr_accessor :long_running_operation_retry_timeout
33
+
34
+ # @return [Boolean] When set to true a unique x-ms-client-request-id value
35
+ # is generated and included in each request. Default is true.
36
+ attr_accessor :generate_client_request_id
37
+
38
+ # @return [RecordSets] record_sets
39
+ attr_reader :record_sets
40
+
41
+ # @return [Zones] zones
42
+ attr_reader :zones
43
+
44
+ #
45
+ # Creates initializes a new instance of the DnsManagementClient class.
46
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
47
+ # @param base_url [String] the base URI of the service.
48
+ # @param options [Array] filters to be applied to the HTTP requests.
49
+ #
50
+ def initialize(credentials = nil, base_url = nil, options = nil)
51
+ super(credentials, options)
52
+ @base_url = base_url || 'https://management.azure.com'
53
+
54
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials) unless credentials.nil?
55
+ @credentials = credentials
56
+
57
+ @record_sets = RecordSets.new(self)
58
+ @zones = Zones.new(self)
59
+ @api_version = '2017-10-01'
60
+ @accept_language = 'en-US'
61
+ @long_running_operation_retry_timeout = 30
62
+ @generate_client_request_id = true
63
+ add_telemetry
64
+ end
65
+
66
+ #
67
+ # Makes a request and returns the body of the response.
68
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
69
+ # @param path [String] the path, relative to {base_url}.
70
+ # @param options [Hash{String=>String}] specifying any request options like :body.
71
+ # @return [Hash{String=>String}] containing the body of the response.
72
+ # Example:
73
+ #
74
+ # request_content = "{'location':'westus','tags':{'tag1':'val1','tag2':'val2'}}"
75
+ # path = "/path"
76
+ # options = {
77
+ # body: request_content,
78
+ # query_params: {'api-version' => '2016-02-01'}
79
+ # }
80
+ # result = @client.make_request(:put, path, options)
81
+ #
82
+ def make_request(method, path, options = {})
83
+ result = make_request_with_http_info(method, path, options)
84
+ result.body unless result.nil?
85
+ end
86
+
87
+ #
88
+ # Makes a request and returns the operation response.
89
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
90
+ # @param path [String] the path, relative to {base_url}.
91
+ # @param options [Hash{String=>String}] specifying any request options like :body.
92
+ # @return [MsRestAzure::AzureOperationResponse] Operation response containing the request, response and status.
93
+ #
94
+ def make_request_with_http_info(method, path, options = {})
95
+ result = make_request_async(method, path, options).value!
96
+ result.body = result.response.body.to_s.empty? ? nil : JSON.load(result.response.body)
97
+ result
98
+ end
99
+
100
+ #
101
+ # Makes a request asynchronously.
102
+ # @param method [Symbol] with any of the following values :get, :put, :post, :patch, :delete.
103
+ # @param path [String] the path, relative to {base_url}.
104
+ # @param options [Hash{String=>String}] specifying any request options like :body.
105
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
106
+ #
107
+ def make_request_async(method, path, options = {})
108
+ fail ArgumentError, 'method is nil' if method.nil?
109
+ fail ArgumentError, 'path is nil' if path.nil?
110
+
111
+ request_url = options[:base_url] || @base_url
112
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
113
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
114
+ end
115
+
116
+ request_headers = @request_headers
117
+ request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
118
+ options.merge!({headers: request_headers.merge(options[:headers] || {})})
119
+ options.merge!({credentials: @credentials}) unless @credentials.nil?
120
+
121
+ super(request_url, method, path, options)
122
+ end
123
+
124
+
125
+ private
126
+ #
127
+ # Adds telemetry information.
128
+ #
129
+ def add_telemetry
130
+ sdk_information = 'azure_mgmt_dns'
131
+ sdk_information = "#{sdk_information}/0.16.1"
132
+ add_user_agent_information(sdk_information)
133
+ end
134
+ end
135
+ 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::Dns::Mgmt::V2017_10_01
7
+ module Models
8
+ #
9
+ # An AAAA record.
10
+ #
11
+ class AaaaRecord
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The IPv6 address of this AAAA record.
16
+ attr_accessor :ipv6address
17
+
18
+
19
+ #
20
+ # Mapper for AaaaRecord 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: 'AaaaRecord',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'AaaaRecord',
31
+ model_properties: {
32
+ ipv6address: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'ipv6Address',
36
+ type: {
37
+ name: 'String'
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ 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::Dns::Mgmt::V2017_10_01
7
+ module Models
8
+ #
9
+ # An A record.
10
+ #
11
+ class ARecord
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The IPv4 address of this A record.
16
+ attr_accessor :ipv4address
17
+
18
+
19
+ #
20
+ # Mapper for ARecord 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: 'ARecord',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'ARecord',
31
+ model_properties: {
32
+ ipv4address: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'ipv4Address',
36
+ type: {
37
+ name: 'String'
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,69 @@
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::Dns::Mgmt::V2017_10_01
7
+ module Models
8
+ #
9
+ # A CAA record.
10
+ #
11
+ class CaaRecord
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] The flags for this CAA record as an integer between 0
16
+ # and 255.
17
+ attr_accessor :flags
18
+
19
+ # @return [String] The tag for this CAA record.
20
+ attr_accessor :tag
21
+
22
+ # @return [String] The value for this CAA record.
23
+ attr_accessor :value
24
+
25
+
26
+ #
27
+ # Mapper for CaaRecord class as Ruby Hash.
28
+ # This will be used for serialization/deserialization.
29
+ #
30
+ def self.mapper()
31
+ {
32
+ client_side_validation: true,
33
+ required: false,
34
+ serialized_name: 'CaaRecord',
35
+ type: {
36
+ name: 'Composite',
37
+ class_name: 'CaaRecord',
38
+ model_properties: {
39
+ flags: {
40
+ client_side_validation: true,
41
+ required: false,
42
+ serialized_name: 'flags',
43
+ type: {
44
+ name: 'Number'
45
+ }
46
+ },
47
+ tag: {
48
+ client_side_validation: true,
49
+ required: false,
50
+ serialized_name: 'tag',
51
+ type: {
52
+ name: 'String'
53
+ }
54
+ },
55
+ value: {
56
+ client_side_validation: true,
57
+ required: false,
58
+ serialized_name: 'value',
59
+ type: {
60
+ name: 'String'
61
+ }
62
+ }
63
+ }
64
+ }
65
+ }
66
+ end
67
+ end
68
+ end
69
+ 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::Dns::Mgmt::V2017_10_01
7
+ module Models
8
+ #
9
+ # A CNAME record.
10
+ #
11
+ class CnameRecord
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The canonical name for this CNAME record.
16
+ attr_accessor :cname
17
+
18
+
19
+ #
20
+ # Mapper for CnameRecord 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: 'CnameRecord',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'CnameRecord',
31
+ model_properties: {
32
+ cname: {
33
+ client_side_validation: true,
34
+ required: false,
35
+ serialized_name: 'cname',
36
+ type: {
37
+ name: 'String'
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,57 @@
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::Dns::Mgmt::V2017_10_01
7
+ module Models
8
+ #
9
+ # An MX record.
10
+ #
11
+ class MxRecord
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] The preference value for this MX record.
16
+ attr_accessor :preference
17
+
18
+ # @return [String] The domain name of the mail host for this MX record.
19
+ attr_accessor :exchange
20
+
21
+
22
+ #
23
+ # Mapper for MxRecord class as Ruby Hash.
24
+ # This will be used for serialization/deserialization.
25
+ #
26
+ def self.mapper()
27
+ {
28
+ client_side_validation: true,
29
+ required: false,
30
+ serialized_name: 'MxRecord',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'MxRecord',
34
+ model_properties: {
35
+ preference: {
36
+ client_side_validation: true,
37
+ required: false,
38
+ serialized_name: 'preference',
39
+ type: {
40
+ name: 'Number'
41
+ }
42
+ },
43
+ exchange: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'exchange',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end