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,18 @@
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::V2018_07_01
7
+ module Models
8
+ #
9
+ # Defines values for AvailabilityStateValues
10
+ #
11
+ module AvailabilityStateValues
12
+ Available = "Available"
13
+ Unavailable = "Unavailable"
14
+ Degraded = "Degraded"
15
+ Unknown = "Unknown"
16
+ end
17
+ end
18
+ 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::V2018_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::V2018_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,251 @@
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::V2018_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', 'Degraded', '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 :occurred_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 [AvailabilityStatusPropertiesRecentlyResolved] An annotation
72
+ # describing a change in the availabilityState to Available from
73
+ # Unavailable with a reasonType of type Unplanned
74
+ attr_accessor :recently_resolved
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: 'String'
104
+ }
105
+ },
106
+ summary: {
107
+ client_side_validation: true,
108
+ required: false,
109
+ serialized_name: 'summary',
110
+ type: {
111
+ name: 'String'
112
+ }
113
+ },
114
+ detailed_status: {
115
+ client_side_validation: true,
116
+ required: false,
117
+ serialized_name: 'detailedStatus',
118
+ type: {
119
+ name: 'String'
120
+ }
121
+ },
122
+ reason_type: {
123
+ client_side_validation: true,
124
+ required: false,
125
+ serialized_name: 'reasonType',
126
+ type: {
127
+ name: 'String'
128
+ }
129
+ },
130
+ root_cause_attribution_time: {
131
+ client_side_validation: true,
132
+ required: false,
133
+ serialized_name: 'rootCauseAttributionTime',
134
+ type: {
135
+ name: 'DateTime'
136
+ }
137
+ },
138
+ health_event_type: {
139
+ client_side_validation: true,
140
+ required: false,
141
+ serialized_name: 'healthEventType',
142
+ type: {
143
+ name: 'String'
144
+ }
145
+ },
146
+ health_event_cause: {
147
+ client_side_validation: true,
148
+ required: false,
149
+ serialized_name: 'healthEventCause',
150
+ type: {
151
+ name: 'String'
152
+ }
153
+ },
154
+ health_event_category: {
155
+ client_side_validation: true,
156
+ required: false,
157
+ serialized_name: 'healthEventCategory',
158
+ type: {
159
+ name: 'String'
160
+ }
161
+ },
162
+ health_event_id: {
163
+ client_side_validation: true,
164
+ required: false,
165
+ serialized_name: 'healthEventId',
166
+ type: {
167
+ name: 'String'
168
+ }
169
+ },
170
+ resolution_eta: {
171
+ client_side_validation: true,
172
+ required: false,
173
+ serialized_name: 'resolutionETA',
174
+ type: {
175
+ name: 'DateTime'
176
+ }
177
+ },
178
+ occurred_time: {
179
+ client_side_validation: true,
180
+ required: false,
181
+ serialized_name: 'occurredTime',
182
+ type: {
183
+ name: 'DateTime'
184
+ }
185
+ },
186
+ reason_chronicity: {
187
+ client_side_validation: true,
188
+ required: false,
189
+ serialized_name: 'reasonChronicity',
190
+ type: {
191
+ name: 'String'
192
+ }
193
+ },
194
+ reported_time: {
195
+ client_side_validation: true,
196
+ required: false,
197
+ serialized_name: 'reportedTime',
198
+ type: {
199
+ name: 'DateTime'
200
+ }
201
+ },
202
+ recently_resolved: {
203
+ client_side_validation: true,
204
+ required: false,
205
+ serialized_name: 'recentlyResolved',
206
+ type: {
207
+ name: 'Composite',
208
+ class_name: 'AvailabilityStatusPropertiesRecentlyResolved'
209
+ }
210
+ },
211
+ recommended_actions: {
212
+ client_side_validation: true,
213
+ required: false,
214
+ serialized_name: 'recommendedActions',
215
+ type: {
216
+ name: 'Sequence',
217
+ element: {
218
+ client_side_validation: true,
219
+ required: false,
220
+ serialized_name: 'RecommendedActionElementType',
221
+ type: {
222
+ name: 'Composite',
223
+ class_name: 'RecommendedAction'
224
+ }
225
+ }
226
+ }
227
+ },
228
+ service_impacting_events: {
229
+ client_side_validation: true,
230
+ required: false,
231
+ serialized_name: 'serviceImpactingEvents',
232
+ type: {
233
+ name: 'Sequence',
234
+ element: {
235
+ client_side_validation: true,
236
+ required: false,
237
+ serialized_name: 'ServiceImpactingEventElementType',
238
+ type: {
239
+ name: 'Composite',
240
+ class_name: 'ServiceImpactingEvent'
241
+ }
242
+ }
243
+ }
244
+ }
245
+ }
246
+ }
247
+ }
248
+ end
249
+ end
250
+ end
251
+ end