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
@@ -7,11 +7,11 @@ module Azure::Automation::Mgmt::V2015_10_31
7
7
  #
8
8
  # Automation Client
9
9
  #
10
- class TestJobs
10
+ class TestJobOperations
11
11
  include MsRestAzure
12
12
 
13
13
  #
14
- # Creates and initializes a new instance of the TestJobs class.
14
+ # Creates and initializes a new instance of the TestJobOperations class.
15
15
  # @param client service class for accessing basic functionality.
16
16
  #
17
17
  def initialize(client)
@@ -24,8 +24,8 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Create a test job of the runbook.
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 parameters supplied to the create test job
30
30
  # operation.
31
31
  # @param parameters [TestJobCreateParameters] The parameters supplied to the
@@ -35,16 +35,16 @@ module Azure::Automation::Mgmt::V2015_10_31
35
35
  #
36
36
  # @return [TestJob] operation results.
37
37
  #
38
- def create(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil)
39
- response = create_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers).value!
38
+ def create(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:nil)
39
+ response = create_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value!
40
40
  response.body unless response.nil?
41
41
  end
42
42
 
43
43
  #
44
44
  # Create a test job of the runbook.
45
45
  #
46
- # @param resource_group_name [String] The resource group name.
47
- # @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.
48
48
  # @param runbook_name [String] The parameters supplied to the create test job
49
49
  # operation.
50
50
  # @param parameters [TestJobCreateParameters] The parameters supplied to the
@@ -54,15 +54,15 @@ module Azure::Automation::Mgmt::V2015_10_31
54
54
  #
55
55
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
56
56
  #
57
- def create_with_http_info(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil)
58
- create_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers).value!
57
+ def create_with_http_info(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:nil)
58
+ create_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:custom_headers).value!
59
59
  end
60
60
 
61
61
  #
62
62
  # Create a test job of the runbook.
63
63
  #
64
- # @param resource_group_name [String] The resource group name.
65
- # @param automation_account_name [String] The automation account name.
64
+ # @param resource_group_name [String] Name of an Azure Resource group.
65
+ # @param automation_account_name [String] The name of the automation account.
66
66
  # @param runbook_name [String] The parameters supplied to the create test job
67
67
  # operation.
68
68
  # @param parameters [TestJobCreateParameters] The parameters supplied to the
@@ -72,24 +72,25 @@ module Azure::Automation::Mgmt::V2015_10_31
72
72
  #
73
73
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
74
74
  #
75
- def create_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers = nil)
75
+ def create_async(resource_group_name, automation_account_name, runbook_name, parameters, custom_headers:nil)
76
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
76
77
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
78
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
79
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
77
80
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
78
81
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
79
82
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
80
83
  fail ArgumentError, 'parameters is nil' if parameters.nil?
81
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
82
84
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
83
85
 
84
86
 
85
87
  request_headers = {}
88
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
86
89
 
87
90
  # Set Headers
88
91
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
89
92
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
90
93
 
91
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
92
-
93
94
  # Serialize Request
94
95
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::TestJobCreateParameters.mapper()
95
96
  request_content = @client.serialize(request_mapper, parameters)
@@ -101,7 +102,7 @@ module Azure::Automation::Mgmt::V2015_10_31
101
102
 
102
103
  options = {
103
104
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
104
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
105
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name},
105
106
  query_params: {'api-version' => @client.api_version},
106
107
  body: request_content,
107
108
  headers: request_headers.merge(custom_headers || {}),
@@ -139,55 +140,58 @@ module Azure::Automation::Mgmt::V2015_10_31
139
140
  #
140
141
  # Retrieve the test job for the specified runbook.
141
142
  #
142
- # @param resource_group_name [String] The resource group name.
143
- # @param automation_account_name [String] The automation account name.
143
+ # @param resource_group_name [String] Name of an Azure Resource group.
144
+ # @param automation_account_name [String] The name of the automation account.
144
145
  # @param runbook_name [String] The runbook name.
145
146
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
146
147
  # will be added to the HTTP request.
147
148
  #
148
149
  # @return [TestJob] operation results.
149
150
  #
150
- def get(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
151
- response = get_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
151
+ def get(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
152
+ response = get_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
152
153
  response.body unless response.nil?
153
154
  end
154
155
 
155
156
  #
156
157
  # Retrieve the test job for the specified runbook.
157
158
  #
158
- # @param resource_group_name [String] The resource group name.
159
- # @param automation_account_name [String] The automation account name.
159
+ # @param resource_group_name [String] Name of an Azure Resource group.
160
+ # @param automation_account_name [String] The name of the automation account.
160
161
  # @param runbook_name [String] The runbook name.
161
162
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
162
163
  # will be added to the HTTP request.
163
164
  #
164
165
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
165
166
  #
166
- def get_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
167
- get_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
167
+ def get_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
168
+ get_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
168
169
  end
169
170
 
170
171
  #
171
172
  # Retrieve the test job for the specified runbook.
172
173
  #
173
- # @param resource_group_name [String] The resource group name.
174
- # @param automation_account_name [String] The automation account name.
174
+ # @param resource_group_name [String] Name of an Azure Resource group.
175
+ # @param automation_account_name [String] The name of the automation account.
175
176
  # @param runbook_name [String] The runbook name.
176
177
  # @param [Hash{String => String}] A hash of custom headers that will be added
177
178
  # to the HTTP request.
178
179
  #
179
180
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
180
181
  #
181
- def get_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
182
+ def get_async(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
183
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
182
184
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
185
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
186
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
183
187
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
184
188
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
185
189
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
186
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
187
190
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
188
191
 
189
192
 
190
193
  request_headers = {}
194
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
191
195
 
192
196
  # Set Headers
193
197
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -198,7 +202,7 @@ module Azure::Automation::Mgmt::V2015_10_31
198
202
 
199
203
  options = {
200
204
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
201
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
205
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name},
202
206
  query_params: {'api-version' => @client.api_version},
203
207
  headers: request_headers.merge(custom_headers || {}),
204
208
  base_url: request_url
@@ -235,54 +239,57 @@ module Azure::Automation::Mgmt::V2015_10_31
235
239
  #
236
240
  # Resume the test job.
237
241
  #
238
- # @param resource_group_name [String] The resource group name.
239
- # @param automation_account_name [String] The automation account name.
242
+ # @param resource_group_name [String] Name of an Azure Resource group.
243
+ # @param automation_account_name [String] The name of the automation account.
240
244
  # @param runbook_name [String] The runbook name.
241
245
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
242
246
  # will be added to the HTTP request.
243
247
  #
244
248
  #
245
- def resume(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
246
- response = resume_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
249
+ def resume(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
250
+ response = resume_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
247
251
  nil
248
252
  end
249
253
 
250
254
  #
251
255
  # Resume the test job.
252
256
  #
253
- # @param resource_group_name [String] The resource group name.
254
- # @param automation_account_name [String] The automation account name.
257
+ # @param resource_group_name [String] Name of an Azure Resource group.
258
+ # @param automation_account_name [String] The name of the automation account.
255
259
  # @param runbook_name [String] The runbook name.
256
260
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
257
261
  # will be added to the HTTP request.
258
262
  #
259
263
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
260
264
  #
261
- def resume_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
262
- resume_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
265
+ def resume_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
266
+ resume_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
263
267
  end
264
268
 
265
269
  #
266
270
  # Resume the test job.
267
271
  #
268
- # @param resource_group_name [String] The resource group name.
269
- # @param automation_account_name [String] The automation account name.
272
+ # @param resource_group_name [String] Name of an Azure Resource group.
273
+ # @param automation_account_name [String] The name of the automation account.
270
274
  # @param runbook_name [String] The runbook name.
271
275
  # @param [Hash{String => String}] A hash of custom headers that will be added
272
276
  # to the HTTP request.
273
277
  #
274
278
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
275
279
  #
276
- def resume_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
280
+ def resume_async(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
281
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
277
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
278
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?
279
286
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
280
287
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
281
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
282
288
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
283
289
 
284
290
 
285
291
  request_headers = {}
292
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
286
293
 
287
294
  # Set Headers
288
295
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -293,7 +300,7 @@ module Azure::Automation::Mgmt::V2015_10_31
293
300
 
294
301
  options = {
295
302
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
296
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
303
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name},
297
304
  query_params: {'api-version' => @client.api_version},
298
305
  headers: request_headers.merge(custom_headers || {}),
299
306
  base_url: request_url
@@ -320,54 +327,57 @@ module Azure::Automation::Mgmt::V2015_10_31
320
327
  #
321
328
  # Stop the test job.
322
329
  #
323
- # @param resource_group_name [String] The resource group name.
324
- # @param automation_account_name [String] The automation account name.
330
+ # @param resource_group_name [String] Name of an Azure Resource group.
331
+ # @param automation_account_name [String] The name of the automation account.
325
332
  # @param runbook_name [String] The runbook name.
326
333
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
327
334
  # will be added to the HTTP request.
328
335
  #
329
336
  #
330
- def stop(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
331
- response = stop_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
337
+ def stop(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
338
+ response = stop_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
332
339
  nil
333
340
  end
334
341
 
335
342
  #
336
343
  # Stop the test job.
337
344
  #
338
- # @param resource_group_name [String] The resource group name.
339
- # @param automation_account_name [String] The automation account name.
345
+ # @param resource_group_name [String] Name of an Azure Resource group.
346
+ # @param automation_account_name [String] The name of the automation account.
340
347
  # @param runbook_name [String] The runbook name.
341
348
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
342
349
  # will be added to the HTTP request.
343
350
  #
344
351
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
345
352
  #
346
- def stop_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
347
- stop_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
353
+ def stop_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
354
+ stop_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
348
355
  end
349
356
 
350
357
  #
351
358
  # Stop the test job.
352
359
  #
353
- # @param resource_group_name [String] The resource group name.
354
- # @param automation_account_name [String] The automation account name.
360
+ # @param resource_group_name [String] Name of an Azure Resource group.
361
+ # @param automation_account_name [String] The name of the automation account.
355
362
  # @param runbook_name [String] The runbook name.
356
363
  # @param [Hash{String => String}] A hash of custom headers that will be added
357
364
  # to the HTTP request.
358
365
  #
359
366
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
360
367
  #
361
- def stop_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
368
+ def stop_async(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
369
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
362
370
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
371
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
372
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
363
373
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
364
374
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
365
375
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
366
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
367
376
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
368
377
 
369
378
 
370
379
  request_headers = {}
380
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
371
381
 
372
382
  # Set Headers
373
383
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -378,7 +388,7 @@ module Azure::Automation::Mgmt::V2015_10_31
378
388
 
379
389
  options = {
380
390
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
381
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
391
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name},
382
392
  query_params: {'api-version' => @client.api_version},
383
393
  headers: request_headers.merge(custom_headers || {}),
384
394
  base_url: request_url
@@ -405,54 +415,57 @@ module Azure::Automation::Mgmt::V2015_10_31
405
415
  #
406
416
  # Suspend the test job.
407
417
  #
408
- # @param resource_group_name [String] The resource group name.
409
- # @param automation_account_name [String] The automation account name.
418
+ # @param resource_group_name [String] Name of an Azure Resource group.
419
+ # @param automation_account_name [String] The name of the automation account.
410
420
  # @param runbook_name [String] The runbook name.
411
421
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
412
422
  # will be added to the HTTP request.
413
423
  #
414
424
  #
415
- def suspend(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
416
- response = suspend_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
425
+ def suspend(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
426
+ response = suspend_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
417
427
  nil
418
428
  end
419
429
 
420
430
  #
421
431
  # Suspend the test job.
422
432
  #
423
- # @param resource_group_name [String] The resource group name.
424
- # @param automation_account_name [String] The automation account name.
433
+ # @param resource_group_name [String] Name of an Azure Resource group.
434
+ # @param automation_account_name [String] The name of the automation account.
425
435
  # @param runbook_name [String] The runbook name.
426
436
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
427
437
  # will be added to the HTTP request.
428
438
  #
429
439
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
430
440
  #
431
- def suspend_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
432
- suspend_async(resource_group_name, automation_account_name, runbook_name, custom_headers).value!
441
+ def suspend_with_http_info(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
442
+ suspend_async(resource_group_name, automation_account_name, runbook_name, custom_headers:custom_headers).value!
433
443
  end
434
444
 
435
445
  #
436
446
  # Suspend the test job.
437
447
  #
438
- # @param resource_group_name [String] The resource group name.
439
- # @param automation_account_name [String] The automation account name.
448
+ # @param resource_group_name [String] Name of an Azure Resource group.
449
+ # @param automation_account_name [String] The name of the automation account.
440
450
  # @param runbook_name [String] The runbook name.
441
451
  # @param [Hash{String => String}] A hash of custom headers that will be added
442
452
  # to the HTTP request.
443
453
  #
444
454
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
445
455
  #
446
- def suspend_async(resource_group_name, automation_account_name, runbook_name, custom_headers = nil)
456
+ def suspend_async(resource_group_name, automation_account_name, runbook_name, custom_headers:nil)
457
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
447
458
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
459
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
460
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
448
461
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
449
462
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
450
463
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
451
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
452
464
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
453
465
 
454
466
 
455
467
  request_headers = {}
468
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
456
469
 
457
470
  # Set Headers
458
471
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -463,7 +476,7 @@ module Azure::Automation::Mgmt::V2015_10_31
463
476
 
464
477
  options = {
465
478
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
466
- path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name,'subscriptionId' => @client.subscription_id},
479
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name},
467
480
  query_params: {'api-version' => @client.api_version},
468
481
  headers: request_headers.merge(custom_headers || {}),
469
482
  base_url: request_url
@@ -22,10 +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 resource_group_name [String] The resource group name.
28
- # @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.
29
30
  # @param runbook_name [String] The runbook name.
30
31
  # @param job_stream_id [String] The job stream id.
31
32
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -33,16 +34,17 @@ module Azure::Automation::Mgmt::V2015_10_31
33
34
  #
34
35
  # @return [JobStream] operation results.
35
36
  #
36
- def get(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers = nil)
37
- response = get_async(resource_group_name, automation_account_name, runbook_name, job_stream_id, 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!
38
39
  response.body unless response.nil?
39
40
  end
40
41
 
41
42
  #
42
- # 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.
43
45
  #
44
- # @param resource_group_name [String] The resource group name.
45
- # @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.
46
48
  # @param runbook_name [String] The runbook name.
47
49
  # @param job_stream_id [String] The job stream id.
48
50
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -50,15 +52,16 @@ module Azure::Automation::Mgmt::V2015_10_31
50
52
  #
51
53
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
54
  #
53
- def get_with_http_info(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers = nil)
54
- get_async(resource_group_name, automation_account_name, runbook_name, job_stream_id, 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!
55
57
  end
56
58
 
57
59
  #
58
- # 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.
59
62
  #
60
- # @param resource_group_name [String] The resource group name.
61
- # @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.
62
65
  # @param runbook_name [String] The runbook name.
63
66
  # @param job_stream_id [String] The job stream id.
64
67
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -66,17 +69,20 @@ 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 get_async(resource_group_name, automation_account_name, runbook_name, job_stream_id, custom_headers = 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?
70
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
71
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?
72
78
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
73
79
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
74
80
  fail ArgumentError, 'job_stream_id is nil' if job_stream_id.nil?
75
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
76
81
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
77
82
 
78
83
 
79
84
  request_headers = {}
85
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
80
86
 
81
87
  # Set Headers
82
88
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -87,7 +93,7 @@ module Azure::Automation::Mgmt::V2015_10_31
87
93
 
88
94
  options = {
89
95
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
90
- path_params: {'resourceGroupName' => 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},
91
97
  query_params: {'api-version' => @client.api_version},
92
98
  headers: request_headers.merge(custom_headers || {}),
93
99
  base_url: request_url
@@ -124,8 +130,8 @@ module Azure::Automation::Mgmt::V2015_10_31
124
130
  #
125
131
  # Retrieve a list of test job streams identified by runbook name.
126
132
  #
127
- # @param resource_group_name [String] The resource group name.
128
- # @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.
129
135
  # @param runbook_name [String] The runbook name.
130
136
  # @param filter [String] The filter to apply on the operation.
131
137
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -133,16 +139,16 @@ module Azure::Automation::Mgmt::V2015_10_31
133
139
  #
134
140
  # @return [Array<JobStream>] operation results.
135
141
  #
136
- def list_by_test_job(resource_group_name, automation_account_name, runbook_name, filter = nil, custom_headers = nil)
137
- first_page = list_by_test_job_as_lazy(resource_group_name, automation_account_name, runbook_name, filter, 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)
138
144
  first_page.get_all_items
139
145
  end
140
146
 
141
147
  #
142
148
  # Retrieve a list of test job streams identified by runbook name.
143
149
  #
144
- # @param resource_group_name [String] The resource group name.
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 runbook_name [String] The runbook name.
147
153
  # @param filter [String] The filter to apply on the operation.
148
154
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -150,15 +156,15 @@ module Azure::Automation::Mgmt::V2015_10_31
150
156
  #
151
157
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
152
158
  #
153
- def list_by_test_job_with_http_info(resource_group_name, automation_account_name, runbook_name, filter = nil, custom_headers = nil)
154
- list_by_test_job_async(resource_group_name, automation_account_name, runbook_name, filter, 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!
155
161
  end
156
162
 
157
163
  #
158
164
  # Retrieve a list of test job streams identified by runbook name.
159
165
  #
160
- # @param resource_group_name [String] The resource group name.
161
- # @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.
162
168
  # @param runbook_name [String] The runbook name.
163
169
  # @param filter [String] The filter to apply on the operation.
164
170
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -166,16 +172,19 @@ module Azure::Automation::Mgmt::V2015_10_31
166
172
  #
167
173
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
168
174
  #
169
- def list_by_test_job_async(resource_group_name, automation_account_name, runbook_name, filter = nil, custom_headers = 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?
170
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
171
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?
172
181
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
173
182
  fail ArgumentError, 'runbook_name is nil' if runbook_name.nil?
174
- fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
175
183
  fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
176
184
 
177
185
 
178
186
  request_headers = {}
187
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
179
188
 
180
189
  # Set Headers
181
190
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -186,7 +195,7 @@ module Azure::Automation::Mgmt::V2015_10_31
186
195
 
187
196
  options = {
188
197
  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},
198
+ path_params: {'subscriptionId' => @client.subscription_id,'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'runbookName' => runbook_name},
190
199
  query_params: {'$filter' => filter,'api-version' => @client.api_version},
191
200
  headers: request_headers.merge(custom_headers || {}),
192
201
  base_url: request_url
@@ -230,8 +239,8 @@ module Azure::Automation::Mgmt::V2015_10_31
230
239
  #
231
240
  # @return [JobStreamListResult] operation results.
232
241
  #
233
- def list_by_test_job_next(next_page_link, custom_headers = nil)
234
- response = list_by_test_job_next_async(next_page_link, custom_headers).value!
242
+ def list_by_test_job_next(next_page_link, custom_headers:nil)
243
+ response = list_by_test_job_next_async(next_page_link, custom_headers:custom_headers).value!
235
244
  response.body unless response.nil?
236
245
  end
237
246
 
@@ -245,8 +254,8 @@ module Azure::Automation::Mgmt::V2015_10_31
245
254
  #
246
255
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
247
256
  #
248
- def list_by_test_job_next_with_http_info(next_page_link, custom_headers = nil)
249
- list_by_test_job_next_async(next_page_link, custom_headers).value!
257
+ def list_by_test_job_next_with_http_info(next_page_link, custom_headers:nil)
258
+ list_by_test_job_next_async(next_page_link, custom_headers:custom_headers).value!
250
259
  end
251
260
 
252
261
  #
@@ -259,11 +268,12 @@ module Azure::Automation::Mgmt::V2015_10_31
259
268
  #
260
269
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
261
270
  #
262
- def list_by_test_job_next_async(next_page_link, custom_headers = nil)
271
+ def list_by_test_job_next_async(next_page_link, custom_headers:nil)
263
272
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
264
273
 
265
274
 
266
275
  request_headers = {}
276
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
267
277
 
268
278
  # Set Headers
269
279
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -310,8 +320,8 @@ module Azure::Automation::Mgmt::V2015_10_31
310
320
  #
311
321
  # Retrieve a list of test job streams identified by runbook name.
312
322
  #
313
- # @param resource_group_name [String] The resource group name.
314
- # @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.
315
325
  # @param runbook_name [String] The runbook name.
316
326
  # @param filter [String] The filter to apply on the operation.
317
327
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -320,12 +330,12 @@ module Azure::Automation::Mgmt::V2015_10_31
320
330
  # @return [JobStreamListResult] which provide lazy access to pages of the
321
331
  # response.
322
332
  #
323
- def list_by_test_job_as_lazy(resource_group_name, automation_account_name, runbook_name, filter = nil, custom_headers = nil)
324
- response = list_by_test_job_async(resource_group_name, automation_account_name, runbook_name, filter, 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!
325
335
  unless response.nil?
326
336
  page = response.body
327
337
  page.next_method = Proc.new do |next_page_link|
328
- list_by_test_job_next_async(next_page_link, custom_headers)
338
+ list_by_test_job_next_async(next_page_link, custom_headers:custom_headers)
329
339
  end
330
340
  page
331
341
  end