azure_mgmt_traffic_manager 0.15.1 → 0.15.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/2015-11-01/generated/azure_mgmt_traffic_manager/models/check_traffic_manager_relative_dns_name_availability_parameters.rb +3 -0
- data/lib/2015-11-01/generated/azure_mgmt_traffic_manager/models/dns_config.rb +4 -0
- data/lib/2015-11-01/generated/azure_mgmt_traffic_manager/models/endpoint.rb +12 -0
- data/lib/2015-11-01/generated/azure_mgmt_traffic_manager/models/monitor_config.rb +5 -0
- data/lib/2015-11-01/generated/azure_mgmt_traffic_manager/models/profile.rb +13 -0
- data/lib/2015-11-01/generated/azure_mgmt_traffic_manager/models/profile_list_result.rb +3 -0
- data/lib/2015-11-01/generated/azure_mgmt_traffic_manager/models/resource.rb +7 -0
- data/lib/2015-11-01/generated/azure_mgmt_traffic_manager/models/traffic_manager_name_availability.rb +6 -0
- data/lib/2015-11-01/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb +1 -3
- data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/models/check_traffic_manager_relative_dns_name_availability_parameters.rb +3 -0
- data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/models/delete_operation_result.rb +2 -0
- data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/models/dns_config.rb +4 -0
- data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/models/endpoint.rb +14 -0
- data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/models/monitor_config.rb +5 -0
- data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/models/profile.rb +13 -0
- data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/models/profile_list_result.rb +3 -0
- data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/models/region.rb +5 -0
- data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/models/resource.rb +7 -0
- data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/models/traffic_manager_geographic_hierarchy.rb +8 -0
- data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/models/traffic_manager_name_availability.rb +6 -0
- data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb +1 -3
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/models/check_traffic_manager_relative_dns_name_availability_parameters.rb +3 -0
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/models/delete_operation_result.rb +2 -0
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/models/dns_config.rb +4 -0
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/models/endpoint.rb +14 -0
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/models/monitor_config.rb +8 -0
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/models/profile.rb +13 -0
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/models/profile_list_result.rb +3 -0
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/models/proxy_resource.rb +4 -0
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/models/region.rb +5 -0
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/models/resource.rb +4 -0
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/models/tracked_resource.rb +7 -0
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/models/traffic_manager_geographic_hierarchy.rb +5 -0
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/models/traffic_manager_name_availability.rb +6 -0
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/models/traffic_manager_user_metrics_key_model.rb +5 -0
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb +1 -3
- data/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/heat_map.rb +4 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/models/delete_operation_result.rb +2 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/models/heat_map_endpoint.rb +3 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/models/heat_map_model.rb +10 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/models/proxy_resource.rb +4 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/models/query_experience.rb +4 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/models/resource.rb +4 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/models/tracked_resource.rb +7 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/models/traffic_flow.rb +6 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/models/traffic_manager_user_metrics_key_model.rb +5 -0
- data/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb +1 -3
- data/lib/profiles/latest/trafficmanager_latest_profile_client.rb +1 -3
- data/lib/version.rb +1 -1
- metadata +10 -11
- data/lib/2015-11-01/generated/azure_mgmt_traffic_manager/version.rb +0 -8
- data/lib/2017-03-01/generated/azure_mgmt_traffic_manager/version.rb +0 -8
- data/lib/2017-05-01/generated/azure_mgmt_traffic_manager/version.rb +0 -8
- data/lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/version.rb +0 -8
- data/lib/profiles/common/configurable.rb +0 -86
- data/lib/profiles/common/default.rb +0 -57
@@ -35,6 +35,7 @@ module Azure::TrafficManager::Mgmt::V2017_09_01_preview
|
|
35
35
|
#
|
36
36
|
def self.mapper()
|
37
37
|
{
|
38
|
+
client_side_validation: true,
|
38
39
|
required: false,
|
39
40
|
serialized_name: 'TrafficFlow',
|
40
41
|
type: {
|
@@ -42,6 +43,7 @@ module Azure::TrafficManager::Mgmt::V2017_09_01_preview
|
|
42
43
|
class_name: 'TrafficFlow',
|
43
44
|
model_properties: {
|
44
45
|
source_ip: {
|
46
|
+
client_side_validation: true,
|
45
47
|
required: false,
|
46
48
|
serialized_name: 'sourceIp',
|
47
49
|
type: {
|
@@ -49,6 +51,7 @@ module Azure::TrafficManager::Mgmt::V2017_09_01_preview
|
|
49
51
|
}
|
50
52
|
},
|
51
53
|
latitude: {
|
54
|
+
client_side_validation: true,
|
52
55
|
required: false,
|
53
56
|
serialized_name: 'latitude',
|
54
57
|
type: {
|
@@ -56,6 +59,7 @@ module Azure::TrafficManager::Mgmt::V2017_09_01_preview
|
|
56
59
|
}
|
57
60
|
},
|
58
61
|
longitude: {
|
62
|
+
client_side_validation: true,
|
59
63
|
required: false,
|
60
64
|
serialized_name: 'longitude',
|
61
65
|
type: {
|
@@ -63,11 +67,13 @@ module Azure::TrafficManager::Mgmt::V2017_09_01_preview
|
|
63
67
|
}
|
64
68
|
},
|
65
69
|
query_experiences: {
|
70
|
+
client_side_validation: true,
|
66
71
|
required: false,
|
67
72
|
serialized_name: 'queryExperiences',
|
68
73
|
type: {
|
69
74
|
name: 'Sequence',
|
70
75
|
element: {
|
76
|
+
client_side_validation: true,
|
71
77
|
required: false,
|
72
78
|
serialized_name: 'QueryExperienceElementType',
|
73
79
|
type: {
|
@@ -23,6 +23,7 @@ module Azure::TrafficManager::Mgmt::V2017_09_01_preview
|
|
23
23
|
#
|
24
24
|
def self.mapper()
|
25
25
|
{
|
26
|
+
client_side_validation: true,
|
26
27
|
required: false,
|
27
28
|
serialized_name: 'TrafficManagerUserMetricsKeyModel',
|
28
29
|
type: {
|
@@ -30,6 +31,7 @@ module Azure::TrafficManager::Mgmt::V2017_09_01_preview
|
|
30
31
|
class_name: 'TrafficManagerUserMetricsKeyModel',
|
31
32
|
model_properties: {
|
32
33
|
id: {
|
34
|
+
client_side_validation: true,
|
33
35
|
required: false,
|
34
36
|
read_only: true,
|
35
37
|
serialized_name: 'id',
|
@@ -38,6 +40,7 @@ module Azure::TrafficManager::Mgmt::V2017_09_01_preview
|
|
38
40
|
}
|
39
41
|
},
|
40
42
|
name: {
|
43
|
+
client_side_validation: true,
|
41
44
|
required: false,
|
42
45
|
read_only: true,
|
43
46
|
serialized_name: 'name',
|
@@ -46,6 +49,7 @@ module Azure::TrafficManager::Mgmt::V2017_09_01_preview
|
|
46
49
|
}
|
47
50
|
},
|
48
51
|
type: {
|
52
|
+
client_side_validation: true,
|
49
53
|
required: false,
|
50
54
|
read_only: true,
|
51
55
|
serialized_name: 'type',
|
@@ -54,6 +58,7 @@ module Azure::TrafficManager::Mgmt::V2017_09_01_preview
|
|
54
58
|
}
|
55
59
|
},
|
56
60
|
key: {
|
61
|
+
client_side_validation: true,
|
57
62
|
required: false,
|
58
63
|
serialized_name: 'properties.key',
|
59
64
|
type: {
|
@@ -126,9 +126,7 @@ module Azure::TrafficManager::Mgmt::V2017_09_01_preview
|
|
126
126
|
#
|
127
127
|
def add_telemetry
|
128
128
|
sdk_information = 'azure_mgmt_traffic_manager'
|
129
|
-
|
130
|
-
sdk_information = "#{sdk_information}/#{Azure::TrafficManager::Mgmt::V2017_09_01_preview::VERSION}"
|
131
|
-
end
|
129
|
+
sdk_information = "#{sdk_information}/0.15.2"
|
132
130
|
add_user_agent_information(sdk_information)
|
133
131
|
end
|
134
132
|
end
|
@@ -4,15 +4,13 @@
|
|
4
4
|
|
5
5
|
require 'profiles/latest/trafficmanager_module_definition'
|
6
6
|
require 'profiles/latest/modules/trafficmanager_profile_module'
|
7
|
-
require 'profiles/common/configurable'
|
8
|
-
require 'profiles/common/default'
|
9
7
|
|
10
8
|
module Azure::TrafficManager::Profiles::Latest::Mgmt
|
11
9
|
#
|
12
10
|
# Client class for the Latest profile SDK.
|
13
11
|
#
|
14
12
|
class Client < TrafficManagerClass
|
15
|
-
include
|
13
|
+
include MsRestAzure::Common::Configurable
|
16
14
|
|
17
15
|
|
18
16
|
def initialize(options = {})
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: azure_mgmt_traffic_manager
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.15.
|
4
|
+
version: 0.15.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Microsoft Corporation
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -72,14 +72,14 @@ dependencies:
|
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: 0.
|
75
|
+
version: 0.10.0
|
76
76
|
type: :runtime
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: 0.
|
82
|
+
version: 0.10.0
|
83
83
|
description: Microsoft Azure Traffic Management Client Library for Ruby
|
84
84
|
email: azrubyteam@microsoft.com
|
85
85
|
executables: []
|
@@ -100,7 +100,6 @@ files:
|
|
100
100
|
- lib/2015-11-01/generated/azure_mgmt_traffic_manager/module_definition.rb
|
101
101
|
- lib/2015-11-01/generated/azure_mgmt_traffic_manager/profiles.rb
|
102
102
|
- lib/2015-11-01/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb
|
103
|
-
- lib/2015-11-01/generated/azure_mgmt_traffic_manager/version.rb
|
104
103
|
- lib/2017-03-01/generated/azure_mgmt_traffic_manager.rb
|
105
104
|
- lib/2017-03-01/generated/azure_mgmt_traffic_manager/endpoints.rb
|
106
105
|
- lib/2017-03-01/generated/azure_mgmt_traffic_manager/geographic_hierarchies.rb
|
@@ -118,7 +117,6 @@ files:
|
|
118
117
|
- lib/2017-03-01/generated/azure_mgmt_traffic_manager/module_definition.rb
|
119
118
|
- lib/2017-03-01/generated/azure_mgmt_traffic_manager/profiles.rb
|
120
119
|
- lib/2017-03-01/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb
|
121
|
-
- lib/2017-03-01/generated/azure_mgmt_traffic_manager/version.rb
|
122
120
|
- lib/2017-05-01/generated/azure_mgmt_traffic_manager.rb
|
123
121
|
- lib/2017-05-01/generated/azure_mgmt_traffic_manager/endpoints.rb
|
124
122
|
- lib/2017-05-01/generated/azure_mgmt_traffic_manager/geographic_hierarchies.rb
|
@@ -145,7 +143,6 @@ files:
|
|
145
143
|
- lib/2017-05-01/generated/azure_mgmt_traffic_manager/module_definition.rb
|
146
144
|
- lib/2017-05-01/generated/azure_mgmt_traffic_manager/profiles.rb
|
147
145
|
- lib/2017-05-01/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb
|
148
|
-
- lib/2017-05-01/generated/azure_mgmt_traffic_manager/version.rb
|
149
146
|
- lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager.rb
|
150
147
|
- lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/heat_map.rb
|
151
148
|
- lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/models/delete_operation_result.rb
|
@@ -160,11 +157,8 @@ files:
|
|
160
157
|
- lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/module_definition.rb
|
161
158
|
- lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb
|
162
159
|
- lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/traffic_manager_user_metrics_keys.rb
|
163
|
-
- lib/2017-09-01-preview/generated/azure_mgmt_traffic_manager/version.rb
|
164
160
|
- lib/azure_mgmt_traffic_manager.rb
|
165
161
|
- lib/module_definition.rb
|
166
|
-
- lib/profiles/common/configurable.rb
|
167
|
-
- lib/profiles/common/default.rb
|
168
162
|
- lib/profiles/latest/modules/trafficmanager_profile_module.rb
|
169
163
|
- lib/profiles/latest/trafficmanager_latest_profile_client.rb
|
170
164
|
- lib/profiles/latest/trafficmanager_module_definition.rb
|
@@ -172,7 +166,12 @@ files:
|
|
172
166
|
homepage: https://aka.ms/azure-sdk-for-ruby
|
173
167
|
licenses:
|
174
168
|
- MIT
|
175
|
-
metadata:
|
169
|
+
metadata:
|
170
|
+
bug_tracker_uri: https://github.com/Azure/azure-sdk-for-ruby/issues
|
171
|
+
changelog_uri: https://github.com/Azure/azure-sdk-for-ruby/blob/master/ChangeLog.md
|
172
|
+
documentation_uri: https://azure.microsoft.com/en-us/develop/ruby/
|
173
|
+
homepage_uri: https://aka.ms/azure-sdk-for-ruby
|
174
|
+
source_code_uri: https://github.com/Azure/azure-sdk-for-ruby/tree/master/management/azure_mgmt_traffic_manager
|
176
175
|
post_install_message:
|
177
176
|
rdoc_options: []
|
178
177
|
require_paths:
|
@@ -1,86 +0,0 @@
|
|
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
|
-
module Azure::Common
|
6
|
-
# The Azure::Common::Configurable module provides basic configuration for Azure activities.
|
7
|
-
module Configurable
|
8
|
-
# @return [String] Azure tenant id (also known as domain).
|
9
|
-
attr_accessor :tenant_id
|
10
|
-
|
11
|
-
# @return [String] Azure client id.
|
12
|
-
attr_accessor :client_id
|
13
|
-
|
14
|
-
# @return [String] Azure secret key.
|
15
|
-
attr_accessor :client_secret
|
16
|
-
|
17
|
-
# @return [String] Azure subscription id.
|
18
|
-
attr_accessor :subscription_id
|
19
|
-
|
20
|
-
# @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure active directory service settings.
|
21
|
-
attr_accessor :active_directory_settings
|
22
|
-
|
23
|
-
# @return [MsRest::ServiceClientCredentials] credentials to authorize HTTP requests made by the service client.
|
24
|
-
attr_accessor :credentials
|
25
|
-
|
26
|
-
class << self
|
27
|
-
#
|
28
|
-
# List of configurable keys for {Azure::Common::Client}.
|
29
|
-
# @return [Array] of option keys.
|
30
|
-
#
|
31
|
-
def keys
|
32
|
-
@keys ||= [:tenant_id, :client_id, :client_secret, :subscription_id, :active_directory_settings]
|
33
|
-
end
|
34
|
-
end
|
35
|
-
|
36
|
-
#
|
37
|
-
# Set configuration options using a block.
|
38
|
-
#
|
39
|
-
def configure
|
40
|
-
yield self
|
41
|
-
end
|
42
|
-
|
43
|
-
#
|
44
|
-
# Resets the configurable options to provided options or defaults.
|
45
|
-
# This will also creates MsRest::TokenCredentials to be used for subsequent Azure Resource Manager clients.
|
46
|
-
#
|
47
|
-
def reset!(options = {})
|
48
|
-
Azure::Common::Configurable.keys.each do |key|
|
49
|
-
default_value = Azure::Common::Default.options[key]
|
50
|
-
instance_variable_set(:"@#{key}", options.fetch(key, default_value))
|
51
|
-
end
|
52
|
-
|
53
|
-
fail ArgumentError, 'tenant_id is nil' if self.tenant_id.nil?
|
54
|
-
fail ArgumentError, 'client_id is nil' if self.client_id.nil?
|
55
|
-
fail ArgumentError, 'client_secret is nil' if self.client_secret.nil?
|
56
|
-
fail ArgumentError, 'subscription_id is nil' if self.subscription_id.nil?
|
57
|
-
fail ArgumentError, 'active_directory_settings is nil' if self.active_directory_settings.nil?
|
58
|
-
|
59
|
-
default_value = MsRest::TokenCredentials.new(
|
60
|
-
MsRestAzure::ApplicationTokenProvider.new(
|
61
|
-
self.tenant_id, self.client_id, self.client_secret, self.active_directory_settings))
|
62
|
-
|
63
|
-
instance_variable_set(:"@credentials", options.fetch(:credentials, default_value))
|
64
|
-
|
65
|
-
self
|
66
|
-
end
|
67
|
-
|
68
|
-
def config
|
69
|
-
self
|
70
|
-
end
|
71
|
-
|
72
|
-
private
|
73
|
-
|
74
|
-
#
|
75
|
-
# configures configurable options to default values
|
76
|
-
#
|
77
|
-
def setup_default_options
|
78
|
-
opts = {}
|
79
|
-
Azure::Common::Configurable.keys.map do |key|
|
80
|
-
opts[key] = Azure::Common::Default.options[key]
|
81
|
-
end
|
82
|
-
|
83
|
-
opts
|
84
|
-
end
|
85
|
-
end
|
86
|
-
end
|
@@ -1,57 +0,0 @@
|
|
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
|
-
module Azure::Common
|
6
|
-
module Default
|
7
|
-
class << self
|
8
|
-
#
|
9
|
-
# Default Azure Tenant Id.
|
10
|
-
# @return [String] Azure Tenant Id.
|
11
|
-
#
|
12
|
-
def tenant_id
|
13
|
-
ENV['AZURE_TENANT_ID']
|
14
|
-
end
|
15
|
-
|
16
|
-
#
|
17
|
-
# Default Azure Client Id.
|
18
|
-
# @return [String] Azure Client Id.
|
19
|
-
#
|
20
|
-
def client_id
|
21
|
-
ENV['AZURE_CLIENT_ID']
|
22
|
-
end
|
23
|
-
|
24
|
-
#
|
25
|
-
# Default Azure Client Secret.
|
26
|
-
# @return [String] Azure Client Secret.
|
27
|
-
#
|
28
|
-
def client_secret
|
29
|
-
ENV['AZURE_CLIENT_SECRET']
|
30
|
-
end
|
31
|
-
|
32
|
-
#
|
33
|
-
# Default Azure Subscription Id.
|
34
|
-
# @return [String] Azure Subscription Id.
|
35
|
-
#
|
36
|
-
def subscription_id
|
37
|
-
ENV['AZURE_SUBSCRIPTION_ID']
|
38
|
-
end
|
39
|
-
|
40
|
-
#
|
41
|
-
# Default Azure Active Directory Service Settings.
|
42
|
-
# @return [MsRestAzure::ActiveDirectoryServiceSettings] Azure Active Directory Service Settings.
|
43
|
-
#
|
44
|
-
def active_directory_settings
|
45
|
-
MsRestAzure::ActiveDirectoryServiceSettings.get_azure_settings
|
46
|
-
end
|
47
|
-
|
48
|
-
#
|
49
|
-
# Configuration options.
|
50
|
-
# @return [Hash] Configuration options.
|
51
|
-
#
|
52
|
-
def options
|
53
|
-
Hash[Azure::Common::Configurable.keys.map { |key| [key, send(key)]}]
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|