azure_mgmt_traffic_manager 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/lib/generated/azure_mgmt_traffic_manager.rb +16 -4
  3. data/lib/generated/azure_mgmt_traffic_manager/endpoints.rb +29 -19
  4. data/lib/generated/azure_mgmt_traffic_manager/geographic_hierarchies.rb +109 -0
  5. data/lib/generated/azure_mgmt_traffic_manager/models/check_traffic_manager_relative_dns_name_availability_parameters.rb +4 -3
  6. data/lib/generated/azure_mgmt_traffic_manager/models/delete_operation_result.rb +46 -0
  7. data/lib/generated/azure_mgmt_traffic_manager/models/dns_config.rb +13 -11
  8. data/lib/generated/azure_mgmt_traffic_manager/models/endpoint.rb +47 -33
  9. data/lib/generated/azure_mgmt_traffic_manager/models/endpoint_monitor_status.rb +20 -0
  10. data/lib/generated/azure_mgmt_traffic_manager/models/endpoint_status.rb +16 -0
  11. data/lib/generated/azure_mgmt_traffic_manager/models/monitor_config.rb +47 -9
  12. data/lib/generated/azure_mgmt_traffic_manager/models/monitor_protocol.rb +17 -0
  13. data/lib/generated/azure_mgmt_traffic_manager/models/profile.rb +20 -20
  14. data/lib/generated/azure_mgmt_traffic_manager/models/profile_list_result.rb +2 -1
  15. data/lib/generated/azure_mgmt_traffic_manager/models/profile_monitor_status.rb +19 -0
  16. data/lib/generated/azure_mgmt_traffic_manager/models/profile_status.rb +16 -0
  17. data/lib/generated/azure_mgmt_traffic_manager/models/proxy_resource.rb +60 -0
  18. data/lib/generated/azure_mgmt_traffic_manager/models/region.rb +75 -0
  19. data/lib/generated/azure_mgmt_traffic_manager/models/tracked_resource.rb +86 -0
  20. data/lib/generated/azure_mgmt_traffic_manager/models/traffic_manager_geographic_hierarchy.rb +72 -0
  21. data/lib/generated/azure_mgmt_traffic_manager/models/traffic_manager_name_availability.rb +2 -1
  22. data/lib/generated/azure_mgmt_traffic_manager/models/traffic_routing_method.rb +18 -0
  23. data/lib/generated/azure_mgmt_traffic_manager/module_definition.rb +1 -1
  24. data/lib/generated/azure_mgmt_traffic_manager/profiles.rb +50 -42
  25. data/lib/generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb +6 -2
  26. data/lib/generated/azure_mgmt_traffic_manager/version.rb +2 -2
  27. metadata +16 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 96f898409fa2f6bccdbff6e04a0fdb671219e687
4
- data.tar.gz: 824dea4cfffbea5558cdb7cb4cdb399f33e29390
3
+ metadata.gz: 4e5a5e80d5429a7216b1a144f9557885762ab63c
4
+ data.tar.gz: 8b1f8e6fa8fcecbe2c5dca88e4d18553fd0a4272
5
5
  SHA512:
6
- metadata.gz: 00a6ec942ec21a2f1290904dc9559ab7a745b3b5652da891f582fef5f38e1745e85fad6d899b30faa6f8bc70d46ae87dbb179f0e16fcfbae7c70476a440414a4
7
- data.tar.gz: 2e31936825fa15565d4bd7f2d089681b2b4481fec01f88416f313a89cbb9edfcda9c9f86af0d8532ef880d247e1a93bfca788297ac05136ca7505651da1a11cb
6
+ metadata.gz: 6e560e143aa631aaba750be6e58e56199461ecdc3a18dcf30479f86927867381c0a849aaa594719a85ed9036178fb9469f300bed375b29cacd9a63a6d6dcb6c3
7
+ data.tar.gz: b474932460b9e14873903b5a77ffc98deba19172810608555a616d94301152004381773aa85ee76e20340da84a7a691971f76400e8bc48930b0f3956ab34ff4a
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -22,15 +22,27 @@ require 'ms_rest_azure'
22
22
  module Azure::ARM::TrafficManager
23
23
  autoload :Endpoints, 'generated/azure_mgmt_traffic_manager/endpoints.rb'
24
24
  autoload :Profiles, 'generated/azure_mgmt_traffic_manager/profiles.rb'
25
+ autoload :GeographicHierarchies, 'generated/azure_mgmt_traffic_manager/geographic_hierarchies.rb'
25
26
  autoload :TrafficManagerManagementClient, 'generated/azure_mgmt_traffic_manager/traffic_manager_management_client.rb'
26
27
 
27
28
  module Models
28
- autoload :Endpoint, 'generated/azure_mgmt_traffic_manager/models/endpoint.rb'
29
- autoload :ProfileListResult, 'generated/azure_mgmt_traffic_manager/models/profile_list_result.rb'
30
- autoload :DnsConfig, 'generated/azure_mgmt_traffic_manager/models/dns_config.rb'
31
29
  autoload :TrafficManagerNameAvailability, 'generated/azure_mgmt_traffic_manager/models/traffic_manager_name_availability.rb'
30
+ autoload :DeleteOperationResult, 'generated/azure_mgmt_traffic_manager/models/delete_operation_result.rb'
31
+ autoload :Region, 'generated/azure_mgmt_traffic_manager/models/region.rb'
32
32
  autoload :CheckTrafficManagerRelativeDnsNameAvailabilityParameters, 'generated/azure_mgmt_traffic_manager/models/check_traffic_manager_relative_dns_name_availability_parameters.rb'
33
+ autoload :DnsConfig, 'generated/azure_mgmt_traffic_manager/models/dns_config.rb'
33
34
  autoload :MonitorConfig, 'generated/azure_mgmt_traffic_manager/models/monitor_config.rb'
35
+ autoload :ProfileListResult, 'generated/azure_mgmt_traffic_manager/models/profile_list_result.rb'
36
+ autoload :Endpoint, 'generated/azure_mgmt_traffic_manager/models/endpoint.rb'
34
37
  autoload :Profile, 'generated/azure_mgmt_traffic_manager/models/profile.rb'
38
+ autoload :ProxyResource, 'generated/azure_mgmt_traffic_manager/models/proxy_resource.rb'
39
+ autoload :TrafficManagerGeographicHierarchy, 'generated/azure_mgmt_traffic_manager/models/traffic_manager_geographic_hierarchy.rb'
40
+ autoload :TrackedResource, 'generated/azure_mgmt_traffic_manager/models/tracked_resource.rb'
41
+ autoload :EndpointStatus, 'generated/azure_mgmt_traffic_manager/models/endpoint_status.rb'
42
+ autoload :EndpointMonitorStatus, 'generated/azure_mgmt_traffic_manager/models/endpoint_monitor_status.rb'
43
+ autoload :ProfileMonitorStatus, 'generated/azure_mgmt_traffic_manager/models/profile_monitor_status.rb'
44
+ autoload :MonitorProtocol, 'generated/azure_mgmt_traffic_manager/models/monitor_protocol.rb'
45
+ autoload :ProfileStatus, 'generated/azure_mgmt_traffic_manager/models/profile_status.rb'
46
+ autoload :TrafficRoutingMethod, 'generated/azure_mgmt_traffic_manager/models/traffic_routing_method.rb'
35
47
  end
36
48
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -8,7 +8,6 @@ module Azure::ARM::TrafficManager
8
8
  # Endpoints
9
9
  #
10
10
  class Endpoints
11
- include Azure::ARM::TrafficManager::Models
12
11
  include MsRestAzure
13
12
 
14
13
  #
@@ -101,11 +100,11 @@ module Azure::ARM::TrafficManager
101
100
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
102
101
 
103
102
  # Serialize Request
104
- request_mapper = Endpoint.mapper()
105
- request_content = @client.serialize(request_mapper, parameters, 'parameters')
103
+ request_mapper = Azure::ARM::TrafficManager::Models::Endpoint.mapper()
104
+ request_content = @client.serialize(request_mapper, parameters)
106
105
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
107
106
 
108
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName}'
107
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName}'
109
108
 
110
109
  request_url = @base_url || @client.base_url
111
110
 
@@ -133,8 +132,8 @@ module Azure::ARM::TrafficManager
133
132
  if status_code == 200
134
133
  begin
135
134
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
136
- result_mapper = Endpoint.mapper()
137
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
135
+ result_mapper = Azure::ARM::TrafficManager::Models::Endpoint.mapper()
136
+ result.body = @client.deserialize(result_mapper, parsed_response)
138
137
  rescue Exception => e
139
138
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
140
139
  end
@@ -208,7 +207,7 @@ module Azure::ARM::TrafficManager
208
207
  # Set Headers
209
208
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
210
209
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
211
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName}'
210
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName}'
212
211
 
213
212
  request_url = @base_url || @client.base_url
214
213
 
@@ -235,8 +234,8 @@ module Azure::ARM::TrafficManager
235
234
  if status_code == 200
236
235
  begin
237
236
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
238
- result_mapper = Endpoint.mapper()
239
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
237
+ result_mapper = Azure::ARM::TrafficManager::Models::Endpoint.mapper()
238
+ result.body = @client.deserialize(result_mapper, parsed_response)
240
239
  rescue Exception => e
241
240
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
242
241
  end
@@ -327,11 +326,11 @@ module Azure::ARM::TrafficManager
327
326
  request_headers['Content-Type'] = 'application/json; charset=utf-8'
328
327
 
329
328
  # Serialize Request
330
- request_mapper = Endpoint.mapper()
331
- request_content = @client.serialize(request_mapper, parameters, 'parameters')
329
+ request_mapper = Azure::ARM::TrafficManager::Models::Endpoint.mapper()
330
+ request_content = @client.serialize(request_mapper, parameters)
332
331
  request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
333
332
 
334
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName}'
333
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName}'
335
334
 
336
335
  request_url = @base_url || @client.base_url
337
336
 
@@ -359,8 +358,8 @@ module Azure::ARM::TrafficManager
359
358
  if status_code == 200
360
359
  begin
361
360
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
362
- result_mapper = Endpoint.mapper()
363
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
361
+ result_mapper = Azure::ARM::TrafficManager::Models::Endpoint.mapper()
362
+ result.body = @client.deserialize(result_mapper, parsed_response)
364
363
  rescue Exception => e
365
364
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
366
365
  end
@@ -369,8 +368,8 @@ module Azure::ARM::TrafficManager
369
368
  if status_code == 201
370
369
  begin
371
370
  parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
372
- result_mapper = Endpoint.mapper()
373
- result.body = @client.deserialize(result_mapper, parsed_response, 'result.body')
371
+ result_mapper = Azure::ARM::TrafficManager::Models::Endpoint.mapper()
372
+ result.body = @client.deserialize(result_mapper, parsed_response)
374
373
  rescue Exception => e
375
374
  fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
376
375
  end
@@ -395,10 +394,11 @@ module Azure::ARM::TrafficManager
395
394
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
396
395
  # will be added to the HTTP request.
397
396
  #
397
+ # @return [DeleteOperationResult] operation results.
398
398
  #
399
399
  def delete(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers = nil)
400
400
  response = delete_async(resource_group_name, profile_name, endpoint_type, endpoint_name, custom_headers).value!
401
- nil
401
+ response.body unless response.nil?
402
402
  end
403
403
 
404
404
  #
@@ -449,7 +449,7 @@ module Azure::ARM::TrafficManager
449
449
  # Set Headers
450
450
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
451
451
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
452
- path_template = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName}'
452
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/trafficmanagerprofiles/{profileName}/{endpointType}/{endpointName}'
453
453
 
454
454
  request_url = @base_url || @client.base_url
455
455
 
@@ -472,6 +472,16 @@ module Azure::ARM::TrafficManager
472
472
  end
473
473
 
474
474
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
475
+ # Deserialize Response
476
+ if status_code == 200
477
+ begin
478
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
479
+ result_mapper = Azure::ARM::TrafficManager::Models::DeleteOperationResult.mapper()
480
+ result.body = @client.deserialize(result_mapper, parsed_response)
481
+ rescue Exception => e
482
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
483
+ end
484
+ end
475
485
 
476
486
  result
477
487
  end
@@ -0,0 +1,109 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::ARM::TrafficManager
7
+ #
8
+ # GeographicHierarchies
9
+ #
10
+ class GeographicHierarchies
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the GeographicHierarchies class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [TrafficManagerManagementClient] reference to the TrafficManagerManagementClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Gets the default Geographic Hierarchy used by the Geographic traffic routing
26
+ # method.
27
+ #
28
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
29
+ # will be added to the HTTP request.
30
+ #
31
+ # @return [TrafficManagerGeographicHierarchy] operation results.
32
+ #
33
+ def get_default(custom_headers = nil)
34
+ response = get_default_async(custom_headers).value!
35
+ response.body unless response.nil?
36
+ end
37
+
38
+ #
39
+ # Gets the default Geographic Hierarchy used by the Geographic traffic routing
40
+ # method.
41
+ #
42
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
43
+ # will be added to the HTTP request.
44
+ #
45
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
46
+ #
47
+ def get_default_with_http_info(custom_headers = nil)
48
+ get_default_async(custom_headers).value!
49
+ end
50
+
51
+ #
52
+ # Gets the default Geographic Hierarchy used by the Geographic traffic routing
53
+ # method.
54
+ #
55
+ # @param [Hash{String => String}] A hash of custom headers that will be added
56
+ # to the HTTP request.
57
+ #
58
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
59
+ #
60
+ def get_default_async(custom_headers = nil)
61
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
62
+
63
+
64
+ request_headers = {}
65
+
66
+ # Set Headers
67
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
68
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
69
+ path_template = 'providers/Microsoft.Network/trafficManagerGeographicHierarchies/default'
70
+
71
+ request_url = @base_url || @client.base_url
72
+
73
+ options = {
74
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
75
+ query_params: {'api-version' => @client.api_version},
76
+ headers: request_headers.merge(custom_headers || {}),
77
+ base_url: request_url
78
+ }
79
+ promise = @client.make_request_async(:get, path_template, options)
80
+
81
+ promise = promise.then do |result|
82
+ http_response = result.response
83
+ status_code = http_response.status
84
+ response_content = http_response.body
85
+ unless status_code == 200
86
+ error_model = JSON.load(response_content)
87
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
88
+ end
89
+
90
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
91
+ # Deserialize Response
92
+ if status_code == 200
93
+ begin
94
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
95
+ result_mapper = Azure::ARM::TrafficManager::Models::TrafficManagerGeographicHierarchy.mapper()
96
+ result.body = @client.deserialize(result_mapper, parsed_response)
97
+ rescue Exception => e
98
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
99
+ end
100
+ end
101
+
102
+ result
103
+ end
104
+
105
+ promise.execute
106
+ end
107
+
108
+ end
109
+ end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,10 +12,11 @@ module Azure::ARM::TrafficManager
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Gets or sets the name of the resource.
15
+ include MsRest::JSONable
16
+ # @return [String] The name of the resource.
16
17
  attr_accessor :name
17
18
 
18
- # @return [String] Gets or sets the type of the resource.
19
+ # @return [String] The type of the resource.
19
20
  attr_accessor :type
20
21
 
21
22
 
@@ -0,0 +1,46 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.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
+ # The result of the request or operation.
10
+ #
11
+ class DeleteOperationResult
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Boolean] The result of the operation or request.
17
+ attr_accessor :operation_result
18
+
19
+
20
+ #
21
+ # Mapper for DeleteOperationResult class as Ruby Hash.
22
+ # This will be used for serialization/deserialization.
23
+ #
24
+ def self.mapper()
25
+ {
26
+ required: false,
27
+ serialized_name: 'DeleteOperationResult',
28
+ type: {
29
+ name: 'Composite',
30
+ class_name: 'DeleteOperationResult',
31
+ model_properties: {
32
+ operation_result: {
33
+ required: false,
34
+ read_only: true,
35
+ serialized_name: 'boolean',
36
+ type: {
37
+ name: 'Boolean'
38
+ }
39
+ }
40
+ }
41
+ }
42
+ }
43
+ end
44
+ end
45
+ end
46
+ end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -12,20 +12,21 @@ module Azure::ARM::TrafficManager
12
12
 
13
13
  include MsRestAzure
14
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.
15
+ include MsRest::JSONable
16
+ # @return [String] The relative DNS name provided by this Traffic Manager
17
+ # profile. This value is combined with the DNS domain name used by Azure
18
+ # Traffic Manager to form the fully-qualified domain name (FQDN) of the
19
+ # profile.
19
20
  attr_accessor :relative_name
20
21
 
21
- # @return [String] Gets or sets the fully-qualified domain name (FQDN) of
22
- # the Traffic Manager profile. This is formed from the concatenation of
23
- # the RelativeName with the DNS domain used by Azure Traffic Manager.
22
+ # @return [String] The fully-qualified domain name (FQDN) of the Traffic
23
+ # Manager profile. This is formed from the concatenation of the
24
+ # RelativeName with the DNS domain used by Azure Traffic Manager.
24
25
  attr_accessor :fqdn
25
26
 
26
- # @return [Integer] Gets or sets the DNS Ttime-To-Live (TTL), in seconds.
27
- # This informs the local DNS resolvers and DNS clients how long to cache
28
- # DNS responses provided by this Traffic Manager profile.
27
+ # @return [Integer] The DNS Time-To-Live (TTL), in seconds. This informs
28
+ # the local DNS resolvers and DNS clients how long to cache DNS responses
29
+ # provided by this Traffic Manager profile.
29
30
  attr_accessor :ttl
30
31
 
31
32
 
@@ -50,6 +51,7 @@ module Azure::ARM::TrafficManager
50
51
  },
51
52
  fqdn: {
52
53
  required: false,
54
+ read_only: true,
53
55
  serialized_name: 'fqdn',
54
56
  type: {
55
57
  name: 'String'
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
- # Code generated by Microsoft (R) AutoRest Code Generator 1.0.1.0
2
+ # Code generated by Microsoft (R) AutoRest Code Generator 1.2.2.0
3
3
  # Changes may cause incorrect behavior and will be lost if the code is
4
4
  # regenerated.
5
5
 
@@ -8,60 +8,57 @@ module Azure::ARM::TrafficManager
8
8
  #
9
9
  # Class representing a Traffic Manager endpoint.
10
10
  #
11
- class Endpoint
11
+ class Endpoint < ProxyResource
12
12
 
13
13
  include MsRestAzure
14
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'.
15
+ include MsRest::JSONable
16
+ # @return [String] The Azure Resource URI of the of the endpoint. Not
17
+ # applicable to endpoints of type 'ExternalEndpoints'.
27
18
  attr_accessor :target_resource_id
28
19
 
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.
20
+ # @return [String] The fully-qualified DNS name of the endpoint. Traffic
21
+ # Manager returns this value in DNS responses to direct traffic to this
22
+ # endpoint.
32
23
  attr_accessor :target
33
24
 
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'.
25
+ # @return [EndpointStatus] The status of the endpoint. If the endpoint is
26
+ # Enabled, it is probed for endpoint health and is included in the
27
+ # traffic routing method. Possible values include: 'Enabled', 'Disabled'
38
28
  attr_accessor :endpoint_status
39
29
 
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.
30
+ # @return [Integer] The weight of this endpoint when using the 'Weighted'
31
+ # traffic routing method. Possible values are from 1 to 1000.
43
32
  attr_accessor :weight
44
33
 
45
- # @return [Integer] Gets or sets the priority of this endpoint when using
46
- # the ‘Priority’ traffic routing method. Possible values are from 1 to
47
- # 1000, lower values represent higher priority. This is an optional
48
- # parameter. If specified, it must be specified on all endpoints, and no
49
- # two endpoints can share the same priority value.
34
+ # @return [Integer] The priority of this endpoint when using the
35
+ # ‘Priority’ traffic routing method. Possible values are from 1 to 1000,
36
+ # lower values represent higher priority. This is an optional parameter.
37
+ # If specified, it must be specified on all endpoints, and no two
38
+ # endpoints can share the same priority value.
50
39
  attr_accessor :priority
51
40
 
52
41
  # @return [String] Specifies the location of the external or nested
53
42
  # endpoints when using the ‘Performance’ traffic routing method.
54
43
  attr_accessor :endpoint_location
55
44
 
56
- # @return [String] Gets or sets the monitoring status of the endpoint.
45
+ # @return [EndpointMonitorStatus] The monitoring status of the endpoint.
46
+ # Possible values include: 'CheckingEndpoint', 'Online', 'Degraded',
47
+ # 'Disabled', 'Inactive', 'Stopped'
57
48
  attr_accessor :endpoint_monitor_status
58
49
 
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 profile
61
- # to be considered available. Only applicable to endpoint of type
50
+ # @return [Integer] The minimum number of endpoints that must be
51
+ # available in the child profile in order for the parent profile to be
52
+ # considered available. Only applicable to endpoint of type
62
53
  # 'NestedEndpoints'.
63
54
  attr_accessor :min_child_endpoints
64
55
 
56
+ # @return [Array<String>] The list of countries/regions mapped to this
57
+ # endpoint when using the ‘Geographic’ traffic routing method. Please
58
+ # consult Traffic Manager Geographic documentation for a full list of
59
+ # accepted values.
60
+ attr_accessor :geo_mapping
61
+
65
62
 
66
63
  #
67
64
  # Mapper for Endpoint class as Ruby Hash.
@@ -77,6 +74,7 @@ module Azure::ARM::TrafficManager
77
74
  model_properties: {
78
75
  id: {
79
76
  required: false,
77
+ read_only: true,
80
78
  serialized_name: 'id',
81
79
  type: {
82
80
  name: 'String'
@@ -84,6 +82,7 @@ module Azure::ARM::TrafficManager
84
82
  },
85
83
  name: {
86
84
  required: false,
85
+ read_only: true,
87
86
  serialized_name: 'name',
88
87
  type: {
89
88
  name: 'String'
@@ -91,6 +90,7 @@ module Azure::ARM::TrafficManager
91
90
  },
92
91
  type: {
93
92
  required: false,
93
+ read_only: true,
94
94
  serialized_name: 'type',
95
95
  type: {
96
96
  name: 'String'
@@ -151,6 +151,20 @@ module Azure::ARM::TrafficManager
151
151
  type: {
152
152
  name: 'Number'
153
153
  }
154
+ },
155
+ geo_mapping: {
156
+ required: false,
157
+ serialized_name: 'properties.geoMapping',
158
+ type: {
159
+ name: 'Sequence',
160
+ element: {
161
+ required: false,
162
+ serialized_name: 'StringElementType',
163
+ type: {
164
+ name: 'String'
165
+ }
166
+ }
167
+ }
154
168
  }
155
169
  }
156
170
  }