azure_mgmt_resource_health 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE.txt +21 -0
- data/lib/2015-01-01/generated/azure_mgmt_resource_health.rb +45 -0
- data/lib/2015-01-01/generated/azure_mgmt_resource_health/availability_statuses.rb +856 -0
- data/lib/2015-01-01/generated/azure_mgmt_resource_health/child_availability_statuses.rb +384 -0
- data/lib/2015-01-01/generated/azure_mgmt_resource_health/child_resources.rb +271 -0
- data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/availability_state_values.rb +17 -0
- data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/availability_status.rb +93 -0
- data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/availability_status_list_result.rb +100 -0
- data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/availability_status_properties.rb +212 -0
- data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/availability_status_properties_recently_resolved_state.rb +73 -0
- data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/error_response.rb +71 -0
- data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/operation.rb +58 -0
- data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/operation_display.rb +79 -0
- data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/operation_list_result.rb +56 -0
- data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/reason_chronicity_types.rb +16 -0
- data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/recommended_action.rb +70 -0
- data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/service_impacting_event.rb +95 -0
- data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/service_impacting_event_incident_properties.rb +79 -0
- data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/service_impacting_event_status.rb +46 -0
- data/lib/2015-01-01/generated/azure_mgmt_resource_health/module_definition.rb +9 -0
- data/lib/2015-01-01/generated/azure_mgmt_resource_health/operations.rb +109 -0
- data/lib/2015-01-01/generated/azure_mgmt_resource_health/resource_health_client.rb +145 -0
- data/lib/2017-07-01/generated/azure_mgmt_resource_health.rb +45 -0
- data/lib/2017-07-01/generated/azure_mgmt_resource_health/availability_statuses.rb +863 -0
- data/lib/2017-07-01/generated/azure_mgmt_resource_health/child_availability_statuses.rb +384 -0
- data/lib/2017-07-01/generated/azure_mgmt_resource_health/child_resources.rb +271 -0
- data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/availability_state_values.rb +17 -0
- data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/availability_status.rb +93 -0
- data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/availability_status_list_result.rb +100 -0
- data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/availability_status_properties.rb +253 -0
- data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/availability_status_properties_recently_resolved_state.rb +73 -0
- data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/error_response.rb +71 -0
- data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/operation.rb +58 -0
- data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/operation_display.rb +79 -0
- data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/operation_list_result.rb +56 -0
- data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/reason_chronicity_types.rb +16 -0
- data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/recommended_action.rb +70 -0
- data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/service_impacting_event.rb +95 -0
- data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/service_impacting_event_incident_properties.rb +79 -0
- data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/service_impacting_event_status.rb +46 -0
- data/lib/2017-07-01/generated/azure_mgmt_resource_health/module_definition.rb +9 -0
- data/lib/2017-07-01/generated/azure_mgmt_resource_health/operations.rb +109 -0
- data/lib/2017-07-01/generated/azure_mgmt_resource_health/resource_health_client.rb +145 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health.rb +74 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/availability_statuses.rb +842 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/events_operations.rb +463 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/impacted_resources.rb +240 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/metadata.rb +318 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/availability_state_values.rb +18 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/availability_status.rb +93 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/availability_status_list_result.rb +100 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/availability_status_properties.rb +251 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/availability_status_properties_recently_resolved.rb +73 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/azure_entity_resource.rb +75 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/error_response.rb +71 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/event.rb +336 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/event_level_values.rb +17 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/event_properties_article.rb +46 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/event_properties_recommended_actions.rb +79 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/event_properties_recommended_actions_actions_item.rb +59 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/event_source_values.rb +16 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/event_status_values.rb +16 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/event_type_values.rb +18 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/events.rb +99 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/faq.rb +68 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/impact.rb +67 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/impacted_resource_list_result.rb +100 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/impacted_resource_status.rb +123 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/impacted_service_region.rb +110 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/level_values.rb +16 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/link.rb +95 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/link_display_text.rb +57 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/link_type_values.rb +16 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/metadata_entity.rb +134 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/metadata_entity_list_result.rb +98 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/metadata_supported_value_detail.rb +57 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/operation.rb +58 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/operation_display.rb +79 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/operation_list_result.rb +56 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/proxy_resource.rb +63 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/reason_chronicity_types.rb +16 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/reason_type_values.rb +17 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/recommended_action.rb +70 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/resource.rb +83 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/scenario.rb +15 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/service_impacting_event.rb +95 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/service_impacting_event_incident_properties.rb +79 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/service_impacting_event_status.rb +46 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/tracked_resource.rb +92 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/update.rb +59 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/module_definition.rb +9 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/operations.rb +109 -0
- data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/resource_health_client.rb +152 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health.rb +69 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/availability_statuses.rb +842 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/events_operations.rb +463 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/availability_state_values.rb +18 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/availability_status.rb +93 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/availability_status_list_result.rb +100 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/availability_status_properties.rb +251 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/availability_status_properties_recently_resolved.rb +73 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/azure_entity_resource.rb +75 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/error_response.rb +71 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/event.rb +336 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/event_level_values.rb +17 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/event_properties_article.rb +46 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/event_properties_recommended_actions.rb +79 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/event_properties_recommended_actions_actions_item.rb +59 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/event_source_values.rb +16 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/event_status_values.rb +16 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/event_type_values.rb +18 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/events.rb +99 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/faq.rb +68 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/impact.rb +67 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/impacted_service_region.rb +110 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/level_values.rb +16 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/link.rb +95 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/link_display_text.rb +57 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/link_type_values.rb +16 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/metadata_entity.rb +134 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/metadata_entity_list_result.rb +66 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/metadata_supported_value_detail.rb +57 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/operation.rb +58 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/operation_display.rb +79 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/operation_list_result.rb +56 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/proxy_resource.rb +63 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/reason_chronicity_types.rb +16 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/recommended_action.rb +70 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/resource.rb +83 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/scenario.rb +15 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/service_impacting_event.rb +95 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/service_impacting_event_incident_properties.rb +79 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/service_impacting_event_status.rb +46 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/tracked_resource.rb +92 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/update.rb +59 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/module_definition.rb +9 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/operations.rb +109 -0
- data/lib/2018-07-01/generated/azure_mgmt_resource_health/resource_health_client.rb +147 -0
- data/lib/azure_mgmt_resource_health.rb +9 -0
- data/lib/module_definition.rb +7 -0
- data/lib/profiles/latest/modules/resourcehealth_profile_module.rb +123 -0
- data/lib/profiles/latest/resourcehealth_latest_profile_client.rb +40 -0
- data/lib/profiles/latest/resourcehealth_module_definition.rb +8 -0
- data/lib/version.rb +7 -0
- metadata +261 -0
@@ -0,0 +1,17 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ResourceHealth::Mgmt::V2015_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Defines values for AvailabilityStateValues
|
10
|
+
#
|
11
|
+
module AvailabilityStateValues
|
12
|
+
Available = "Available"
|
13
|
+
Unavailable = "Unavailable"
|
14
|
+
Unknown = "Unknown"
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
@@ -0,0 +1,93 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ResourceHealth::Mgmt::V2015_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# availabilityStatus of a resource.
|
10
|
+
#
|
11
|
+
class AvailabilityStatus
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [String] Azure Resource Manager Identity for the
|
16
|
+
# availabilityStatuses resource.
|
17
|
+
attr_accessor :id
|
18
|
+
|
19
|
+
# @return [String] current.
|
20
|
+
attr_accessor :name
|
21
|
+
|
22
|
+
# @return [String] Microsoft.ResourceHealth/AvailabilityStatuses.
|
23
|
+
attr_accessor :type
|
24
|
+
|
25
|
+
# @return [String] Azure Resource Manager geo location of the resource.
|
26
|
+
attr_accessor :location
|
27
|
+
|
28
|
+
# @return [AvailabilityStatusProperties] Properties of availability
|
29
|
+
# state.
|
30
|
+
attr_accessor :properties
|
31
|
+
|
32
|
+
|
33
|
+
#
|
34
|
+
# Mapper for AvailabilityStatus class as Ruby Hash.
|
35
|
+
# This will be used for serialization/deserialization.
|
36
|
+
#
|
37
|
+
def self.mapper()
|
38
|
+
{
|
39
|
+
client_side_validation: true,
|
40
|
+
required: false,
|
41
|
+
serialized_name: 'availabilityStatus',
|
42
|
+
type: {
|
43
|
+
name: 'Composite',
|
44
|
+
class_name: 'AvailabilityStatus',
|
45
|
+
model_properties: {
|
46
|
+
id: {
|
47
|
+
client_side_validation: true,
|
48
|
+
required: false,
|
49
|
+
serialized_name: 'id',
|
50
|
+
type: {
|
51
|
+
name: 'String'
|
52
|
+
}
|
53
|
+
},
|
54
|
+
name: {
|
55
|
+
client_side_validation: true,
|
56
|
+
required: false,
|
57
|
+
serialized_name: 'name',
|
58
|
+
type: {
|
59
|
+
name: 'String'
|
60
|
+
}
|
61
|
+
},
|
62
|
+
type: {
|
63
|
+
client_side_validation: true,
|
64
|
+
required: false,
|
65
|
+
serialized_name: 'type',
|
66
|
+
type: {
|
67
|
+
name: 'String'
|
68
|
+
}
|
69
|
+
},
|
70
|
+
location: {
|
71
|
+
client_side_validation: true,
|
72
|
+
required: false,
|
73
|
+
serialized_name: 'location',
|
74
|
+
type: {
|
75
|
+
name: 'String'
|
76
|
+
}
|
77
|
+
},
|
78
|
+
properties: {
|
79
|
+
client_side_validation: true,
|
80
|
+
required: false,
|
81
|
+
serialized_name: 'properties',
|
82
|
+
type: {
|
83
|
+
name: 'Composite',
|
84
|
+
class_name: 'AvailabilityStatusProperties'
|
85
|
+
}
|
86
|
+
}
|
87
|
+
}
|
88
|
+
}
|
89
|
+
}
|
90
|
+
end
|
91
|
+
end
|
92
|
+
end
|
93
|
+
end
|
data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/availability_status_list_result.rb
ADDED
@@ -0,0 +1,100 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ResourceHealth::Mgmt::V2015_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# The List availabilityStatus operation response.
|
10
|
+
#
|
11
|
+
class AvailabilityStatusListResult
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
include MsRest::JSONable
|
16
|
+
# @return [Array<AvailabilityStatus>] The list of availabilityStatuses.
|
17
|
+
attr_accessor :value
|
18
|
+
|
19
|
+
# @return [String] The URI to fetch the next page of
|
20
|
+
# availabilityStatuses. Call ListNext() with this URI to fetch the next
|
21
|
+
# page of availabilityStatuses.
|
22
|
+
attr_accessor :next_link
|
23
|
+
|
24
|
+
# return [Proc] with next page method call.
|
25
|
+
attr_accessor :next_method
|
26
|
+
|
27
|
+
#
|
28
|
+
# Gets the rest of the items for the request, enabling auto-pagination.
|
29
|
+
#
|
30
|
+
# @return [Array<AvailabilityStatus>] operation results.
|
31
|
+
#
|
32
|
+
def get_all_items
|
33
|
+
items = @value
|
34
|
+
page = self
|
35
|
+
while page.next_link != nil && !page.next_link.strip.empty? do
|
36
|
+
page = page.get_next_page
|
37
|
+
items.concat(page.value)
|
38
|
+
end
|
39
|
+
items
|
40
|
+
end
|
41
|
+
|
42
|
+
#
|
43
|
+
# Gets the next page of results.
|
44
|
+
#
|
45
|
+
# @return [AvailabilityStatusListResult] with next page content.
|
46
|
+
#
|
47
|
+
def get_next_page
|
48
|
+
response = @next_method.call(@next_link).value! unless @next_method.nil?
|
49
|
+
unless response.nil?
|
50
|
+
@next_link = response.body.next_link
|
51
|
+
@value = response.body.value
|
52
|
+
self
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
#
|
57
|
+
# Mapper for AvailabilityStatusListResult class as Ruby Hash.
|
58
|
+
# This will be used for serialization/deserialization.
|
59
|
+
#
|
60
|
+
def self.mapper()
|
61
|
+
{
|
62
|
+
client_side_validation: true,
|
63
|
+
required: false,
|
64
|
+
serialized_name: 'availabilityStatusListResult',
|
65
|
+
type: {
|
66
|
+
name: 'Composite',
|
67
|
+
class_name: 'AvailabilityStatusListResult',
|
68
|
+
model_properties: {
|
69
|
+
value: {
|
70
|
+
client_side_validation: true,
|
71
|
+
required: true,
|
72
|
+
serialized_name: 'value',
|
73
|
+
type: {
|
74
|
+
name: 'Sequence',
|
75
|
+
element: {
|
76
|
+
client_side_validation: true,
|
77
|
+
required: false,
|
78
|
+
serialized_name: 'AvailabilityStatusElementType',
|
79
|
+
type: {
|
80
|
+
name: 'Composite',
|
81
|
+
class_name: 'AvailabilityStatus'
|
82
|
+
}
|
83
|
+
}
|
84
|
+
}
|
85
|
+
},
|
86
|
+
next_link: {
|
87
|
+
client_side_validation: true,
|
88
|
+
required: false,
|
89
|
+
serialized_name: 'nextLink',
|
90
|
+
type: {
|
91
|
+
name: 'String'
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
end
|
98
|
+
end
|
99
|
+
end
|
100
|
+
end
|
data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/availability_status_properties.rb
ADDED
@@ -0,0 +1,212 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ResourceHealth::Mgmt::V2015_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# Properties of availability state.
|
10
|
+
#
|
11
|
+
class AvailabilityStatusProperties
|
12
|
+
|
13
|
+
include MsRestAzure
|
14
|
+
|
15
|
+
# @return [AvailabilityStateValues] Availability status of the resource.
|
16
|
+
# Possible values include: 'Available', 'Unavailable', 'Unknown'
|
17
|
+
attr_accessor :availability_state
|
18
|
+
|
19
|
+
# @return [String] Summary description of the availability state.
|
20
|
+
attr_accessor :summary
|
21
|
+
|
22
|
+
# @return [String] Details of the availability status.
|
23
|
+
attr_accessor :detailed_status
|
24
|
+
|
25
|
+
# @return [String] When the resource's availabilityState is Unavailable,
|
26
|
+
# it describes where the health impacting event was originated. Examples
|
27
|
+
# are planned, unplanned, user initiated or an outage etc.
|
28
|
+
attr_accessor :reason_type
|
29
|
+
|
30
|
+
# @return [DateTime] When the resource's availabilityState is
|
31
|
+
# Unavailable, it provides the Timestamp for when the health impacting
|
32
|
+
# event was received.
|
33
|
+
attr_accessor :root_cause_attribution_time
|
34
|
+
|
35
|
+
# @return [DateTime] When the resource's availabilityState is Unavailable
|
36
|
+
# and the reasonType is not User Initiated, it provides the date and time
|
37
|
+
# for when the issue is expected to be resolved.
|
38
|
+
attr_accessor :resolution_eta
|
39
|
+
|
40
|
+
# @return [DateTime] Timestamp for when last change in health status
|
41
|
+
# occurred.
|
42
|
+
attr_accessor :occured_time
|
43
|
+
|
44
|
+
# @return [ReasonChronicityTypes] Chronicity of the availability
|
45
|
+
# transition. Possible values include: 'Transient', 'Persistent'
|
46
|
+
attr_accessor :reason_chronicity
|
47
|
+
|
48
|
+
# @return [DateTime] Timestamp for when the health was last checked.
|
49
|
+
attr_accessor :reported_time
|
50
|
+
|
51
|
+
# @return [Boolean] flag to show if child resource need detail health.
|
52
|
+
attr_accessor :is_arm_resource
|
53
|
+
|
54
|
+
# @return [AvailabilityStatusPropertiesRecentlyResolvedState] An
|
55
|
+
# annotation describing a change in the availabilityState to Available
|
56
|
+
# from Unavailable with a reasonType of type Unplanned
|
57
|
+
attr_accessor :recently_resolved_state
|
58
|
+
|
59
|
+
# @return [Array<RecommendedAction>] Lists actions the user can take
|
60
|
+
# based on the current availabilityState of the resource.
|
61
|
+
attr_accessor :recommended_actions
|
62
|
+
|
63
|
+
# @return [Array<ServiceImpactingEvent>] Lists the service impacting
|
64
|
+
# events that may be affecting the health of the resource.
|
65
|
+
attr_accessor :service_impacting_events
|
66
|
+
|
67
|
+
|
68
|
+
#
|
69
|
+
# Mapper for AvailabilityStatusProperties class as Ruby Hash.
|
70
|
+
# This will be used for serialization/deserialization.
|
71
|
+
#
|
72
|
+
def self.mapper()
|
73
|
+
{
|
74
|
+
client_side_validation: true,
|
75
|
+
required: false,
|
76
|
+
serialized_name: 'availabilityStatus_properties',
|
77
|
+
type: {
|
78
|
+
name: 'Composite',
|
79
|
+
class_name: 'AvailabilityStatusProperties',
|
80
|
+
model_properties: {
|
81
|
+
availability_state: {
|
82
|
+
client_side_validation: true,
|
83
|
+
required: false,
|
84
|
+
serialized_name: 'availabilityState',
|
85
|
+
type: {
|
86
|
+
name: 'Enum',
|
87
|
+
module: 'AvailabilityStateValues'
|
88
|
+
}
|
89
|
+
},
|
90
|
+
summary: {
|
91
|
+
client_side_validation: true,
|
92
|
+
required: false,
|
93
|
+
serialized_name: 'summary',
|
94
|
+
type: {
|
95
|
+
name: 'String'
|
96
|
+
}
|
97
|
+
},
|
98
|
+
detailed_status: {
|
99
|
+
client_side_validation: true,
|
100
|
+
required: false,
|
101
|
+
serialized_name: 'detailedStatus',
|
102
|
+
type: {
|
103
|
+
name: 'String'
|
104
|
+
}
|
105
|
+
},
|
106
|
+
reason_type: {
|
107
|
+
client_side_validation: true,
|
108
|
+
required: false,
|
109
|
+
serialized_name: 'reasonType',
|
110
|
+
type: {
|
111
|
+
name: 'String'
|
112
|
+
}
|
113
|
+
},
|
114
|
+
root_cause_attribution_time: {
|
115
|
+
client_side_validation: true,
|
116
|
+
required: false,
|
117
|
+
serialized_name: 'rootCauseAttributionTime',
|
118
|
+
type: {
|
119
|
+
name: 'DateTime'
|
120
|
+
}
|
121
|
+
},
|
122
|
+
resolution_eta: {
|
123
|
+
client_side_validation: true,
|
124
|
+
required: false,
|
125
|
+
serialized_name: 'resolutionETA',
|
126
|
+
type: {
|
127
|
+
name: 'DateTime'
|
128
|
+
}
|
129
|
+
},
|
130
|
+
occured_time: {
|
131
|
+
client_side_validation: true,
|
132
|
+
required: false,
|
133
|
+
serialized_name: 'occuredTime',
|
134
|
+
type: {
|
135
|
+
name: 'DateTime'
|
136
|
+
}
|
137
|
+
},
|
138
|
+
reason_chronicity: {
|
139
|
+
client_side_validation: true,
|
140
|
+
required: false,
|
141
|
+
serialized_name: 'reasonChronicity',
|
142
|
+
type: {
|
143
|
+
name: 'Enum',
|
144
|
+
module: 'ReasonChronicityTypes'
|
145
|
+
}
|
146
|
+
},
|
147
|
+
reported_time: {
|
148
|
+
client_side_validation: true,
|
149
|
+
required: false,
|
150
|
+
serialized_name: 'reportedTime',
|
151
|
+
type: {
|
152
|
+
name: 'DateTime'
|
153
|
+
}
|
154
|
+
},
|
155
|
+
is_arm_resource: {
|
156
|
+
client_side_validation: true,
|
157
|
+
required: false,
|
158
|
+
serialized_name: 'isArmResource',
|
159
|
+
type: {
|
160
|
+
name: 'Boolean'
|
161
|
+
}
|
162
|
+
},
|
163
|
+
recently_resolved_state: {
|
164
|
+
client_side_validation: true,
|
165
|
+
required: false,
|
166
|
+
serialized_name: 'recentlyResolvedState',
|
167
|
+
type: {
|
168
|
+
name: 'Composite',
|
169
|
+
class_name: 'AvailabilityStatusPropertiesRecentlyResolvedState'
|
170
|
+
}
|
171
|
+
},
|
172
|
+
recommended_actions: {
|
173
|
+
client_side_validation: true,
|
174
|
+
required: false,
|
175
|
+
serialized_name: 'recommendedActions',
|
176
|
+
type: {
|
177
|
+
name: 'Sequence',
|
178
|
+
element: {
|
179
|
+
client_side_validation: true,
|
180
|
+
required: false,
|
181
|
+
serialized_name: 'RecommendedActionElementType',
|
182
|
+
type: {
|
183
|
+
name: 'Composite',
|
184
|
+
class_name: 'RecommendedAction'
|
185
|
+
}
|
186
|
+
}
|
187
|
+
}
|
188
|
+
},
|
189
|
+
service_impacting_events: {
|
190
|
+
client_side_validation: true,
|
191
|
+
required: false,
|
192
|
+
serialized_name: 'serviceImpactingEvents',
|
193
|
+
type: {
|
194
|
+
name: 'Sequence',
|
195
|
+
element: {
|
196
|
+
client_side_validation: true,
|
197
|
+
required: false,
|
198
|
+
serialized_name: 'ServiceImpactingEventElementType',
|
199
|
+
type: {
|
200
|
+
name: 'Composite',
|
201
|
+
class_name: 'ServiceImpactingEvent'
|
202
|
+
}
|
203
|
+
}
|
204
|
+
}
|
205
|
+
}
|
206
|
+
}
|
207
|
+
}
|
208
|
+
}
|
209
|
+
end
|
210
|
+
end
|
211
|
+
end
|
212
|
+
end
|
@@ -0,0 +1,73 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
# Code generated by Microsoft (R) AutoRest Code Generator.
|
3
|
+
# Changes may cause incorrect behavior and will be lost if the code is
|
4
|
+
# regenerated.
|
5
|
+
|
6
|
+
module Azure::ResourceHealth::Mgmt::V2015_01_01
|
7
|
+
module Models
|
8
|
+
#
|
9
|
+
# An annotation describing a change in the availabilityState to Available
|
10
|
+
# from Unavailable with a reasonType of type Unplanned
|
11
|
+
#
|
12
|
+
class AvailabilityStatusPropertiesRecentlyResolvedState
|
13
|
+
|
14
|
+
include MsRestAzure
|
15
|
+
|
16
|
+
# @return [DateTime] Timestamp for when the availabilityState changed to
|
17
|
+
# Unavailable
|
18
|
+
attr_accessor :unavailable_occurred_time
|
19
|
+
|
20
|
+
# @return [DateTime] Timestamp when the availabilityState changes to
|
21
|
+
# Available.
|
22
|
+
attr_accessor :resolved_time
|
23
|
+
|
24
|
+
# @return [String] Brief description of cause of the resource becoming
|
25
|
+
# unavailable.
|
26
|
+
attr_accessor :unavailability_summary
|
27
|
+
|
28
|
+
|
29
|
+
#
|
30
|
+
# Mapper for AvailabilityStatusPropertiesRecentlyResolvedState class as
|
31
|
+
# Ruby Hash.
|
32
|
+
# This will be used for serialization/deserialization.
|
33
|
+
#
|
34
|
+
def self.mapper()
|
35
|
+
{
|
36
|
+
client_side_validation: true,
|
37
|
+
required: false,
|
38
|
+
serialized_name: 'availabilityStatus_properties_recentlyResolvedState',
|
39
|
+
type: {
|
40
|
+
name: 'Composite',
|
41
|
+
class_name: 'AvailabilityStatusPropertiesRecentlyResolvedState',
|
42
|
+
model_properties: {
|
43
|
+
unavailable_occurred_time: {
|
44
|
+
client_side_validation: true,
|
45
|
+
required: false,
|
46
|
+
serialized_name: 'unavailableOccurredTime',
|
47
|
+
type: {
|
48
|
+
name: 'DateTime'
|
49
|
+
}
|
50
|
+
},
|
51
|
+
resolved_time: {
|
52
|
+
client_side_validation: true,
|
53
|
+
required: false,
|
54
|
+
serialized_name: 'resolvedTime',
|
55
|
+
type: {
|
56
|
+
name: 'DateTime'
|
57
|
+
}
|
58
|
+
},
|
59
|
+
unavailability_summary: {
|
60
|
+
client_side_validation: true,
|
61
|
+
required: false,
|
62
|
+
serialized_name: 'unavailabilitySummary',
|
63
|
+
type: {
|
64
|
+
name: 'String'
|
65
|
+
}
|
66
|
+
}
|
67
|
+
}
|
68
|
+
}
|
69
|
+
}
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|