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
@@ -0,0 +1,124 @@
1
+ # encoding: utf-8
2
+ # Code generated by Microsoft (R) AutoRest Code Generator.
3
+ # Changes may cause incorrect behavior and will be lost if the code is
4
+ # regenerated.
5
+
6
+ module Azure::Automation::Mgmt::V2015_10_31
7
+ #
8
+ # Automation Client
9
+ #
10
+ class DscCompilationJobStream
11
+ include MsRestAzure
12
+
13
+ #
14
+ # Creates and initializes a new instance of the DscCompilationJobStream class.
15
+ # @param client service class for accessing basic functionality.
16
+ #
17
+ def initialize(client)
18
+ @client = client
19
+ end
20
+
21
+ # @return [AutomationClient] reference to the AutomationClient
22
+ attr_reader :client
23
+
24
+ #
25
+ # Retrieve all the job streams for the compilation Job.
26
+ #
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
+ # @param job_id The job id.
30
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
31
+ # will be added to the HTTP request.
32
+ #
33
+ # @return [JobStreamListResult] operation results.
34
+ #
35
+ def list_by_job(resource_group_name, automation_account_name, job_id, custom_headers:nil)
36
+ response = list_by_job_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
37
+ response.body unless response.nil?
38
+ end
39
+
40
+ #
41
+ # Retrieve all the job streams for the compilation Job.
42
+ #
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
+ # @param job_id The job id.
46
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
47
+ # will be added to the HTTP request.
48
+ #
49
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
50
+ #
51
+ def list_by_job_with_http_info(resource_group_name, automation_account_name, job_id, custom_headers:nil)
52
+ list_by_job_async(resource_group_name, automation_account_name, job_id, custom_headers:custom_headers).value!
53
+ end
54
+
55
+ #
56
+ # Retrieve all the job streams for the compilation Job.
57
+ #
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
+ # @param job_id The job id.
61
+ # @param [Hash{String => String}] A hash of custom headers that will be added
62
+ # to the HTTP request.
63
+ #
64
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
65
+ #
66
+ def list_by_job_async(resource_group_name, automation_account_name, job_id, custom_headers:nil)
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
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?
71
+ fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
72
+ fail ArgumentError, 'job_id is nil' if job_id.nil?
73
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
74
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
75
+
76
+
77
+ request_headers = {}
78
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
79
+
80
+ # Set Headers
81
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
82
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
83
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/compilationjobs/{jobId}/streams/'
84
+
85
+ request_url = @base_url || @client.base_url
86
+
87
+ options = {
88
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
89
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'jobId' => job_id,'subscriptionId' => @client.subscription_id},
90
+ query_params: {'api-version' => @client.api_version},
91
+ headers: request_headers.merge(custom_headers || {}),
92
+ base_url: request_url
93
+ }
94
+ promise = @client.make_request_async(:get, path_template, options)
95
+
96
+ promise = promise.then do |result|
97
+ http_response = result.response
98
+ status_code = http_response.status
99
+ response_content = http_response.body
100
+ unless status_code == 200
101
+ error_model = JSON.load(response_content)
102
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
103
+ end
104
+
105
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
106
+ # Deserialize Response
107
+ if status_code == 200
108
+ begin
109
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
110
+ result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::JobStreamListResult.mapper()
111
+ result.body = @client.deserialize(result_mapper, parsed_response)
112
+ rescue Exception => e
113
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
114
+ end
115
+ end
116
+
117
+ result
118
+ end
119
+
120
+ promise.execute
121
+ end
122
+
123
+ end
124
+ end
@@ -24,46 +24,48 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Delete the dsc configuration identified by configuration 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 configuration_name [String] The configuration name.
30
30
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
31
31
  # will be added to the HTTP request.
32
32
  #
33
33
  #
34
- def delete(resource_group_name, automation_account_name, configuration_name, custom_headers = nil)
35
- response = delete_async(resource_group_name, automation_account_name, configuration_name, custom_headers).value!
34
+ def delete(resource_group_name, automation_account_name, configuration_name, custom_headers:nil)
35
+ response = delete_async(resource_group_name, automation_account_name, configuration_name, custom_headers:custom_headers).value!
36
36
  nil
37
37
  end
38
38
 
39
39
  #
40
40
  # Delete the dsc configuration identified by configuration name.
41
41
  #
42
- # @param resource_group_name [String] The resource group name.
43
- # @param automation_account_name [String] The automation account name.
42
+ # @param resource_group_name [String] Name of an Azure Resource group.
43
+ # @param automation_account_name [String] The name of the automation account.
44
44
  # @param configuration_name [String] The configuration name.
45
45
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
46
46
  # will be added to the HTTP request.
47
47
  #
48
48
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
49
49
  #
50
- def delete_with_http_info(resource_group_name, automation_account_name, configuration_name, custom_headers = nil)
51
- delete_async(resource_group_name, automation_account_name, configuration_name, custom_headers).value!
50
+ def delete_with_http_info(resource_group_name, automation_account_name, configuration_name, custom_headers:nil)
51
+ delete_async(resource_group_name, automation_account_name, configuration_name, custom_headers:custom_headers).value!
52
52
  end
53
53
 
54
54
  #
55
55
  # Delete the dsc configuration identified by configuration name.
56
56
  #
57
- # @param resource_group_name [String] The resource group name.
58
- # @param automation_account_name [String] The automation account name.
57
+ # @param resource_group_name [String] Name of an Azure Resource group.
58
+ # @param automation_account_name [String] The name of the automation account.
59
59
  # @param configuration_name [String] The configuration name.
60
60
  # @param [Hash{String => String}] A hash of custom headers that will be added
61
61
  # to the HTTP request.
62
62
  #
63
63
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
64
64
  #
65
- def delete_async(resource_group_name, automation_account_name, configuration_name, custom_headers = nil)
65
+ def delete_async(resource_group_name, automation_account_name, configuration_name, custom_headers:nil)
66
66
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
67
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
68
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
67
69
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
68
70
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
69
71
  fail ArgumentError, 'configuration_name is nil' if configuration_name.nil?
@@ -72,6 +74,7 @@ module Azure::Automation::Mgmt::V2015_10_31
72
74
 
73
75
 
74
76
  request_headers = {}
77
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
75
78
 
76
79
  # Set Headers
77
80
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -109,47 +112,49 @@ module Azure::Automation::Mgmt::V2015_10_31
109
112
  #
110
113
  # Retrieve the configuration identified by configuration name.
111
114
  #
112
- # @param resource_group_name [String] The resource group name.
113
- # @param automation_account_name [String] The automation account name.
115
+ # @param resource_group_name [String] Name of an Azure Resource group.
116
+ # @param automation_account_name [String] The name of the automation account.
114
117
  # @param configuration_name [String] The configuration name.
115
118
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
116
119
  # will be added to the HTTP request.
117
120
  #
118
121
  # @return [DscConfiguration] operation results.
119
122
  #
120
- def get(resource_group_name, automation_account_name, configuration_name, custom_headers = nil)
121
- response = get_async(resource_group_name, automation_account_name, configuration_name, custom_headers).value!
123
+ def get(resource_group_name, automation_account_name, configuration_name, custom_headers:nil)
124
+ response = get_async(resource_group_name, automation_account_name, configuration_name, custom_headers:custom_headers).value!
122
125
  response.body unless response.nil?
123
126
  end
124
127
 
125
128
  #
126
129
  # Retrieve the configuration identified by configuration name.
127
130
  #
128
- # @param resource_group_name [String] The resource group name.
129
- # @param automation_account_name [String] The automation account name.
131
+ # @param resource_group_name [String] Name of an Azure Resource group.
132
+ # @param automation_account_name [String] The name of the automation account.
130
133
  # @param configuration_name [String] The configuration name.
131
134
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
132
135
  # will be added to the HTTP request.
133
136
  #
134
137
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
135
138
  #
136
- def get_with_http_info(resource_group_name, automation_account_name, configuration_name, custom_headers = nil)
137
- get_async(resource_group_name, automation_account_name, configuration_name, custom_headers).value!
139
+ def get_with_http_info(resource_group_name, automation_account_name, configuration_name, custom_headers:nil)
140
+ get_async(resource_group_name, automation_account_name, configuration_name, custom_headers:custom_headers).value!
138
141
  end
139
142
 
140
143
  #
141
144
  # Retrieve the configuration identified by configuration name.
142
145
  #
143
- # @param resource_group_name [String] The resource group name.
144
- # @param automation_account_name [String] The automation account name.
146
+ # @param resource_group_name [String] Name of an Azure Resource group.
147
+ # @param automation_account_name [String] The name of the automation account.
145
148
  # @param configuration_name [String] The configuration name.
146
149
  # @param [Hash{String => String}] A hash of custom headers that will be added
147
150
  # to the HTTP request.
148
151
  #
149
152
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
150
153
  #
151
- def get_async(resource_group_name, automation_account_name, configuration_name, custom_headers = nil)
154
+ def get_async(resource_group_name, automation_account_name, configuration_name, custom_headers:nil)
152
155
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
156
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
157
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
153
158
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
154
159
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
155
160
  fail ArgumentError, 'configuration_name is nil' if configuration_name.nil?
@@ -158,6 +163,7 @@ module Azure::Automation::Mgmt::V2015_10_31
158
163
 
159
164
 
160
165
  request_headers = {}
166
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
161
167
 
162
168
  # Set Headers
163
169
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -205,8 +211,8 @@ module Azure::Automation::Mgmt::V2015_10_31
205
211
  #
206
212
  # Create the configuration identified by configuration name.
207
213
  #
208
- # @param resource_group_name [String] The resource group name.
209
- # @param automation_account_name [String] The automation account name.
214
+ # @param resource_group_name [String] Name of an Azure Resource group.
215
+ # @param automation_account_name [String] The name of the automation account.
210
216
  # @param configuration_name [String] The create or update parameters for
211
217
  # configuration.
212
218
  # @param parameters [DscConfigurationCreateOrUpdateParameters] The create or
@@ -216,16 +222,16 @@ module Azure::Automation::Mgmt::V2015_10_31
216
222
  #
217
223
  # @return [DscConfiguration] operation results.
218
224
  #
219
- def create_or_update(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers = nil)
220
- response = create_or_update_async(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers).value!
225
+ def create_or_update(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers:nil)
226
+ response = create_or_update_async(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers:custom_headers).value!
221
227
  response.body unless response.nil?
222
228
  end
223
229
 
224
230
  #
225
231
  # Create the configuration identified by configuration name.
226
232
  #
227
- # @param resource_group_name [String] The resource group name.
228
- # @param automation_account_name [String] The automation account name.
233
+ # @param resource_group_name [String] Name of an Azure Resource group.
234
+ # @param automation_account_name [String] The name of the automation account.
229
235
  # @param configuration_name [String] The create or update parameters for
230
236
  # configuration.
231
237
  # @param parameters [DscConfigurationCreateOrUpdateParameters] The create or
@@ -235,15 +241,15 @@ module Azure::Automation::Mgmt::V2015_10_31
235
241
  #
236
242
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
237
243
  #
238
- def create_or_update_with_http_info(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers = nil)
239
- create_or_update_async(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers).value!
244
+ def create_or_update_with_http_info(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers:nil)
245
+ create_or_update_async(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers:custom_headers).value!
240
246
  end
241
247
 
242
248
  #
243
249
  # Create the configuration identified by configuration name.
244
250
  #
245
- # @param resource_group_name [String] The resource group name.
246
- # @param automation_account_name [String] The automation account name.
251
+ # @param resource_group_name [String] Name of an Azure Resource group.
252
+ # @param automation_account_name [String] The name of the automation account.
247
253
  # @param configuration_name [String] The create or update parameters for
248
254
  # configuration.
249
255
  # @param parameters [DscConfigurationCreateOrUpdateParameters] The create or
@@ -253,8 +259,10 @@ module Azure::Automation::Mgmt::V2015_10_31
253
259
  #
254
260
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
255
261
  #
256
- def create_or_update_async(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers = nil)
262
+ def create_or_update_async(resource_group_name, automation_account_name, configuration_name, parameters, custom_headers:nil)
257
263
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
264
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
265
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
258
266
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
259
267
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
260
268
  fail ArgumentError, 'configuration_name is nil' if configuration_name.nil?
@@ -264,13 +272,12 @@ module Azure::Automation::Mgmt::V2015_10_31
264
272
 
265
273
 
266
274
  request_headers = {}
275
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
267
276
 
268
277
  # Set Headers
269
278
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
270
279
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
271
280
 
272
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
273
-
274
281
  # Serialize Request
275
282
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationCreateOrUpdateParameters.mapper()
276
283
  request_content = @client.serialize(request_mapper, parameters)
@@ -327,50 +334,167 @@ module Azure::Automation::Mgmt::V2015_10_31
327
334
  promise.execute
328
335
  end
329
336
 
337
+ #
338
+ # Create the configuration identified by configuration name.
339
+ #
340
+ # @param resource_group_name [String] Name of an Azure Resource group.
341
+ # @param automation_account_name [String] The name of the automation account.
342
+ # @param configuration_name [String] The create or update parameters for
343
+ # configuration.
344
+ # @param parameters [DscConfigurationUpdateParameters] The create or update
345
+ # parameters for configuration.
346
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
347
+ # will be added to the HTTP request.
348
+ #
349
+ # @return [DscConfiguration] operation results.
350
+ #
351
+ def update(resource_group_name, automation_account_name, configuration_name, parameters:nil, custom_headers:nil)
352
+ response = update_async(resource_group_name, automation_account_name, configuration_name, parameters:parameters, custom_headers:custom_headers).value!
353
+ response.body unless response.nil?
354
+ end
355
+
356
+ #
357
+ # Create the configuration identified by configuration name.
358
+ #
359
+ # @param resource_group_name [String] Name of an Azure Resource group.
360
+ # @param automation_account_name [String] The name of the automation account.
361
+ # @param configuration_name [String] The create or update parameters for
362
+ # configuration.
363
+ # @param parameters [DscConfigurationUpdateParameters] The create or update
364
+ # parameters for configuration.
365
+ # @param custom_headers [Hash{String => String}] A hash of custom headers that
366
+ # will be added to the HTTP request.
367
+ #
368
+ # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
369
+ #
370
+ def update_with_http_info(resource_group_name, automation_account_name, configuration_name, parameters:nil, custom_headers:nil)
371
+ update_async(resource_group_name, automation_account_name, configuration_name, parameters:parameters, custom_headers:custom_headers).value!
372
+ end
373
+
374
+ #
375
+ # Create the configuration identified by configuration name.
376
+ #
377
+ # @param resource_group_name [String] Name of an Azure Resource group.
378
+ # @param automation_account_name [String] The name of the automation account.
379
+ # @param configuration_name [String] The create or update parameters for
380
+ # configuration.
381
+ # @param parameters [DscConfigurationUpdateParameters] The create or update
382
+ # parameters for configuration.
383
+ # @param [Hash{String => String}] A hash of custom headers that will be added
384
+ # to the HTTP request.
385
+ #
386
+ # @return [Concurrent::Promise] Promise object which holds the HTTP response.
387
+ #
388
+ def update_async(resource_group_name, automation_account_name, configuration_name, parameters:nil, custom_headers:nil)
389
+ fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
390
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
391
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
392
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
393
+ fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
394
+ fail ArgumentError, 'configuration_name is nil' if configuration_name.nil?
395
+ fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
396
+ fail ArgumentError, '@client.api_version is nil' if @client.api_version.nil?
397
+
398
+
399
+ request_headers = {}
400
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
401
+
402
+ # Set Headers
403
+ request_headers['x-ms-client-request-id'] = SecureRandom.uuid
404
+ request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
405
+
406
+ # Serialize Request
407
+ request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfigurationUpdateParameters.mapper()
408
+ request_content = @client.serialize(request_mapper, parameters)
409
+ request_content = request_content != nil ? JSON.generate(request_content, quirks_mode: true) : nil
410
+
411
+ path_template = 'subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/configurations/{configurationName}'
412
+
413
+ request_url = @base_url || @client.base_url
414
+
415
+ options = {
416
+ middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
417
+ path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'configurationName' => configuration_name,'subscriptionId' => @client.subscription_id},
418
+ query_params: {'api-version' => @client.api_version},
419
+ body: request_content,
420
+ headers: request_headers.merge(custom_headers || {}),
421
+ base_url: request_url
422
+ }
423
+ promise = @client.make_request_async(:patch, path_template, options)
424
+
425
+ promise = promise.then do |result|
426
+ http_response = result.response
427
+ status_code = http_response.status
428
+ response_content = http_response.body
429
+ unless status_code == 200
430
+ error_model = JSON.load(response_content)
431
+ fail MsRest::HttpOperationError.new(result.request, http_response, error_model)
432
+ end
433
+
434
+ result.request_id = http_response['x-ms-request-id'] unless http_response['x-ms-request-id'].nil?
435
+ # Deserialize Response
436
+ if status_code == 200
437
+ begin
438
+ parsed_response = response_content.to_s.empty? ? nil : JSON.load(response_content)
439
+ result_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::DscConfiguration.mapper()
440
+ result.body = @client.deserialize(result_mapper, parsed_response)
441
+ rescue Exception => e
442
+ fail MsRest::DeserializationError.new('Error occurred in deserializing the response', e.message, e.backtrace, result)
443
+ end
444
+ end
445
+
446
+ result
447
+ end
448
+
449
+ promise.execute
450
+ end
451
+
330
452
  #
331
453
  # Retrieve the configuration script identified by configuration name.
332
454
  #
333
- # @param resource_group_name [String] The resource group name.
334
- # @param automation_account_name [String] The automation account name.
455
+ # @param resource_group_name [String] Name of an Azure Resource group.
456
+ # @param automation_account_name [String] The name of the automation account.
335
457
  # @param configuration_name [String] The configuration name.
336
458
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
337
459
  # will be added to the HTTP request.
338
460
  #
339
- # @return [NOT_IMPLEMENTED] operation results.
461
+ # @return [String] operation results.
340
462
  #
341
- def get_content(resource_group_name, automation_account_name, configuration_name, custom_headers = nil)
342
- response = get_content_async(resource_group_name, automation_account_name, configuration_name, custom_headers).value!
463
+ def get_content(resource_group_name, automation_account_name, configuration_name, custom_headers:nil)
464
+ response = get_content_async(resource_group_name, automation_account_name, configuration_name, custom_headers:custom_headers).value!
343
465
  response.body unless response.nil?
344
466
  end
345
467
 
346
468
  #
347
469
  # Retrieve the configuration script identified by configuration name.
348
470
  #
349
- # @param resource_group_name [String] The resource group name.
350
- # @param automation_account_name [String] The automation account name.
471
+ # @param resource_group_name [String] Name of an Azure Resource group.
472
+ # @param automation_account_name [String] The name of the automation account.
351
473
  # @param configuration_name [String] The configuration name.
352
474
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
353
475
  # will be added to the HTTP request.
354
476
  #
355
477
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
356
478
  #
357
- def get_content_with_http_info(resource_group_name, automation_account_name, configuration_name, custom_headers = nil)
358
- get_content_async(resource_group_name, automation_account_name, configuration_name, custom_headers).value!
479
+ def get_content_with_http_info(resource_group_name, automation_account_name, configuration_name, custom_headers:nil)
480
+ get_content_async(resource_group_name, automation_account_name, configuration_name, custom_headers:custom_headers).value!
359
481
  end
360
482
 
361
483
  #
362
484
  # Retrieve the configuration script identified by configuration name.
363
485
  #
364
- # @param resource_group_name [String] The resource group name.
365
- # @param automation_account_name [String] The automation account name.
486
+ # @param resource_group_name [String] Name of an Azure Resource group.
487
+ # @param automation_account_name [String] The name of the automation account.
366
488
  # @param configuration_name [String] The configuration name.
367
489
  # @param [Hash{String => String}] A hash of custom headers that will be added
368
490
  # to the HTTP request.
369
491
  #
370
492
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
371
493
  #
372
- def get_content_async(resource_group_name, automation_account_name, configuration_name, custom_headers = nil)
494
+ def get_content_async(resource_group_name, automation_account_name, configuration_name, custom_headers:nil)
373
495
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
496
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
497
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
374
498
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
375
499
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
376
500
  fail ArgumentError, 'configuration_name is nil' if configuration_name.nil?
@@ -379,6 +503,7 @@ module Azure::Automation::Mgmt::V2015_10_31
379
503
 
380
504
 
381
505
  request_headers = {}
506
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
382
507
 
383
508
  # Set Headers
384
509
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -415,7 +540,7 @@ module Azure::Automation::Mgmt::V2015_10_31
415
540
  required: false,
416
541
  serialized_name: 'parsed_response',
417
542
  type: {
418
- name: 'Stream'
543
+ name: 'String'
419
544
  }
420
545
  }
421
546
  result.body = @client.deserialize(result_mapper, parsed_response)
@@ -433,44 +558,58 @@ module Azure::Automation::Mgmt::V2015_10_31
433
558
  #
434
559
  # Retrieve a list of configurations.
435
560
  #
436
- # @param resource_group_name [String] The resource group name.
437
- # @param automation_account_name [String] The automation account name.
561
+ # @param resource_group_name [String] Name of an Azure Resource group.
562
+ # @param automation_account_name [String] The name of the automation account.
563
+ # @param filter [String] The filter to apply on the operation.
564
+ # @param skip [Integer] The number of rows to skip.
565
+ # @param top [Integer] The the number of rows to take.
566
+ # @param inlinecount [String] Return total rows.
438
567
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
439
568
  # will be added to the HTTP request.
440
569
  #
441
570
  # @return [Array<DscConfiguration>] operation results.
442
571
  #
443
- def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil)
444
- first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers)
572
+ def list_by_automation_account(resource_group_name, automation_account_name, filter:nil, skip:nil, top:nil, inlinecount:nil, custom_headers:nil)
573
+ first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:filter, skip:skip, top:top, inlinecount:inlinecount, custom_headers:custom_headers)
445
574
  first_page.get_all_items
446
575
  end
447
576
 
448
577
  #
449
578
  # Retrieve a list of configurations.
450
579
  #
451
- # @param resource_group_name [String] The resource group name.
452
- # @param automation_account_name [String] The automation account name.
580
+ # @param resource_group_name [String] Name of an Azure Resource group.
581
+ # @param automation_account_name [String] The name of the automation account.
582
+ # @param filter [String] The filter to apply on the operation.
583
+ # @param skip [Integer] The number of rows to skip.
584
+ # @param top [Integer] The the number of rows to take.
585
+ # @param inlinecount [String] Return total rows.
453
586
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
454
587
  # will be added to the HTTP request.
455
588
  #
456
589
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
457
590
  #
458
- def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil)
459
- list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
591
+ def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, filter:nil, skip:nil, top:nil, inlinecount:nil, custom_headers:nil)
592
+ list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, skip:skip, top:top, inlinecount:inlinecount, custom_headers:custom_headers).value!
460
593
  end
461
594
 
462
595
  #
463
596
  # Retrieve a list of configurations.
464
597
  #
465
- # @param resource_group_name [String] The resource group name.
466
- # @param automation_account_name [String] The automation account name.
598
+ # @param resource_group_name [String] Name of an Azure Resource group.
599
+ # @param automation_account_name [String] The name of the automation account.
600
+ # @param filter [String] The filter to apply on the operation.
601
+ # @param skip [Integer] The number of rows to skip.
602
+ # @param top [Integer] The the number of rows to take.
603
+ # @param inlinecount [String] Return total rows.
467
604
  # @param [Hash{String => String}] A hash of custom headers that will be added
468
605
  # to the HTTP request.
469
606
  #
470
607
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
471
608
  #
472
- def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil)
609
+ def list_by_automation_account_async(resource_group_name, automation_account_name, filter:nil, skip:nil, top:nil, inlinecount:nil, custom_headers:nil)
473
610
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
611
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
612
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
474
613
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
475
614
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
476
615
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -478,6 +617,7 @@ module Azure::Automation::Mgmt::V2015_10_31
478
617
 
479
618
 
480
619
  request_headers = {}
620
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
481
621
 
482
622
  # Set Headers
483
623
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -489,7 +629,7 @@ module Azure::Automation::Mgmt::V2015_10_31
489
629
  options = {
490
630
  middlewares: [[MsRest::RetryPolicyMiddleware, times: 3, retry: 0.02], [:cookie_jar]],
491
631
  path_params: {'resourceGroupName' => resource_group_name,'automationAccountName' => automation_account_name,'subscriptionId' => @client.subscription_id},
492
- query_params: {'api-version' => @client.api_version},
632
+ query_params: {'api-version' => @client.api_version,'$filter' => filter,'$skip' => skip,'$top' => top,'$inlinecount' => inlinecount},
493
633
  headers: request_headers.merge(custom_headers || {}),
494
634
  base_url: request_url
495
635
  }
@@ -532,8 +672,8 @@ module Azure::Automation::Mgmt::V2015_10_31
532
672
  #
533
673
  # @return [DscConfigurationListResult] operation results.
534
674
  #
535
- def list_by_automation_account_next(next_page_link, custom_headers = nil)
536
- response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
675
+ def list_by_automation_account_next(next_page_link, custom_headers:nil)
676
+ response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
537
677
  response.body unless response.nil?
538
678
  end
539
679
 
@@ -547,8 +687,8 @@ module Azure::Automation::Mgmt::V2015_10_31
547
687
  #
548
688
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
549
689
  #
550
- def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil)
551
- list_by_automation_account_next_async(next_page_link, custom_headers).value!
690
+ def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
691
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
552
692
  end
553
693
 
554
694
  #
@@ -561,11 +701,12 @@ module Azure::Automation::Mgmt::V2015_10_31
561
701
  #
562
702
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
563
703
  #
564
- def list_by_automation_account_next_async(next_page_link, custom_headers = nil)
704
+ def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
565
705
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
566
706
 
567
707
 
568
708
  request_headers = {}
709
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
569
710
 
570
711
  # Set Headers
571
712
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -612,20 +753,24 @@ module Azure::Automation::Mgmt::V2015_10_31
612
753
  #
613
754
  # Retrieve a list of configurations.
614
755
  #
615
- # @param resource_group_name [String] The resource group name.
616
- # @param automation_account_name [String] The automation account name.
756
+ # @param resource_group_name [String] Name of an Azure Resource group.
757
+ # @param automation_account_name [String] The name of the automation account.
758
+ # @param filter [String] The filter to apply on the operation.
759
+ # @param skip [Integer] The number of rows to skip.
760
+ # @param top [Integer] The the number of rows to take.
761
+ # @param inlinecount [String] Return total rows.
617
762
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
618
763
  # will be added to the HTTP request.
619
764
  #
620
765
  # @return [DscConfigurationListResult] which provide lazy access to pages of
621
766
  # the response.
622
767
  #
623
- def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil)
624
- response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
768
+ def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, filter:nil, skip:nil, top:nil, inlinecount:nil, custom_headers:nil)
769
+ response = list_by_automation_account_async(resource_group_name, automation_account_name, filter:filter, skip:skip, top:top, inlinecount:inlinecount, custom_headers:custom_headers).value!
625
770
  unless response.nil?
626
771
  page = response.body
627
772
  page.next_method = Proc.new do |next_page_link|
628
- list_by_automation_account_next_async(next_page_link, custom_headers)
773
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
629
774
  end
630
775
  page
631
776
  end