azure_mgmt_automation 0.16.0 → 0.17.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 (80) hide show
  1. checksums.yaml +4 -4
  2. data/lib/2015-10-31/generated/azure_mgmt_automation.rb +110 -97
  3. data/lib/2015-10-31/generated/azure_mgmt_automation/activity_operations.rb +36 -25
  4. data/lib/2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb +32 -22
  5. data/lib/2015-10-31/generated/azure_mgmt_automation/automation_account_operations.rb +38 -31
  6. data/lib/2015-10-31/generated/azure_mgmt_automation/automation_client.rb +22 -12
  7. data/lib/2015-10-31/generated/azure_mgmt_automation/certificate_operations.rb +84 -58
  8. data/lib/2015-10-31/generated/azure_mgmt_automation/connection_operations.rb +84 -58
  9. data/lib/2015-10-31/generated/azure_mgmt_automation/connection_type_operations.rb +68 -47
  10. data/lib/2015-10-31/generated/azure_mgmt_automation/credential_operations.rb +84 -58
  11. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_operations.rb +68 -47
  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 +218 -61
  14. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb +69 -58
  15. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_operations.rb +68 -47
  16. data/lib/2015-10-31/generated/azure_mgmt_automation/fields.rb +16 -11
  17. data/lib/2015-10-31/generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb +73 -48
  18. data/lib/2015-10-31/generated/azure_mgmt_automation/job_operations.rb +132 -91
  19. data/lib/2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb +73 -48
  20. data/lib/2015-10-31/generated/azure_mgmt_automation/job_stream_operations.rb +36 -25
  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_parameter.rb +35 -2
  24. data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter_validation_set.rb +47 -0
  25. data/lib/2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule_monthly_occurrence.rb +1 -1
  26. data/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_key_name.rb +2 -2
  27. data/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_regenerate_key_parameter.rb +2 -2
  28. data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account.rb +9 -9
  29. data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_key_name.rb +16 -0
  30. data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_key_permissions.rb +16 -0
  31. data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate.rb +1 -10
  32. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection.rb +1 -10
  33. data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential.rb +1 -10
  34. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job.rb +44 -4
  35. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_create_parameters.rb +3 -3
  36. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration.rb +20 -9
  37. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_list_result.rb +12 -0
  38. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_update_parameters.rb +132 -0
  39. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node.rb +1 -25
  40. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration.rb +20 -15
  41. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_create_or_update_parameters.rb +4 -4
  42. data/lib/2015-10-31/generated/azure_mgmt_automation/models/group_type_enum.rb +16 -0
  43. data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker.rb +11 -0
  44. data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group.rb +12 -0
  45. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb +37 -1
  46. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_create_parameters.rb +0 -42
  47. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_provisioning_state.rb +18 -0
  48. data/lib/2015-10-31/generated/azure_mgmt_automation/models/key.rb +73 -0
  49. data/lib/2015-10-31/generated/azure_mgmt_automation/models/key_list_result.rb +56 -0
  50. data/lib/2015-10-31/generated/azure_mgmt_automation/models/{sub_resource.rb → linked_workspace.rb} +7 -6
  51. data/lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb +20 -9
  52. data/lib/2015-10-31/generated/azure_mgmt_automation/models/proxy_resource.rb +62 -0
  53. data/lib/2015-10-31/generated/azure_mgmt_automation/models/resource.rb +4 -34
  54. data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook.rb +9 -9
  55. data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_draft.rb +2 -1
  56. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule.rb +1 -10
  57. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_association_property.rb +1 -1
  58. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_create_or_update_parameters.rb +1 -1
  59. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_update_parameters.rb +1 -1
  60. data/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job.rb +11 -0
  61. data/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job_create_parameters.rb +0 -11
  62. data/lib/2015-10-31/generated/azure_mgmt_automation/models/tracked_resource.rb +92 -0
  63. data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable.rb +1 -10
  64. data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook.rb +23 -7
  65. data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_update_parameters.rb +1 -1
  66. data/lib/2015-10-31/generated/azure_mgmt_automation/module_model_operations.rb +84 -58
  67. data/lib/2015-10-31/generated/azure_mgmt_automation/node_reports.rb +53 -54
  68. data/lib/2015-10-31/generated/azure_mgmt_automation/object_data_types.rb +32 -22
  69. data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_draft_operations.rb +150 -107
  70. data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb +130 -78
  71. data/lib/2015-10-31/generated/azure_mgmt_automation/schedule_operations.rb +96 -60
  72. data/lib/2015-10-31/generated/azure_mgmt_automation/statistics_operations.rb +8 -6
  73. data/lib/2015-10-31/generated/azure_mgmt_automation/{test_jobs.rb → test_job_operations.rb} +87 -62
  74. data/lib/2015-10-31/generated/azure_mgmt_automation/test_job_streams.rb +44 -30
  75. data/lib/2015-10-31/generated/azure_mgmt_automation/usages.rb +8 -6
  76. data/lib/2015-10-31/generated/azure_mgmt_automation/variable_operations.rb +84 -58
  77. data/lib/2015-10-31/generated/azure_mgmt_automation/webhook_operations.rb +100 -69
  78. data/lib/profiles/latest/modules/automation_profile_module.rb +364 -318
  79. data/lib/version.rb +1 -1
  80. metadata +19 -6
@@ -22,9 +22,11 @@ module Azure::Automation::Mgmt::V2015_10_31
22
22
  attr_reader :client
23
23
 
24
24
  #
25
- # Retrieve a test job streams identified by runbook name and stream id.
25
+ # Retrieve a test job stream of the test job identified by runbook name and
26
+ # stream id.
26
27
  #
27
- # @param automation_account_name [String] The automation account name.
28
+ # @param resource_group_name [String] Name of an Azure Resource group.
29
+ # @param automation_account_name [String] The name of the automation account.
28
30
  # @param runbook_name [String] The runbook name.
29
31
  # @param job_stream_id [String] The job stream id.
30
32
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -32,15 +34,17 @@ module Azure::Automation::Mgmt::V2015_10_31
32
34
  #
33
35
  # @return [JobStream] operation results.
34
36
  #
35
- def get(automation_account_name, runbook_name, job_stream_id, custom_headers:nil)
36
- response = get_async(automation_account_name, runbook_name, job_stream_id, custom_headers:custom_headers).value!
37
+ def get(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers:nil)
38
+ response = get_async(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers:custom_headers).value!
37
39
  response.body unless response.nil?
38
40
  end
39
41
 
40
42
  #
41
- # Retrieve a test job streams identified by runbook name and stream id.
43
+ # Retrieve a test job stream of the test job identified by runbook name and
44
+ # stream id.
42
45
  #
43
- # @param automation_account_name [String] The automation account name.
46
+ # @param resource_group_name [String] Name of an Azure Resource group.
47
+ # @param automation_account_name [String] The name of the automation account.
44
48
  # @param runbook_name [String] The runbook name.
45
49
  # @param job_stream_id [String] The job stream id.
46
50
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -48,14 +52,16 @@ module Azure::Automation::Mgmt::V2015_10_31
48
52
  #
49
53
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
50
54
  #
51
- def get_with_http_info(automation_account_name, runbook_name, job_stream_id, custom_headers:nil)
52
- get_async(automation_account_name, runbook_name, job_stream_id, custom_headers:custom_headers).value!
55
+ def get_with_http_info(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers:nil)
56
+ get_async(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers:custom_headers).value!
53
57
  end
54
58
 
55
59
  #
56
- # Retrieve a test job streams identified by runbook name and stream id.
60
+ # Retrieve a test job stream of the test job identified by runbook name and
61
+ # stream id.
57
62
  #
58
- # @param automation_account_name [String] The automation account name.
63
+ # @param resource_group_name [String] Name of an Azure Resource group.
64
+ # @param automation_account_name [String] The name of the automation account.
59
65
  # @param runbook_name [String] The runbook name.
60
66
  # @param job_stream_id [String] The job stream id.
61
67
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -63,13 +69,15 @@ module Azure::Automation::Mgmt::V2015_10_31
63
69
  #
64
70
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
71
  #
66
- def get_async(automation_account_name, runbook_name, job_stream_id, custom_headers:nil)
67
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
68
- fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
72
+ def get_async(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers:nil)
73
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
74
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
75
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
76
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
77
+ 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
78
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
70
79
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
71
80
  fail ArgumentError, 'job_stream_id is nil' if job_stream_id.nil?
72
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
73
81
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
74
82
 
75
83
 
@@ -85,7 +93,7 @@ module Azure::Automation::Mgmt::V2015_10_31
85
93
 
86
94
  options = {
87
95
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
88
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'jobStreamId' => job_stream_id,'subscriptionId' => @client.subscription_id},
96
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'jobStreamId' => job_stream_id},
89
97
  query_params: {'api-version' => @client.api_version},
90
98
  headers: request_headers.merge(custom_headers || {}),
91
99
  base_url: request_url
@@ -122,7 +130,8 @@ module Azure::Automation::Mgmt::V2015_10_31
122
130
  #
123
131
  # Retrieve a list of test job streams identified by runbook name.
124
132
  #
125
- # @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.
126
135
  # @param runbook_name [String] The runbook name.
127
136
  # @param filter [String] The filter to apply on the operation.
128
137
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -130,15 +139,16 @@ module Azure::Automation::Mgmt::V2015_10_31
130
139
  #
131
140
  # @return [Array<JobStream>] operation results.
132
141
  #
133
- def list_by_test_job(automation_account_name, runbook_name, filter:nil, custom_headers:nil)
134
- first_page = list_by_test_job_as_lazy(automation_account_name, runbook_name, filter:filter, custom_headers:custom_headers)
142
+ def list_by_test_job(resource_group_name, automation_account_name, runbook_name, filter:nil, custom_headers:nil)
143
+ first_page = list_by_test_job_as_lazy(resource_group_name, automation_account_name, runbook_name, filter:filter, custom_headers:custom_headers)
135
144
  first_page.get_all_items
136
145
  end
137
146
 
138
147
  #
139
148
  # Retrieve a list of test job streams identified by runbook name.
140
149
  #
141
- # @param automation_account_name [String] The automation account name.
150
+ # @param resource_group_name [String] Name of an Azure Resource group.
151
+ # @param automation_account_name [String] The name of the automation account.
142
152
  # @param runbook_name [String] The runbook name.
143
153
  # @param filter [String] The filter to apply on the operation.
144
154
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -146,14 +156,15 @@ module Azure::Automation::Mgmt::V2015_10_31
146
156
  #
147
157
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
148
158
  #
149
- def list_by_test_job_with_http_info(automation_account_name, runbook_name, filter:nil, custom_headers:nil)
150
- list_by_test_job_async(automation_account_name, runbook_name, filter:filter, custom_headers:custom_headers).value!
159
+ def list_by_test_job_with_http_info(resource_group_name, automation_account_name, runbook_name, filter:nil, custom_headers:nil)
160
+ list_by_test_job_async(resource_group_name, automation_account_name, runbook_name, filter:filter, custom_headers:custom_headers).value!
151
161
  end
152
162
 
153
163
  #
154
164
  # Retrieve a list of test job streams identified by runbook name.
155
165
  #
156
- # @param automation_account_name [String] The automation account name.
166
+ # @param resource_group_name [String] Name of an Azure Resource group.
167
+ # @param automation_account_name [String] The name of the automation account.
157
168
  # @param runbook_name [String] The runbook name.
158
169
  # @param filter [String] The filter to apply on the operation.
159
170
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -161,12 +172,14 @@ module Azure::Automation::Mgmt::V2015_10_31
161
172
  #
162
173
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
163
174
  #
164
- def list_by_test_job_async(automation_account_name, runbook_name, filter:nil, custom_headers:nil)
165
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
166
- fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
175
+ def list_by_test_job_async(resource_group_name, automation_account_name, runbook_name, filter:nil, custom_headers:nil)
176
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
177
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
178
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
179
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
180
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
167
181
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
168
182
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
169
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
170
183
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
171
184
 
172
185
 
@@ -182,7 +195,7 @@ module Azure::Automation::Mgmt::V2015_10_31
182
195
 
183
196
  options = {
184
197
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
185
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
198
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name},
186
199
  query_params: {'$filter' => filter,'api-version' => @client.api_version},
187
200
  headers: request_headers.merge(custom_headers || {}),
188
201
  base_url: request_url
@@ -307,7 +320,8 @@ module Azure::Automation::Mgmt::V2015_10_31
307
320
  #
308
321
  # Retrieve a list of test job streams identified by runbook name.
309
322
  #
310
- # @param automation_account_name [String] The automation account name.
323
+ # @param resource_group_name [String] Name of an Azure Resource group.
324
+ # @param automation_account_name [String] The name of the automation account.
311
325
  # @param runbook_name [String] The runbook name.
312
326
  # @param filter [String] The filter to apply on the operation.
313
327
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -316,8 +330,8 @@ module Azure::Automation::Mgmt::V2015_10_31
316
330
  # @return [JobStreamListResult] which provide lazy access to pages of the
317
331
  # response.
318
332
  #
319
- def list_by_test_job_as_lazy(automation_account_name, runbook_name, filter:nil, custom_headers:nil)
320
- response = list_by_test_job_async(automation_account_name, runbook_name, filter:filter, custom_headers:custom_headers).value!
333
+ def list_by_test_job_as_lazy(resource_group_name, automation_account_name, runbook_name, filter:nil, custom_headers:nil)
334
+ response = list_by_test_job_async(resource_group_name, automation_account_name, runbook_name, filter:filter, custom_headers:custom_headers).value!
321
335
  unless response.nil?
322
336
  page = response.body
323
337
  page.next_method = Proc.new do |next_page_link|
@@ -24,8 +24,8 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Retrieve the usage for the account id.
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 custom_headers [Hash{String => String}] A hash of custom headers that
30
30
  # will be added to the HTTP request.
31
31
  #
@@ -39,8 +39,8 @@ module Azure::Automation::Mgmt::V2015_10_31
39
39
  #
40
40
  # Retrieve the usage for the account id.
41
41
  #
42
- # @param resource_group_name [String] The resource group name.
43
- # @param automation_account_name [String] The automation account name.
42
+ # @param resource_group_name [String] Name of an Azure Resource group.
43
+ # @param automation_account_name [String] The name of the automation account.
44
44
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
45
45
  # will be added to the HTTP request.
46
46
  #
@@ -53,8 +53,8 @@ module Azure::Automation::Mgmt::V2015_10_31
53
53
  #
54
54
  # Retrieve the usage for the account id.
55
55
  #
56
- # @param resource_group_name [String] The resource group name.
57
- # @param automation_account_name [String] The automation account name.
56
+ # @param resource_group_name [String] Name of an Azure Resource group.
57
+ # @param automation_account_name [String] The name of the automation account.
58
58
  # @param [Hash{String => String}] A hash of custom headers that will be added
59
59
  # to the HTTP request.
60
60
  #
@@ -62,6 +62,8 @@ module Azure::Automation::Mgmt::V2015_10_31
62
62
  #
63
63
  def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil)
64
64
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
65
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
66
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
65
67
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
66
68
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
67
69
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -24,7 +24,8 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Create a variable.
26
26
  #
27
- # @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.
28
29
  # @param variable_name [String] The variable name.
29
30
  # @param parameters [VariableCreateOrUpdateParameters] The parameters supplied
30
31
  # to the create or update variable operation.
@@ -33,15 +34,16 @@ module Azure::Automation::Mgmt::V2015_10_31
33
34
  #
34
35
  # @return [Variable] operation results.
35
36
  #
36
- def create_or_update(automation_account_name, variable_name, parameters, custom_headers:nil)
37
- response = create_or_update_async(automation_account_name, variable_name, parameters, custom_headers:custom_headers).value!
37
+ def create_or_update(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:nil)
38
+ response = create_or_update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:custom_headers).value!
38
39
  response.body unless response.nil?
39
40
  end
40
41
 
41
42
  #
42
43
  # Create a variable.
43
44
  #
44
- # @param automation_account_name [String] The automation account name.
45
+ # @param resource_group_name [String] Name of an Azure Resource group.
46
+ # @param automation_account_name [String] The name of the automation account.
45
47
  # @param variable_name [String] The variable name.
46
48
  # @param parameters [VariableCreateOrUpdateParameters] The parameters supplied
47
49
  # to the create or update variable operation.
@@ -50,14 +52,15 @@ module Azure::Automation::Mgmt::V2015_10_31
50
52
  #
51
53
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
54
  #
53
- def create_or_update_with_http_info(automation_account_name, variable_name, parameters, custom_headers:nil)
54
- create_or_update_async(automation_account_name, variable_name, parameters, custom_headers:custom_headers).value!
55
+ def create_or_update_with_http_info(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:nil)
56
+ create_or_update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:custom_headers).value!
55
57
  end
56
58
 
57
59
  #
58
60
  # Create a variable.
59
61
  #
60
- # @param automation_account_name [String] The automation account name.
62
+ # @param resource_group_name [String] Name of an Azure Resource group.
63
+ # @param automation_account_name [String] The name of the automation account.
61
64
  # @param variable_name [String] The variable name.
62
65
  # @param parameters [VariableCreateOrUpdateParameters] The parameters supplied
63
66
  # to the create or update variable operation.
@@ -66,9 +69,11 @@ module Azure::Automation::Mgmt::V2015_10_31
66
69
  #
67
70
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
71
  #
69
- def create_or_update_async(automation_account_name, variable_name, parameters, custom_headers:nil)
70
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
71
- fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
72
+ def create_or_update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:nil)
73
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
74
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
75
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
76
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
72
77
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
73
78
  fail ArgumentError, 'variable_name is nil' if variable_name.nil?
74
79
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -94,7 +99,7 @@ module Azure::Automation::Mgmt::V2015_10_31
94
99
 
95
100
  options = {
96
101
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
97
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id},
102
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id},
98
103
  query_params: {'api-version' => @client.api_version},
99
104
  body: request_content,
100
105
  headers: request_headers.merge(custom_headers || {}),
@@ -142,7 +147,8 @@ module Azure::Automation::Mgmt::V2015_10_31
142
147
  #
143
148
  # Update a variable.
144
149
  #
145
- # @param automation_account_name [String] The automation account name.
150
+ # @param resource_group_name [String] Name of an Azure Resource group.
151
+ # @param automation_account_name [String] The name of the automation account.
146
152
  # @param variable_name [String] The variable name.
147
153
  # @param parameters [VariableUpdateParameters] The parameters supplied to the
148
154
  # update variable operation.
@@ -151,15 +157,16 @@ module Azure::Automation::Mgmt::V2015_10_31
151
157
  #
152
158
  # @return [Variable] operation results.
153
159
  #
154
- def update(automation_account_name, variable_name, parameters, custom_headers:nil)
155
- response = update_async(automation_account_name, variable_name, parameters, custom_headers:custom_headers).value!
160
+ def update(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:nil)
161
+ response = update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:custom_headers).value!
156
162
  response.body unless response.nil?
157
163
  end
158
164
 
159
165
  #
160
166
  # Update a variable.
161
167
  #
162
- # @param automation_account_name [String] The automation account name.
168
+ # @param resource_group_name [String] Name of an Azure Resource group.
169
+ # @param automation_account_name [String] The name of the automation account.
163
170
  # @param variable_name [String] The variable name.
164
171
  # @param parameters [VariableUpdateParameters] The parameters supplied to the
165
172
  # update variable operation.
@@ -168,14 +175,15 @@ module Azure::Automation::Mgmt::V2015_10_31
168
175
  #
169
176
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
170
177
  #
171
- def update_with_http_info(automation_account_name, variable_name, parameters, custom_headers:nil)
172
- update_async(automation_account_name, variable_name, parameters, custom_headers:custom_headers).value!
178
+ def update_with_http_info(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:nil)
179
+ update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:custom_headers).value!
173
180
  end
174
181
 
175
182
  #
176
183
  # Update a variable.
177
184
  #
178
- # @param automation_account_name [String] The automation account name.
185
+ # @param resource_group_name [String] Name of an Azure Resource group.
186
+ # @param automation_account_name [String] The name of the automation account.
179
187
  # @param variable_name [String] The variable name.
180
188
  # @param parameters [VariableUpdateParameters] The parameters supplied to the
181
189
  # update variable operation.
@@ -184,9 +192,11 @@ module Azure::Automation::Mgmt::V2015_10_31
184
192
  #
185
193
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
186
194
  #
187
- def update_async(automation_account_name, variable_name, parameters, custom_headers:nil)
188
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
189
- fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
195
+ def update_async(resource_group_name, automation_account_name, variable_name, parameters, custom_headers:nil)
196
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
197
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
198
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
199
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
190
200
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
191
201
  fail ArgumentError, 'variable_name is nil' if variable_name.nil?
192
202
  fail ArgumentError, 'parameters is nil' if parameters.nil?
@@ -212,7 +222,7 @@ module Azure::Automation::Mgmt::V2015_10_31
212
222
 
213
223
  options = {
214
224
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
215
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id},
225
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id},
216
226
  query_params: {'api-version' => @client.api_version},
217
227
  body: request_content,
218
228
  headers: request_headers.merge(custom_headers || {}),
@@ -250,44 +260,49 @@ module Azure::Automation::Mgmt::V2015_10_31
250
260
  #
251
261
  # Delete the variable.
252
262
  #
253
- # @param automation_account_name [String] The automation account name.
263
+ # @param resource_group_name [String] Name of an Azure Resource group.
264
+ # @param automation_account_name [String] The name of the automation account.
254
265
  # @param variable_name [String] The name of variable.
255
266
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
256
267
  # will be added to the HTTP request.
257
268
  #
258
269
  #
259
- def delete(automation_account_name, variable_name, custom_headers:nil)
260
- response = delete_async(automation_account_name, variable_name, custom_headers:custom_headers).value!
270
+ def delete(resource_group_name, automation_account_name, variable_name, custom_headers:nil)
271
+ response = delete_async(resource_group_name, automation_account_name, variable_name, custom_headers:custom_headers).value!
261
272
  nil
262
273
  end
263
274
 
264
275
  #
265
276
  # Delete the variable.
266
277
  #
267
- # @param automation_account_name [String] The automation account name.
278
+ # @param resource_group_name [String] Name of an Azure Resource group.
279
+ # @param automation_account_name [String] The name of the automation account.
268
280
  # @param variable_name [String] The name of variable.
269
281
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
270
282
  # will be added to the HTTP request.
271
283
  #
272
284
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
273
285
  #
274
- def delete_with_http_info(automation_account_name, variable_name, custom_headers:nil)
275
- delete_async(automation_account_name, variable_name, custom_headers:custom_headers).value!
286
+ def delete_with_http_info(resource_group_name, automation_account_name, variable_name, custom_headers:nil)
287
+ delete_async(resource_group_name, automation_account_name, variable_name, custom_headers:custom_headers).value!
276
288
  end
277
289
 
278
290
  #
279
291
  # Delete the variable.
280
292
  #
281
- # @param automation_account_name [String] The automation account name.
293
+ # @param resource_group_name [String] Name of an Azure Resource group.
294
+ # @param automation_account_name [String] The name of the automation account.
282
295
  # @param variable_name [String] The name of variable.
283
296
  # @param [Hash{String => String}] A hash of custom headers that will be added
284
297
  # to the HTTP request.
285
298
  #
286
299
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
287
300
  #
288
- def delete_async(automation_account_name, variable_name, custom_headers:nil)
289
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
290
- fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
301
+ def delete_async(resource_group_name, automation_account_name, variable_name, custom_headers:nil)
302
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
303
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
304
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
305
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
291
306
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
292
307
  fail ArgumentError, 'variable_name is nil' if variable_name.nil?
293
308
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -306,7 +321,7 @@ module Azure::Automation::Mgmt::V2015_10_31
306
321
 
307
322
  options = {
308
323
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
309
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id},
324
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id},
310
325
  query_params: {'api-version' => @client.api_version},
311
326
  headers: request_headers.merge(custom_headers || {}),
312
327
  base_url: request_url
@@ -333,45 +348,50 @@ module Azure::Automation::Mgmt::V2015_10_31
333
348
  #
334
349
  # Retrieve the variable identified by variable name.
335
350
  #
336
- # @param automation_account_name [String] The automation account name.
351
+ # @param resource_group_name [String] Name of an Azure Resource group.
352
+ # @param automation_account_name [String] The name of the automation account.
337
353
  # @param variable_name [String] The name of variable.
338
354
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
339
355
  # will be added to the HTTP request.
340
356
  #
341
357
  # @return [Variable] operation results.
342
358
  #
343
- def get(automation_account_name, variable_name, custom_headers:nil)
344
- response = get_async(automation_account_name, variable_name, custom_headers:custom_headers).value!
359
+ def get(resource_group_name, automation_account_name, variable_name, custom_headers:nil)
360
+ response = get_async(resource_group_name, automation_account_name, variable_name, custom_headers:custom_headers).value!
345
361
  response.body unless response.nil?
346
362
  end
347
363
 
348
364
  #
349
365
  # Retrieve the variable identified by variable name.
350
366
  #
351
- # @param automation_account_name [String] The automation account name.
367
+ # @param resource_group_name [String] Name of an Azure Resource group.
368
+ # @param automation_account_name [String] The name of the automation account.
352
369
  # @param variable_name [String] The name of variable.
353
370
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
354
371
  # will be added to the HTTP request.
355
372
  #
356
373
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
357
374
  #
358
- def get_with_http_info(automation_account_name, variable_name, custom_headers:nil)
359
- get_async(automation_account_name, variable_name, custom_headers:custom_headers).value!
375
+ def get_with_http_info(resource_group_name, automation_account_name, variable_name, custom_headers:nil)
376
+ get_async(resource_group_name, automation_account_name, variable_name, custom_headers:custom_headers).value!
360
377
  end
361
378
 
362
379
  #
363
380
  # Retrieve the variable identified by variable name.
364
381
  #
365
- # @param automation_account_name [String] The automation account name.
382
+ # @param resource_group_name [String] Name of an Azure Resource group.
383
+ # @param automation_account_name [String] The name of the automation account.
366
384
  # @param variable_name [String] The name of variable.
367
385
  # @param [Hash{String => String}] A hash of custom headers that will be added
368
386
  # to the HTTP request.
369
387
  #
370
388
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
371
389
  #
372
- def get_async(automation_account_name, variable_name, custom_headers:nil)
373
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
374
- fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
390
+ def get_async(resource_group_name, automation_account_name, variable_name, custom_headers:nil)
391
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
392
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
393
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
394
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
375
395
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
376
396
  fail ArgumentError, 'variable_name is nil' if variable_name.nil?
377
397
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -390,7 +410,7 @@ module Azure::Automation::Mgmt::V2015_10_31
390
410
 
391
411
  options = {
392
412
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
393
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id},
413
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'variableName' => variable_name,'subscriptionId' => @client.subscription_id},
394
414
  query_params: {'api-version' => @client.api_version},
395
415
  headers: request_headers.merge(custom_headers || {}),
396
416
  base_url: request_url
@@ -427,42 +447,47 @@ module Azure::Automation::Mgmt::V2015_10_31
427
447
  #
428
448
  # Retrieve a list of variables.
429
449
  #
430
- # @param automation_account_name [String] The automation account name.
450
+ # @param resource_group_name [String] Name of an Azure Resource group.
451
+ # @param automation_account_name [String] The name of the automation account.
431
452
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
432
453
  # will be added to the HTTP request.
433
454
  #
434
455
  # @return [Array<Variable>] operation results.
435
456
  #
436
- def list_by_automation_account(automation_account_name, custom_headers:nil)
437
- first_page = list_by_automation_account_as_lazy(automation_account_name, custom_headers:custom_headers)
457
+ def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil)
458
+ first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers)
438
459
  first_page.get_all_items
439
460
  end
440
461
 
441
462
  #
442
463
  # Retrieve a list of variables.
443
464
  #
444
- # @param automation_account_name [String] The automation account name.
465
+ # @param resource_group_name [String] Name of an Azure Resource group.
466
+ # @param automation_account_name [String] The name of the automation account.
445
467
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
446
468
  # will be added to the HTTP request.
447
469
  #
448
470
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
449
471
  #
450
- def list_by_automation_account_with_http_info(automation_account_name, custom_headers:nil)
451
- list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
472
+ def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil)
473
+ list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
452
474
  end
453
475
 
454
476
  #
455
477
  # Retrieve a list of variables.
456
478
  #
457
- # @param automation_account_name [String] The automation account name.
479
+ # @param resource_group_name [String] Name of an Azure Resource group.
480
+ # @param automation_account_name [String] The name of the automation account.
458
481
  # @param [Hash{String => String}] A hash of custom headers that will be added
459
482
  # to the HTTP request.
460
483
  #
461
484
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
462
485
  #
463
- def list_by_automation_account_async(automation_account_name, custom_headers:nil)
464
- fail ArgumentError, '@client.resource_group_name is nil' if @client.resource_group_name.nil?
465
- fail ArgumentError, "'@client.resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !@client.resource_group_name.nil? && @client.resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
486
+ def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil)
487
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
488
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
489
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
490
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
466
491
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
467
492
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
468
493
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
@@ -480,7 +505,7 @@ module Azure::Automation::Mgmt::V2015_10_31
480
505
 
481
506
  options = {
482
507
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
483
- path_params: {'resourceGroupName' => @client.resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
508
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
484
509
  query_params: {'api-version' => @client.api_version},
485
510
  headers: request_headers.merge(custom_headers || {}),
486
511
  base_url: request_url
@@ -605,15 +630,16 @@ module Azure::Automation::Mgmt::V2015_10_31
605
630
  #
606
631
  # Retrieve a list of variables.
607
632
  #
608
- # @param automation_account_name [String] The automation account name.
633
+ # @param resource_group_name [String] Name of an Azure Resource group.
634
+ # @param automation_account_name [String] The name of the automation account.
609
635
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
610
636
  # will be added to the HTTP request.
611
637
  #
612
638
  # @return [VariableListResult] which provide lazy access to pages of the
613
639
  # response.
614
640
  #
615
- def list_by_automation_account_as_lazy(automation_account_name, custom_headers:nil)
616
- response = list_by_automation_account_async(automation_account_name, custom_headers:custom_headers).value!
641
+ def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil)
642
+ response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
617
643
  unless response.nil?
618
644
  page = response.body
619
645
  page.next_method = Proc.new do |next_page_link|