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
@@ -0,0 +1,20 @@
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
+ # Defines values for EndpointMonitorStatus
10
+ #
11
+ module EndpointMonitorStatus
12
+ CheckingEndpoint = "CheckingEndpoint"
13
+ Online = "Online"
14
+ Degraded = "Degraded"
15
+ Disabled = "Disabled"
16
+ Inactive = "Inactive"
17
+ Stopped = "Stopped"
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,16 @@
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
+ # Defines values for EndpointStatus
10
+ #
11
+ module EndpointStatus
12
+ Enabled = "Enabled"
13
+ Disabled = "Disabled"
14
+ end
15
+ end
16
+ 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
 
@@ -13,22 +13,39 @@ module Azure::ARM::TrafficManager
13
13
 
14
14
  include MsRestAzure
15
15
 
16
- # @return [String] Gets or sets the profile-level monitoring status of
17
- # the Traffic Manager profile.
16
+ include MsRest::JSONable
17
+ # @return [ProfileMonitorStatus] The profile-level monitoring status of
18
+ # the Traffic Manager profile. Possible values include:
19
+ # 'CheckingEndpoints', 'Online', 'Degraded', 'Disabled', 'Inactive'
18
20
  attr_accessor :profile_monitor_status
19
21
 
20
- # @return [String] Gets or sets the protocol (HTTP or HTTPS) used to
21
- # probe for endpoint health.
22
+ # @return [MonitorProtocol] The protocol (HTTP, HTTPS or TCP) used to
23
+ # probe for endpoint health. Possible values include: 'HTTP', 'HTTPS',
24
+ # 'TCP'
22
25
  attr_accessor :protocol
23
26
 
24
- # @return [Integer] Gets or sets the TCP port used to probe for endpoint
25
- # health.
27
+ # @return [Integer] The TCP port used to probe for endpoint health.
26
28
  attr_accessor :port
27
29
 
28
- # @return [String] Gets or sets the path relative to the endpoint domain
29
- # name used to probe for endpoint health.
30
+ # @return [String] The path relative to the endpoint domain name used to
31
+ # probe for endpoint health.
30
32
  attr_accessor :path
31
33
 
34
+ # @return [Integer] The monitor interval for endpoints in this profile.
35
+ # This is the interval at which Traffic Manager will check the health of
36
+ # each endpoint in this profile.
37
+ attr_accessor :interval_in_seconds
38
+
39
+ # @return [Integer] The monitor timeout for endpoints in this profile.
40
+ # This is the time that Traffic Manager allows endpoints in this profile
41
+ # to response to the health check.
42
+ attr_accessor :timeout_in_seconds
43
+
44
+ # @return [Integer] The number of consecutive failed health check that
45
+ # Traffic Manager tolerates before declaring an endpoint in this profile
46
+ # Degraded after the next failed health check.
47
+ attr_accessor :tolerated_number_of_failures
48
+
32
49
 
33
50
  #
34
51
  # Mapper for MonitorConfig class as Ruby Hash.
@@ -69,6 +86,27 @@ module Azure::ARM::TrafficManager
69
86
  type: {
70
87
  name: 'String'
71
88
  }
89
+ },
90
+ interval_in_seconds: {
91
+ required: false,
92
+ serialized_name: 'intervalInSeconds',
93
+ type: {
94
+ name: 'Number'
95
+ }
96
+ },
97
+ timeout_in_seconds: {
98
+ required: false,
99
+ serialized_name: 'timeoutInSeconds',
100
+ type: {
101
+ name: 'Number'
102
+ }
103
+ },
104
+ tolerated_number_of_failures: {
105
+ required: false,
106
+ serialized_name: 'toleratedNumberOfFailures',
107
+ type: {
108
+ name: 'Number'
109
+ }
72
110
  }
73
111
  }
74
112
  }
@@ -0,0 +1,17 @@
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
+ # Defines values for MonitorProtocol
10
+ #
11
+ module MonitorProtocol
12
+ HTTP = "HTTP"
13
+ HTTPS = "HTTPS"
14
+ TCP = "TCP"
15
+ end
16
+ end
17
+ 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,29 +8,29 @@ module Azure::ARM::TrafficManager
8
8
  #
9
9
  # Class representing a Traffic Manager profile.
10
10
  #
11
- class Profile < MsRestAzure::Resource
11
+ class Profile < TrackedResource
12
12
 
13
13
  include MsRestAzure
14
14
 
15
- # @return [String] Gets or sets the status of the Traffic Manager
16
- # profile. Possible values are 'Enabled' and 'Disabled'.
15
+ include MsRest::JSONable
16
+ # @return [ProfileStatus] The status of the Traffic Manager profile.
17
+ # Possible values include: 'Enabled', 'Disabled'
17
18
  attr_accessor :profile_status
18
19
 
19
- # @return [String] Gets or sets the traffic routing method of the Traffic
20
- # Manager profile. Possible values are 'Performance', 'Weighted', or
21
- # 'Priority'.
20
+ # @return [TrafficRoutingMethod] The traffic routing method of the
21
+ # Traffic Manager profile. Possible values include: 'Performance',
22
+ # 'Priority', 'Weighted', 'Geographic'
22
23
  attr_accessor :traffic_routing_method
23
24
 
24
- # @return [DnsConfig] Gets or sets the DNS settings of the Traffic
25
- # Manager profile.
25
+ # @return [DnsConfig] The DNS settings of the Traffic Manager profile.
26
26
  attr_accessor :dns_config
27
27
 
28
- # @return [MonitorConfig] Gets or sets the endpoint monitoring settings
29
- # of the Traffic Manager profile.
28
+ # @return [MonitorConfig] The endpoint monitoring settings of the Traffic
29
+ # Manager profile.
30
30
  attr_accessor :monitor_config
31
31
 
32
- # @return [Array<Endpoint>] Gets or sets the list of endpoints in the
33
- # Traffic Manager profile.
32
+ # @return [Array<Endpoint>] The list of endpoints in the Traffic Manager
33
+ # profile.
34
34
  attr_accessor :endpoints
35
35
 
36
36
 
@@ -70,13 +70,6 @@ module Azure::ARM::TrafficManager
70
70
  name: 'String'
71
71
  }
72
72
  },
73
- location: {
74
- required: false,
75
- serialized_name: 'location',
76
- type: {
77
- name: 'String'
78
- }
79
- },
80
73
  tags: {
81
74
  required: false,
82
75
  serialized_name: 'tags',
@@ -91,6 +84,13 @@ module Azure::ARM::TrafficManager
91
84
  }
92
85
  }
93
86
  },
87
+ location: {
88
+ required: false,
89
+ serialized_name: 'location',
90
+ type: {
91
+ name: 'String'
92
+ }
93
+ },
94
94
  profile_status: {
95
95
  required: false,
96
96
  serialized_name: 'properties.profileStatus',
@@ -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,6 +12,7 @@ module Azure::ARM::TrafficManager
12
12
 
13
13
  include MsRestAzure
14
14
 
15
+ include MsRest::JSONable
15
16
  # @return [Array<Profile>] Gets the list of Traffic manager profiles.
16
17
  attr_accessor :value
17
18
 
@@ -0,0 +1,19 @@
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
+ # Defines values for ProfileMonitorStatus
10
+ #
11
+ module ProfileMonitorStatus
12
+ CheckingEndpoints = "CheckingEndpoints"
13
+ Online = "Online"
14
+ Degraded = "Degraded"
15
+ Disabled = "Disabled"
16
+ Inactive = "Inactive"
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,16 @@
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
+ # Defines values for ProfileStatus
10
+ #
11
+ module ProfileStatus
12
+ Enabled = "Enabled"
13
+ Disabled = "Disabled"
14
+ end
15
+ end
16
+ end
@@ -0,0 +1,60 @@
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 resource model definition for a ARM proxy resource. It will have
10
+ # everything other than required location and tags
11
+ #
12
+ class ProxyResource < MsRestAzure::Resource
13
+
14
+ include MsRestAzure
15
+
16
+ include MsRest::JSONable
17
+
18
+ #
19
+ # Mapper for ProxyResource class as Ruby Hash.
20
+ # This will be used for serialization/deserialization.
21
+ #
22
+ def self.mapper()
23
+ {
24
+ required: false,
25
+ serialized_name: 'ProxyResource',
26
+ type: {
27
+ name: 'Composite',
28
+ class_name: 'ProxyResource',
29
+ model_properties: {
30
+ id: {
31
+ required: false,
32
+ read_only: true,
33
+ serialized_name: 'id',
34
+ type: {
35
+ name: 'String'
36
+ }
37
+ },
38
+ name: {
39
+ required: false,
40
+ read_only: true,
41
+ serialized_name: 'name',
42
+ type: {
43
+ name: 'String'
44
+ }
45
+ },
46
+ type: {
47
+ required: false,
48
+ read_only: true,
49
+ serialized_name: 'type',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+ end
58
+ end
59
+ end
60
+ end
@@ -0,0 +1,75 @@
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
+ # Class representing a region in the Geographic hierarchy used with the
10
+ # Geographic traffic routing method.
11
+ #
12
+ class Region
13
+
14
+ include MsRestAzure
15
+
16
+ include MsRest::JSONable
17
+ # @return [String] The code of the region
18
+ attr_accessor :code
19
+
20
+ # @return [String] The name of the region
21
+ attr_accessor :name
22
+
23
+ # @return [Array<Region>] The list of Regions grouped under this Region
24
+ # in the Geographic Hierarchy.
25
+ attr_accessor :regions
26
+
27
+
28
+ #
29
+ # Mapper for Region class as Ruby Hash.
30
+ # This will be used for serialization/deserialization.
31
+ #
32
+ def self.mapper()
33
+ {
34
+ required: false,
35
+ serialized_name: 'Region',
36
+ type: {
37
+ name: 'Composite',
38
+ class_name: 'Region',
39
+ model_properties: {
40
+ code: {
41
+ required: false,
42
+ serialized_name: 'code',
43
+ type: {
44
+ name: 'String'
45
+ }
46
+ },
47
+ name: {
48
+ required: false,
49
+ serialized_name: 'name',
50
+ type: {
51
+ name: 'String'
52
+ }
53
+ },
54
+ regions: {
55
+ required: false,
56
+ serialized_name: 'regions',
57
+ type: {
58
+ name: 'Sequence',
59
+ element: {
60
+ required: false,
61
+ serialized_name: 'RegionElementType',
62
+ type: {
63
+ name: 'Composite',
64
+ class_name: 'Region'
65
+ }
66
+ }
67
+ }
68
+ }
69
+ }
70
+ }
71
+ }
72
+ end
73
+ end
74
+ end
75
+ end
@@ -0,0 +1,86 @@
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 resource model definition for a ARM tracked top level resource
10
+ #
11
+ class TrackedResource < MsRestAzure::Resource
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Hash{String => String}] Resource tags.
17
+ attr_accessor :tags
18
+
19
+ # @return [String] The Azure Region where the resource lives
20
+ attr_accessor :location
21
+
22
+
23
+ #
24
+ # Mapper for TrackedResource class as Ruby Hash.
25
+ # This will be used for serialization/deserialization.
26
+ #
27
+ def self.mapper()
28
+ {
29
+ required: false,
30
+ serialized_name: 'TrackedResource',
31
+ type: {
32
+ name: 'Composite',
33
+ class_name: 'TrackedResource',
34
+ model_properties: {
35
+ id: {
36
+ required: false,
37
+ read_only: true,
38
+ serialized_name: 'id',
39
+ type: {
40
+ name: 'String'
41
+ }
42
+ },
43
+ name: {
44
+ required: false,
45
+ read_only: true,
46
+ serialized_name: 'name',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ },
51
+ type: {
52
+ required: false,
53
+ read_only: true,
54
+ serialized_name: 'type',
55
+ type: {
56
+ name: 'String'
57
+ }
58
+ },
59
+ tags: {
60
+ required: false,
61
+ serialized_name: 'tags',
62
+ type: {
63
+ name: 'Dictionary',
64
+ value: {
65
+ required: false,
66
+ serialized_name: 'StringElementType',
67
+ type: {
68
+ name: 'String'
69
+ }
70
+ }
71
+ }
72
+ },
73
+ location: {
74
+ required: false,
75
+ serialized_name: 'location',
76
+ type: {
77
+ name: 'String'
78
+ }
79
+ }
80
+ }
81
+ }
82
+ }
83
+ end
84
+ end
85
+ end
86
+ end