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
@@ -25,15 +25,16 @@ module Azure::Automation::Mgmt::V2015_10_31
25
25
  # for every service call.
26
26
  attr_accessor :subscription_id
27
27
 
28
- # @return [String] Gets or sets the preferred language for the response.
28
+ # @return [String] The preferred language for the response.
29
29
  attr_accessor :accept_language
30
30
 
31
- # @return [Integer] Gets or sets the retry timeout in seconds for Long
32
- # Running Operations. Default value is 30.
31
+ # @return [Integer] The retry timeout in seconds for Long Running
32
+ # Operations. Default value is 30.
33
33
  attr_accessor :long_running_operation_retry_timeout
34
34
 
35
- # @return [Boolean] When set to true a unique x-ms-client-request-id value
36
- # is generated and included in each request. Default is true.
35
+ # @return [Boolean] Whether a unique x-ms-client-request-id should be
36
+ # generated. When set to true a unique x-ms-client-request-id value is
37
+ # generated and included in each request. Default is true.
37
38
  attr_accessor :generate_client_request_id
38
39
 
39
40
  # @return [AutomationAccountOperations] automation_account_operations
@@ -48,6 +49,9 @@ module Azure::Automation::Mgmt::V2015_10_31
48
49
  # @return [Usages] usages
49
50
  attr_reader :usages
50
51
 
52
+ # @return [Keys] keys
53
+ attr_reader :keys
54
+
51
55
  # @return [CertificateOperations] certificate_operations
52
56
  attr_reader :certificate_operations
53
57
 
@@ -63,6 +67,9 @@ module Azure::Automation::Mgmt::V2015_10_31
63
67
  # @return [DscCompilationJobOperations] dsc_compilation_job_operations
64
68
  attr_reader :dsc_compilation_job_operations
65
69
 
70
+ # @return [DscCompilationJobStream] dsc_compilation_job_stream
71
+ attr_reader :dsc_compilation_job_stream
72
+
66
73
  # @return [DscConfigurationOperations] dsc_configuration_operations
67
74
  attr_reader :dsc_configuration_operations
68
75
 
@@ -92,6 +99,9 @@ module Azure::Automation::Mgmt::V2015_10_31
92
99
  # @return [JobScheduleOperations] job_schedule_operations
93
100
  attr_reader :job_schedule_operations
94
101
 
102
+ # @return [LinkedWorkspaceOperations] linked_workspace_operations
103
+ attr_reader :linked_workspace_operations
104
+
95
105
  # @return [ActivityOperations] activity_operations
96
106
  attr_reader :activity_operations
97
107
 
@@ -113,8 +123,8 @@ module Azure::Automation::Mgmt::V2015_10_31
113
123
  # @return [TestJobStreams] test_job_streams
114
124
  attr_reader :test_job_streams
115
125
 
116
- # @return [TestJobs] test_jobs
117
- attr_reader :test_jobs
126
+ # @return [TestJobOperations] test_job_operations
127
+ attr_reader :test_job_operations
118
128
 
119
129
  # @return [ScheduleOperations] schedule_operations
120
130
  attr_reader :schedule_operations
@@ -142,11 +152,13 @@ module Azure::Automation::Mgmt::V2015_10_31
142
152
  @operations = Operations.new(self)
143
153
  @statistics_operations = StatisticsOperations.new(self)
144
154
  @usages = Usages.new(self)
155
+ @keys = Keys.new(self)
145
156
  @certificate_operations = CertificateOperations.new(self)
146
157
  @connection_operations = ConnectionOperations.new(self)
147
158
  @connection_type_operations = ConnectionTypeOperations.new(self)
148
159
  @credential_operations = CredentialOperations.new(self)
149
160
  @dsc_compilation_job_operations = DscCompilationJobOperations.new(self)
161
+ @dsc_compilation_job_stream = DscCompilationJobStream.new(self)
150
162
  @dsc_configuration_operations = DscConfigurationOperations.new(self)
151
163
  @agent_registration_information = AgentRegistrationInformation.new(self)
152
164
  @dsc_node_operations = DscNodeOperations.new(self)
@@ -156,6 +168,7 @@ module Azure::Automation::Mgmt::V2015_10_31
156
168
  @job_operations = JobOperations.new(self)
157
169
  @job_stream_operations = JobStreamOperations.new(self)
158
170
  @job_schedule_operations = JobScheduleOperations.new(self)
171
+ @linked_workspace_operations = LinkedWorkspaceOperations.new(self)
159
172
  @activity_operations = ActivityOperations.new(self)
160
173
  @module_model_operations = ModuleModelOperations.new(self)
161
174
  @object_data_types = ObjectDataTypes.new(self)
@@ -163,7 +176,7 @@ module Azure::Automation::Mgmt::V2015_10_31
163
176
  @runbook_draft_operations = RunbookDraftOperations.new(self)
164
177
  @runbook_operations = RunbookOperations.new(self)
165
178
  @test_job_streams = TestJobStreams.new(self)
166
- @test_jobs = TestJobs.new(self)
179
+ @test_job_operations = TestJobOperations.new(self)
167
180
  @schedule_operations = ScheduleOperations.new(self)
168
181
  @variable_operations = VariableOperations.new(self)
169
182
  @webhook_operations = WebhookOperations.new(self)
@@ -220,6 +233,9 @@ module Azure::Automation::Mgmt::V2015_10_31
220
233
  fail ArgumentError, 'path is nil' if path.nil?
221
234
 
222
235
  request_url = options[:base_url] || @base_url
236
+ if(!options[:headers].nil? && !options[:headers]['Content-Type'].nil?)
237
+ @request_headers['Content-Type'] = options[:headers]['Content-Type']
238
+ end
223
239
 
224
240
  request_headers = @request_headers
225
241
  request_headers.merge!({'accept-language' => @accept_language}) unless @accept_language.nil?
@@ -236,7 +252,7 @@ module Azure::Automation::Mgmt::V2015_10_31
236
252
  #
237
253
  def add_telemetry
238
254
  sdk_information = 'azure_mgmt_automation'
239
- sdk_information = "#{sdk_information}/0.15.2"
255
+ sdk_information = "#{sdk_information}/0.17.3"
240
256
  add_user_agent_information(sdk_information)
241
257
  end
242
258
  end
@@ -24,46 +24,48 @@ module Azure::Automation::Mgmt::V2015_10_31
24
24
  #
25
25
  # Delete the certificate.
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 certificate_name [String] The name of certificate.
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, certificate_name, custom_headers = nil)
35
- response = delete_async(resource_group_name, automation_account_name, certificate_name, custom_headers).value!
34
+ def delete(resource_group_name, automation_account_name, certificate_name, custom_headers:nil)
35
+ response = delete_async(resource_group_name, automation_account_name, certificate_name, custom_headers:custom_headers).value!
36
36
  nil
37
37
  end
38
38
 
39
39
  #
40
40
  # Delete the certificate.
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 certificate_name [String] The name of certificate.
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, certificate_name, custom_headers = nil)
51
- delete_async(resource_group_name, automation_account_name, certificate_name, custom_headers).value!
50
+ def delete_with_http_info(resource_group_name, automation_account_name, certificate_name, custom_headers:nil)
51
+ delete_async(resource_group_name, automation_account_name, certificate_name, custom_headers:custom_headers).value!
52
52
  end
53
53
 
54
54
  #
55
55
  # Delete the certificate.
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 certificate_name [String] The name of certificate.
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, certificate_name, custom_headers = nil)
65
+ def delete_async(resource_group_name, automation_account_name, certificate_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, 'certificate_name is nil' if certificate_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 certificate identified by certificate 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 certificate_name [String] The name of certificate.
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 [Certificate] operation results.
119
122
  #
120
- def get(resource_group_name, automation_account_name, certificate_name, custom_headers = nil)
121
- response = get_async(resource_group_name, automation_account_name, certificate_name, custom_headers).value!
123
+ def get(resource_group_name, automation_account_name, certificate_name, custom_headers:nil)
124
+ response = get_async(resource_group_name, automation_account_name, certificate_name, custom_headers:custom_headers).value!
122
125
  response.body unless response.nil?
123
126
  end
124
127
 
125
128
  #
126
129
  # Retrieve the certificate identified by certificate 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 certificate_name [String] The name of certificate.
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, certificate_name, custom_headers = nil)
137
- get_async(resource_group_name, automation_account_name, certificate_name, custom_headers).value!
139
+ def get_with_http_info(resource_group_name, automation_account_name, certificate_name, custom_headers:nil)
140
+ get_async(resource_group_name, automation_account_name, certificate_name, custom_headers:custom_headers).value!
138
141
  end
139
142
 
140
143
  #
141
144
  # Retrieve the certificate identified by certificate 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 certificate_name [String] The name of certificate.
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, certificate_name, custom_headers = nil)
154
+ def get_async(resource_group_name, automation_account_name, certificate_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, 'certificate_name is nil' if certificate_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 a certificate.
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 certificate_name [String] The parameters supplied to the create or
211
217
  # update certificate operation.
212
218
  # @param parameters [CertificateCreateOrUpdateParameters] The parameters
@@ -216,16 +222,16 @@ module Azure::Automation::Mgmt::V2015_10_31
216
222
  #
217
223
  # @return [Certificate] operation results.
218
224
  #
219
- def create_or_update(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers = nil)
220
- response = create_or_update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers).value!
225
+ def create_or_update(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:nil)
226
+ response = create_or_update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:custom_headers).value!
221
227
  response.body unless response.nil?
222
228
  end
223
229
 
224
230
  #
225
231
  # Create a certificate.
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 certificate_name [String] The parameters supplied to the create or
230
236
  # update certificate operation.
231
237
  # @param parameters [CertificateCreateOrUpdateParameters] The parameters
@@ -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, certificate_name, parameters, custom_headers = nil)
239
- create_or_update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers).value!
244
+ def create_or_update_with_http_info(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:nil)
245
+ create_or_update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:custom_headers).value!
240
246
  end
241
247
 
242
248
  #
243
249
  # Create a certificate.
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 certificate_name [String] The parameters supplied to the create or
248
254
  # update certificate operation.
249
255
  # @param parameters [CertificateCreateOrUpdateParameters] The parameters
@@ -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, certificate_name, parameters, custom_headers = nil)
262
+ def create_or_update_async(resource_group_name, automation_account_name, certificate_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, 'certificate_name is nil' if certificate_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::CertificateCreateOrUpdateParameters.mapper()
276
283
  request_content = @client.serialize(request_mapper, parameters)
@@ -330,8 +337,8 @@ module Azure::Automation::Mgmt::V2015_10_31
330
337
  #
331
338
  # Update a certificate.
332
339
  #
333
- # @param resource_group_name [String] The resource group name.
334
- # @param automation_account_name [String] The automation account name.
340
+ # @param resource_group_name [String] Name of an Azure Resource group.
341
+ # @param automation_account_name [String] The name of the automation account.
335
342
  # @param certificate_name [String] The parameters supplied to the update
336
343
  # certificate operation.
337
344
  # @param parameters [CertificateUpdateParameters] The parameters supplied to
@@ -341,16 +348,16 @@ module Azure::Automation::Mgmt::V2015_10_31
341
348
  #
342
349
  # @return [Certificate] operation results.
343
350
  #
344
- def update(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers = nil)
345
- response = update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers).value!
351
+ def update(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:nil)
352
+ response = update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:custom_headers).value!
346
353
  response.body unless response.nil?
347
354
  end
348
355
 
349
356
  #
350
357
  # Update a certificate.
351
358
  #
352
- # @param resource_group_name [String] The resource group name.
353
- # @param automation_account_name [String] The automation account name.
359
+ # @param resource_group_name [String] Name of an Azure Resource group.
360
+ # @param automation_account_name [String] The name of the automation account.
354
361
  # @param certificate_name [String] The parameters supplied to the update
355
362
  # certificate operation.
356
363
  # @param parameters [CertificateUpdateParameters] The parameters supplied to
@@ -360,15 +367,15 @@ module Azure::Automation::Mgmt::V2015_10_31
360
367
  #
361
368
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
362
369
  #
363
- def update_with_http_info(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers = nil)
364
- update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers).value!
370
+ def update_with_http_info(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:nil)
371
+ update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:custom_headers).value!
365
372
  end
366
373
 
367
374
  #
368
375
  # Update a certificate.
369
376
  #
370
- # @param resource_group_name [String] The resource group name.
371
- # @param automation_account_name [String] The automation account name.
377
+ # @param resource_group_name [String] Name of an Azure Resource group.
378
+ # @param automation_account_name [String] The name of the automation account.
372
379
  # @param certificate_name [String] The parameters supplied to the update
373
380
  # certificate operation.
374
381
  # @param parameters [CertificateUpdateParameters] The parameters supplied to
@@ -378,8 +385,10 @@ module Azure::Automation::Mgmt::V2015_10_31
378
385
  #
379
386
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
380
387
  #
381
- def update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers = nil)
388
+ def update_async(resource_group_name, automation_account_name, certificate_name, parameters, custom_headers:nil)
382
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
383
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?
384
393
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
385
394
  fail ArgumentError, 'certificate_name is nil' if certificate_name.nil?
@@ -389,13 +398,12 @@ module Azure::Automation::Mgmt::V2015_10_31
389
398
 
390
399
 
391
400
  request_headers = {}
401
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
392
402
 
393
403
  # Set Headers
394
404
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
395
405
  request_headers['accept-language'] = @client.accept_language unless @client.accept_language.nil?
396
406
 
397
- request_headers['Content-Type'] = 'application/json; charset=utf-8'
398
-
399
407
  # Serialize Request
400
408
  request_mapper = Azure::Automation::Mgmt::V2015_10_31::Models::CertificateUpdateParameters.mapper()
401
409
  request_content = @client.serialize(request_mapper, parameters)
@@ -445,44 +453,46 @@ module Azure::Automation::Mgmt::V2015_10_31
445
453
  #
446
454
  # Retrieve a list of certificates.
447
455
  #
448
- # @param resource_group_name [String] The resource group name.
449
- # @param automation_account_name [String] The automation account name.
456
+ # @param resource_group_name [String] Name of an Azure Resource group.
457
+ # @param automation_account_name [String] The name of the automation account.
450
458
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
451
459
  # will be added to the HTTP request.
452
460
  #
453
461
  # @return [Array<Certificate>] operation results.
454
462
  #
455
- def list_by_automation_account(resource_group_name, automation_account_name, custom_headers = nil)
456
- first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers)
463
+ def list_by_automation_account(resource_group_name, automation_account_name, custom_headers:nil)
464
+ first_page = list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:custom_headers)
457
465
  first_page.get_all_items
458
466
  end
459
467
 
460
468
  #
461
469
  # Retrieve a list of certificates.
462
470
  #
463
- # @param resource_group_name [String] The resource group name.
464
- # @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.
465
473
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
466
474
  # will be added to the HTTP request.
467
475
  #
468
476
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
469
477
  #
470
- def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers = nil)
471
- list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
478
+ def list_by_automation_account_with_http_info(resource_group_name, automation_account_name, custom_headers:nil)
479
+ list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
472
480
  end
473
481
 
474
482
  #
475
483
  # Retrieve a list of certificates.
476
484
  #
477
- # @param resource_group_name [String] The resource group name.
478
- # @param automation_account_name [String] The automation account name.
485
+ # @param resource_group_name [String] Name of an Azure Resource group.
486
+ # @param automation_account_name [String] The name of the automation account.
479
487
  # @param [Hash{String => String}] A hash of custom headers that will be added
480
488
  # to the HTTP request.
481
489
  #
482
490
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
483
491
  #
484
- def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers = nil)
492
+ def list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:nil)
485
493
  fail ArgumentError, 'resource_group_name is nil' if resource_group_name.nil?
494
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MaxLength': '90'" if !resource_group_name.nil? && resource_group_name.length > 90
495
+ fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'MinLength': '1'" if !resource_group_name.nil? && resource_group_name.length < 1
486
496
  fail ArgumentError, "'resource_group_name' should satisfy the constraint - 'Pattern': '^[-\w\._]+$'" if !resource_group_name.nil? && resource_group_name.match(Regexp.new('^^[-\w\._]+$$')).nil?
487
497
  fail ArgumentError, 'automation_account_name is nil' if automation_account_name.nil?
488
498
  fail ArgumentError, '@client.subscription_id is nil' if @client.subscription_id.nil?
@@ -490,6 +500,7 @@ module Azure::Automation::Mgmt::V2015_10_31
490
500
 
491
501
 
492
502
  request_headers = {}
503
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
493
504
 
494
505
  # Set Headers
495
506
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -544,8 +555,8 @@ module Azure::Automation::Mgmt::V2015_10_31
544
555
  #
545
556
  # @return [CertificateListResult] operation results.
546
557
  #
547
- def list_by_automation_account_next(next_page_link, custom_headers = nil)
548
- response = list_by_automation_account_next_async(next_page_link, custom_headers).value!
558
+ def list_by_automation_account_next(next_page_link, custom_headers:nil)
559
+ response = list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
549
560
  response.body unless response.nil?
550
561
  end
551
562
 
@@ -559,8 +570,8 @@ module Azure::Automation::Mgmt::V2015_10_31
559
570
  #
560
571
  # @return [MsRestAzure::AzureOperationResponse] HTTP response information.
561
572
  #
562
- def list_by_automation_account_next_with_http_info(next_page_link, custom_headers = nil)
563
- list_by_automation_account_next_async(next_page_link, custom_headers).value!
573
+ def list_by_automation_account_next_with_http_info(next_page_link, custom_headers:nil)
574
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers).value!
564
575
  end
565
576
 
566
577
  #
@@ -573,11 +584,12 @@ module Azure::Automation::Mgmt::V2015_10_31
573
584
  #
574
585
  # @return [Concurrent::Promise] Promise object which holds the HTTP response.
575
586
  #
576
- def list_by_automation_account_next_async(next_page_link, custom_headers = nil)
587
+ def list_by_automation_account_next_async(next_page_link, custom_headers:nil)
577
588
  fail ArgumentError, 'next_page_link is nil' if next_page_link.nil?
578
589
 
579
590
 
580
591
  request_headers = {}
592
+ request_headers['Content-Type'] = 'application/json; charset=utf-8'
581
593
 
582
594
  # Set Headers
583
595
  request_headers['x-ms-client-request-id'] = SecureRandom.uuid
@@ -624,20 +636,20 @@ module Azure::Automation::Mgmt::V2015_10_31
624
636
  #
625
637
  # Retrieve a list of certificates.
626
638
  #
627
- # @param resource_group_name [String] The resource group name.
628
- # @param automation_account_name [String] The automation account name.
639
+ # @param resource_group_name [String] Name of an Azure Resource group.
640
+ # @param automation_account_name [String] The name of the automation account.
629
641
  # @param custom_headers [Hash{String => String}] A hash of custom headers that
630
642
  # will be added to the HTTP request.
631
643
  #
632
644
  # @return [CertificateListResult] which provide lazy access to pages of the
633
645
  # response.
634
646
  #
635
- def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers = nil)
636
- response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers).value!
647
+ def list_by_automation_account_as_lazy(resource_group_name, automation_account_name, custom_headers:nil)
648
+ response = list_by_automation_account_async(resource_group_name, automation_account_name, custom_headers:custom_headers).value!
637
649
  unless response.nil?
638
650
  page = response.body
639
651
  page.next_method = Proc.new do |next_page_link|
640
- list_by_automation_account_next_async(next_page_link, custom_headers)
652
+ list_by_automation_account_next_async(next_page_link, custom_headers:custom_headers)
641
653
  end
642
654
  page
643
655
  end