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
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3fabf1af7e8c07e01349bf04980b564621f51ef5
4
+ data.tar.gz: 49451d504b6c1b8787a94bd7c99210e9d21225e8
5
+ SHA512:
6
+ metadata.gz: 787bee0c71ef03330d059f9d513059402be2bbcc65388e6c8894aac6d182eb55cdf38de0c24ae6d7aae462f2d81983f4cbc64ba1ee0f113dde9a6c63f0dbbc62
7
+ data.tar.gz: 763aaffa1bc0ece6d24113d2e01acf82c33a9f0adac28ac7c844018180f30fca7b819c6b0a031b0002e12b81cf0f268acf20428c7224d22d7d95957750c8ad1a
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --require spec_helper
2
+ --color
3
+ --format documentation
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2015 Microsoft Corporation
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/Rakefile ADDED
@@ -0,0 +1,5 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require "bundler/gem_tasks"
@@ -0,0 +1,34 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ lib = File.expand_path('../lib', __FILE__)
6
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
7
+
8
+ require 'generated/azure_mgmt_dns/module_definition'
9
+ require 'generated/azure_mgmt_dns/version'
10
+
11
+ Gem::Specification.new do |spec|
12
+ spec.name = 'azure_mgmt_dns'
13
+ spec.version = Azure::ARM::Dns::VERSION
14
+ spec.authors = 'Microsoft Corporation'
15
+ spec.email = 'azrubyteam@microsoft.com'
16
+ spec.description = 'Microsoft Azure Dns Management Client Library for Ruby'
17
+ spec.summary = 'Official Ruby client library to consume Microsoft Azure Dns Management services.'
18
+ spec.homepage = 'https://aka.ms/azure-sdk-for-ruby'
19
+ spec.license = 'MIT'
20
+
21
+ spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
22
+ spec.bindir = 'bin'
23
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
24
+ spec.require_paths = ['lib']
25
+
26
+ spec.required_ruby_version = '>= 1.9.3'
27
+
28
+ spec.add_development_dependency 'bundler', '~> 1.9'
29
+ spec.add_development_dependency 'rake', '~> 10'
30
+ spec.add_development_dependency 'rspec', '~> 3'
31
+ spec.add_development_dependency 'dotenv', '~> 2'
32
+
33
+ spec.add_runtime_dependency 'ms_rest_azure', '~> 0.3.0'
34
+ end
@@ -0,0 +1,5 @@
1
+ # encoding: utf-8
2
+ # Copyright (c) Microsoft Corporation. All rights reserved.
3
+ # Licensed under the MIT License. See License.txt in the project root for license information.
4
+
5
+ require 'generated/azure_mgmt_dns'
@@ -0,0 +1,72 @@
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
+ #
8
+ # A service client - single point of access to the REST API.
9
+ #
10
+ class DnsManagementClient < MsRestAzure::AzureServiceClient
11
+ include MsRest::Serialization
12
+ include MsRestAzure
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] Gets subscription credentials which uniquely identify
21
+ # Microsoft Azure subscription. The subscription ID forms part of the URI
22
+ # for every service call.
23
+ attr_accessor :subscription_id
24
+
25
+ # @return [String] Client Api Version.
26
+ attr_reader :api_version
27
+
28
+ # @return [String] Gets or sets the preferred language for the response.
29
+ attr_accessor :accept_language
30
+
31
+ # @return [Integer] Gets or sets the retry timeout in seconds for Long
32
+ # Running Operations. Default value is 30.
33
+ attr_accessor :long_running_operation_retry_timeout
34
+
35
+ # @return [Boolean] When set to true a unique x-ms-client-request-id value
36
+ # is generated and included in each request. Default is true.
37
+ attr_accessor :generate_client_request_id
38
+
39
+ # @return Subscription credentials which uniquely identify client
40
+ # subscription.
41
+ attr_accessor :credentials
42
+
43
+ # @return [RecordSets] record_sets
44
+ attr_reader :record_sets
45
+
46
+ # @return [Zones] zones
47
+ attr_reader :zones
48
+
49
+ #
50
+ # Creates initializes a new instance of the DnsManagementClient class.
51
+ # @param credentials [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
52
+ # @param base_url [String] the base URI of the service.
53
+ # @param options [Array] filters to be applied to the HTTP requests.
54
+ #
55
+ def initialize(credentials, base_url = nil, options = nil)
56
+ super(credentials, options)
57
+ @base_url = base_url || 'https://management.azure.com'
58
+
59
+ fail ArgumentError, 'credentials is nil' if credentials.nil?
60
+ fail ArgumentError, 'invalid type of credentials input parameter' unless credentials.is_a?(MsRest::ServiceClientCredentials)
61
+ @credentials = credentials
62
+
63
+ @record_sets = RecordSets.new(self)
64
+ @zones = Zones.new(self)
65
+ @api_version = '2016-04-01'
66
+ @accept_language = 'en-US'
67
+ @long_running_operation_retry_timeout = 30
68
+ @generate_client_request_id = true
69
+ end
70
+
71
+ end
72
+ end
@@ -0,0 +1,45 @@
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
+ # An AAAA record.
10
+ #
11
+ class AaaaRecord
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the IPv6 address of this AAAA record in
16
+ # string notation.
17
+ attr_accessor :ipv6address
18
+
19
+
20
+ #
21
+ # Mapper for AaaaRecord class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'AaaaRecord',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'AaaaRecord',
31
+ model_properties: {
32
+ ipv6address: {
33
+ required: false,
34
+ serialized_name: 'ipv6Address',
35
+ type: {
36
+ name: 'String'
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,45 @@
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
+ # An A record.
10
+ #
11
+ class ARecord
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the IPv4 address of this A record in
16
+ # string notation.
17
+ attr_accessor :ipv4address
18
+
19
+
20
+ #
21
+ # Mapper for ARecord class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'ARecord',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'ARecord',
31
+ model_properties: {
32
+ ipv4address: {
33
+ required: false,
34
+ serialized_name: 'ipv4Address',
35
+ type: {
36
+ name: 'String'
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,45 @@
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
+ # A CNAME record.
10
+ #
11
+ class CnameRecord
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the canonical name for this record
16
+ # without a terminating dot.
17
+ attr_accessor :cname
18
+
19
+
20
+ #
21
+ # Mapper for CnameRecord class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'CnameRecord',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'CnameRecord',
31
+ model_properties: {
32
+ cname: {
33
+ required: false,
34
+ serialized_name: 'cname',
35
+ type: {
36
+ name: 'String'
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,61 @@
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
+ # Defines values for HtpStatusCode
10
+ #
11
+ module HtpStatusCode
12
+ Continue = "Continue"
13
+ SwitchingProtocols = "SwitchingProtocols"
14
+ OK = "OK"
15
+ Created = "Created"
16
+ Accepted = "Accepted"
17
+ NonAuthoritativeInformation = "NonAuthoritativeInformation"
18
+ NoContent = "NoContent"
19
+ ResetContent = "ResetContent"
20
+ PartialContent = "PartialContent"
21
+ MultipleChoices = "MultipleChoices"
22
+ Ambiguous = "Ambiguous"
23
+ MovedPermanently = "MovedPermanently"
24
+ Moved = "Moved"
25
+ Found = "Found"
26
+ Redirect = "Redirect"
27
+ SeeOther = "SeeOther"
28
+ RedirectMethod = "RedirectMethod"
29
+ NotModified = "NotModified"
30
+ UseProxy = "UseProxy"
31
+ Unused = "Unused"
32
+ TemporaryRedirect = "TemporaryRedirect"
33
+ RedirectKeepVerb = "RedirectKeepVerb"
34
+ BadRequest = "BadRequest"
35
+ Unauthorized = "Unauthorized"
36
+ PaymentRequired = "PaymentRequired"
37
+ Forbidden = "Forbidden"
38
+ NotFound = "NotFound"
39
+ MethodNotAllowed = "MethodNotAllowed"
40
+ NotAcceptable = "NotAcceptable"
41
+ ProxyAuthenticationRequired = "ProxyAuthenticationRequired"
42
+ RequestTimeout = "RequestTimeout"
43
+ Conflict = "Conflict"
44
+ Gone = "Gone"
45
+ LengthRequired = "LengthRequired"
46
+ PreconditionFailed = "PreconditionFailed"
47
+ RequestEntityTooLarge = "RequestEntityTooLarge"
48
+ RequestUriTooLong = "RequestUriTooLong"
49
+ UnsupportedMediaType = "UnsupportedMediaType"
50
+ RequestedRangeNotSatisfiable = "RequestedRangeNotSatisfiable"
51
+ ExpectationFailed = "ExpectationFailed"
52
+ UpgradeRequired = "UpgradeRequired"
53
+ InternalServerError = "InternalServerError"
54
+ NotImplemented = "NotImplemented"
55
+ BadGateway = "BadGateway"
56
+ ServiceUnavailable = "ServiceUnavailable"
57
+ GatewayTimeout = "GatewayTimeout"
58
+ HttpVersionNotSupported = "HttpVersionNotSupported"
59
+ end
60
+ end
61
+ end
@@ -0,0 +1,55 @@
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
+ # An MX record.
10
+ #
11
+ class MxRecord
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Integer] Gets or sets the preference metric for this record.
16
+ attr_accessor :preference
17
+
18
+ # @return [String] Gets or sets the domain name of the mail host,
19
+ # without a terminating dot.
20
+ attr_accessor :exchange
21
+
22
+
23
+ #
24
+ # Mapper for MxRecord class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ required: false,
30
+ serialized_name: 'MxRecord',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'MxRecord',
34
+ model_properties: {
35
+ preference: {
36
+ required: false,
37
+ serialized_name: 'preference',
38
+ type: {
39
+ name: 'Number'
40
+ }
41
+ },
42
+ exchange: {
43
+ required: false,
44
+ serialized_name: 'exchange',
45
+ type: {
46
+ name: 'String'
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ end
53
+ end
54
+ end
55
+ end
@@ -0,0 +1,45 @@
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
+ # An NS record.
10
+ #
11
+ class NsRecord
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the name server name for this record,
16
+ # without a terminating dot.
17
+ attr_accessor :nsdname
18
+
19
+
20
+ #
21
+ # Mapper for NsRecord class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'NsRecord',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'NsRecord',
31
+ model_properties: {
32
+ nsdname: {
33
+ required: false,
34
+ serialized_name: 'nsdname',
35
+ type: {
36
+ name: 'String'
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
42
+ end
43
+ end
44
+ end
45
+ end
@@ -0,0 +1,17 @@
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
+ # Defines values for OperationStatus
10
+ #
11
+ module OperationStatus
12
+ InProgress = "InProgress"
13
+ Succeeded = "Succeeded"
14
+ Failed = "Failed"
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,45 @@
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
+ # A PTR record.
10
+ #
11
+ class PtrRecord
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] Gets or sets the PTR target domain name for this
16
+ # record without a terminating dot.
17
+ attr_accessor :ptrdname
18
+
19
+
20
+ #
21
+ # Mapper for PtrRecord class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'PtrRecord',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'PtrRecord',
31
+ model_properties: {
32
+ ptrdname: {
33
+ required: false,
34
+ serialized_name: 'ptrdname',
35
+ type: {
36
+ name: 'String'
37
+ }
38
+ }
39
+ }
40
+ }
41
+ }
42
+ end
43
+ end
44
+ end
45
+ end