azure_mgmt_automation 0.15.2 → 0.17.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2015-10-31/generated/azure_mgmt_automation.rb +111 -97
  3. data/lib/2015-10-31/generated/azure_mgmt_automation/activity_operations.rb +39 -32
  4. data/lib/2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb +28 -24
  5. data/lib/2015-10-31/generated/azure_mgmt_automation/automation_account_operations.rb +92 -81
  6. data/lib/2015-10-31/generated/azure_mgmt_automation/automation_client.rb +25 -9
  7. data/lib/2015-10-31/generated/azure_mgmt_automation/certificate_operations.rb +81 -69
  8. data/lib/2015-10-31/generated/azure_mgmt_automation/connection_operations.rb +81 -69
  9. data/lib/2015-10-31/generated/azure_mgmt_automation/connection_type_operations.rb +67 -56
  10. data/lib/2015-10-31/generated/azure_mgmt_automation/credential_operations.rb +81 -69
  11. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_operations.rb +67 -56
  12. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_stream.rb +124 -0
  13. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_configuration_operations.rb +215 -70
  14. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb +68 -67
  15. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_operations.rb +67 -56
  16. data/lib/2015-10-31/generated/azure_mgmt_automation/fields.rb +14 -11
  17. data/lib/2015-10-31/generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb +72 -57
  18. data/lib/2015-10-31/generated/azure_mgmt_automation/job_operations.rb +123 -100
  19. data/lib/2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb +72 -57
  20. data/lib/2015-10-31/generated/azure_mgmt_automation/job_stream_operations.rb +39 -32
  21. data/lib/2015-10-31/generated/azure_mgmt_automation/keys.rb +120 -0
  22. data/lib/2015-10-31/generated/azure_mgmt_automation/linked_workspace_operations.rb +120 -0
  23. data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_list_result.rb +1 -1
  24. data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter.rb +35 -2
  25. data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter_validation_set.rb +47 -0
  26. data/lib/2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule_monthly_occurrence.rb +1 -1
  27. data/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_key_name.rb +2 -2
  28. data/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_regenerate_key_parameter.rb +2 -2
  29. data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account.rb +9 -9
  30. data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account_list_result.rb +1 -1
  31. data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_key_name.rb +16 -0
  32. data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_key_permissions.rb +16 -0
  33. data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate.rb +10 -7
  34. data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_list_result.rb +1 -1
  35. data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_update_parameters.rb +1 -1
  36. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection.rb +10 -7
  37. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_list_result.rb +1 -1
  38. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type.rb +12 -0
  39. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type_list_result.rb +1 -1
  40. data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential.rb +11 -7
  41. data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_list_result.rb +1 -1
  42. data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_update_parameters.rb +1 -1
  43. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job.rb +44 -4
  44. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_create_parameters.rb +12 -0
  45. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_list_result.rb +1 -1
  46. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration.rb +20 -9
  47. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_list_result.rb +13 -1
  48. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_update_parameters.rb +132 -0
  49. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node.rb +22 -25
  50. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration.rb +20 -15
  51. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_create_or_update_parameters.rb +13 -1
  52. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_list_result.rb +1 -1
  53. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_extension_handler_association_property.rb +58 -0
  54. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_list_result.rb +1 -1
  55. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_report_list_result.rb +1 -1
  56. data/lib/2015-10-31/generated/azure_mgmt_automation/models/group_type_enum.rb +16 -0
  57. data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker.rb +11 -0
  58. data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group.rb +12 -0
  59. data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_groups_list_result.rb +1 -1
  60. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb +37 -1
  61. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_create_parameters.rb +0 -42
  62. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_list_result.rb +1 -1
  63. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_provisioning_state.rb +18 -0
  64. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule.rb +26 -1
  65. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule_list_result.rb +1 -1
  66. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_stream_list_result.rb +1 -1
  67. data/lib/2015-10-31/generated/azure_mgmt_automation/models/key.rb +73 -0
  68. data/lib/2015-10-31/generated/azure_mgmt_automation/models/key_list_result.rb +56 -0
  69. data/lib/2015-10-31/generated/azure_mgmt_automation/models/{sub_resource.rb → linked_workspace.rb} +7 -6
  70. data/lib/2015-10-31/generated/azure_mgmt_automation/models/module_list_result.rb +1 -1
  71. data/lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb +20 -9
  72. data/lib/2015-10-31/generated/azure_mgmt_automation/models/proxy_resource.rb +62 -0
  73. data/lib/2015-10-31/generated/azure_mgmt_automation/models/resource.rb +11 -32
  74. data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook.rb +9 -9
  75. data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_draft.rb +2 -1
  76. data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_list_result.rb +1 -1
  77. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule.rb +12 -7
  78. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_association_property.rb +1 -1
  79. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_create_or_update_parameters.rb +3 -3
  80. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_list_result.rb +1 -1
  81. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_update_parameters.rb +2 -2
  82. data/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job.rb +11 -0
  83. data/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job_create_parameters.rb +0 -11
  84. data/lib/2015-10-31/generated/azure_mgmt_automation/models/tracked_resource.rb +92 -0
  85. data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable.rb +12 -7
  86. data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_list_result.rb +1 -1
  87. data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_update_parameters.rb +1 -1
  88. data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook.rb +23 -7
  89. data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_list_result.rb +1 -1
  90. data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_update_parameters.rb +1 -1
  91. data/lib/2015-10-31/generated/azure_mgmt_automation/module_model_operations.rb +81 -69
  92. data/lib/2015-10-31/generated/azure_mgmt_automation/node_reports.rb +54 -61
  93. data/lib/2015-10-31/generated/azure_mgmt_automation/object_data_types.rb +28 -22
  94. data/lib/2015-10-31/generated/azure_mgmt_automation/operations.rb +6 -5
  95. data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_draft_operations.rb +144 -118
  96. data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb +131 -95
  97. data/lib/2015-10-31/generated/azure_mgmt_automation/schedule_operations.rb +93 -71
  98. data/lib/2015-10-31/generated/azure_mgmt_automation/statistics_operations.rb +14 -11
  99. data/lib/2015-10-31/generated/azure_mgmt_automation/{test_jobs.rb → test_job_operations.rb} +82 -69
  100. data/lib/2015-10-31/generated/azure_mgmt_automation/test_job_streams.rb +49 -39
  101. data/lib/2015-10-31/generated/azure_mgmt_automation/usages.rb +14 -11
  102. data/lib/2015-10-31/generated/azure_mgmt_automation/variable_operations.rb +81 -69
  103. data/lib/2015-10-31/generated/azure_mgmt_automation/webhook_operations.rb +95 -80
  104. data/lib/profiles/latest/automation_latest_profile_client.rb +28 -9
  105. data/lib/profiles/latest/automation_module_definition.rb +0 -1
  106. data/lib/profiles/latest/modules/automation_profile_module.rb +585 -516
  107. data/lib/version.rb +1 -1
  108. metadata +21 -7
@@ -24,55 +24,58 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Retrieve the content of runbook identified by runbook name.
26
26
  #
27
- # @param resource_group_name [String] The resource group name.
28
- # @param automation_account_name [String] The automation account name.
27
+ # @param resource_group_name [String] Name of an Azure Resource group.
28
+ # @param automation_account_name [String] The name of the automation account.
29
29
  # @param runbook_name [String] The runbook name.
30
30
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
31
31
  # will be added to the HTTP request.
32
32
  #
33
33
  # @return [NOT_IMPLEMENTED] operation results.
34
34
  #
35
- def get_content(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
36
- response = get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
35
+ def get_content(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
36
+ response = get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
37
37
  response.body unless response.nil?
38
38
  end
39
39
 
40
40
  #
41
41
  # Retrieve the content of runbook identified by runbook name.
42
42
  #
43
- # @param resource_group_name [String] The resource group name.
44
- # @param automation_account_name [String] The automation account name.
43
+ # @param resource_group_name [String] Name of an Azure Resource group.
44
+ # @param automation_account_name [String] The name of the automation account.
45
45
  # @param runbook_name [String] The runbook name.
46
46
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
47
47
  # will be added to the HTTP request.
48
48
  #
49
49
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
50
50
  #
51
- def get_content_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
52
- get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
51
+ def get_content_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
52
+ get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
53
53
  end
54
54
 
55
55
  #
56
56
  # Retrieve the content of runbook identified by runbook name.
57
57
  #
58
- # @param resource_group_name [String] The resource group name.
59
- # @param automation_account_name [String] The automation account name.
58
+ # @param resource_group_name [String] Name of an Azure Resource group.
59
+ # @param automation_account_name [String] The name of the automation account.
60
60
  # @param runbook_name [String] The runbook name.
61
61
  # @param [Hash{String => String}] A hash of custom headers that will be added
62
62
  # to the HTTP request.
63
63
  #
64
64
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
65
  #
66
- def get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
66
+ def get_content_async(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
67
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
67
68
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
69
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
70
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
68
71
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
69
72
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
70
73
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
71
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
72
74
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
73
75
 
74
76
 
75
77
  request_headers = {}
78
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
76
79
 
77
80
  # Set Headers
78
81
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -83,7 +86,7 @@ module Azure::Automation::Mgmt::V2015_10_31
83
86
 
84
87
  options = {
85
88
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
86
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
89
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name},
87
90
  query_params: {'api-version' => @client.api_version},
88
91
  headers: request_headers.merge(custom_headers || {}),
89
92
  base_url: request_url
@@ -96,7 +99,7 @@ module Azure::Automation::Mgmt::V2015_10_31
96
99
  response_content = http_response.body
97
100
  unless status_code == 200
98
101
  error_model = JSON.load(response_content)
99
- fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
102
+ fail MsRestAzure::AzureOperationError.new(result.request, http_response, error_model)
100
103
  end
101
104
 
102
105
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
@@ -127,55 +130,58 @@ module Azure::Automation::Mgmt::V2015_10_31
127
130
  #
128
131
  # Retrieve the runbook identified by runbook name.
129
132
  #
130
- # @param resource_group_name [String] The resource group name.
131
- # @param automation_account_name [String] The automation account name.
133
+ # @param resource_group_name [String] Name of an Azure Resource group.
134
+ # @param automation_account_name [String] The name of the automation account.
132
135
  # @param runbook_name [String] The runbook name.
133
136
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
134
137
  # will be added to the HTTP request.
135
138
  #
136
139
  # @return [Runbook] operation results.
137
140
  #
138
- def get(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
139
- response = get_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
141
+ def get(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
142
+ response = get_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
140
143
  response.body unless response.nil?
141
144
  end
142
145
 
143
146
  #
144
147
  # Retrieve the runbook identified by runbook name.
145
148
  #
146
- # @param resource_group_name [String] The resource group name.
147
- # @param automation_account_name [String] The automation account name.
149
+ # @param resource_group_name [String] Name of an Azure Resource group.
150
+ # @param automation_account_name [String] The name of the automation account.
148
151
  # @param runbook_name [String] The runbook name.
149
152
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
150
153
  # will be added to the HTTP request.
151
154
  #
152
155
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
153
156
  #
154
- def get_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
155
- get_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
157
+ def get_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
158
+ get_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
156
159
  end
157
160
 
158
161
  #
159
162
  # Retrieve the runbook identified by runbook name.
160
163
  #
161
- # @param resource_group_name [String] The resource group name.
162
- # @param automation_account_name [String] The automation account name.
164
+ # @param resource_group_name [String] Name of an Azure Resource group.
165
+ # @param automation_account_name [String] The name of the automation account.
163
166
  # @param runbook_name [String] The runbook name.
164
167
  # @param [Hash{String => String}] A hash of custom headers that will be added
165
168
  # to the HTTP request.
166
169
  #
167
170
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
168
171
  #
169
- def get_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
172
+ def get_async(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
173
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
170
174
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
175
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
176
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
171
177
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
172
178
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
173
179
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
174
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
175
180
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
176
181
 
177
182
 
178
183
  request_headers = {}
184
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
179
185
 
180
186
  # Set Headers
181
187
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -186,7 +192,7 @@ module Azure::Automation::Mgmt::V2015_10_31
186
192
 
187
193
  options = {
188
194
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
189
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
195
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name},
190
196
  query_params: {'api-version' => @client.api_version},
191
197
  headers: request_headers.merge(custom_headers || {}),
192
198
  base_url: request_url
@@ -223,8 +229,8 @@ module Azure::Automation::Mgmt::V2015_10_31
223
229
  #
224
230
  # Create the runbook identified by runbook name.
225
231
  #
226
- # @param resource_group_name [String] The resource group name.
227
- # @param automation_account_name [String] The automation account name.
232
+ # @param resource_group_name [String] Name of an Azure Resource group.
233
+ # @param automation_account_name [String] The name of the automation account.
228
234
  # @param runbook_name [String] The runbook name.
229
235
  # @param parameters [RunbookCreateOrUpdateParameters] The create or update
230
236
  # parameters for runbook. Provide either content link for a published runbook
@@ -232,17 +238,18 @@ module Azure::Automation::Mgmt::V2015_10_31
232
238
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
233
239
  # will be added to the HTTP request.
234
240
  #
241
+ # @return [Runbook] operation results.
235
242
  #
236
- def create_or_update(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil)
237
- response = create_or_update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers).value!
238
- nil
243
+ def create_or_update(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:nil)
244
+ response = create_or_update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value!
245
+ response.body unless response.nil?
239
246
  end
240
247
 
241
248
  #
242
249
  # Create the runbook identified by runbook name.
243
250
  #
244
- # @param resource_group_name [String] The resource group name.
245
- # @param automation_account_name [String] The automation account name.
251
+ # @param resource_group_name [String] Name of an Azure Resource group.
252
+ # @param automation_account_name [String] The name of the automation account.
246
253
  # @param runbook_name [String] The runbook name.
247
254
  # @param parameters [RunbookCreateOrUpdateParameters] The create or update
248
255
  # parameters for runbook. Provide either content link for a published runbook
@@ -252,15 +259,15 @@ module Azure::Automation::Mgmt::V2015_10_31
252
259
  #
253
260
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
254
261
  #
255
- def create_or_update_with_http_info(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil)
256
- create_or_update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers).value!
262
+ def create_or_update_with_http_info(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:nil)
263
+ create_or_update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value!
257
264
  end
258
265
 
259
266
  #
260
267
  # Create the runbook identified by runbook name.
261
268
  #
262
- # @param resource_group_name [String] The resource group name.
263
- # @param automation_account_name [String] The automation account name.
269
+ # @param resource_group_name [String] Name of an Azure Resource group.
270
+ # @param automation_account_name [String] The name of the automation account.
264
271
  # @param runbook_name [String] The runbook name.
265
272
  # @param parameters [RunbookCreateOrUpdateParameters] The create or update
266
273
  # parameters for runbook. Provide either content link for a published runbook
@@ -270,24 +277,25 @@ module Azure::Automation::Mgmt::V2015_10_31
270
277
  #
271
278
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
272
279
  #
273
- def create_or_update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil)
280
+ def create_or_update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:nil)
281
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
274
282
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
283
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
284
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
275
285
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
276
286
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
277
287
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
278
288
  fail ArgumentError, 'parameters is nil' if parameters.nil?
279
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
280
289
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
281
290
 
282
291
 
283
292
  request_headers = {}
293
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
284
294
 
285
295
  # Set Headers
286
296
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
287
297
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
288
298
 
289
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
290
-
291
299
  # Serialize Request
292
300
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookCreateOrUpdateParameters.mapper()
293
301
  request_content = @client.serialize(request_mapper, parameters)
@@ -299,7 +307,7 @@ module Azure::Automation::Mgmt::V2015_10_31
299
307
 
300
308
  options = {
301
309
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
302
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
310
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name},
303
311
  query_params: {'api-version' => @client.api_version},
304
312
  body: request_content,
305
313
  headers: request_headers.merge(custom_headers || {}),
@@ -317,6 +325,26 @@ module Azure::Automation::Mgmt::V2015_10_31
317
325
  end
318
326
 
319
327
  result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
328
+ # Deserialize Response
329
+ if status_code == 200
330
+ begin
331
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
332
+ result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::Runbook.mapper()
333
+ result.body = @client.deserialize(result_mapper, parsed_response)
334
+ rescue Exception => e
335
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
336
+ end
337
+ end
338
+ # Deserialize Response
339
+ if status_code == 201
340
+ begin
341
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
342
+ result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::Runbook.mapper()
343
+ result.body = @client.deserialize(result_mapper, parsed_response)
344
+ rescue Exception => e
345
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
346
+ end
347
+ end
320
348
 
321
349
  result
322
350
  end
@@ -327,8 +355,8 @@ module Azure::Automation::Mgmt::V2015_10_31
327
355
  #
328
356
  # Update the runbook identified by runbook name.
329
357
  #
330
- # @param resource_group_name [String] The resource group name.
331
- # @param automation_account_name [String] The automation account name.
358
+ # @param resource_group_name [String] Name of an Azure Resource group.
359
+ # @param automation_account_name [String] The name of the automation account.
332
360
  # @param runbook_name [String] The runbook name.
333
361
  # @param parameters [RunbookUpdateParameters] The update parameters for
334
362
  # runbook.
@@ -337,16 +365,16 @@ module Azure::Automation::Mgmt::V2015_10_31
337
365
  #
338
366
  # @return [Runbook] operation results.
339
367
  #
340
- def update(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil)
341
- response = update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers).value!
368
+ def update(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:nil)
369
+ response = update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value!
342
370
  response.body unless response.nil?
343
371
  end
344
372
 
345
373
  #
346
374
  # Update the runbook identified by runbook name.
347
375
  #
348
- # @param resource_group_name [String] The resource group name.
349
- # @param automation_account_name [String] The automation account name.
376
+ # @param resource_group_name [String] Name of an Azure Resource group.
377
+ # @param automation_account_name [String] The name of the automation account.
350
378
  # @param runbook_name [String] The runbook name.
351
379
  # @param parameters [RunbookUpdateParameters] The update parameters for
352
380
  # runbook.
@@ -355,15 +383,15 @@ module Azure::Automation::Mgmt::V2015_10_31
355
383
  #
356
384
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
357
385
  #
358
- def update_with_http_info(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil)
359
- update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers).value!
386
+ def update_with_http_info(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:nil)
387
+ update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value!
360
388
  end
361
389
 
362
390
  #
363
391
  # Update the runbook identified by runbook name.
364
392
  #
365
- # @param resource_group_name [String] The resource group name.
366
- # @param automation_account_name [String] The automation account name.
393
+ # @param resource_group_name [String] Name of an Azure Resource group.
394
+ # @param automation_account_name [String] The name of the automation account.
367
395
  # @param runbook_name [String] The runbook name.
368
396
  # @param parameters [RunbookUpdateParameters] The update parameters for
369
397
  # runbook.
@@ -372,24 +400,25 @@ module Azure::Automation::Mgmt::V2015_10_31
372
400
  #
373
401
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
374
402
  #
375
- def update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil)
403
+ def update_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:nil)
404
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
376
405
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
406
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
407
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
377
408
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
378
409
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
379
410
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
380
411
  fail ArgumentError, 'parameters is nil' if parameters.nil?
381
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
382
412
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
383
413
 
384
414
 
385
415
  request_headers = {}
416
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
386
417
 
387
418
  # Set Headers
388
419
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
389
420
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
390
421
 
391
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
392
-
393
422
  # Serialize Request
394
423
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::RunbookUpdateParameters.mapper()
395
424
  request_content = @client.serialize(request_mapper, parameters)
@@ -401,7 +430,7 @@ module Azure::Automation::Mgmt::V2015_10_31
401
430
 
402
431
  options = {
403
432
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
404
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
433
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name},
405
434
  query_params: {'api-version' => @client.api_version},
406
435
  body: request_content,
407
436
  headers: request_headers.merge(custom_headers || {}),
@@ -439,54 +468,57 @@ module Azure::Automation::Mgmt::V2015_10_31
439
468
  #
440
469
  # Delete the runbook by name.
441
470
  #
442
- # @param resource_group_name [String] The resource group name.
443
- # @param automation_account_name [String] The automation account name.
471
+ # @param resource_group_name [String] Name of an Azure Resource group.
472
+ # @param automation_account_name [String] The name of the automation account.
444
473
  # @param runbook_name [String] The runbook name.
445
474
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
446
475
  # will be added to the HTTP request.
447
476
  #
448
477
  #
449
- def delete(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
450
- response = delete_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
478
+ def delete(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
479
+ response = delete_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
451
480
  nil
452
481
  end
453
482
 
454
483
  #
455
484
  # Delete the runbook by name.
456
485
  #
457
- # @param resource_group_name [String] The resource group name.
458
- # @param automation_account_name [String] The automation account name.
486
+ # @param resource_group_name [String] Name of an Azure Resource group.
487
+ # @param automation_account_name [String] The name of the automation account.
459
488
  # @param runbook_name [String] The runbook name.
460
489
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
461
490
  # will be added to the HTTP request.
462
491
  #
463
492
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
464
493
  #
465
- def delete_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
466
- delete_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
494
+ def delete_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
495
+ delete_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
467
496
  end
468
497
 
469
498
  #
470
499
  # Delete the runbook by name.
471
500
  #
472
- # @param resource_group_name [String] The resource group name.
473
- # @param automation_account_name [String] The automation account name.
501
+ # @param resource_group_name [String] Name of an Azure Resource group.
502
+ # @param automation_account_name [String] The name of the automation account.
474
503
  # @param runbook_name [String] The runbook name.
475
504
  # @param [Hash{String => String}] A hash of custom headers that will be added
476
505
  # to the HTTP request.
477
506
  #
478
507
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
479
508
  #
480
- def delete_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
509
+ def delete_async(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
510
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
481
511
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
512
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
513
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
482
514
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
483
515
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
484
516
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
485
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
486
517
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
487
518
 
488
519
 
489
520
  request_headers = {}
521
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
490
522
 
491
523
  # Set Headers
492
524
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -497,7 +529,7 @@ module Azure::Automation::Mgmt::V2015_10_31
497
529
 
498
530
  options = {
499
531
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
500
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
532
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name},
501
533
  query_params: {'api-version' => @client.api_version},
502
534
  headers: request_headers.merge(custom_headers || {}),
503
535
  base_url: request_url
@@ -508,7 +540,7 @@ module Azure::Automation::Mgmt::V2015_10_31
508
540
  http_response = result.response
509
541
  status_code = http_response.status
510
542
  response_content = http_response.body
511
- unless status_code == 200
543
+ unless status_code == 200 || status_code == 204
512
544
  error_model = JSON.load(response_content)
513
545
  fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
514
546
  end
@@ -524,51 +556,54 @@ module Azure::Automation::Mgmt::V2015_10_31
524
556
  #
525
557
  # Retrieve a list of runbooks.
526
558
  #
527
- # @param resource_group_name [String] The resource group name.
528
- # @param automation_account_name [String] The automation account name.
559
+ # @param resource_group_name [String] Name of an Azure Resource group.
560
+ # @param automation_account_name [String] The name of the automation account.
529
561
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
530
562
  # will be added to the HTTP request.
531
563
  #
532
564
  # @return [Array<Runbook>] operation results.
533
565
  #
534
- def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil)
535
- first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers)
566
+ def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil)
567
+ first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers)
536
568
  first_page.get_all_items
537
569
  end
538
570
 
539
571
  #
540
572
  # Retrieve a list of runbooks.
541
573
  #
542
- # @param resource_group_name [String] The resource group name.
543
- # @param automation_account_name [String] The automation account name.
574
+ # @param resource_group_name [String] Name of an Azure Resource group.
575
+ # @param automation_account_name [String] The name of the automation account.
544
576
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
545
577
  # will be added to the HTTP request.
546
578
  #
547
579
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
548
580
  #
549
- def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil)
550
- list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
581
+ def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil)
582
+ list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
551
583
  end
552
584
 
553
585
  #
554
586
  # Retrieve a list of runbooks.
555
587
  #
556
- # @param resource_group_name [String] The resource group name.
557
- # @param automation_account_name [String] The automation account name.
588
+ # @param resource_group_name [String] Name of an Azure Resource group.
589
+ # @param automation_account_name [String] The name of the automation account.
558
590
  # @param [Hash{String => String}] A hash of custom headers that will be added
559
591
  # to the HTTP request.
560
592
  #
561
593
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
562
594
  #
563
- def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil)
595
+ def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil)
596
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
564
597
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
598
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
599
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
565
600
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
566
601
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
567
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
568
602
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
569
603
 
570
604
 
571
605
  request_headers = {}
606
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
572
607
 
573
608
  # Set Headers
574
609
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -579,7 +614,7 @@ module Azure::Automation::Mgmt::V2015_10_31
579
614
 
580
615
  options = {
581
616
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
582
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
617
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name},
583
618
  query_params: {'api-version' => @client.api_version},
584
619
  headers: request_headers.merge(custom_headers || {}),
585
620
  base_url: request_url
@@ -623,8 +658,8 @@ module Azure::Automation::Mgmt::V2015_10_31
623
658
  #
624
659
  # @return [RunbookListResult] operation results.
625
660
  #
626
- def list_by_automation_account_next(next_page_link, custom_headers = nil)
627
- response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
661
+ def list_by_automation_account_next(next_page_link, custom_headers:nil)
662
+ response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
628
663
  response.body unless response.nil?
629
664
  end
630
665
 
@@ -638,8 +673,8 @@ module Azure::Automation::Mgmt::V2015_10_31
638
673
  #
639
674
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
640
675
  #
641
- def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil)
642
- list_by_automation_account_next_async(next_page_link, custom_headers).value!
676
+ def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
677
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
643
678
  end
644
679
 
645
680
  #
@@ -652,11 +687,12 @@ module Azure::Automation::Mgmt::V2015_10_31
652
687
  #
653
688
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
654
689
  #
655
- def list_by_automation_account_next_async(next_page_link, custom_headers = nil)
690
+ def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
656
691
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
657
692
 
658
693
 
659
694
  request_headers = {}
695
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
660
696
 
661
697
  # Set Headers
662
698
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -703,20 +739,20 @@ module Azure::Automation::Mgmt::V2015_10_31
703
739
  #
704
740
  # Retrieve a list of runbooks.
705
741
  #
706
- # @param resource_group_name [String] The resource group name.
707
- # @param automation_account_name [String] The automation account name.
742
+ # @param resource_group_name [String] Name of an Azure Resource group.
743
+ # @param automation_account_name [String] The name of the automation account.
708
744
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
709
745
  # will be added to the HTTP request.
710
746
  #
711
747
  # @return [RunbookListResult] which provide lazy access to pages of the
712
748
  # response.
713
749
  #
714
- def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil)
715
- response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
750
+ def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil)
751
+ response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
716
752
  unless response.nil?
717
753
  page = response.body
718
754
  page.next_method = Proc.new do |next_page_link|
719
- list_by_automation_account_next_async(next_page_link, custom_headers)
755
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
720
756
  end
721
757
  page
722
758
  end