azure_mgmt_resource_health 0.17.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (146) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE.txt +21 -0
  3. data/lib/2015-01-01/generated/azure_mgmt_resource_health.rb +45 -0
  4. data/lib/2015-01-01/generated/azure_mgmt_resource_health/availability_statuses.rb +856 -0
  5. data/lib/2015-01-01/generated/azure_mgmt_resource_health/child_availability_statuses.rb +384 -0
  6. data/lib/2015-01-01/generated/azure_mgmt_resource_health/child_resources.rb +271 -0
  7. data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/availability_state_values.rb +17 -0
  8. data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/availability_status.rb +93 -0
  9. data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/availability_status_list_result.rb +100 -0
  10. data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/availability_status_properties.rb +212 -0
  11. data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/availability_status_properties_recently_resolved_state.rb +73 -0
  12. data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/error_response.rb +71 -0
  13. data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/operation.rb +58 -0
  14. data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/operation_display.rb +79 -0
  15. data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/operation_list_result.rb +56 -0
  16. data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/reason_chronicity_types.rb +16 -0
  17. data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/recommended_action.rb +70 -0
  18. data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/service_impacting_event.rb +95 -0
  19. data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/service_impacting_event_incident_properties.rb +79 -0
  20. data/lib/2015-01-01/generated/azure_mgmt_resource_health/models/service_impacting_event_status.rb +46 -0
  21. data/lib/2015-01-01/generated/azure_mgmt_resource_health/module_definition.rb +9 -0
  22. data/lib/2015-01-01/generated/azure_mgmt_resource_health/operations.rb +109 -0
  23. data/lib/2015-01-01/generated/azure_mgmt_resource_health/resource_health_client.rb +145 -0
  24. data/lib/2017-07-01/generated/azure_mgmt_resource_health.rb +45 -0
  25. data/lib/2017-07-01/generated/azure_mgmt_resource_health/availability_statuses.rb +863 -0
  26. data/lib/2017-07-01/generated/azure_mgmt_resource_health/child_availability_statuses.rb +384 -0
  27. data/lib/2017-07-01/generated/azure_mgmt_resource_health/child_resources.rb +271 -0
  28. data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/availability_state_values.rb +17 -0
  29. data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/availability_status.rb +93 -0
  30. data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/availability_status_list_result.rb +100 -0
  31. data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/availability_status_properties.rb +253 -0
  32. data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/availability_status_properties_recently_resolved_state.rb +73 -0
  33. data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/error_response.rb +71 -0
  34. data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/operation.rb +58 -0
  35. data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/operation_display.rb +79 -0
  36. data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/operation_list_result.rb +56 -0
  37. data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/reason_chronicity_types.rb +16 -0
  38. data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/recommended_action.rb +70 -0
  39. data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/service_impacting_event.rb +95 -0
  40. data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/service_impacting_event_incident_properties.rb +79 -0
  41. data/lib/2017-07-01/generated/azure_mgmt_resource_health/models/service_impacting_event_status.rb +46 -0
  42. data/lib/2017-07-01/generated/azure_mgmt_resource_health/module_definition.rb +9 -0
  43. data/lib/2017-07-01/generated/azure_mgmt_resource_health/operations.rb +109 -0
  44. data/lib/2017-07-01/generated/azure_mgmt_resource_health/resource_health_client.rb +145 -0
  45. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health.rb +74 -0
  46. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/availability_statuses.rb +842 -0
  47. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/events_operations.rb +463 -0
  48. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/impacted_resources.rb +240 -0
  49. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/metadata.rb +318 -0
  50. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/availability_state_values.rb +18 -0
  51. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/availability_status.rb +93 -0
  52. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/availability_status_list_result.rb +100 -0
  53. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/availability_status_properties.rb +251 -0
  54. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/availability_status_properties_recently_resolved.rb +73 -0
  55. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/azure_entity_resource.rb +75 -0
  56. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/error_response.rb +71 -0
  57. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/event.rb +336 -0
  58. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/event_level_values.rb +17 -0
  59. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/event_properties_article.rb +46 -0
  60. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/event_properties_recommended_actions.rb +79 -0
  61. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/event_properties_recommended_actions_actions_item.rb +59 -0
  62. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/event_source_values.rb +16 -0
  63. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/event_status_values.rb +16 -0
  64. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/event_type_values.rb +18 -0
  65. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/events.rb +99 -0
  66. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/faq.rb +68 -0
  67. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/impact.rb +67 -0
  68. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/impacted_resource_list_result.rb +100 -0
  69. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/impacted_resource_status.rb +123 -0
  70. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/impacted_service_region.rb +110 -0
  71. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/level_values.rb +16 -0
  72. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/link.rb +95 -0
  73. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/link_display_text.rb +57 -0
  74. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/link_type_values.rb +16 -0
  75. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/metadata_entity.rb +134 -0
  76. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/metadata_entity_list_result.rb +98 -0
  77. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/metadata_supported_value_detail.rb +57 -0
  78. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/operation.rb +58 -0
  79. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/operation_display.rb +79 -0
  80. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/operation_list_result.rb +56 -0
  81. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/proxy_resource.rb +63 -0
  82. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/reason_chronicity_types.rb +16 -0
  83. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/reason_type_values.rb +17 -0
  84. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/recommended_action.rb +70 -0
  85. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/resource.rb +83 -0
  86. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/scenario.rb +15 -0
  87. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/service_impacting_event.rb +95 -0
  88. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/service_impacting_event_incident_properties.rb +79 -0
  89. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/service_impacting_event_status.rb +46 -0
  90. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/tracked_resource.rb +92 -0
  91. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/models/update.rb +59 -0
  92. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/module_definition.rb +9 -0
  93. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/operations.rb +109 -0
  94. data/lib/2018-07-01-preview/generated/azure_mgmt_resource_health/resource_health_client.rb +152 -0
  95. data/lib/2018-07-01/generated/azure_mgmt_resource_health.rb +69 -0
  96. data/lib/2018-07-01/generated/azure_mgmt_resource_health/availability_statuses.rb +842 -0
  97. data/lib/2018-07-01/generated/azure_mgmt_resource_health/events_operations.rb +463 -0
  98. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/availability_state_values.rb +18 -0
  99. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/availability_status.rb +93 -0
  100. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/availability_status_list_result.rb +100 -0
  101. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/availability_status_properties.rb +251 -0
  102. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/availability_status_properties_recently_resolved.rb +73 -0
  103. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/azure_entity_resource.rb +75 -0
  104. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/error_response.rb +71 -0
  105. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/event.rb +336 -0
  106. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/event_level_values.rb +17 -0
  107. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/event_properties_article.rb +46 -0
  108. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/event_properties_recommended_actions.rb +79 -0
  109. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/event_properties_recommended_actions_actions_item.rb +59 -0
  110. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/event_source_values.rb +16 -0
  111. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/event_status_values.rb +16 -0
  112. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/event_type_values.rb +18 -0
  113. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/events.rb +99 -0
  114. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/faq.rb +68 -0
  115. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/impact.rb +67 -0
  116. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/impacted_service_region.rb +110 -0
  117. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/level_values.rb +16 -0
  118. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/link.rb +95 -0
  119. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/link_display_text.rb +57 -0
  120. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/link_type_values.rb +16 -0
  121. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/metadata_entity.rb +134 -0
  122. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/metadata_entity_list_result.rb +66 -0
  123. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/metadata_supported_value_detail.rb +57 -0
  124. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/operation.rb +58 -0
  125. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/operation_display.rb +79 -0
  126. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/operation_list_result.rb +56 -0
  127. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/proxy_resource.rb +63 -0
  128. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/reason_chronicity_types.rb +16 -0
  129. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/recommended_action.rb +70 -0
  130. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/resource.rb +83 -0
  131. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/scenario.rb +15 -0
  132. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/service_impacting_event.rb +95 -0
  133. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/service_impacting_event_incident_properties.rb +79 -0
  134. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/service_impacting_event_status.rb +46 -0
  135. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/tracked_resource.rb +92 -0
  136. data/lib/2018-07-01/generated/azure_mgmt_resource_health/models/update.rb +59 -0
  137. data/lib/2018-07-01/generated/azure_mgmt_resource_health/module_definition.rb +9 -0
  138. data/lib/2018-07-01/generated/azure_mgmt_resource_health/operations.rb +109 -0
  139. data/lib/2018-07-01/generated/azure_mgmt_resource_health/resource_health_client.rb +147 -0
  140. data/lib/azure_mgmt_resource_health.rb +9 -0
  141. data/lib/module_definition.rb +7 -0
  142. data/lib/profiles/latest/modules/resourcehealth_profile_module.rb +123 -0
  143. data/lib/profiles/latest/resourcehealth_latest_profile_client.rb +40 -0
  144. data/lib/profiles/latest/resourcehealth_module_definition.rb +8 -0
  145. data/lib/version.rb +7 -0
  146. 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::V2017_07_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::V2017_07_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
@@ -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::V2017_07_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
@@ -0,0 +1,253 @@
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::V2017_07_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
+ # When it is null, this availabilityStatus object represents an
17
+ # availability impacting event. Possible values include: 'Available',
18
+ # 'Unavailable', 'Unknown'
19
+ attr_accessor :availability_state
20
+
21
+ # @return [String] Summary description of the availability status.
22
+ attr_accessor :summary
23
+
24
+ # @return [String] Details of the availability status.
25
+ attr_accessor :detailed_status
26
+
27
+ # @return [String] When the resource's availabilityState is Unavailable,
28
+ # it describes where the health impacting event was originated. Examples
29
+ # are planned, unplanned, user initiated or an outage etc.
30
+ attr_accessor :reason_type
31
+
32
+ # @return [DateTime] When the resource's availabilityState is
33
+ # Unavailable, it provides the Timestamp for when the health impacting
34
+ # event was received.
35
+ attr_accessor :root_cause_attribution_time
36
+
37
+ # @return [String] In case of an availability impacting event, it
38
+ # describes when the health impacting event was originated. Examples are
39
+ # Lifecycle, Downtime, Fault Analysis etc.
40
+ attr_accessor :health_event_type
41
+
42
+ # @return [String] In case of an availability impacting event, it
43
+ # describes where the health impacting event was originated. Examples are
44
+ # PlatformInitiated, UserInitiated etc.
45
+ attr_accessor :health_event_cause
46
+
47
+ # @return [String] In case of an availability impacting event, it
48
+ # describes the category of a PlatformInitiated health impacting event.
49
+ # Examples are Planned, Unplanned etc.
50
+ attr_accessor :health_event_category
51
+
52
+ # @return [String] It is a unique Id that identifies the event
53
+ attr_accessor :health_event_id
54
+
55
+ # @return [DateTime] When the resource's availabilityState is Unavailable
56
+ # and the reasonType is not User Initiated, it provides the date and time
57
+ # for when the issue is expected to be resolved.
58
+ attr_accessor :resolution_eta
59
+
60
+ # @return [DateTime] Timestamp for when last change in health status
61
+ # occurred.
62
+ attr_accessor :occured_time
63
+
64
+ # @return [ReasonChronicityTypes] Chronicity of the availability
65
+ # transition. Possible values include: 'Transient', 'Persistent'
66
+ attr_accessor :reason_chronicity
67
+
68
+ # @return [DateTime] Timestamp for when the health was last checked.
69
+ attr_accessor :reported_time
70
+
71
+ # @return [AvailabilityStatusPropertiesRecentlyResolvedState] An
72
+ # annotation describing a change in the availabilityState to Available
73
+ # from Unavailable with a reasonType of type Unplanned
74
+ attr_accessor :recently_resolved_state
75
+
76
+ # @return [Array<RecommendedAction>] Lists actions the user can take
77
+ # based on the current availabilityState of the resource.
78
+ attr_accessor :recommended_actions
79
+
80
+ # @return [Array<ServiceImpactingEvent>] Lists the service impacting
81
+ # events that may be affecting the health of the resource.
82
+ attr_accessor :service_impacting_events
83
+
84
+
85
+ #
86
+ # Mapper for AvailabilityStatusProperties class as Ruby Hash.
87
+ # This will be used for serialization/deserialization.
88
+ #
89
+ def self.mapper()
90
+ {
91
+ client_side_validation: true,
92
+ required: false,
93
+ serialized_name: 'availabilityStatus_properties',
94
+ type: {
95
+ name: 'Composite',
96
+ class_name: 'AvailabilityStatusProperties',
97
+ model_properties: {
98
+ availability_state: {
99
+ client_side_validation: true,
100
+ required: false,
101
+ serialized_name: 'availabilityState',
102
+ type: {
103
+ name: 'Enum',
104
+ module: 'AvailabilityStateValues'
105
+ }
106
+ },
107
+ summary: {
108
+ client_side_validation: true,
109
+ required: false,
110
+ serialized_name: 'summary',
111
+ type: {
112
+ name: 'String'
113
+ }
114
+ },
115
+ detailed_status: {
116
+ client_side_validation: true,
117
+ required: false,
118
+ serialized_name: 'detailedStatus',
119
+ type: {
120
+ name: 'String'
121
+ }
122
+ },
123
+ reason_type: {
124
+ client_side_validation: true,
125
+ required: false,
126
+ serialized_name: 'reasonType',
127
+ type: {
128
+ name: 'String'
129
+ }
130
+ },
131
+ root_cause_attribution_time: {
132
+ client_side_validation: true,
133
+ required: false,
134
+ serialized_name: 'rootCauseAttributionTime',
135
+ type: {
136
+ name: 'DateTime'
137
+ }
138
+ },
139
+ health_event_type: {
140
+ client_side_validation: true,
141
+ required: false,
142
+ serialized_name: 'healthEventType',
143
+ type: {
144
+ name: 'String'
145
+ }
146
+ },
147
+ health_event_cause: {
148
+ client_side_validation: true,
149
+ required: false,
150
+ serialized_name: 'healthEventCause',
151
+ type: {
152
+ name: 'String'
153
+ }
154
+ },
155
+ health_event_category: {
156
+ client_side_validation: true,
157
+ required: false,
158
+ serialized_name: 'healthEventCategory',
159
+ type: {
160
+ name: 'String'
161
+ }
162
+ },
163
+ health_event_id: {
164
+ client_side_validation: true,
165
+ required: false,
166
+ serialized_name: 'healthEventId',
167
+ type: {
168
+ name: 'String'
169
+ }
170
+ },
171
+ resolution_eta: {
172
+ client_side_validation: true,
173
+ required: false,
174
+ serialized_name: 'resolutionETA',
175
+ type: {
176
+ name: 'DateTime'
177
+ }
178
+ },
179
+ occured_time: {
180
+ client_side_validation: true,
181
+ required: false,
182
+ serialized_name: 'occuredTime',
183
+ type: {
184
+ name: 'DateTime'
185
+ }
186
+ },
187
+ reason_chronicity: {
188
+ client_side_validation: true,
189
+ required: false,
190
+ serialized_name: 'reasonChronicity',
191
+ type: {
192
+ name: 'Enum',
193
+ module: 'ReasonChronicityTypes'
194
+ }
195
+ },
196
+ reported_time: {
197
+ client_side_validation: true,
198
+ required: false,
199
+ serialized_name: 'reportedTime',
200
+ type: {
201
+ name: 'DateTime'
202
+ }
203
+ },
204
+ recently_resolved_state: {
205
+ client_side_validation: true,
206
+ required: false,
207
+ serialized_name: 'recentlyResolvedState',
208
+ type: {
209
+ name: 'Composite',
210
+ class_name: 'AvailabilityStatusPropertiesRecentlyResolvedState'
211
+ }
212
+ },
213
+ recommended_actions: {
214
+ client_side_validation: true,
215
+ required: false,
216
+ serialized_name: 'recommendedActions',
217
+ type: {
218
+ name: 'Sequence',
219
+ element: {
220
+ client_side_validation: true,
221
+ required: false,
222
+ serialized_name: 'RecommendedActionElementType',
223
+ type: {
224
+ name: 'Composite',
225
+ class_name: 'RecommendedAction'
226
+ }
227
+ }
228
+ }
229
+ },
230
+ service_impacting_events: {
231
+ client_side_validation: true,
232
+ required: false,
233
+ serialized_name: 'serviceImpactingEvents',
234
+ type: {
235
+ name: 'Sequence',
236
+ element: {
237
+ client_side_validation: true,
238
+ required: false,
239
+ serialized_name: 'ServiceImpactingEventElementType',
240
+ type: {
241
+ name: 'Composite',
242
+ class_name: 'ServiceImpactingEvent'
243
+ }
244
+ }
245
+ }
246
+ }
247
+ }
248
+ }
249
+ }
250
+ end
251
+ end
252
+ end
253
+ end