azure_mgmt_monitor 0.16.0 → 0.16.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (135) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-04-01/generated/azure_mgmt_monitor.rb +14 -4
  3. data/lib/2015-04-01/generated/azure_mgmt_monitor/activity_logs.rb +313 -0
  4. data/lib/2015-04-01/generated/azure_mgmt_monitor/autoscale_settings.rb +1 -1
  5. data/lib/2015-04-01/generated/azure_mgmt_monitor/event_categories.rb +113 -0
  6. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/event_category_collection.rb +57 -0
  7. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/event_data.rb +380 -0
  8. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/event_data_collection.rb +99 -0
  9. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/event_level.rb +19 -0
  10. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/http_request_info.rb +79 -0
  11. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/localizable_string.rb +57 -0
  12. data/lib/2015-04-01/generated/azure_mgmt_monitor/models/sender_authorization.rb +71 -0
  13. data/lib/2015-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +12 -0
  14. data/lib/2015-04-01/generated/azure_mgmt_monitor/operations.rb +1 -1
  15. data/lib/2015-04-01/generated/azure_mgmt_monitor/tenant_activity_logs.rb +339 -0
  16. data/lib/2016-03-01/generated/azure_mgmt_monitor.rb +17 -10
  17. data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rule_incidents.rb +1 -1
  18. data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rules.rb +1 -1
  19. data/lib/2016-03-01/generated/azure_mgmt_monitor/log_profiles.rb +1 -1
  20. data/lib/2016-03-01/generated/azure_mgmt_monitor/metric_definitions.rb +133 -0
  21. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/aggregation_type.rb +20 -0
  22. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/localizable_string.rb +57 -0
  23. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/metric_availability.rb +60 -0
  24. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/metric_definition.rb +120 -0
  25. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/metric_definition_collection.rb +56 -0
  26. data/lib/2016-03-01/generated/azure_mgmt_monitor/models/unit.rb +21 -0
  27. data/lib/2016-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +8 -4
  28. data/lib/2016-09-01/generated/azure_mgmt_monitor.rb +9 -3
  29. data/lib/2016-09-01/generated/azure_mgmt_monitor/metrics.rb +172 -0
  30. data/lib/2016-09-01/generated/azure_mgmt_monitor/models/localizable_string.rb +57 -0
  31. data/lib/2016-09-01/generated/azure_mgmt_monitor/models/metric.rb +105 -0
  32. data/lib/2016-09-01/generated/azure_mgmt_monitor/models/metric_collection.rb +55 -0
  33. data/lib/2016-09-01/generated/azure_mgmt_monitor/models/metric_value.rb +104 -0
  34. data/lib/2016-09-01/generated/azure_mgmt_monitor/models/unit.rb +21 -0
  35. data/lib/2016-09-01/generated/azure_mgmt_monitor/monitor_client.rb +4 -0
  36. data/lib/2016-09-01/generated/azure_mgmt_monitor/service_diagnostic_settings_operations.rb +4 -4
  37. data/lib/2017-04-01/generated/azure_mgmt_monitor/action_groups.rb +1 -1
  38. data/lib/2017-04-01/generated/azure_mgmt_monitor/activity_log_alerts.rb +1 -1
  39. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +1 -1
  40. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor.rb +19 -5
  41. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_category_operations.rb +4 -3
  42. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_operations.rb +8 -5
  43. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/metric_definitions.rb +112 -0
  44. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/metrics.rb +190 -0
  45. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/aggregation_type.rb +20 -0
  46. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/localizable_string.rb +57 -0
  47. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metadata_value.rb +58 -0
  48. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric.rb +105 -0
  49. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_availability.rb +60 -0
  50. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_definition.rb +152 -0
  51. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_definition_collection.rb +56 -0
  52. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/metric_value.rb +104 -0
  53. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/response.rb +98 -0
  54. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/result_type.rb +16 -0
  55. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/time_series_element.rb +79 -0
  56. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/models/unit.rb +23 -0
  57. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +11 -3
  58. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/metric_baseline.rb +1 -1
  59. data/lib/2018-01-01/generated/azure_mgmt_monitor.rb +42 -0
  60. data/lib/2018-01-01/generated/azure_mgmt_monitor/metric_definitions.rb +118 -0
  61. data/lib/2018-01-01/generated/azure_mgmt_monitor/metrics.rb +199 -0
  62. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/aggregation_type.rb +20 -0
  63. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
  64. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/localizable_string.rb +57 -0
  65. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metadata_value.rb +58 -0
  66. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric.rb +105 -0
  67. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_availability.rb +60 -0
  68. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_definition.rb +184 -0
  69. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_definition_collection.rb +56 -0
  70. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/metric_value.rb +104 -0
  71. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/response.rb +120 -0
  72. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/result_type.rb +16 -0
  73. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/time_series_element.rb +79 -0
  74. data/lib/2018-01-01/generated/azure_mgmt_monitor/models/unit.rb +23 -0
  75. data/lib/2018-01-01/generated/azure_mgmt_monitor/module_definition.rb +9 -0
  76. data/lib/2018-01-01/generated/azure_mgmt_monitor/monitor_management_client.rb +131 -0
  77. data/lib/2018-03-01/generated/azure_mgmt_monitor.rb +57 -0
  78. data/lib/2018-03-01/generated/azure_mgmt_monitor/action_groups.rb +693 -0
  79. data/lib/2018-03-01/generated/azure_mgmt_monitor/metric_alerts.rb +582 -0
  80. data/lib/2018-03-01/generated/azure_mgmt_monitor/metric_alerts_status.rb +213 -0
  81. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/action_group_list.rb +67 -0
  82. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +68 -0
  83. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +304 -0
  84. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +102 -0
  85. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +58 -0
  86. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/azure_function_receiver.rb +80 -0
  87. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/email_receiver.rb +72 -0
  88. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/enable_request.rb +46 -0
  89. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
  90. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +94 -0
  91. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/logic_app_receiver.rb +69 -0
  92. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_action.rb +65 -0
  93. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_criteria.rb +65 -0
  94. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource.rb +226 -0
  95. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource_collection.rb +56 -0
  96. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_resource_patch.rb +194 -0
  97. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_single_resource_multiple_metric_criteria.rb +88 -0
  98. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_status.rb +81 -0
  99. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_status_collection.rb +56 -0
  100. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_alert_status_properties.rb +76 -0
  101. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_criteria.rb +122 -0
  102. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/metric_dimension.rb +77 -0
  103. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/receiver_status.rb +17 -0
  104. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/resource.rb +101 -0
  105. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/sms_receiver.rb +83 -0
  106. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/voice_receiver.rb +69 -0
  107. data/lib/2018-03-01/generated/azure_mgmt_monitor/models/webhook_receiver.rb +58 -0
  108. data/lib/2018-03-01/generated/azure_mgmt_monitor/module_definition.rb +9 -0
  109. data/lib/2018-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +138 -0
  110. data/lib/2018-04-16/generated/azure_mgmt_monitor.rb +46 -0
  111. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/action.rb +47 -0
  112. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/alert_severity.rb +19 -0
  113. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/alerting_action.rb +99 -0
  114. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/az_ns_action_group.rb +78 -0
  115. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/conditional_operator.rb +17 -0
  116. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/enabled.rb +16 -0
  117. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
  118. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_metric_trigger.rb +83 -0
  119. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_search_rule_resource.rb +174 -0
  120. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_search_rule_resource_collection.rb +56 -0
  121. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/log_search_rule_resource_patch.rb +67 -0
  122. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/metric_trigger_type.rb +16 -0
  123. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/provisioning_state.rb +18 -0
  124. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/query_type.rb +15 -0
  125. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/resource.rb +101 -0
  126. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/schedule.rb +59 -0
  127. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/source.rb +89 -0
  128. data/lib/2018-04-16/generated/azure_mgmt_monitor/models/trigger_condition.rb +72 -0
  129. data/lib/2018-04-16/generated/azure_mgmt_monitor/module_definition.rb +9 -0
  130. data/lib/2018-04-16/generated/azure_mgmt_monitor/monitor_client.rb +130 -0
  131. data/lib/2018-04-16/generated/azure_mgmt_monitor/scheduled_query_rules.rb +610 -0
  132. data/lib/azure_mgmt_monitor.rb +5 -2
  133. data/lib/profiles/latest/modules/monitor_profile_module.rb +119 -45
  134. data/lib/version.rb +1 -1
  135. metadata +113 -3
@@ -0,0 +1,57 @@
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::Monitor::Mgmt::V2015_04_01
7
+ module Models
8
+ #
9
+ # A collection of event categories. Currently possible values are:
10
+ # Administrative, Security, ServiceHealth, Alert, Recommendation, Policy.
11
+ #
12
+ class EventCategoryCollection
13
+
14
+ include MsRestAzure
15
+
16
+ # @return [Array<LocalizableString>] the list that includes the Azure
17
+ # event categories.
18
+ attr_accessor :value
19
+
20
+
21
+ #
22
+ # Mapper for EventCategoryCollection class as Ruby Hash.
23
+ # This will be used for serialization/deserialization.
24
+ #
25
+ def self.mapper()
26
+ {
27
+ client_side_validation: true,
28
+ required: false,
29
+ serialized_name: 'EventCategoryCollection',
30
+ type: {
31
+ name: 'Composite',
32
+ class_name: 'EventCategoryCollection',
33
+ model_properties: {
34
+ value: {
35
+ client_side_validation: true,
36
+ required: true,
37
+ serialized_name: 'value',
38
+ type: {
39
+ name: 'Sequence',
40
+ element: {
41
+ client_side_validation: true,
42
+ required: false,
43
+ serialized_name: 'LocalizableStringElementType',
44
+ type: {
45
+ name: 'Composite',
46
+ class_name: 'LocalizableString'
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+ }
53
+ }
54
+ end
55
+ end
56
+ end
57
+ end
@@ -0,0 +1,380 @@
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::Monitor::Mgmt::V2015_04_01
7
+ module Models
8
+ #
9
+ # The Azure event log entries are of type EventData
10
+ #
11
+ class EventData
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [SenderAuthorization]
16
+ attr_accessor :authorization
17
+
18
+ # @return [Hash{String => String}] key value pairs to identify ARM
19
+ # permissions.
20
+ attr_accessor :claims
21
+
22
+ # @return [String] the email address of the user who has performed the
23
+ # operation, the UPN claim or SPN claim based on availability.
24
+ attr_accessor :caller
25
+
26
+ # @return [String] the description of the event.
27
+ attr_accessor :description
28
+
29
+ # @return [String] the Id of this event as required by ARM for RBAC. It
30
+ # contains the EventDataID and a timestamp information.
31
+ attr_accessor :id
32
+
33
+ # @return [String] the event data Id. This is a unique identifier for an
34
+ # event.
35
+ attr_accessor :event_data_id
36
+
37
+ # @return [String] the correlation Id, usually a GUID in the string
38
+ # format. The correlation Id is shared among the events that belong to
39
+ # the same uber operation.
40
+ attr_accessor :correlation_id
41
+
42
+ # @return [LocalizableString] the event name. This value should not be
43
+ # confused with OperationName. For practical purposes, OperationName
44
+ # might be more appealing to end users.
45
+ attr_accessor :event_name
46
+
47
+ # @return [LocalizableString] the event category.
48
+ attr_accessor :category
49
+
50
+ # @return [HttpRequestInfo] the HTTP request info. Usually includes the
51
+ # 'clientRequestId', 'clientIpAddress' (IP address of the user who
52
+ # initiated the event) and 'method' (HTTP method e.g. PUT).
53
+ attr_accessor :http_request
54
+
55
+ # @return [EventLevel] the event level. Possible values include:
56
+ # 'Critical', 'Error', 'Warning', 'Informational', 'Verbose'
57
+ attr_accessor :level
58
+
59
+ # @return [String] the resource group name of the impacted resource.
60
+ attr_accessor :resource_group_name
61
+
62
+ # @return [LocalizableString] the resource provider name of the impacted
63
+ # resource.
64
+ attr_accessor :resource_provider_name
65
+
66
+ # @return [String] the resource uri that uniquely identifies the resource
67
+ # that caused this event.
68
+ attr_accessor :resource_id
69
+
70
+ # @return [LocalizableString] the resource type
71
+ attr_accessor :resource_type
72
+
73
+ # @return [String] It is usually a GUID shared among the events
74
+ # corresponding to single operation. This value should not be confused
75
+ # with EventName.
76
+ attr_accessor :operation_id
77
+
78
+ # @return [LocalizableString] the operation name.
79
+ attr_accessor :operation_name
80
+
81
+ # @return [Hash{String => String}] the set of <Key, Value> pairs (usually
82
+ # a Dictionary<String, String>) that includes details about the event.
83
+ attr_accessor :properties
84
+
85
+ # @return [LocalizableString] a string describing the status of the
86
+ # operation. Some typical values are: Started, In progress, Succeeded,
87
+ # Failed, Resolved.
88
+ attr_accessor :status
89
+
90
+ # @return [LocalizableString] the event sub status. Most of the time,
91
+ # when included, this captures the HTTP status code of the REST call.
92
+ # Common values are: OK (HTTP Status Code: 200), Created (HTTP Status
93
+ # Code: 201), Accepted (HTTP Status Code: 202), No Content (HTTP Status
94
+ # Code: 204), Bad Request(HTTP Status Code: 400), Not Found (HTTP Status
95
+ # Code: 404), Conflict (HTTP Status Code: 409), Internal Server Error
96
+ # (HTTP Status Code: 500), Service Unavailable (HTTP Status Code:503),
97
+ # Gateway Timeout (HTTP Status Code: 504)
98
+ attr_accessor :sub_status
99
+
100
+ # @return [DateTime] the timestamp of when the event was generated by the
101
+ # Azure service processing the request corresponding the event. It in ISO
102
+ # 8601 format.
103
+ attr_accessor :event_timestamp
104
+
105
+ # @return [DateTime] the timestamp of when the event became available for
106
+ # querying via this API. It is in ISO 8601 format. This value should not
107
+ # be confused eventTimestamp. As there might be a delay between the
108
+ # occurrence time of the event, and the time that the event is submitted
109
+ # to the Azure logging infrastructure.
110
+ attr_accessor :submission_timestamp
111
+
112
+ # @return [String] the Azure subscription Id usually a GUID.
113
+ attr_accessor :subscription_id
114
+
115
+ # @return [String] the Azure tenant Id
116
+ attr_accessor :tenant_id
117
+
118
+
119
+ #
120
+ # Mapper for EventData class as Ruby Hash.
121
+ # This will be used for serialization/deserialization.
122
+ #
123
+ def self.mapper()
124
+ {
125
+ client_side_validation: true,
126
+ required: false,
127
+ serialized_name: 'EventData',
128
+ type: {
129
+ name: 'Composite',
130
+ class_name: 'EventData',
131
+ model_properties: {
132
+ authorization: {
133
+ client_side_validation: true,
134
+ required: false,
135
+ read_only: true,
136
+ serialized_name: 'authorization',
137
+ type: {
138
+ name: 'Composite',
139
+ class_name: 'SenderAuthorization'
140
+ }
141
+ },
142
+ claims: {
143
+ client_side_validation: true,
144
+ required: false,
145
+ read_only: true,
146
+ serialized_name: 'claims',
147
+ type: {
148
+ name: 'Dictionary',
149
+ value: {
150
+ client_side_validation: true,
151
+ required: false,
152
+ serialized_name: 'StringElementType',
153
+ type: {
154
+ name: 'String'
155
+ }
156
+ }
157
+ }
158
+ },
159
+ caller: {
160
+ client_side_validation: true,
161
+ required: false,
162
+ read_only: true,
163
+ serialized_name: 'caller',
164
+ type: {
165
+ name: 'String'
166
+ }
167
+ },
168
+ description: {
169
+ client_side_validation: true,
170
+ required: false,
171
+ read_only: true,
172
+ serialized_name: 'description',
173
+ type: {
174
+ name: 'String'
175
+ }
176
+ },
177
+ id: {
178
+ client_side_validation: true,
179
+ required: false,
180
+ read_only: true,
181
+ serialized_name: 'id',
182
+ type: {
183
+ name: 'String'
184
+ }
185
+ },
186
+ event_data_id: {
187
+ client_side_validation: true,
188
+ required: false,
189
+ read_only: true,
190
+ serialized_name: 'eventDataId',
191
+ type: {
192
+ name: 'String'
193
+ }
194
+ },
195
+ correlation_id: {
196
+ client_side_validation: true,
197
+ required: false,
198
+ read_only: true,
199
+ serialized_name: 'correlationId',
200
+ type: {
201
+ name: 'String'
202
+ }
203
+ },
204
+ event_name: {
205
+ client_side_validation: true,
206
+ required: false,
207
+ read_only: true,
208
+ serialized_name: 'eventName',
209
+ type: {
210
+ name: 'Composite',
211
+ class_name: 'LocalizableString'
212
+ }
213
+ },
214
+ category: {
215
+ client_side_validation: true,
216
+ required: false,
217
+ read_only: true,
218
+ serialized_name: 'category',
219
+ type: {
220
+ name: 'Composite',
221
+ class_name: 'LocalizableString'
222
+ }
223
+ },
224
+ http_request: {
225
+ client_side_validation: true,
226
+ required: false,
227
+ read_only: true,
228
+ serialized_name: 'httpRequest',
229
+ type: {
230
+ name: 'Composite',
231
+ class_name: 'HttpRequestInfo'
232
+ }
233
+ },
234
+ level: {
235
+ client_side_validation: true,
236
+ required: false,
237
+ read_only: true,
238
+ serialized_name: 'level',
239
+ type: {
240
+ name: 'Enum',
241
+ module: 'EventLevel'
242
+ }
243
+ },
244
+ resource_group_name: {
245
+ client_side_validation: true,
246
+ required: false,
247
+ read_only: true,
248
+ serialized_name: 'resourceGroupName',
249
+ type: {
250
+ name: 'String'
251
+ }
252
+ },
253
+ resource_provider_name: {
254
+ client_side_validation: true,
255
+ required: false,
256
+ read_only: true,
257
+ serialized_name: 'resourceProviderName',
258
+ type: {
259
+ name: 'Composite',
260
+ class_name: 'LocalizableString'
261
+ }
262
+ },
263
+ resource_id: {
264
+ client_side_validation: true,
265
+ required: false,
266
+ read_only: true,
267
+ serialized_name: 'resourceId',
268
+ type: {
269
+ name: 'String'
270
+ }
271
+ },
272
+ resource_type: {
273
+ client_side_validation: true,
274
+ required: false,
275
+ read_only: true,
276
+ serialized_name: 'resourceType',
277
+ type: {
278
+ name: 'Composite',
279
+ class_name: 'LocalizableString'
280
+ }
281
+ },
282
+ operation_id: {
283
+ client_side_validation: true,
284
+ required: false,
285
+ read_only: true,
286
+ serialized_name: 'operationId',
287
+ type: {
288
+ name: 'String'
289
+ }
290
+ },
291
+ operation_name: {
292
+ client_side_validation: true,
293
+ required: false,
294
+ read_only: true,
295
+ serialized_name: 'operationName',
296
+ type: {
297
+ name: 'Composite',
298
+ class_name: 'LocalizableString'
299
+ }
300
+ },
301
+ properties: {
302
+ client_side_validation: true,
303
+ required: false,
304
+ read_only: true,
305
+ serialized_name: 'properties',
306
+ type: {
307
+ name: 'Dictionary',
308
+ value: {
309
+ client_side_validation: true,
310
+ required: false,
311
+ serialized_name: 'StringElementType',
312
+ type: {
313
+ name: 'String'
314
+ }
315
+ }
316
+ }
317
+ },
318
+ status: {
319
+ client_side_validation: true,
320
+ required: false,
321
+ read_only: true,
322
+ serialized_name: 'status',
323
+ type: {
324
+ name: 'Composite',
325
+ class_name: 'LocalizableString'
326
+ }
327
+ },
328
+ sub_status: {
329
+ client_side_validation: true,
330
+ required: false,
331
+ read_only: true,
332
+ serialized_name: 'subStatus',
333
+ type: {
334
+ name: 'Composite',
335
+ class_name: 'LocalizableString'
336
+ }
337
+ },
338
+ event_timestamp: {
339
+ client_side_validation: true,
340
+ required: false,
341
+ read_only: true,
342
+ serialized_name: 'eventTimestamp',
343
+ type: {
344
+ name: 'DateTime'
345
+ }
346
+ },
347
+ submission_timestamp: {
348
+ client_side_validation: true,
349
+ required: false,
350
+ read_only: true,
351
+ serialized_name: 'submissionTimestamp',
352
+ type: {
353
+ name: 'DateTime'
354
+ }
355
+ },
356
+ subscription_id: {
357
+ client_side_validation: true,
358
+ required: false,
359
+ read_only: true,
360
+ serialized_name: 'subscriptionId',
361
+ type: {
362
+ name: 'String'
363
+ }
364
+ },
365
+ tenant_id: {
366
+ client_side_validation: true,
367
+ required: false,
368
+ read_only: true,
369
+ serialized_name: 'tenantId',
370
+ type: {
371
+ name: 'String'
372
+ }
373
+ }
374
+ }
375
+ }
376
+ }
377
+ end
378
+ end
379
+ end
380
+ end
@@ -0,0 +1,99 @@
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::Monitor::Mgmt::V2015_04_01
7
+ module Models
8
+ #
9
+ # Represents collection of events.
10
+ #
11
+ class EventDataCollection
12
+
13
+ include MsRestAzure
14
+
15
+ include MsRest::JSONable
16
+ # @return [Array<EventData>] this list that includes the Azure audit
17
+ # logs.
18
+ attr_accessor :value
19
+
20
+ # @return [String] Provides the link to retrieve the next set of events.
21
+ attr_accessor :next_link
22
+
23
+ # return [Proc] with next page method call.
24
+ attr_accessor :next_method
25
+
26
+ #
27
+ # Gets the rest of the items for the request, enabling auto-pagination.
28
+ #
29
+ # @return [Array<EventData>] operation results.
30
+ #
31
+ def get_all_items
32
+ items = @value
33
+ page = self
34
+ while page.next_link != nil do
35
+ page = page.get_next_page
36
+ items.concat(page.value)
37
+ end
38
+ items
39
+ end
40
+
41
+ #
42
+ # Gets the next page of results.
43
+ #
44
+ # @return [EventDataCollection] with next page content.
45
+ #
46
+ def get_next_page
47
+ response = @next_method.call(@next_link).value! unless @next_method.nil?
48
+ unless response.nil?
49
+ @next_link = response.body.next_link
50
+ @value = response.body.value
51
+ self
52
+ end
53
+ end
54
+
55
+ #
56
+ # Mapper for EventDataCollection class as Ruby Hash.
57
+ # This will be used for serialization/deserialization.
58
+ #
59
+ def self.mapper()
60
+ {
61
+ client_side_validation: true,
62
+ required: false,
63
+ serialized_name: 'EventDataCollection',
64
+ type: {
65
+ name: 'Composite',
66
+ class_name: 'EventDataCollection',
67
+ model_properties: {
68
+ value: {
69
+ client_side_validation: true,
70
+ required: true,
71
+ serialized_name: 'value',
72
+ type: {
73
+ name: 'Sequence',
74
+ element: {
75
+ client_side_validation: true,
76
+ required: false,
77
+ serialized_name: 'EventDataElementType',
78
+ type: {
79
+ name: 'Composite',
80
+ class_name: 'EventData'
81
+ }
82
+ }
83
+ }
84
+ },
85
+ next_link: {
86
+ client_side_validation: true,
87
+ required: false,
88
+ serialized_name: 'nextLink',
89
+ type: {
90
+ name: 'String'
91
+ }
92
+ }
93
+ }
94
+ }
95
+ }
96
+ end
97
+ end
98
+ end
99
+ end