azure_mgmt_monitor 0.15.2 → 0.16.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-04-01/generated/azure_mgmt_monitor/autoscale_settings.rb +39 -37
  3. data/lib/2015-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +4 -1
  4. data/lib/2015-04-01/generated/azure_mgmt_monitor/operations.rb +6 -5
  5. data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rule_incidents.rb +12 -10
  6. data/lib/2016-03-01/generated/azure_mgmt_monitor/alert_rules.rb +30 -29
  7. data/lib/2016-03-01/generated/azure_mgmt_monitor/log_profiles.rb +30 -29
  8. data/lib/2016-03-01/generated/azure_mgmt_monitor/monitor_management_client.rb +4 -1
  9. data/lib/2016-09-01/generated/azure_mgmt_monitor/monitor_client.rb +4 -1
  10. data/lib/2016-09-01/generated/azure_mgmt_monitor/service_diagnostic_settings_operations.rb +18 -19
  11. data/lib/2017-04-01/generated/azure_mgmt_monitor.rb +10 -6
  12. data/lib/2017-04-01/generated/azure_mgmt_monitor/action_groups.rb +145 -34
  13. data/lib/2017-04-01/generated/azure_mgmt_monitor/activity_log_alerts.rb +36 -34
  14. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/action_group_patch_body.rb +68 -0
  15. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/action_group_resource.rb +63 -0
  16. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/automation_runbook_receiver.rb +102 -0
  17. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/azure_app_push_receiver.rb +58 -0
  18. data/lib/2017-04-01/generated/azure_mgmt_monitor/models/itsm_receiver.rb +94 -0
  19. data/lib/2017-04-01/generated/azure_mgmt_monitor/monitor_management_client.rb +4 -1
  20. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor.rb +1 -1
  21. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_category_operations.rb +13 -11
  22. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/diagnostic_settings_operations.rb +25 -23
  23. data/lib/2017-05-01-preview/generated/azure_mgmt_monitor/{monitor_client.rb → monitor_management_client.rb} +6 -3
  24. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor.rb +37 -0
  25. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/metric_baseline.rb +275 -0
  26. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline.rb +86 -0
  27. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline_metadata_value.rb +58 -0
  28. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/baseline_response.rb +171 -0
  29. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/calculate_baseline_response.rb +85 -0
  30. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/error_response.rb +57 -0
  31. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/localizable_string.rb +57 -0
  32. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/result_type.rb +16 -0
  33. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/sensitivity.rb +17 -0
  34. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/models/time_series_information.rb +93 -0
  35. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/module_definition.rb +9 -0
  36. data/lib/2017-11-01-preview/generated/azure_mgmt_monitor/monitor_management_client.rb +127 -0
  37. data/lib/azure_mgmt_monitor.rb +1 -0
  38. data/lib/profiles/latest/modules/monitor_profile_module.rb +329 -243
  39. data/lib/profiles/latest/monitor_latest_profile_client.rb +28 -9
  40. data/lib/profiles/latest/monitor_module_definition.rb +0 -1
  41. data/lib/version.rb +1 -1
  42. metadata +21 -4
@@ -33,8 +33,8 @@ module Azure::Monitor::Mgmt::V2017_04_01
33
33
  #
34
34
  # @return [ActivityLogAlertResource] operation results.
35
35
  #
36
- def create_or_update(resource_group_name, activity_log_alert_name, activity_log_alert, custom_headers = nil)
37
- response = create_or_update_async(resource_group_name, activity_log_alert_name, activity_log_alert, custom_headers).value!
36
+ def create_or_update(resource_group_name, activity_log_alert_name, activity_log_alert, custom_headers:nil)
37
+ response = create_or_update_async(resource_group_name, activity_log_alert_name, activity_log_alert, custom_headers:custom_headers).value!
38
38
  response.body unless response.nil?
39
39
  end
40
40
 
@@ -50,8 +50,8 @@ module Azure::Monitor::Mgmt::V2017_04_01
50
50
  #
51
51
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
52
  #
53
- def create_or_update_with_http_info(resource_group_name, activity_log_alert_name, activity_log_alert, custom_headers = nil)
54
- create_or_update_async(resource_group_name, activity_log_alert_name, activity_log_alert, custom_headers).value!
53
+ def create_or_update_with_http_info(resource_group_name, activity_log_alert_name, activity_log_alert, custom_headers:nil)
54
+ create_or_update_async(resource_group_name, activity_log_alert_name, activity_log_alert, custom_headers:custom_headers).value!
55
55
  end
56
56
 
57
57
  #
@@ -66,7 +66,7 @@ module Azure::Monitor::Mgmt::V2017_04_01
66
66
  #
67
67
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
68
  #
69
- def create_or_update_async(resource_group_name, activity_log_alert_name, activity_log_alert, custom_headers = nil)
69
+ def create_or_update_async(resource_group_name, activity_log_alert_name, activity_log_alert, custom_headers:nil)
70
70
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
71
71
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
72
72
  fail ArgumentError, 'activity_log_alert_name is nil' if activity_log_alert_name.nil?
@@ -75,13 +75,12 @@ module Azure::Monitor::Mgmt::V2017_04_01
75
75
 
76
76
 
77
77
  request_headers = {}
78
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
78
79
 
79
80
  # Set Headers
80
81
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
81
82
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
82
83
 
83
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
84
-
85
84
  # Serialize Request
86
85
  request_mapper = Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertResource.mapper()
87
86
  request_content = @client.serialize(request_mapper, activity_log_alert)
@@ -148,8 +147,8 @@ module Azure::Monitor::Mgmt::V2017_04_01
148
147
  #
149
148
  # @return [ActivityLogAlertResource] operation results.
150
149
  #
151
- def get(resource_group_name, activity_log_alert_name, custom_headers = nil)
152
- response = get_async(resource_group_name, activity_log_alert_name, custom_headers).value!
150
+ def get(resource_group_name, activity_log_alert_name, custom_headers:nil)
151
+ response = get_async(resource_group_name, activity_log_alert_name, custom_headers:custom_headers).value!
153
152
  response.body unless response.nil?
154
153
  end
155
154
 
@@ -163,8 +162,8 @@ module Azure::Monitor::Mgmt::V2017_04_01
163
162
  #
164
163
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
165
164
  #
166
- def get_with_http_info(resource_group_name, activity_log_alert_name, custom_headers = nil)
167
- get_async(resource_group_name, activity_log_alert_name, custom_headers).value!
165
+ def get_with_http_info(resource_group_name, activity_log_alert_name, custom_headers:nil)
166
+ get_async(resource_group_name, activity_log_alert_name, custom_headers:custom_headers).value!
168
167
  end
169
168
 
170
169
  #
@@ -177,7 +176,7 @@ module Azure::Monitor::Mgmt::V2017_04_01
177
176
  #
178
177
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
179
178
  #
180
- def get_async(resource_group_name, activity_log_alert_name, custom_headers = nil)
179
+ def get_async(resource_group_name, activity_log_alert_name, custom_headers:nil)
181
180
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
182
181
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
183
182
  fail ArgumentError, 'activity_log_alert_name is nil' if activity_log_alert_name.nil?
@@ -185,6 +184,7 @@ module Azure::Monitor::Mgmt::V2017_04_01
185
184
 
186
185
 
187
186
  request_headers = {}
187
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
188
188
 
189
189
  # Set Headers
190
190
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -238,8 +238,8 @@ module Azure::Monitor::Mgmt::V2017_04_01
238
238
  # will be added to the HTTP request.
239
239
  #
240
240
  #
241
- def delete(resource_group_name, activity_log_alert_name, custom_headers = nil)
242
- response = delete_async(resource_group_name, activity_log_alert_name, custom_headers).value!
241
+ def delete(resource_group_name, activity_log_alert_name, custom_headers:nil)
242
+ response = delete_async(resource_group_name, activity_log_alert_name, custom_headers:custom_headers).value!
243
243
  nil
244
244
  end
245
245
 
@@ -253,8 +253,8 @@ module Azure::Monitor::Mgmt::V2017_04_01
253
253
  #
254
254
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
255
255
  #
256
- def delete_with_http_info(resource_group_name, activity_log_alert_name, custom_headers = nil)
257
- delete_async(resource_group_name, activity_log_alert_name, custom_headers).value!
256
+ def delete_with_http_info(resource_group_name, activity_log_alert_name, custom_headers:nil)
257
+ delete_async(resource_group_name, activity_log_alert_name, custom_headers:custom_headers).value!
258
258
  end
259
259
 
260
260
  #
@@ -267,7 +267,7 @@ module Azure::Monitor::Mgmt::V2017_04_01
267
267
  #
268
268
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
269
269
  #
270
- def delete_async(resource_group_name, activity_log_alert_name, custom_headers = nil)
270
+ def delete_async(resource_group_name, activity_log_alert_name, custom_headers:nil)
271
271
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
272
272
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
273
273
  fail ArgumentError, 'activity_log_alert_name is nil' if activity_log_alert_name.nil?
@@ -275,6 +275,7 @@ module Azure::Monitor::Mgmt::V2017_04_01
275
275
 
276
276
 
277
277
  request_headers = {}
278
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
278
279
 
279
280
  # Set Headers
280
281
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -322,8 +323,8 @@ module Azure::Monitor::Mgmt::V2017_04_01
322
323
  #
323
324
  # @return [ActivityLogAlertResource] operation results.
324
325
  #
325
- def update(resource_group_name, activity_log_alert_name, activity_log_alert_patch, custom_headers = nil)
326
- response = update_async(resource_group_name, activity_log_alert_name, activity_log_alert_patch, custom_headers).value!
326
+ def update(resource_group_name, activity_log_alert_name, activity_log_alert_patch, custom_headers:nil)
327
+ response = update_async(resource_group_name, activity_log_alert_name, activity_log_alert_patch, custom_headers:custom_headers).value!
327
328
  response.body unless response.nil?
328
329
  end
329
330
 
@@ -340,8 +341,8 @@ module Azure::Monitor::Mgmt::V2017_04_01
340
341
  #
341
342
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
342
343
  #
343
- def update_with_http_info(resource_group_name, activity_log_alert_name, activity_log_alert_patch, custom_headers = nil)
344
- update_async(resource_group_name, activity_log_alert_name, activity_log_alert_patch, custom_headers).value!
344
+ def update_with_http_info(resource_group_name, activity_log_alert_name, activity_log_alert_patch, custom_headers:nil)
345
+ update_async(resource_group_name, activity_log_alert_name, activity_log_alert_patch, custom_headers:custom_headers).value!
345
346
  end
346
347
 
347
348
  #
@@ -357,7 +358,7 @@ module Azure::Monitor::Mgmt::V2017_04_01
357
358
  #
358
359
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
359
360
  #
360
- def update_async(resource_group_name, activity_log_alert_name, activity_log_alert_patch, custom_headers = nil)
361
+ def update_async(resource_group_name, activity_log_alert_name, activity_log_alert_patch, custom_headers:nil)
361
362
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
362
363
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
363
364
  fail ArgumentError, 'activity_log_alert_name is nil' if activity_log_alert_name.nil?
@@ -366,13 +367,12 @@ module Azure::Monitor::Mgmt::V2017_04_01
366
367
 
367
368
 
368
369
  request_headers = {}
370
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
369
371
 
370
372
  # Set Headers
371
373
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
372
374
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
373
375
 
374
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
375
-
376
376
  # Serialize Request
377
377
  request_mapper = Azure::Monitor::Mgmt::V2017_04_01::Models::ActivityLogAlertPatchBody.mapper()
378
378
  request_content = @client.serialize(request_mapper, activity_log_alert_patch)
@@ -427,8 +427,8 @@ module Azure::Monitor::Mgmt::V2017_04_01
427
427
  #
428
428
  # @return [ActivityLogAlertList] operation results.
429
429
  #
430
- def list_by_subscription_id(custom_headers = nil)
431
- response = list_by_subscription_id_async(custom_headers).value!
430
+ def list_by_subscription_id(custom_headers:nil)
431
+ response = list_by_subscription_id_async(custom_headers:custom_headers).value!
432
432
  response.body unless response.nil?
433
433
  end
434
434
 
@@ -440,8 +440,8 @@ module Azure::Monitor::Mgmt::V2017_04_01
440
440
  #
441
441
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
442
442
  #
443
- def list_by_subscription_id_with_http_info(custom_headers = nil)
444
- list_by_subscription_id_async(custom_headers).value!
443
+ def list_by_subscription_id_with_http_info(custom_headers:nil)
444
+ list_by_subscription_id_async(custom_headers:custom_headers).value!
445
445
  end
446
446
 
447
447
  #
@@ -452,12 +452,13 @@ module Azure::Monitor::Mgmt::V2017_04_01
452
452
  #
453
453
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
454
454
  #
455
- def list_by_subscription_id_async(custom_headers = nil)
455
+ def list_by_subscription_id_async(custom_headers:nil)
456
456
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
457
457
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
458
458
 
459
459
 
460
460
  request_headers = {}
461
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
461
462
 
462
463
  # Set Headers
463
464
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -511,8 +512,8 @@ module Azure::Monitor::Mgmt::V2017_04_01
511
512
  #
512
513
  # @return [ActivityLogAlertList] operation results.
513
514
  #
514
- def list_by_resource_group(resource_group_name, custom_headers = nil)
515
- response = list_by_resource_group_async(resource_group_name, custom_headers).value!
515
+ def list_by_resource_group(resource_group_name, custom_headers:nil)
516
+ response = list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
516
517
  response.body unless response.nil?
517
518
  end
518
519
 
@@ -525,8 +526,8 @@ module Azure::Monitor::Mgmt::V2017_04_01
525
526
  #
526
527
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
527
528
  #
528
- def list_by_resource_group_with_http_info(resource_group_name, custom_headers = nil)
529
- list_by_resource_group_async(resource_group_name, custom_headers).value!
529
+ def list_by_resource_group_with_http_info(resource_group_name, custom_headers:nil)
530
+ list_by_resource_group_async(resource_group_name, custom_headers:custom_headers).value!
530
531
  end
531
532
 
532
533
  #
@@ -538,13 +539,14 @@ module Azure::Monitor::Mgmt::V2017_04_01
538
539
  #
539
540
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
540
541
  #
541
- def list_by_resource_group_async(resource_group_name, custom_headers = nil)
542
+ def list_by_resource_group_async(resource_group_name, custom_headers:nil)
542
543
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
543
544
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
544
545
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
545
546
 
546
547
 
547
548
  request_headers = {}
549
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
548
550
 
549
551
  # Set Headers
550
552
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -0,0 +1,68 @@
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::V2017_04_01
7
+ module Models
8
+ #
9
+ # An action group object for the body of patch operations.
10
+ #
11
+ class ActionGroupPatchBody
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [Hash{String => String}] Resource tags
16
+ attr_accessor :tags
17
+
18
+ # @return [Boolean] Indicates whether this action group is enabled. If an
19
+ # action group is not enabled, then none of its actions will be
20
+ # activated. Default value: true .
21
+ attr_accessor :enabled
22
+
23
+
24
+ #
25
+ # Mapper for ActionGroupPatchBody class as Ruby Hash.
26
+ # This will be used for serialization/deserialization.
27
+ #
28
+ def self.mapper()
29
+ {
30
+ client_side_validation: true,
31
+ required: false,
32
+ serialized_name: 'ActionGroupPatchBody',
33
+ type: {
34
+ name: 'Composite',
35
+ class_name: 'ActionGroupPatchBody',
36
+ model_properties: {
37
+ tags: {
38
+ client_side_validation: true,
39
+ required: false,
40
+ serialized_name: 'tags',
41
+ type: {
42
+ name: 'Dictionary',
43
+ value: {
44
+ client_side_validation: true,
45
+ required: false,
46
+ serialized_name: 'StringElementType',
47
+ type: {
48
+ name: 'String'
49
+ }
50
+ }
51
+ }
52
+ },
53
+ enabled: {
54
+ client_side_validation: true,
55
+ required: false,
56
+ serialized_name: 'properties.enabled',
57
+ default_value: true,
58
+ type: {
59
+ name: 'Boolean'
60
+ }
61
+ }
62
+ }
63
+ }
64
+ }
65
+ end
66
+ end
67
+ end
68
+ end
@@ -33,6 +33,18 @@ module Azure::Monitor::Mgmt::V2017_04_01
33
33
  # part of this action group.
34
34
  attr_accessor :webhook_receivers
35
35
 
36
+ # @return [Array<ItsmReceiver>] The list of ITSM receivers that are part
37
+ # of this action group.
38
+ attr_accessor :itsm_receivers
39
+
40
+ # @return [Array<AzureAppPushReceiver>] The list of AzureAppPush
41
+ # receivers that are part of this action group.
42
+ attr_accessor :azure_app_push_receivers
43
+
44
+ # @return [Array<AutomationRunbookReceiver>] The list of
45
+ # AutomationRunbook receivers that are part of this action group.
46
+ attr_accessor :automation_runbook_receivers
47
+
36
48
 
37
49
  #
38
50
  # Mapper for ActionGroupResource class as Ruby Hash.
@@ -168,6 +180,57 @@ module Azure::Monitor::Mgmt::V2017_04_01
168
180
  }
169
181
  }
170
182
  }
183
+ },
184
+ itsm_receivers: {
185
+ client_side_validation: true,
186
+ required: false,
187
+ serialized_name: 'properties.itsmReceivers',
188
+ type: {
189
+ name: 'Sequence',
190
+ element: {
191
+ client_side_validation: true,
192
+ required: false,
193
+ serialized_name: 'ItsmReceiverElementType',
194
+ type: {
195
+ name: 'Composite',
196
+ class_name: 'ItsmReceiver'
197
+ }
198
+ }
199
+ }
200
+ },
201
+ azure_app_push_receivers: {
202
+ client_side_validation: true,
203
+ required: false,
204
+ serialized_name: 'properties.azureAppPushReceivers',
205
+ type: {
206
+ name: 'Sequence',
207
+ element: {
208
+ client_side_validation: true,
209
+ required: false,
210
+ serialized_name: 'AzureAppPushReceiverElementType',
211
+ type: {
212
+ name: 'Composite',
213
+ class_name: 'AzureAppPushReceiver'
214
+ }
215
+ }
216
+ }
217
+ },
218
+ automation_runbook_receivers: {
219
+ client_side_validation: true,
220
+ required: false,
221
+ serialized_name: 'properties.automationRunbookReceivers',
222
+ type: {
223
+ name: 'Sequence',
224
+ element: {
225
+ client_side_validation: true,
226
+ required: false,
227
+ serialized_name: 'AutomationRunbookReceiverElementType',
228
+ type: {
229
+ name: 'Composite',
230
+ class_name: 'AutomationRunbookReceiver'
231
+ }
232
+ }
233
+ }
171
234
  }
172
235
  }
173
236
  }
@@ -0,0 +1,102 @@
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::V2017_04_01
7
+ module Models
8
+ #
9
+ # The Azure Automation Runbook notification receiver.
10
+ #
11
+ class AutomationRunbookReceiver
12
+
13
+ include MsRestAzure
14
+
15
+ # @return [String] The Azure automation account Id which holds this
16
+ # runbook and authenticate to Azure resource.
17
+ attr_accessor :automation_account_id
18
+
19
+ # @return [String] The name for this runbook.
20
+ attr_accessor :runbook_name
21
+
22
+ # @return [String] The resource id for webhook linked to this runbook.
23
+ attr_accessor :webhook_resource_id
24
+
25
+ # @return [Boolean] Indicates whether this instance is global runbook.
26
+ attr_accessor :is_global_runbook
27
+
28
+ # @return [String] Indicates name of the webhook.
29
+ attr_accessor :name
30
+
31
+ # @return [String] The URI where webhooks should be sent.
32
+ attr_accessor :service_uri
33
+
34
+
35
+ #
36
+ # Mapper for AutomationRunbookReceiver class as Ruby Hash.
37
+ # This will be used for serialization/deserialization.
38
+ #
39
+ def self.mapper()
40
+ {
41
+ client_side_validation: true,
42
+ required: false,
43
+ serialized_name: 'AutomationRunbookReceiver',
44
+ type: {
45
+ name: 'Composite',
46
+ class_name: 'AutomationRunbookReceiver',
47
+ model_properties: {
48
+ automation_account_id: {
49
+ client_side_validation: true,
50
+ required: true,
51
+ serialized_name: 'automationAccountId',
52
+ type: {
53
+ name: 'String'
54
+ }
55
+ },
56
+ runbook_name: {
57
+ client_side_validation: true,
58
+ required: true,
59
+ serialized_name: 'runbookName',
60
+ type: {
61
+ name: 'String'
62
+ }
63
+ },
64
+ webhook_resource_id: {
65
+ client_side_validation: true,
66
+ required: true,
67
+ serialized_name: 'webhookResourceId',
68
+ type: {
69
+ name: 'String'
70
+ }
71
+ },
72
+ is_global_runbook: {
73
+ client_side_validation: true,
74
+ required: true,
75
+ serialized_name: 'isGlobalRunbook',
76
+ type: {
77
+ name: 'Boolean'
78
+ }
79
+ },
80
+ name: {
81
+ client_side_validation: true,
82
+ required: false,
83
+ serialized_name: 'name',
84
+ type: {
85
+ name: 'String'
86
+ }
87
+ },
88
+ service_uri: {
89
+ client_side_validation: true,
90
+ required: false,
91
+ serialized_name: 'serviceUri',
92
+ type: {
93
+ name: 'String'
94
+ }
95
+ }
96
+ }
97
+ }
98
+ }
99
+ end
100
+ end
101
+ end
102
+ end