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::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
@@ -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
@@ -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