azure_mgmt_automation 0.15.2 → 0.17.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +5 -5
  2. data/lib/2015-10-31/generated/azure_mgmt_automation.rb +111 -97
  3. data/lib/2015-10-31/generated/azure_mgmt_automation/activity_operations.rb +39 -32
  4. data/lib/2015-10-31/generated/azure_mgmt_automation/agent_registration_information.rb +28 -24
  5. data/lib/2015-10-31/generated/azure_mgmt_automation/automation_account_operations.rb +92 -81
  6. data/lib/2015-10-31/generated/azure_mgmt_automation/automation_client.rb +25 -9
  7. data/lib/2015-10-31/generated/azure_mgmt_automation/certificate_operations.rb +81 -69
  8. data/lib/2015-10-31/generated/azure_mgmt_automation/connection_operations.rb +81 -69
  9. data/lib/2015-10-31/generated/azure_mgmt_automation/connection_type_operations.rb +67 -56
  10. data/lib/2015-10-31/generated/azure_mgmt_automation/credential_operations.rb +81 -69
  11. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_operations.rb +67 -56
  12. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_compilation_job_stream.rb +124 -0
  13. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_configuration_operations.rb +215 -70
  14. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_configuration_operations.rb +68 -67
  15. data/lib/2015-10-31/generated/azure_mgmt_automation/dsc_node_operations.rb +67 -56
  16. data/lib/2015-10-31/generated/azure_mgmt_automation/fields.rb +14 -11
  17. data/lib/2015-10-31/generated/azure_mgmt_automation/hybrid_runbook_worker_group_operations.rb +72 -57
  18. data/lib/2015-10-31/generated/azure_mgmt_automation/job_operations.rb +123 -100
  19. data/lib/2015-10-31/generated/azure_mgmt_automation/job_schedule_operations.rb +72 -57
  20. data/lib/2015-10-31/generated/azure_mgmt_automation/job_stream_operations.rb +39 -32
  21. data/lib/2015-10-31/generated/azure_mgmt_automation/keys.rb +120 -0
  22. data/lib/2015-10-31/generated/azure_mgmt_automation/linked_workspace_operations.rb +120 -0
  23. data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_list_result.rb +1 -1
  24. data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter.rb +35 -2
  25. data/lib/2015-10-31/generated/azure_mgmt_automation/models/activity_parameter_validation_set.rb +47 -0
  26. data/lib/2015-10-31/generated/azure_mgmt_automation/models/advanced_schedule_monthly_occurrence.rb +1 -1
  27. data/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_key_name.rb +2 -2
  28. data/lib/2015-10-31/generated/azure_mgmt_automation/models/agent_registration_regenerate_key_parameter.rb +2 -2
  29. data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account.rb +9 -9
  30. data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_account_list_result.rb +1 -1
  31. data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_key_name.rb +16 -0
  32. data/lib/2015-10-31/generated/azure_mgmt_automation/models/automation_key_permissions.rb +16 -0
  33. data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate.rb +10 -7
  34. data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_list_result.rb +1 -1
  35. data/lib/2015-10-31/generated/azure_mgmt_automation/models/certificate_update_parameters.rb +1 -1
  36. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection.rb +10 -7
  37. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_list_result.rb +1 -1
  38. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type.rb +12 -0
  39. data/lib/2015-10-31/generated/azure_mgmt_automation/models/connection_type_list_result.rb +1 -1
  40. data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential.rb +11 -7
  41. data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_list_result.rb +1 -1
  42. data/lib/2015-10-31/generated/azure_mgmt_automation/models/credential_update_parameters.rb +1 -1
  43. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job.rb +44 -4
  44. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_create_parameters.rb +12 -0
  45. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_compilation_job_list_result.rb +1 -1
  46. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration.rb +20 -9
  47. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_list_result.rb +13 -1
  48. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_configuration_update_parameters.rb +132 -0
  49. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node.rb +22 -25
  50. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration.rb +20 -15
  51. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_create_or_update_parameters.rb +13 -1
  52. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_configuration_list_result.rb +1 -1
  53. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_extension_handler_association_property.rb +58 -0
  54. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_list_result.rb +1 -1
  55. data/lib/2015-10-31/generated/azure_mgmt_automation/models/dsc_node_report_list_result.rb +1 -1
  56. data/lib/2015-10-31/generated/azure_mgmt_automation/models/group_type_enum.rb +16 -0
  57. data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker.rb +11 -0
  58. data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_group.rb +12 -0
  59. data/lib/2015-10-31/generated/azure_mgmt_automation/models/hybrid_runbook_worker_groups_list_result.rb +1 -1
  60. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job.rb +37 -1
  61. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_create_parameters.rb +0 -42
  62. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_list_result.rb +1 -1
  63. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_provisioning_state.rb +18 -0
  64. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule.rb +26 -1
  65. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_schedule_list_result.rb +1 -1
  66. data/lib/2015-10-31/generated/azure_mgmt_automation/models/job_stream_list_result.rb +1 -1
  67. data/lib/2015-10-31/generated/azure_mgmt_automation/models/key.rb +73 -0
  68. data/lib/2015-10-31/generated/azure_mgmt_automation/models/key_list_result.rb +56 -0
  69. data/lib/2015-10-31/generated/azure_mgmt_automation/models/{sub_resource.rb → linked_workspace.rb} +7 -6
  70. data/lib/2015-10-31/generated/azure_mgmt_automation/models/module_list_result.rb +1 -1
  71. data/lib/2015-10-31/generated/azure_mgmt_automation/models/module_model.rb +20 -9
  72. data/lib/2015-10-31/generated/azure_mgmt_automation/models/proxy_resource.rb +62 -0
  73. data/lib/2015-10-31/generated/azure_mgmt_automation/models/resource.rb +11 -32
  74. data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook.rb +9 -9
  75. data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_draft.rb +2 -1
  76. data/lib/2015-10-31/generated/azure_mgmt_automation/models/runbook_list_result.rb +1 -1
  77. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule.rb +12 -7
  78. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_association_property.rb +1 -1
  79. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_create_or_update_parameters.rb +3 -3
  80. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_list_result.rb +1 -1
  81. data/lib/2015-10-31/generated/azure_mgmt_automation/models/schedule_update_parameters.rb +2 -2
  82. data/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job.rb +11 -0
  83. data/lib/2015-10-31/generated/azure_mgmt_automation/models/test_job_create_parameters.rb +0 -11
  84. data/lib/2015-10-31/generated/azure_mgmt_automation/models/tracked_resource.rb +92 -0
  85. data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable.rb +12 -7
  86. data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_list_result.rb +1 -1
  87. data/lib/2015-10-31/generated/azure_mgmt_automation/models/variable_update_parameters.rb +1 -1
  88. data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook.rb +23 -7
  89. data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_list_result.rb +1 -1
  90. data/lib/2015-10-31/generated/azure_mgmt_automation/models/webhook_update_parameters.rb +1 -1
  91. data/lib/2015-10-31/generated/azure_mgmt_automation/module_model_operations.rb +81 -69
  92. data/lib/2015-10-31/generated/azure_mgmt_automation/node_reports.rb +54 -61
  93. data/lib/2015-10-31/generated/azure_mgmt_automation/object_data_types.rb +28 -22
  94. data/lib/2015-10-31/generated/azure_mgmt_automation/operations.rb +6 -5
  95. data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_draft_operations.rb +144 -118
  96. data/lib/2015-10-31/generated/azure_mgmt_automation/runbook_operations.rb +131 -95
  97. data/lib/2015-10-31/generated/azure_mgmt_automation/schedule_operations.rb +93 -71
  98. data/lib/2015-10-31/generated/azure_mgmt_automation/statistics_operations.rb +14 -11
  99. data/lib/2015-10-31/generated/azure_mgmt_automation/{test_jobs.rb → test_job_operations.rb} +82 -69
  100. data/lib/2015-10-31/generated/azure_mgmt_automation/test_job_streams.rb +49 -39
  101. data/lib/2015-10-31/generated/azure_mgmt_automation/usages.rb +14 -11
  102. data/lib/2015-10-31/generated/azure_mgmt_automation/variable_operations.rb +81 -69
  103. data/lib/2015-10-31/generated/azure_mgmt_automation/webhook_operations.rb +95 -80
  104. data/lib/profiles/latest/automation_latest_profile_client.rb +28 -9
  105. data/lib/profiles/latest/automation_module_definition.rb +0 -1
  106. data/lib/profiles/latest/modules/automation_profile_module.rb +585 -516
  107. data/lib/version.rb +1 -1
  108. metadata +21 -7
@@ -24,8 +24,8 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Retrieve a list of fields of a given type identified by module name.
26
26
  #
27
- # @param resource_group_name [String] The resource group name.
28
- # @param automation_account_name [String] The automation account name.
27
+ # @param resource_group_name [String] Name of an Azure Resource group.
28
+ # @param automation_account_name [String] The name of the automation account.
29
29
  # @param module_name [String] The name of module.
30
30
  # @param type_name [String] The name of type.
31
31
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -33,16 +33,16 @@ module Azure::Automation::Mgmt::V2015_10_31
33
33
  #
34
34
  # @return [TypeFieldListResult] operation results.
35
35
  #
36
- def list_by_type(resource_group_name, automation_account_name, module_name, type_name, custom_headers = nil)
37
- response = list_by_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers).value!
36
+ def list_by_type(resource_group_name, automation_account_name, module_name, type_name, custom_headers:nil)
37
+ response = list_by_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers:custom_headers).value!
38
38
  response.body unless response.nil?
39
39
  end
40
40
 
41
41
  #
42
42
  # Retrieve a list of fields of a given type identified by module name.
43
43
  #
44
- # @param resource_group_name [String] The resource group name.
45
- # @param automation_account_name [String] The automation account name.
44
+ # @param resource_group_name [String] Name of an Azure Resource group.
45
+ # @param automation_account_name [String] The name of the automation account.
46
46
  # @param module_name [String] The name of module.
47
47
  # @param type_name [String] The name of type.
48
48
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -50,15 +50,15 @@ module Azure::Automation::Mgmt::V2015_10_31
50
50
  #
51
51
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
52
52
  #
53
- def list_by_type_with_http_info(resource_group_name, automation_account_name, module_name, type_name, custom_headers = nil)
54
- list_by_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers).value!
53
+ def list_by_type_with_http_info(resource_group_name, automation_account_name, module_name, type_name, custom_headers:nil)
54
+ list_by_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers:custom_headers).value!
55
55
  end
56
56
 
57
57
  #
58
58
  # Retrieve a list of fields of a given type identified by module name.
59
59
  #
60
- # @param resource_group_name [String] The resource group name.
61
- # @param automation_account_name [String] The automation account name.
60
+ # @param resource_group_name [String] Name of an Azure Resource group.
61
+ # @param automation_account_name [String] The name of the automation account.
62
62
  # @param module_name [String] The name of module.
63
63
  # @param type_name [String] The name of type.
64
64
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -66,8 +66,10 @@ module Azure::Automation::Mgmt::V2015_10_31
66
66
  #
67
67
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
68
68
  #
69
- def list_by_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers = nil)
69
+ def list_by_type_async(resource_group_name, automation_account_name, module_name, type_name, custom_headers:nil)
70
70
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
71
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
72
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
71
73
  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
74
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
73
75
  fail ArgumentError, 'module_name is nil' if module_name.nil?
@@ -77,6 +79,7 @@ module Azure::Automation::Mgmt::V2015_10_31
77
79
 
78
80
 
79
81
  request_headers = {}
82
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
80
83
 
81
84
  # Set Headers
82
85
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -24,24 +24,24 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Delete a hybrid runbook worker group.
26
26
  #
27
- # @param resource_group_name [String] The resource group name.
28
- # @param automation_account_name [String] 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 hybrid_runbook_worker_group_name [String] The hybrid runbook worker
30
30
  # group name
31
31
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
32
32
  # will be added to the HTTP request.
33
33
  #
34
34
  #
35
- def delete(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil)
36
- response = delete_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers).value!
35
+ def delete(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil)
36
+ response = delete_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:custom_headers).value!
37
37
  nil
38
38
  end
39
39
 
40
40
  #
41
41
  # Delete a hybrid runbook worker group.
42
42
  #
43
- # @param resource_group_name [String] The resource group name.
44
- # @param automation_account_name [String] Automation account name.
43
+ # @param resource_group_name [String] Name of an Azure Resource group.
44
+ # @param automation_account_name [String] The name of the automation account.
45
45
  # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker
46
46
  # group name
47
47
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -49,15 +49,15 @@ module Azure::Automation::Mgmt::V2015_10_31
49
49
  #
50
50
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
51
51
  #
52
- def delete_with_http_info(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil)
53
- delete_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers).value!
52
+ def delete_with_http_info(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil)
53
+ delete_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:custom_headers).value!
54
54
  end
55
55
 
56
56
  #
57
57
  # Delete a hybrid runbook worker group.
58
58
  #
59
- # @param resource_group_name [String] The resource group name.
60
- # @param automation_account_name [String] Automation account name.
59
+ # @param resource_group_name [String] Name of an Azure Resource group.
60
+ # @param automation_account_name [String] The name of the automation account.
61
61
  # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker
62
62
  # group name
63
63
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -65,8 +65,10 @@ module Azure::Automation::Mgmt::V2015_10_31
65
65
  #
66
66
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
67
67
  #
68
- def delete_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil)
68
+ def delete_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil)
69
69
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
70
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
71
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
70
72
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
71
73
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
72
74
  fail ArgumentError, 'hybrid_runbook_worker_group_name is nil' if hybrid_runbook_worker_group_name.nil?
@@ -75,6 +77,7 @@ module Azure::Automation::Mgmt::V2015_10_31
75
77
 
76
78
 
77
79
  request_headers = {}
80
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
78
81
 
79
82
  # Set Headers
80
83
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -112,8 +115,8 @@ module Azure::Automation::Mgmt::V2015_10_31
112
115
  #
113
116
  # Retrieve a hybrid runbook worker group.
114
117
  #
115
- # @param resource_group_name [String] The resource group name.
116
- # @param automation_account_name [String] The automation account name.
118
+ # @param resource_group_name [String] Name of an Azure Resource group.
119
+ # @param automation_account_name [String] The name of the automation account.
117
120
  # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker
118
121
  # group name
119
122
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -121,16 +124,16 @@ module Azure::Automation::Mgmt::V2015_10_31
121
124
  #
122
125
  # @return [HybridRunbookWorkerGroup] operation results.
123
126
  #
124
- def get(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil)
125
- response = get_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers).value!
127
+ def get(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil)
128
+ response = get_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:custom_headers).value!
126
129
  response.body unless response.nil?
127
130
  end
128
131
 
129
132
  #
130
133
  # Retrieve a hybrid runbook worker group.
131
134
  #
132
- # @param resource_group_name [String] The resource group name.
133
- # @param automation_account_name [String] The automation account name.
135
+ # @param resource_group_name [String] Name of an Azure Resource group.
136
+ # @param automation_account_name [String] The name of the automation account.
134
137
  # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker
135
138
  # group name
136
139
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
@@ -138,15 +141,15 @@ module Azure::Automation::Mgmt::V2015_10_31
138
141
  #
139
142
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
140
143
  #
141
- def get_with_http_info(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil)
142
- get_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers).value!
144
+ def get_with_http_info(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil)
145
+ get_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:custom_headers).value!
143
146
  end
144
147
 
145
148
  #
146
149
  # Retrieve a hybrid runbook worker group.
147
150
  #
148
- # @param resource_group_name [String] The resource group name.
149
- # @param automation_account_name [String] The automation account name.
151
+ # @param resource_group_name [String] Name of an Azure Resource group.
152
+ # @param automation_account_name [String] The name of the automation account.
150
153
  # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker
151
154
  # group name
152
155
  # @param [Hash{String => String}] A hash of custom headers that will be added
@@ -154,8 +157,10 @@ module Azure::Automation::Mgmt::V2015_10_31
154
157
  #
155
158
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
156
159
  #
157
- def get_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers = nil)
160
+ def get_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, custom_headers:nil)
158
161
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
162
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
163
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
159
164
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
160
165
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
161
166
  fail ArgumentError, 'hybrid_runbook_worker_group_name is nil' if hybrid_runbook_worker_group_name.nil?
@@ -164,6 +169,7 @@ module Azure::Automation::Mgmt::V2015_10_31
164
169
 
165
170
 
166
171
  request_headers = {}
172
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
167
173
 
168
174
  # Set Headers
169
175
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -211,8 +217,8 @@ module Azure::Automation::Mgmt::V2015_10_31
211
217
  #
212
218
  # Update a hybrid runbook worker group.
213
219
  #
214
- # @param resource_group_name [String] The resource group name.
215
- # @param automation_account_name [String] The automation account name.
220
+ # @param resource_group_name [String] Name of an Azure Resource group.
221
+ # @param automation_account_name [String] The name of the automation account.
216
222
  # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker
217
223
  # group name
218
224
  # @param parameters [HybridRunbookWorkerGroupUpdateParameters] The hybrid
@@ -222,16 +228,16 @@ module Azure::Automation::Mgmt::V2015_10_31
222
228
  #
223
229
  # @return [HybridRunbookWorkerGroup] operation results.
224
230
  #
225
- def update(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers = nil)
226
- response = update_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers).value!
231
+ def update(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers:nil)
232
+ response = update_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers:custom_headers).value!
227
233
  response.body unless response.nil?
228
234
  end
229
235
 
230
236
  #
231
237
  # Update a hybrid runbook worker group.
232
238
  #
233
- # @param resource_group_name [String] The resource group name.
234
- # @param automation_account_name [String] The automation account name.
239
+ # @param resource_group_name [String] Name of an Azure Resource group.
240
+ # @param automation_account_name [String] The name of the automation account.
235
241
  # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker
236
242
  # group name
237
243
  # @param parameters [HybridRunbookWorkerGroupUpdateParameters] The hybrid
@@ -241,15 +247,15 @@ module Azure::Automation::Mgmt::V2015_10_31
241
247
  #
242
248
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
243
249
  #
244
- def update_with_http_info(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers = nil)
245
- update_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers).value!
250
+ def update_with_http_info(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers:nil)
251
+ update_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers:custom_headers).value!
246
252
  end
247
253
 
248
254
  #
249
255
  # Update a hybrid runbook worker group.
250
256
  #
251
- # @param resource_group_name [String] The resource group name.
252
- # @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.
253
259
  # @param hybrid_runbook_worker_group_name [String] The hybrid runbook worker
254
260
  # group name
255
261
  # @param parameters [HybridRunbookWorkerGroupUpdateParameters] The hybrid
@@ -259,8 +265,10 @@ module Azure::Automation::Mgmt::V2015_10_31
259
265
  #
260
266
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
261
267
  #
262
- def update_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers = nil)
268
+ def update_async(resource_group_name, automation_account_name, hybrid_runbook_worker_group_name, parameters, custom_headers:nil)
263
269
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
270
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
271
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
264
272
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
265
273
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
266
274
  fail ArgumentError, 'hybrid_runbook_worker_group_name is nil' if hybrid_runbook_worker_group_name.nil?
@@ -270,13 +278,12 @@ module Azure::Automation::Mgmt::V2015_10_31
270
278
 
271
279
 
272
280
  request_headers = {}
281
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
273
282
 
274
283
  # Set Headers
275
284
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
276
285
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
277
286
 
278
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
279
-
280
287
  # Serialize Request
281
288
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::HybridRunbookWorkerGroupUpdateParameters.mapper()
282
289
  request_content = @client.serialize(request_mapper, parameters)
@@ -326,44 +333,49 @@ module Azure::Automation::Mgmt::V2015_10_31
326
333
  #
327
334
  # Retrieve a list of hybrid runbook worker groups.
328
335
  #
329
- # @param resource_group_name [String] The resource group name.
330
- # @param automation_account_name [String] The automation account name.
336
+ # @param resource_group_name [String] Name of an Azure Resource group.
337
+ # @param automation_account_name [String] The name of the automation account.
338
+ # @param filter [String] The filter to apply on the operation.
331
339
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
332
340
  # will be added to the HTTP request.
333
341
  #
334
342
  # @return [Array<HybridRunbookWorkerGroup>] operation results.
335
343
  #
336
- def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil)
337
- first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers)
344
+ def list_by_automation_account(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
345
+ first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers)
338
346
  first_page.get_all_items
339
347
  end
340
348
 
341
349
  #
342
350
  # Retrieve a list of hybrid runbook worker groups.
343
351
  #
344
- # @param resource_group_name [String] The resource group name.
345
- # @param automation_account_name [String] The automation account name.
352
+ # @param resource_group_name [String] Name of an Azure Resource group.
353
+ # @param automation_account_name [String] The name of the automation account.
354
+ # @param filter [String] The filter to apply on the operation.
346
355
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
347
356
  # will be added to the HTTP request.
348
357
  #
349
358
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
350
359
  #
351
- def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil)
352
- list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
360
+ def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
361
+ list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
353
362
  end
354
363
 
355
364
  #
356
365
  # Retrieve a list of hybrid runbook worker groups.
357
366
  #
358
- # @param resource_group_name [String] The resource group name.
359
- # @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.
369
+ # @param filter [String] The filter to apply on the operation.
360
370
  # @param [Hash{String => String}] A hash of custom headers that will be added
361
371
  # to the HTTP request.
362
372
  #
363
373
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
364
374
  #
365
- def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil)
375
+ def list_by_automation_account_async(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
366
376
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
377
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
378
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
367
379
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
368
380
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
369
381
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -371,6 +383,7 @@ module Azure::Automation::Mgmt::V2015_10_31
371
383
 
372
384
 
373
385
  request_headers = {}
386
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
374
387
 
375
388
  # Set Headers
376
389
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -382,7 +395,7 @@ module Azure::Automation::Mgmt::V2015_10_31
382
395
  options = {
383
396
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
384
397
  path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
385
- query_params: {'api-version' => @client.api_version},
398
+ query_params: {'$filter' => filter,'api-version' => @client.api_version},
386
399
  headers: request_headers.merge(custom_headers || {}),
387
400
  base_url: request_url
388
401
  }
@@ -425,8 +438,8 @@ module Azure::Automation::Mgmt::V2015_10_31
425
438
  #
426
439
  # @return [HybridRunbookWorkerGroupsListResult] operation results.
427
440
  #
428
- def list_by_automation_account_next(next_page_link, custom_headers = nil)
429
- response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
441
+ def list_by_automation_account_next(next_page_link, custom_headers:nil)
442
+ response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
430
443
  response.body unless response.nil?
431
444
  end
432
445
 
@@ -440,8 +453,8 @@ module Azure::Automation::Mgmt::V2015_10_31
440
453
  #
441
454
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
442
455
  #
443
- def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil)
444
- list_by_automation_account_next_async(next_page_link, custom_headers).value!
456
+ def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
457
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
445
458
  end
446
459
 
447
460
  #
@@ -454,11 +467,12 @@ module Azure::Automation::Mgmt::V2015_10_31
454
467
  #
455
468
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
456
469
  #
457
- def list_by_automation_account_next_async(next_page_link, custom_headers = nil)
470
+ def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
458
471
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
459
472
 
460
473
 
461
474
  request_headers = {}
475
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
462
476
 
463
477
  # Set Headers
464
478
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -505,20 +519,21 @@ module Azure::Automation::Mgmt::V2015_10_31
505
519
  #
506
520
  # Retrieve a list of hybrid runbook worker groups.
507
521
  #
508
- # @param resource_group_name [String] The resource group name.
509
- # @param automation_account_name [String] The automation account name.
522
+ # @param resource_group_name [String] Name of an Azure Resource group.
523
+ # @param automation_account_name [String] The name of the automation account.
524
+ # @param filter [String] The filter to apply on the operation.
510
525
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
511
526
  # will be added to the HTTP request.
512
527
  #
513
528
  # @return [HybridRunbookWorkerGroupsListResult] which provide lazy access to
514
529
  # pages of the response.
515
530
  #
516
- def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil)
517
- response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
531
+ def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
532
+ response = list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
518
533
  unless response.nil?
519
534
  page = response.body
520
535
  page.next_method = Proc.new do |next_page_link|
521
- list_by_automation_account_next_async(next_page_link, custom_headers)
536
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
522
537
  end
523
538
  page
524
539
  end
@@ -24,47 +24,49 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Retrieve the job output identified by job 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 job_id [String] The job id.
30
30
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
31
31
  # will be added to the HTTP request.
32
32
  #
33
33
  # @return [NOT_IMPLEMENTED] operation results.
34
34
  #
35
- def get_output(resource_group_name, automation_account_name, job_id, custom_headers = nil)
36
- response = get_output_async(resource_group_name, automation_account_name, job_id, custom_headers).value!
35
+ def get_output(resource_group_name, automation_account_name, job_id, custom_headers:nil)
36
+ response = get_output_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
37
37
  response.body unless response.nil?
38
38
  end
39
39
 
40
40
  #
41
41
  # Retrieve the job output identified by job id.
42
42
  #
43
- # @param resource_group_name [String] The resource group name.
44
- # @param automation_account_name [String] The automation account name.
43
+ # @param resource_group_name [String] Name of an Azure Resource group.
44
+ # @param automation_account_name [String] The name of the automation account.
45
45
  # @param job_id [String] The job id.
46
46
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
47
47
  # will be added to the HTTP request.
48
48
  #
49
49
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
50
50
  #
51
- def get_output_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers = nil)
52
- get_output_async(resource_group_name, automation_account_name, job_id, custom_headers).value!
51
+ def get_output_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers:nil)
52
+ get_output_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
53
53
  end
54
54
 
55
55
  #
56
56
  # Retrieve the job output identified by job id.
57
57
  #
58
- # @param resource_group_name [String] The resource group name.
59
- # @param automation_account_name [String] The automation account name.
58
+ # @param resource_group_name [String] Name of an Azure Resource group.
59
+ # @param automation_account_name [String] The name of the automation account.
60
60
  # @param job_id [String] The job id.
61
61
  # @param [Hash{String => String}] A hash of custom headers that will be added
62
62
  # to the HTTP request.
63
63
  #
64
64
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
65
  #
66
- def get_output_async(resource_group_name, automation_account_name, job_id, custom_headers = nil)
66
+ def get_output_async(resource_group_name, automation_account_name, job_id, custom_headers:nil)
67
67
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
68
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
69
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
68
70
  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
71
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
70
72
  fail ArgumentError, 'job_id is nil' if job_id.nil?
@@ -73,6 +75,7 @@ module Azure::Automation::Mgmt::V2015_10_31
73
75
 
74
76
 
75
77
  request_headers = {}
78
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
76
79
 
77
80
  # Set Headers
78
81
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -127,47 +130,49 @@ module Azure::Automation::Mgmt::V2015_10_31
127
130
  #
128
131
  # Retrieve the runbook content of the job identified by job id.
129
132
  #
130
- # @param resource_group_name [String] The resource group name.
131
- # @param automation_account_name [String] The automation account name.
133
+ # @param resource_group_name [String] Name of an Azure Resource group.
134
+ # @param automation_account_name [String] The name of the automation account.
132
135
  # @param job_id [String] The job id.
133
136
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
134
137
  # will be added to the HTTP request.
135
138
  #
136
139
  # @return [NOT_IMPLEMENTED] operation results.
137
140
  #
138
- def get_runbook_content(resource_group_name, automation_account_name, job_id, custom_headers = nil)
139
- response = get_runbook_content_async(resource_group_name, automation_account_name, job_id, custom_headers).value!
141
+ def get_runbook_content(resource_group_name, automation_account_name, job_id, custom_headers:nil)
142
+ response = get_runbook_content_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
140
143
  response.body unless response.nil?
141
144
  end
142
145
 
143
146
  #
144
147
  # Retrieve the runbook content of the job identified by job id.
145
148
  #
146
- # @param resource_group_name [String] The resource group name.
147
- # @param automation_account_name [String] The automation account name.
149
+ # @param resource_group_name [String] Name of an Azure Resource group.
150
+ # @param automation_account_name [String] The name of the automation account.
148
151
  # @param job_id [String] The job id.
149
152
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
150
153
  # will be added to the HTTP request.
151
154
  #
152
155
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
153
156
  #
154
- def get_runbook_content_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers = nil)
155
- get_runbook_content_async(resource_group_name, automation_account_name, job_id, custom_headers).value!
157
+ def get_runbook_content_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers:nil)
158
+ get_runbook_content_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
156
159
  end
157
160
 
158
161
  #
159
162
  # Retrieve the runbook content of the job identified by job id.
160
163
  #
161
- # @param resource_group_name [String] The resource group name.
162
- # @param automation_account_name [String] The automation account name.
164
+ # @param resource_group_name [String] Name of an Azure Resource group.
165
+ # @param automation_account_name [String] The name of the automation account.
163
166
  # @param job_id [String] The job id.
164
167
  # @param [Hash{String => String}] A hash of custom headers that will be added
165
168
  # to the HTTP request.
166
169
  #
167
170
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
168
171
  #
169
- def get_runbook_content_async(resource_group_name, automation_account_name, job_id, custom_headers = nil)
172
+ def get_runbook_content_async(resource_group_name, automation_account_name, job_id, custom_headers:nil)
170
173
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
174
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
175
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
171
176
  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
177
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
173
178
  fail ArgumentError, 'job_id is nil' if job_id.nil?
@@ -176,6 +181,7 @@ module Azure::Automation::Mgmt::V2015_10_31
176
181
 
177
182
 
178
183
  request_headers = {}
184
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
179
185
 
180
186
  # Set Headers
181
187
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -230,46 +236,48 @@ module Azure::Automation::Mgmt::V2015_10_31
230
236
  #
231
237
  # Suspend the job identified by jobId.
232
238
  #
233
- # @param resource_group_name [String] The resource group name.
234
- # @param automation_account_name [String] The automation account name.
239
+ # @param resource_group_name [String] Name of an Azure Resource group.
240
+ # @param automation_account_name [String] The name of the automation account.
235
241
  # @param job_id The job id.
236
242
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
237
243
  # will be added to the HTTP request.
238
244
  #
239
245
  #
240
- def suspend(resource_group_name, automation_account_name, job_id, custom_headers = nil)
241
- response = suspend_async(resource_group_name, automation_account_name, job_id, custom_headers).value!
246
+ def suspend(resource_group_name, automation_account_name, job_id, custom_headers:nil)
247
+ response = suspend_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
242
248
  nil
243
249
  end
244
250
 
245
251
  #
246
252
  # Suspend the job identified by jobId.
247
253
  #
248
- # @param resource_group_name [String] The resource group name.
249
- # @param automation_account_name [String] The automation account name.
254
+ # @param resource_group_name [String] Name of an Azure Resource group.
255
+ # @param automation_account_name [String] The name of the automation account.
250
256
  # @param job_id The job id.
251
257
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
252
258
  # will be added to the HTTP request.
253
259
  #
254
260
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
255
261
  #
256
- def suspend_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers = nil)
257
- suspend_async(resource_group_name, automation_account_name, job_id, custom_headers).value!
262
+ def suspend_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers:nil)
263
+ suspend_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
258
264
  end
259
265
 
260
266
  #
261
267
  # Suspend the job identified by jobId.
262
268
  #
263
- # @param resource_group_name [String] The resource group name.
264
- # @param automation_account_name [String] The automation account name.
269
+ # @param resource_group_name [String] Name of an Azure Resource group.
270
+ # @param automation_account_name [String] The name of the automation account.
265
271
  # @param job_id The job id.
266
272
  # @param [Hash{String => String}] A hash of custom headers that will be added
267
273
  # to the HTTP request.
268
274
  #
269
275
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
270
276
  #
271
- def suspend_async(resource_group_name, automation_account_name, job_id, custom_headers = nil)
277
+ def suspend_async(resource_group_name, automation_account_name, job_id, custom_headers:nil)
272
278
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
279
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
280
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
273
281
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
274
282
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
275
283
  fail ArgumentError, 'job_id is nil' if job_id.nil?
@@ -278,6 +286,7 @@ module Azure::Automation::Mgmt::V2015_10_31
278
286
 
279
287
 
280
288
  request_headers = {}
289
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
281
290
 
282
291
  # Set Headers
283
292
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -315,46 +324,48 @@ module Azure::Automation::Mgmt::V2015_10_31
315
324
  #
316
325
  # Stop the job identified by jobId.
317
326
  #
318
- # @param resource_group_name [String] The resource group name.
319
- # @param automation_account_name [String] The automation account name.
327
+ # @param resource_group_name [String] Name of an Azure Resource group.
328
+ # @param automation_account_name [String] The name of the automation account.
320
329
  # @param job_id The job id.
321
330
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
322
331
  # will be added to the HTTP request.
323
332
  #
324
333
  #
325
- def stop(resource_group_name, automation_account_name, job_id, custom_headers = nil)
326
- response = stop_async(resource_group_name, automation_account_name, job_id, custom_headers).value!
334
+ def stop(resource_group_name, automation_account_name, job_id, custom_headers:nil)
335
+ response = stop_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
327
336
  nil
328
337
  end
329
338
 
330
339
  #
331
340
  # Stop the job identified by jobId.
332
341
  #
333
- # @param resource_group_name [String] The resource group name.
334
- # @param automation_account_name [String] The automation account name.
342
+ # @param resource_group_name [String] Name of an Azure Resource group.
343
+ # @param automation_account_name [String] The name of the automation account.
335
344
  # @param job_id The job id.
336
345
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
337
346
  # will be added to the HTTP request.
338
347
  #
339
348
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
340
349
  #
341
- def stop_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers = nil)
342
- stop_async(resource_group_name, automation_account_name, job_id, custom_headers).value!
350
+ def stop_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers:nil)
351
+ stop_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
343
352
  end
344
353
 
345
354
  #
346
355
  # Stop the job identified by jobId.
347
356
  #
348
- # @param resource_group_name [String] The resource group name.
349
- # @param automation_account_name [String] The automation account name.
357
+ # @param resource_group_name [String] Name of an Azure Resource group.
358
+ # @param automation_account_name [String] The name of the automation account.
350
359
  # @param job_id The job id.
351
360
  # @param [Hash{String => String}] A hash of custom headers that will be added
352
361
  # to the HTTP request.
353
362
  #
354
363
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
355
364
  #
356
- def stop_async(resource_group_name, automation_account_name, job_id, custom_headers = nil)
365
+ def stop_async(resource_group_name, automation_account_name, job_id, custom_headers:nil)
357
366
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
367
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
368
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
358
369
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
359
370
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
360
371
  fail ArgumentError, 'job_id is nil' if job_id.nil?
@@ -363,6 +374,7 @@ module Azure::Automation::Mgmt::V2015_10_31
363
374
 
364
375
 
365
376
  request_headers = {}
377
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
366
378
 
367
379
  # Set Headers
368
380
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -400,47 +412,49 @@ module Azure::Automation::Mgmt::V2015_10_31
400
412
  #
401
413
  # Retrieve the job identified by job id.
402
414
  #
403
- # @param resource_group_name [String] The resource group name.
404
- # @param automation_account_name [String] The automation account name.
415
+ # @param resource_group_name [String] Name of an Azure Resource group.
416
+ # @param automation_account_name [String] The name of the automation account.
405
417
  # @param job_id The job id.
406
418
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
407
419
  # will be added to the HTTP request.
408
420
  #
409
421
  # @return [Job] operation results.
410
422
  #
411
- def get(resource_group_name, automation_account_name, job_id, custom_headers = nil)
412
- response = get_async(resource_group_name, automation_account_name, job_id, custom_headers).value!
423
+ def get(resource_group_name, automation_account_name, job_id, custom_headers:nil)
424
+ response = get_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
413
425
  response.body unless response.nil?
414
426
  end
415
427
 
416
428
  #
417
429
  # Retrieve the job identified by job id.
418
430
  #
419
- # @param resource_group_name [String] The resource group name.
420
- # @param automation_account_name [String] The automation account name.
431
+ # @param resource_group_name [String] Name of an Azure Resource group.
432
+ # @param automation_account_name [String] The name of the automation account.
421
433
  # @param job_id The job id.
422
434
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
423
435
  # will be added to the HTTP request.
424
436
  #
425
437
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
426
438
  #
427
- def get_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers = nil)
428
- get_async(resource_group_name, automation_account_name, job_id, custom_headers).value!
439
+ def get_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers:nil)
440
+ get_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
429
441
  end
430
442
 
431
443
  #
432
444
  # Retrieve the job identified by job id.
433
445
  #
434
- # @param resource_group_name [String] The resource group name.
435
- # @param automation_account_name [String] The automation account name.
446
+ # @param resource_group_name [String] Name of an Azure Resource group.
447
+ # @param automation_account_name [String] The name of the automation account.
436
448
  # @param job_id The job id.
437
449
  # @param [Hash{String => String}] A hash of custom headers that will be added
438
450
  # to the HTTP request.
439
451
  #
440
452
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
441
453
  #
442
- def get_async(resource_group_name, automation_account_name, job_id, custom_headers = nil)
454
+ def get_async(resource_group_name, automation_account_name, job_id, custom_headers:nil)
443
455
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
456
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
457
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
444
458
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
445
459
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
446
460
  fail ArgumentError, 'job_id is nil' if job_id.nil?
@@ -449,6 +463,7 @@ module Azure::Automation::Mgmt::V2015_10_31
449
463
 
450
464
 
451
465
  request_headers = {}
466
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
452
467
 
453
468
  # Set Headers
454
469
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -496,8 +511,8 @@ module Azure::Automation::Mgmt::V2015_10_31
496
511
  #
497
512
  # Create a job of the runbook.
498
513
  #
499
- # @param resource_group_name [String] The resource group name.
500
- # @param automation_account_name [String] The automation account name.
514
+ # @param resource_group_name [String] Name of an Azure Resource group.
515
+ # @param automation_account_name [String] The name of the automation account.
501
516
  # @param job_id The job id.
502
517
  # @param parameters [JobCreateParameters] The parameters supplied to the create
503
518
  # job operation.
@@ -506,16 +521,16 @@ module Azure::Automation::Mgmt::V2015_10_31
506
521
  #
507
522
  # @return [Job] operation results.
508
523
  #
509
- def create(resource_group_name, automation_account_name, job_id, parameters, custom_headers = nil)
510
- response = create_async(resource_group_name, automation_account_name, job_id, parameters, custom_headers).value!
524
+ def create(resource_group_name, automation_account_name, job_id, parameters, custom_headers:nil)
525
+ response = create_async(resource_group_name, automation_account_name, job_id, parameters, custom_headers:custom_headers).value!
511
526
  response.body unless response.nil?
512
527
  end
513
528
 
514
529
  #
515
530
  # Create a job of the runbook.
516
531
  #
517
- # @param resource_group_name [String] The resource group name.
518
- # @param automation_account_name [String] The automation account name.
532
+ # @param resource_group_name [String] Name of an Azure Resource group.
533
+ # @param automation_account_name [String] The name of the automation account.
519
534
  # @param job_id The job id.
520
535
  # @param parameters [JobCreateParameters] The parameters supplied to the create
521
536
  # job operation.
@@ -524,15 +539,15 @@ module Azure::Automation::Mgmt::V2015_10_31
524
539
  #
525
540
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
526
541
  #
527
- def create_with_http_info(resource_group_name, automation_account_name, job_id, parameters, custom_headers = nil)
528
- create_async(resource_group_name, automation_account_name, job_id, parameters, custom_headers).value!
542
+ def create_with_http_info(resource_group_name, automation_account_name, job_id, parameters, custom_headers:nil)
543
+ create_async(resource_group_name, automation_account_name, job_id, parameters, custom_headers:custom_headers).value!
529
544
  end
530
545
 
531
546
  #
532
547
  # Create a job of the runbook.
533
548
  #
534
- # @param resource_group_name [String] The resource group name.
535
- # @param automation_account_name [String] The automation account name.
549
+ # @param resource_group_name [String] Name of an Azure Resource group.
550
+ # @param automation_account_name [String] The name of the automation account.
536
551
  # @param job_id The job id.
537
552
  # @param parameters [JobCreateParameters] The parameters supplied to the create
538
553
  # job operation.
@@ -541,8 +556,10 @@ module Azure::Automation::Mgmt::V2015_10_31
541
556
  #
542
557
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
543
558
  #
544
- def create_async(resource_group_name, automation_account_name, job_id, parameters, custom_headers = nil)
559
+ def create_async(resource_group_name, automation_account_name, job_id, parameters, custom_headers:nil)
545
560
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
561
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
562
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
546
563
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
547
564
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
548
565
  fail ArgumentError, 'job_id is nil' if job_id.nil?
@@ -552,13 +569,12 @@ module Azure::Automation::Mgmt::V2015_10_31
552
569
 
553
570
 
554
571
  request_headers = {}
572
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
555
573
 
556
574
  # Set Headers
557
575
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
558
576
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
559
577
 
560
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
561
-
562
578
  # Serialize Request
563
579
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::JobCreateParameters.mapper()
564
580
  request_content = @client.serialize(request_mapper, parameters)
@@ -608,47 +624,49 @@ module Azure::Automation::Mgmt::V2015_10_31
608
624
  #
609
625
  # Retrieve a list of jobs.
610
626
  #
611
- # @param resource_group_name [String] The resource group name.
612
- # @param automation_account_name [String] The automation account name.
627
+ # @param resource_group_name [String] Name of an Azure Resource group.
628
+ # @param automation_account_name [String] The name of the automation account.
613
629
  # @param filter [String] The filter to apply on the operation.
614
630
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
615
631
  # will be added to the HTTP request.
616
632
  #
617
633
  # @return [Array<Job>] operation results.
618
634
  #
619
- def list_by_automation_account(resource_group_name, automation_account_name, filter = nil, custom_headers = nil)
620
- first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter, custom_headers)
635
+ def list_by_automation_account(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
636
+ first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers)
621
637
  first_page.get_all_items
622
638
  end
623
639
 
624
640
  #
625
641
  # Retrieve a list of jobs.
626
642
  #
627
- # @param resource_group_name [String] The resource group name.
628
- # @param automation_account_name [String] The automation account name.
643
+ # @param resource_group_name [String] Name of an Azure Resource group.
644
+ # @param automation_account_name [String] The name of the automation account.
629
645
  # @param filter [String] The filter to apply on the operation.
630
646
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
631
647
  # will be added to the HTTP request.
632
648
  #
633
649
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
634
650
  #
635
- def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter = nil, custom_headers = nil)
636
- list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value!
651
+ def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
652
+ list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
637
653
  end
638
654
 
639
655
  #
640
656
  # Retrieve a list of jobs.
641
657
  #
642
- # @param resource_group_name [String] The resource group name.
643
- # @param automation_account_name [String] The automation account name.
658
+ # @param resource_group_name [String] Name of an Azure Resource group.
659
+ # @param automation_account_name [String] The name of the automation account.
644
660
  # @param filter [String] The filter to apply on the operation.
645
661
  # @param [Hash{String => String}] A hash of custom headers that will be added
646
662
  # to the HTTP request.
647
663
  #
648
664
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
649
665
  #
650
- def list_by_automation_account_async(resource_group_name, automation_account_name, filter = nil, custom_headers = nil)
666
+ def list_by_automation_account_async(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
651
667
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
668
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
669
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
652
670
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
653
671
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
654
672
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -656,6 +674,7 @@ module Azure::Automation::Mgmt::V2015_10_31
656
674
 
657
675
 
658
676
  request_headers = {}
677
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
659
678
 
660
679
  # Set Headers
661
680
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -703,46 +722,48 @@ module Azure::Automation::Mgmt::V2015_10_31
703
722
  #
704
723
  # Resume the job identified by jobId.
705
724
  #
706
- # @param resource_group_name [String] The resource group name.
707
- # @param automation_account_name [String] The automation account name.
725
+ # @param resource_group_name [String] Name of an Azure Resource group.
726
+ # @param automation_account_name [String] The name of the automation account.
708
727
  # @param job_id The job id.
709
728
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
710
729
  # will be added to the HTTP request.
711
730
  #
712
731
  #
713
- def resume(resource_group_name, automation_account_name, job_id, custom_headers = nil)
714
- response = resume_async(resource_group_name, automation_account_name, job_id, custom_headers).value!
732
+ def resume(resource_group_name, automation_account_name, job_id, custom_headers:nil)
733
+ response = resume_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
715
734
  nil
716
735
  end
717
736
 
718
737
  #
719
738
  # Resume the job identified by jobId.
720
739
  #
721
- # @param resource_group_name [String] The resource group name.
722
- # @param automation_account_name [String] The automation account name.
740
+ # @param resource_group_name [String] Name of an Azure Resource group.
741
+ # @param automation_account_name [String] The name of the automation account.
723
742
  # @param job_id The job id.
724
743
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
725
744
  # will be added to the HTTP request.
726
745
  #
727
746
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
728
747
  #
729
- def resume_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers = nil)
730
- resume_async(resource_group_name, automation_account_name, job_id, custom_headers).value!
748
+ def resume_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers:nil)
749
+ resume_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
731
750
  end
732
751
 
733
752
  #
734
753
  # Resume the job identified by jobId.
735
754
  #
736
- # @param resource_group_name [String] The resource group name.
737
- # @param automation_account_name [String] The automation account name.
755
+ # @param resource_group_name [String] Name of an Azure Resource group.
756
+ # @param automation_account_name [String] The name of the automation account.
738
757
  # @param job_id The job id.
739
758
  # @param [Hash{String => String}] A hash of custom headers that will be added
740
759
  # to the HTTP request.
741
760
  #
742
761
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
743
762
  #
744
- def resume_async(resource_group_name, automation_account_name, job_id, custom_headers = nil)
763
+ def resume_async(resource_group_name, automation_account_name, job_id, custom_headers:nil)
745
764
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
765
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
766
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
746
767
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
747
768
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
748
769
  fail ArgumentError, 'job_id is nil' if job_id.nil?
@@ -751,6 +772,7 @@ module Azure::Automation::Mgmt::V2015_10_31
751
772
 
752
773
 
753
774
  request_headers = {}
775
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
754
776
 
755
777
  # Set Headers
756
778
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -795,8 +817,8 @@ module Azure::Automation::Mgmt::V2015_10_31
795
817
  #
796
818
  # @return [JobListResult] operation results.
797
819
  #
798
- def list_by_automation_account_next(next_page_link, custom_headers = nil)
799
- response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
820
+ def list_by_automation_account_next(next_page_link, custom_headers:nil)
821
+ response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
800
822
  response.body unless response.nil?
801
823
  end
802
824
 
@@ -810,8 +832,8 @@ module Azure::Automation::Mgmt::V2015_10_31
810
832
  #
811
833
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
812
834
  #
813
- def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil)
814
- list_by_automation_account_next_async(next_page_link, custom_headers).value!
835
+ def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
836
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
815
837
  end
816
838
 
817
839
  #
@@ -824,11 +846,12 @@ module Azure::Automation::Mgmt::V2015_10_31
824
846
  #
825
847
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
826
848
  #
827
- def list_by_automation_account_next_async(next_page_link, custom_headers = nil)
849
+ def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
828
850
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
829
851
 
830
852
 
831
853
  request_headers = {}
854
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
832
855
 
833
856
  # Set Headers
834
857
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -875,20 +898,20 @@ module Azure::Automation::Mgmt::V2015_10_31
875
898
  #
876
899
  # Retrieve a list of jobs.
877
900
  #
878
- # @param resource_group_name [String] The resource group name.
879
- # @param automation_account_name [String] The automation account name.
901
+ # @param resource_group_name [String] Name of an Azure Resource group.
902
+ # @param automation_account_name [String] The name of the automation account.
880
903
  # @param filter [String] The filter to apply on the operation.
881
904
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
882
905
  # will be added to the HTTP request.
883
906
  #
884
907
  # @return [JobListResult] which provide lazy access to pages of the response.
885
908
  #
886
- def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter = nil, custom_headers = nil)
887
- response = list_by_automation_account_async(resource_group_name, automation_account_name, filter, custom_headers).value!
909
+ def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:nil, custom_headers:nil)
910
+ response = list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, custom_headers:custom_headers).value!
888
911
  unless response.nil?
889
912
  page = response.body
890
913
  page.next_method = Proc.new do |next_page_link|
891
- list_by_automation_account_next_async(next_page_link, custom_headers)
914
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
892
915
  end
893
916
  page
894
917
  end