azure_mgmt_traffic_manager 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rspec +3 -0
- data/LICENSE.txt +21 -0
- data/Rakefile +5 -0
- data/azure_mgmt_traffic_manager.gemspec +34 -0
- data/lib/azure_mgmt_traffic_manager.rb +5 -0
- data/lib/generated/azure_mgmt_traffic_manager.rb +36 -0
- data/lib/generated/azure_mgmt_traffic_manager/endpoints.rb +495 -0
- data/lib/generated/azure_mgmt_traffic_manager/models/check_traffic_manager_relative_dns_name_availability_parameters.rb +55 -0
- data/lib/generated/azure_mgmt_traffic_manager/models/dns_config.rb +72 -0
- data/lib/generated/azure_mgmt_traffic_manager/models/endpoint.rb +161 -0
- data/lib/generated/azure_mgmt_traffic_manager/models/monitor_config.rb +79 -0
- data/lib/generated/azure_mgmt_traffic_manager/models/profile.rb +145 -0
- data/lib/generated/azure_mgmt_traffic_manager/models/profile_list_result.rb +52 -0
- data/lib/generated/azure_mgmt_traffic_manager/models/traffic_manager_name_availability.rb +87 -0
- data/lib/generated/azure_mgmt_traffic_manager/module_definition.rb +8 -0
- data/lib/generated/azure_mgmt_traffic_manager/profiles.rb +732 -0
- data/lib/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb +72 -0
- data/lib/generated/azure_mgmt_traffic_manager/version.rb +8 -0
- metadata +132 -0
@@ -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::TrafficManager
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Parameters supplied to check Traffic Manager name operation.
|
10
|
+
#
|
11
|
+
class CheckTrafficManagerRelativeDnsNameAvailabilityParameters
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Gets or sets the name of the resource.
|
16
|
+
attr_accessor :name
|
17
|
+
|
18
|
+
# @return [String] Gets or sets the type of the resource.
|
19
|
+
attr_accessor :type
|
20
|
+
|
21
|
+
|
22
|
+
#
|
23
|
+
# Mapper for CheckTrafficManagerRelativeDnsNameAvailabilityParameters
|
24
|
+
# class as Ruby Hash.
|
25
|
+
# This will be used for serialization/deserialization.
|
26
|
+
#
|
27
|
+
def self.mapper()
|
28
|
+
{
|
29
|
+
required: false,
|
30
|
+
serialized_name: 'CheckTrafficManagerRelativeDnsNameAvailabilityParameters',
|
31
|
+
type: {
|
32
|
+
name: 'Composite',
|
33
|
+
class_name: 'CheckTrafficManagerRelativeDnsNameAvailabilityParameters',
|
34
|
+
model_properties: {
|
35
|
+
name: {
|
36
|
+
required: false,
|
37
|
+
serialized_name: 'name',
|
38
|
+
type: {
|
39
|
+
name: 'String'
|
40
|
+
}
|
41
|
+
},
|
42
|
+
type: {
|
43
|
+
required: false,
|
44
|
+
serialized_name: 'type',
|
45
|
+
type: {
|
46
|
+
name: 'String'
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
end
|
53
|
+
end
|
54
|
+
end
|
55
|
+
end
|
@@ -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::TrafficManager
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Class containing DNS settings in a Traffic Manager profile.
|
10
|
+
#
|
11
|
+
class DnsConfig
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Gets or sets the relative DNS name provided by this
|
16
|
+
# Traffic Manager profile. This value is combined with the DNS domain
|
17
|
+
# name used by Azure Traffic Manager to form the fully-qualified domain
|
18
|
+
# name (FQDN) of the profile.
|
19
|
+
attr_accessor :relative_name
|
20
|
+
|
21
|
+
# @return [String] Gets or sets the fully-qualified domain name (FQDN)
|
22
|
+
# of the Traffic Manager profile. This is formed from the
|
23
|
+
# concatenation of the RelativeName with the DNS domain used by Azure
|
24
|
+
# Traffic Manager.
|
25
|
+
attr_accessor :fqdn
|
26
|
+
|
27
|
+
# @return [Integer] Gets or sets the DNS Ttime-To-Live (TTL), in
|
28
|
+
# seconds. This informs the local DNS resolvers and DNS clients how
|
29
|
+
# long to cache DNS responses provided by this Traffic Manager profile.
|
30
|
+
attr_accessor :ttl
|
31
|
+
|
32
|
+
|
33
|
+
#
|
34
|
+
# Mapper for DnsConfig class as Ruby Hash.
|
35
|
+
# This will be used for serialization/deserialization.
|
36
|
+
#
|
37
|
+
def self.mapper()
|
38
|
+
{
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'DnsConfig',
|
41
|
+
type: {
|
42
|
+
name: 'Composite',
|
43
|
+
class_name: 'DnsConfig',
|
44
|
+
model_properties: {
|
45
|
+
relative_name: {
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'relativeName',
|
48
|
+
type: {
|
49
|
+
name: 'String'
|
50
|
+
}
|
51
|
+
},
|
52
|
+
fqdn: {
|
53
|
+
required: false,
|
54
|
+
serialized_name: 'fqdn',
|
55
|
+
type: {
|
56
|
+
name: 'String'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
ttl: {
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'ttl',
|
62
|
+
type: {
|
63
|
+
name: 'Number'
|
64
|
+
}
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
end
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
@@ -0,0 +1,161 @@
|
|
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::TrafficManager
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Class representing a Traffic Manager endpoint.
|
10
|
+
#
|
11
|
+
class Endpoint
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Gets or sets the ID of the Traffic Manager endpoint.
|
16
|
+
attr_accessor :id
|
17
|
+
|
18
|
+
# @return [String] Gets or sets the name of the Traffic Manager endpoint.
|
19
|
+
attr_accessor :name
|
20
|
+
|
21
|
+
# @return [String] Gets or sets the endpoint type of the Traffic Manager
|
22
|
+
# endpoint.
|
23
|
+
attr_accessor :type
|
24
|
+
|
25
|
+
# @return [String] Gets or sets the Azure Resource URI of the of the
|
26
|
+
# endpoint. Not applicable to endpoints of type 'ExternalEndpoints'.
|
27
|
+
attr_accessor :target_resource_id
|
28
|
+
|
29
|
+
# @return [String] Gets or sets the fully-qualified DNS name of the
|
30
|
+
# endpoint. Traffic Manager returns this value in DNS responses to
|
31
|
+
# direct traffic to this endpoint.
|
32
|
+
attr_accessor :target
|
33
|
+
|
34
|
+
# @return [String] Gets or sets the status of the endpoint.. If the
|
35
|
+
# endpoint is Enabled, it is probed for endpoint health and is included
|
36
|
+
# in the traffic routing method. Possible values are 'Enabled' and
|
37
|
+
# 'Disabled'.
|
38
|
+
attr_accessor :endpoint_status
|
39
|
+
|
40
|
+
# @return [Integer] Gets or sets the weight of this endpoint when using
|
41
|
+
# the 'Weighted' traffic routing method. Possible values are from 1 to
|
42
|
+
# 1000.
|
43
|
+
attr_accessor :weight
|
44
|
+
|
45
|
+
# @return [Integer] Gets or sets the priority of this endpoint when
|
46
|
+
# using the ‘Priority’ traffic routing method. Possible values are from
|
47
|
+
# 1 to 1000, lower values represent higher priority. This is an
|
48
|
+
# optional parameter. If specified, it must be specified on all
|
49
|
+
# endpoints, and no two endpoints can share the same priority value.
|
50
|
+
attr_accessor :priority
|
51
|
+
|
52
|
+
# @return [String] Specifies the location of the external or nested
|
53
|
+
# endpoints when using the ‘Performance’ traffic routing method.
|
54
|
+
attr_accessor :endpoint_location
|
55
|
+
|
56
|
+
# @return [String] Gets or sets the monitoring status of the endpoint.
|
57
|
+
attr_accessor :endpoint_monitor_status
|
58
|
+
|
59
|
+
# @return [Integer] Gets or sets the minimum number of endpoints that
|
60
|
+
# must be available in the child profile in order for the parent
|
61
|
+
# profile to be considered available. Only applicable to endpoint of
|
62
|
+
# type 'NestedEndpoints'.
|
63
|
+
attr_accessor :min_child_endpoints
|
64
|
+
|
65
|
+
|
66
|
+
#
|
67
|
+
# Mapper for Endpoint class as Ruby Hash.
|
68
|
+
# This will be used for serialization/deserialization.
|
69
|
+
#
|
70
|
+
def self.mapper()
|
71
|
+
{
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'Endpoint',
|
74
|
+
type: {
|
75
|
+
name: 'Composite',
|
76
|
+
class_name: 'Endpoint',
|
77
|
+
model_properties: {
|
78
|
+
id: {
|
79
|
+
required: false,
|
80
|
+
serialized_name: 'id',
|
81
|
+
type: {
|
82
|
+
name: 'String'
|
83
|
+
}
|
84
|
+
},
|
85
|
+
name: {
|
86
|
+
required: false,
|
87
|
+
serialized_name: 'name',
|
88
|
+
type: {
|
89
|
+
name: 'String'
|
90
|
+
}
|
91
|
+
},
|
92
|
+
type: {
|
93
|
+
required: false,
|
94
|
+
serialized_name: 'type',
|
95
|
+
type: {
|
96
|
+
name: 'String'
|
97
|
+
}
|
98
|
+
},
|
99
|
+
target_resource_id: {
|
100
|
+
required: false,
|
101
|
+
serialized_name: 'properties.targetResourceId',
|
102
|
+
type: {
|
103
|
+
name: 'String'
|
104
|
+
}
|
105
|
+
},
|
106
|
+
target: {
|
107
|
+
required: false,
|
108
|
+
serialized_name: 'properties.target',
|
109
|
+
type: {
|
110
|
+
name: 'String'
|
111
|
+
}
|
112
|
+
},
|
113
|
+
endpoint_status: {
|
114
|
+
required: false,
|
115
|
+
serialized_name: 'properties.endpointStatus',
|
116
|
+
type: {
|
117
|
+
name: 'String'
|
118
|
+
}
|
119
|
+
},
|
120
|
+
weight: {
|
121
|
+
required: false,
|
122
|
+
serialized_name: 'properties.weight',
|
123
|
+
type: {
|
124
|
+
name: 'Number'
|
125
|
+
}
|
126
|
+
},
|
127
|
+
priority: {
|
128
|
+
required: false,
|
129
|
+
serialized_name: 'properties.priority',
|
130
|
+
type: {
|
131
|
+
name: 'Number'
|
132
|
+
}
|
133
|
+
},
|
134
|
+
endpoint_location: {
|
135
|
+
required: false,
|
136
|
+
serialized_name: 'properties.endpointLocation',
|
137
|
+
type: {
|
138
|
+
name: 'String'
|
139
|
+
}
|
140
|
+
},
|
141
|
+
endpoint_monitor_status: {
|
142
|
+
required: false,
|
143
|
+
serialized_name: 'properties.endpointMonitorStatus',
|
144
|
+
type: {
|
145
|
+
name: 'String'
|
146
|
+
}
|
147
|
+
},
|
148
|
+
min_child_endpoints: {
|
149
|
+
required: false,
|
150
|
+
serialized_name: 'properties.minChildEndpoints',
|
151
|
+
type: {
|
152
|
+
name: 'Number'
|
153
|
+
}
|
154
|
+
}
|
155
|
+
}
|
156
|
+
}
|
157
|
+
}
|
158
|
+
end
|
159
|
+
end
|
160
|
+
end
|
161
|
+
end
|
@@ -0,0 +1,79 @@
|
|
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::TrafficManager
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Class containing endpoint monitoring settings in a Traffic Manager
|
10
|
+
# profile.
|
11
|
+
#
|
12
|
+
class MonitorConfig
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [String] Gets or sets the profile-level monitoring status of
|
17
|
+
# the Traffic Manager profile.
|
18
|
+
attr_accessor :profile_monitor_status
|
19
|
+
|
20
|
+
# @return [String] Gets or sets the protocol (HTTP or HTTPS) used to
|
21
|
+
# probe for endpoint health.
|
22
|
+
attr_accessor :protocol
|
23
|
+
|
24
|
+
# @return [Integer] Gets or sets the TCP port used to probe for endpoint
|
25
|
+
# health.
|
26
|
+
attr_accessor :port
|
27
|
+
|
28
|
+
# @return [String] Gets or sets the path relative to the endpoint domain
|
29
|
+
# name used to probe for endpoint health.
|
30
|
+
attr_accessor :path
|
31
|
+
|
32
|
+
|
33
|
+
#
|
34
|
+
# Mapper for MonitorConfig class as Ruby Hash.
|
35
|
+
# This will be used for serialization/deserialization.
|
36
|
+
#
|
37
|
+
def self.mapper()
|
38
|
+
{
|
39
|
+
required: false,
|
40
|
+
serialized_name: 'MonitorConfig',
|
41
|
+
type: {
|
42
|
+
name: 'Composite',
|
43
|
+
class_name: 'MonitorConfig',
|
44
|
+
model_properties: {
|
45
|
+
profile_monitor_status: {
|
46
|
+
required: false,
|
47
|
+
serialized_name: 'profileMonitorStatus',
|
48
|
+
type: {
|
49
|
+
name: 'String'
|
50
|
+
}
|
51
|
+
},
|
52
|
+
protocol: {
|
53
|
+
required: false,
|
54
|
+
serialized_name: 'protocol',
|
55
|
+
type: {
|
56
|
+
name: 'String'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
port: {
|
60
|
+
required: false,
|
61
|
+
serialized_name: 'port',
|
62
|
+
type: {
|
63
|
+
name: 'Number'
|
64
|
+
}
|
65
|
+
},
|
66
|
+
path: {
|
67
|
+
required: false,
|
68
|
+
serialized_name: 'path',
|
69
|
+
type: {
|
70
|
+
name: 'String'
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
}
|
76
|
+
end
|
77
|
+
end
|
78
|
+
end
|
79
|
+
end
|
@@ -0,0 +1,145 @@
|
|
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::TrafficManager
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Class representing a Traffic Manager profile.
|
10
|
+
#
|
11
|
+
class Profile < MsRestAzure::Resource
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Gets or sets the status of the Traffic Manager
|
16
|
+
# profile. Possible values are 'Enabled' and 'Disabled'.
|
17
|
+
attr_accessor :profile_status
|
18
|
+
|
19
|
+
# @return [String] Gets or sets the traffic routing method of the
|
20
|
+
# Traffic Manager profile. Possible values are 'Performance',
|
21
|
+
# 'Weighted', or 'Priority'.
|
22
|
+
attr_accessor :traffic_routing_method
|
23
|
+
|
24
|
+
# @return [DnsConfig] Gets or sets the DNS settings of the Traffic
|
25
|
+
# Manager profile.
|
26
|
+
attr_accessor :dns_config
|
27
|
+
|
28
|
+
# @return [MonitorConfig] Gets or sets the endpoint monitoring settings
|
29
|
+
# of the Traffic Manager profile.
|
30
|
+
attr_accessor :monitor_config
|
31
|
+
|
32
|
+
# @return [Array<Endpoint>] Gets or sets the list of endpoints in the
|
33
|
+
# Traffic Manager profile.
|
34
|
+
attr_accessor :endpoints
|
35
|
+
|
36
|
+
|
37
|
+
#
|
38
|
+
# Mapper for Profile class as Ruby Hash.
|
39
|
+
# This will be used for serialization/deserialization.
|
40
|
+
#
|
41
|
+
def self.mapper()
|
42
|
+
{
|
43
|
+
required: false,
|
44
|
+
serialized_name: 'Profile',
|
45
|
+
type: {
|
46
|
+
name: 'Composite',
|
47
|
+
class_name: 'Profile',
|
48
|
+
model_properties: {
|
49
|
+
id: {
|
50
|
+
required: false,
|
51
|
+
read_only: true,
|
52
|
+
serialized_name: 'id',
|
53
|
+
type: {
|
54
|
+
name: 'String'
|
55
|
+
}
|
56
|
+
},
|
57
|
+
name: {
|
58
|
+
required: false,
|
59
|
+
read_only: true,
|
60
|
+
serialized_name: 'name',
|
61
|
+
type: {
|
62
|
+
name: 'String'
|
63
|
+
}
|
64
|
+
},
|
65
|
+
type: {
|
66
|
+
required: false,
|
67
|
+
read_only: true,
|
68
|
+
serialized_name: 'type',
|
69
|
+
type: {
|
70
|
+
name: 'String'
|
71
|
+
}
|
72
|
+
},
|
73
|
+
location: {
|
74
|
+
required: false,
|
75
|
+
serialized_name: 'location',
|
76
|
+
type: {
|
77
|
+
name: 'String'
|
78
|
+
}
|
79
|
+
},
|
80
|
+
tags: {
|
81
|
+
required: false,
|
82
|
+
serialized_name: 'tags',
|
83
|
+
type: {
|
84
|
+
name: 'Dictionary',
|
85
|
+
value: {
|
86
|
+
required: false,
|
87
|
+
serialized_name: 'StringElementType',
|
88
|
+
type: {
|
89
|
+
name: 'String'
|
90
|
+
}
|
91
|
+
}
|
92
|
+
}
|
93
|
+
},
|
94
|
+
profile_status: {
|
95
|
+
required: false,
|
96
|
+
serialized_name: 'properties.profileStatus',
|
97
|
+
type: {
|
98
|
+
name: 'String'
|
99
|
+
}
|
100
|
+
},
|
101
|
+
traffic_routing_method: {
|
102
|
+
required: false,
|
103
|
+
serialized_name: 'properties.trafficRoutingMethod',
|
104
|
+
type: {
|
105
|
+
name: 'String'
|
106
|
+
}
|
107
|
+
},
|
108
|
+
dns_config: {
|
109
|
+
required: false,
|
110
|
+
serialized_name: 'properties.dnsConfig',
|
111
|
+
type: {
|
112
|
+
name: 'Composite',
|
113
|
+
class_name: 'DnsConfig'
|
114
|
+
}
|
115
|
+
},
|
116
|
+
monitor_config: {
|
117
|
+
required: false,
|
118
|
+
serialized_name: 'properties.monitorConfig',
|
119
|
+
type: {
|
120
|
+
name: 'Composite',
|
121
|
+
class_name: 'MonitorConfig'
|
122
|
+
}
|
123
|
+
},
|
124
|
+
endpoints: {
|
125
|
+
required: false,
|
126
|
+
serialized_name: 'properties.endpoints',
|
127
|
+
type: {
|
128
|
+
name: 'Sequence',
|
129
|
+
element: {
|
130
|
+
required: false,
|
131
|
+
serialized_name: 'EndpointElementType',
|
132
|
+
type: {
|
133
|
+
name: 'Composite',
|
134
|
+
class_name: 'Endpoint'
|
135
|
+
}
|
136
|
+
}
|
137
|
+
}
|
138
|
+
}
|
139
|
+
}
|
140
|
+
}
|
141
|
+
}
|
142
|
+
end
|
143
|
+
end
|
144
|
+
end
|
145
|
+
end
|