pulpcore_client 3.22.25 → 3.23.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (99) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +26 -4
  3. data/docs/ArtifactDistributionResponse.md +9 -9
  4. data/docs/DistributionsApi.md +4 -0
  5. data/docs/DistributionsArtifactsApi.md +4 -0
  6. data/docs/Domain.md +27 -0
  7. data/docs/DomainResponse.md +31 -0
  8. data/docs/DomainsApi.md +362 -0
  9. data/docs/ExportersFilesystemApi.md +3 -3
  10. data/docs/ExportersFilesystemExportsApi.md +3 -3
  11. data/docs/GroupRole.md +3 -1
  12. data/docs/GroupRoleResponse.md +3 -1
  13. data/docs/GroupsApi.md +6 -6
  14. data/docs/GroupsRolesApi.md +6 -4
  15. data/docs/PaginatedDomainResponseList.md +23 -0
  16. data/docs/PaginatedUpstreamPulpResponseList.md +23 -0
  17. data/docs/PatchedDomain.md +27 -0
  18. data/docs/PatchedUpstreamPulp.md +37 -0
  19. data/docs/RepositoriesApi.md +16 -0
  20. data/docs/RepositoryResponse.md +1 -1
  21. data/docs/RolesApi.md +6 -6
  22. data/docs/StatusResponse.md +3 -1
  23. data/docs/StorageClassEnum.md +16 -0
  24. data/docs/TaskSchedulesApi.md +2 -2
  25. data/docs/TasksApi.md +1 -1
  26. data/docs/UpstreamPulp.md +37 -0
  27. data/docs/UpstreamPulpResponse.md +39 -0
  28. data/docs/UpstreamPulpsApi.md +405 -0
  29. data/docs/UserRole.md +4 -2
  30. data/docs/UserRoleResponse.md +4 -2
  31. data/docs/UsersApi.md +6 -6
  32. data/docs/UsersRolesApi.md +6 -4
  33. data/docs/VersionResponse.md +3 -1
  34. data/lib/pulpcore_client/api/distributions_api.rb +6 -0
  35. data/lib/pulpcore_client/api/distributions_artifacts_api.rb +6 -0
  36. data/lib/pulpcore_client/api/domains_api.rb +446 -0
  37. data/lib/pulpcore_client/api/exporters_filesystem_api.rb +6 -6
  38. data/lib/pulpcore_client/api/exporters_filesystem_exports_api.rb +6 -6
  39. data/lib/pulpcore_client/api/groups_api.rb +12 -12
  40. data/lib/pulpcore_client/api/groups_roles_api.rb +11 -8
  41. data/lib/pulpcore_client/api/repositories_api.rb +24 -0
  42. data/lib/pulpcore_client/api/roles_api.rb +12 -12
  43. data/lib/pulpcore_client/api/task_schedules_api.rb +4 -4
  44. data/lib/pulpcore_client/api/tasks_api.rb +2 -2
  45. data/lib/pulpcore_client/api/upstream_pulps_api.rb +492 -0
  46. data/lib/pulpcore_client/api/users_api.rb +12 -12
  47. data/lib/pulpcore_client/api/users_roles_api.rb +11 -8
  48. data/lib/pulpcore_client/api/workers_api.rb +1 -1
  49. data/lib/pulpcore_client/models/artifact_distribution_response.rb +38 -38
  50. data/lib/pulpcore_client/models/domain.rb +323 -0
  51. data/lib/pulpcore_client/models/domain_response.rb +318 -0
  52. data/lib/pulpcore_client/models/group_role.rb +16 -5
  53. data/lib/pulpcore_client/models/group_role_response.rb +15 -4
  54. data/lib/pulpcore_client/models/nested_role.rb +19 -0
  55. data/lib/pulpcore_client/models/paginated_domain_response_list.rb +237 -0
  56. data/lib/pulpcore_client/models/paginated_upstream_pulp_response_list.rb +237 -0
  57. data/lib/pulpcore_client/models/patched_domain.rb +304 -0
  58. data/lib/pulpcore_client/models/patched_upstream_pulp.rb +450 -0
  59. data/lib/pulpcore_client/models/repository_response.rb +1 -1
  60. data/lib/pulpcore_client/models/status_response.rb +19 -4
  61. data/lib/pulpcore_client/models/storage_class_enum.rb +37 -0
  62. data/lib/pulpcore_client/models/upstream_pulp.rb +477 -0
  63. data/lib/pulpcore_client/models/upstream_pulp_response.rb +338 -0
  64. data/lib/pulpcore_client/models/user_role.rb +17 -6
  65. data/lib/pulpcore_client/models/user_role_response.rb +16 -5
  66. data/lib/pulpcore_client/models/version_response.rb +19 -4
  67. data/lib/pulpcore_client/version.rb +1 -1
  68. data/lib/pulpcore_client.rb +11 -0
  69. data/spec/api/distributions_api_spec.rb +2 -0
  70. data/spec/api/distributions_artifacts_api_spec.rb +2 -0
  71. data/spec/api/domains_api_spec.rb +120 -0
  72. data/spec/api/exporters_filesystem_api_spec.rb +3 -3
  73. data/spec/api/exporters_filesystem_exports_api_spec.rb +3 -3
  74. data/spec/api/groups_api_spec.rb +6 -6
  75. data/spec/api/groups_roles_api_spec.rb +5 -4
  76. data/spec/api/repositories_api_spec.rb +8 -0
  77. data/spec/api/roles_api_spec.rb +6 -6
  78. data/spec/api/task_schedules_api_spec.rb +2 -2
  79. data/spec/api/tasks_api_spec.rb +1 -1
  80. data/spec/api/upstream_pulps_api_spec.rb +127 -0
  81. data/spec/api/users_api_spec.rb +6 -6
  82. data/spec/api/users_roles_api_spec.rb +5 -4
  83. data/spec/models/artifact_distribution_response_spec.rb +6 -6
  84. data/spec/models/domain_response_spec.rb +83 -0
  85. data/spec/models/domain_spec.rb +71 -0
  86. data/spec/models/group_role_response_spec.rb +6 -0
  87. data/spec/models/group_role_spec.rb +6 -0
  88. data/spec/models/paginated_domain_response_list_spec.rb +59 -0
  89. data/spec/models/paginated_upstream_pulp_response_list_spec.rb +59 -0
  90. data/spec/models/patched_domain_spec.rb +71 -0
  91. data/spec/models/patched_upstream_pulp_spec.rb +101 -0
  92. data/spec/models/status_response_spec.rb +6 -0
  93. data/spec/models/storage_class_enum_spec.rb +35 -0
  94. data/spec/models/upstream_pulp_response_spec.rb +107 -0
  95. data/spec/models/upstream_pulp_spec.rb +101 -0
  96. data/spec/models/user_role_response_spec.rb +6 -0
  97. data/spec/models/user_role_spec.rb +6 -0
  98. data/spec/models/version_response_spec.rb +6 -0
  99. metadata +173 -129
@@ -0,0 +1,446 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.3.1
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpcoreClient
16
+ class DomainsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create a domain
23
+ # ViewSet for Domain. NOTE: This API endpoint is in \"tech preview\" and subject to change
24
+ # @param domain [Domain]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [DomainResponse]
27
+ def create(domain, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(domain, opts)
29
+ data
30
+ end
31
+
32
+ # Create a domain
33
+ # ViewSet for Domain. NOTE: This API endpoint is in \"tech preview\" and subject to change
34
+ # @param domain [Domain]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(DomainResponse, Integer, Hash)>] DomainResponse data, response status code and response headers
37
+ def create_with_http_info(domain, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: DomainsApi.create ...'
40
+ end
41
+ # verify the required parameter 'domain' is set
42
+ if @api_client.config.client_side_validation && domain.nil?
43
+ fail ArgumentError, "Missing the required parameter 'domain' when calling DomainsApi.create"
44
+ end
45
+ # resource path
46
+ local_var_path = '/pulp/api/v3/domains/'
47
+
48
+ # query parameters
49
+ query_params = opts[:query_params] || {}
50
+
51
+ # header parameters
52
+ header_params = opts[:header_params] || {}
53
+ # HTTP header 'Accept' (if needed)
54
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
+ # HTTP header 'Content-Type'
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
57
+
58
+ # form parameters
59
+ form_params = opts[:form_params] || {}
60
+
61
+ # http body (model)
62
+ post_body = opts[:body] || @api_client.object_to_http_body(domain)
63
+
64
+ # return_type
65
+ return_type = opts[:return_type] || 'DomainResponse'
66
+
67
+ # auth_names
68
+ auth_names = opts[:auth_names] || ['basicAuth']
69
+
70
+ new_options = opts.merge(
71
+ :header_params => header_params,
72
+ :query_params => query_params,
73
+ :form_params => form_params,
74
+ :body => post_body,
75
+ :auth_names => auth_names,
76
+ :return_type => return_type
77
+ )
78
+
79
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
80
+ if @api_client.config.debugging
81
+ @api_client.config.logger.debug "API called: DomainsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+
86
+ # Delete a domain
87
+ # Trigger an asynchronous delete task
88
+ # @param domain_href [String]
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [AsyncOperationResponse]
91
+ def delete(domain_href, opts = {})
92
+ data, _status_code, _headers = delete_with_http_info(domain_href, opts)
93
+ data
94
+ end
95
+
96
+ # Delete a domain
97
+ # Trigger an asynchronous delete task
98
+ # @param domain_href [String]
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
101
+ def delete_with_http_info(domain_href, opts = {})
102
+ if @api_client.config.debugging
103
+ @api_client.config.logger.debug 'Calling API: DomainsApi.delete ...'
104
+ end
105
+ # verify the required parameter 'domain_href' is set
106
+ if @api_client.config.client_side_validation && domain_href.nil?
107
+ fail ArgumentError, "Missing the required parameter 'domain_href' when calling DomainsApi.delete"
108
+ end
109
+ # resource path
110
+ local_var_path = '{domain_href}'.sub('{' + 'domain_href' + '}', CGI.escape(domain_href.to_s).gsub('%2F', '/'))
111
+
112
+ # query parameters
113
+ query_params = opts[:query_params] || {}
114
+
115
+ # header parameters
116
+ header_params = opts[:header_params] || {}
117
+ # HTTP header 'Accept' (if needed)
118
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
119
+
120
+ # form parameters
121
+ form_params = opts[:form_params] || {}
122
+
123
+ # http body (model)
124
+ post_body = opts[:body]
125
+
126
+ # return_type
127
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
128
+
129
+ # auth_names
130
+ auth_names = opts[:auth_names] || ['basicAuth']
131
+
132
+ new_options = opts.merge(
133
+ :header_params => header_params,
134
+ :query_params => query_params,
135
+ :form_params => form_params,
136
+ :body => post_body,
137
+ :auth_names => auth_names,
138
+ :return_type => return_type
139
+ )
140
+
141
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
142
+ if @api_client.config.debugging
143
+ @api_client.config.logger.debug "API called: DomainsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
144
+ end
145
+ return data, status_code, headers
146
+ end
147
+
148
+ # List domains
149
+ # ViewSet for Domain. NOTE: This API endpoint is in \"tech preview\" and subject to change
150
+ # @param [Hash] opts the optional parameters
151
+ # @option opts [Integer] :limit Number of results to return per page.
152
+ # @option opts [String] :name Filter results where name matches value
153
+ # @option opts [String] :name__contains Filter results where name contains value
154
+ # @option opts [String] :name__icontains Filter results where name contains value
155
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
156
+ # @option opts [String] :name__startswith Filter results where name starts with value
157
+ # @option opts [Integer] :offset The initial index from which to return the results.
158
+ # @option opts [Array<String>] :ordering Ordering
159
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
160
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
161
+ # @return [PaginatedDomainResponseList]
162
+ def list(opts = {})
163
+ data, _status_code, _headers = list_with_http_info(opts)
164
+ data
165
+ end
166
+
167
+ # List domains
168
+ # ViewSet for Domain. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
169
+ # @param [Hash] opts the optional parameters
170
+ # @option opts [Integer] :limit Number of results to return per page.
171
+ # @option opts [String] :name Filter results where name matches value
172
+ # @option opts [String] :name__contains Filter results where name contains value
173
+ # @option opts [String] :name__icontains Filter results where name contains value
174
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
175
+ # @option opts [String] :name__startswith Filter results where name starts with value
176
+ # @option opts [Integer] :offset The initial index from which to return the results.
177
+ # @option opts [Array<String>] :ordering Ordering
178
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
179
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
180
+ # @return [Array<(PaginatedDomainResponseList, Integer, Hash)>] PaginatedDomainResponseList data, response status code and response headers
181
+ def list_with_http_info(opts = {})
182
+ if @api_client.config.debugging
183
+ @api_client.config.logger.debug 'Calling API: DomainsApi.list ...'
184
+ end
185
+ allowable_values = ["-description", "-hide_guarded_distributions", "-name", "-pk", "-pulp_created", "-pulp_id", "-pulp_last_updated", "-redirect_to_object_storage", "-storage_class", "-storage_settings", "description", "hide_guarded_distributions", "name", "pk", "pulp_created", "pulp_id", "pulp_last_updated", "redirect_to_object_storage", "storage_class", "storage_settings"]
186
+ if @api_client.config.client_side_validation && opts[:'ordering'] && !opts[:'ordering'].all? { |item| allowable_values.include?(item) }
187
+ fail ArgumentError, "invalid value for \"ordering\", must include one of #{allowable_values}"
188
+ end
189
+ # resource path
190
+ local_var_path = '/pulp/api/v3/domains/'
191
+
192
+ # query parameters
193
+ query_params = opts[:query_params] || {}
194
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
195
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
196
+ query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
197
+ query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
198
+ query_params[:'name__in'] = @api_client.build_collection_param(opts[:'name__in'], :csv) if !opts[:'name__in'].nil?
199
+ query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
200
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
201
+ query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
202
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
203
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
204
+
205
+ # header parameters
206
+ header_params = opts[:header_params] || {}
207
+ # HTTP header 'Accept' (if needed)
208
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
209
+
210
+ # form parameters
211
+ form_params = opts[:form_params] || {}
212
+
213
+ # http body (model)
214
+ post_body = opts[:body]
215
+
216
+ # return_type
217
+ return_type = opts[:return_type] || 'PaginatedDomainResponseList'
218
+
219
+ # auth_names
220
+ auth_names = opts[:auth_names] || ['basicAuth']
221
+
222
+ new_options = opts.merge(
223
+ :header_params => header_params,
224
+ :query_params => query_params,
225
+ :form_params => form_params,
226
+ :body => post_body,
227
+ :auth_names => auth_names,
228
+ :return_type => return_type
229
+ )
230
+
231
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
232
+ if @api_client.config.debugging
233
+ @api_client.config.logger.debug "API called: DomainsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
234
+ end
235
+ return data, status_code, headers
236
+ end
237
+
238
+ # Update a domain
239
+ # Trigger an asynchronous partial update task
240
+ # @param domain_href [String]
241
+ # @param patched_domain [PatchedDomain]
242
+ # @param [Hash] opts the optional parameters
243
+ # @return [AsyncOperationResponse]
244
+ def partial_update(domain_href, patched_domain, opts = {})
245
+ data, _status_code, _headers = partial_update_with_http_info(domain_href, patched_domain, opts)
246
+ data
247
+ end
248
+
249
+ # Update a domain
250
+ # Trigger an asynchronous partial update task
251
+ # @param domain_href [String]
252
+ # @param patched_domain [PatchedDomain]
253
+ # @param [Hash] opts the optional parameters
254
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
255
+ def partial_update_with_http_info(domain_href, patched_domain, opts = {})
256
+ if @api_client.config.debugging
257
+ @api_client.config.logger.debug 'Calling API: DomainsApi.partial_update ...'
258
+ end
259
+ # verify the required parameter 'domain_href' is set
260
+ if @api_client.config.client_side_validation && domain_href.nil?
261
+ fail ArgumentError, "Missing the required parameter 'domain_href' when calling DomainsApi.partial_update"
262
+ end
263
+ # verify the required parameter 'patched_domain' is set
264
+ if @api_client.config.client_side_validation && patched_domain.nil?
265
+ fail ArgumentError, "Missing the required parameter 'patched_domain' when calling DomainsApi.partial_update"
266
+ end
267
+ # resource path
268
+ local_var_path = '{domain_href}'.sub('{' + 'domain_href' + '}', CGI.escape(domain_href.to_s).gsub('%2F', '/'))
269
+
270
+ # query parameters
271
+ query_params = opts[:query_params] || {}
272
+
273
+ # header parameters
274
+ header_params = opts[:header_params] || {}
275
+ # HTTP header 'Accept' (if needed)
276
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
277
+ # HTTP header 'Content-Type'
278
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
279
+
280
+ # form parameters
281
+ form_params = opts[:form_params] || {}
282
+
283
+ # http body (model)
284
+ post_body = opts[:body] || @api_client.object_to_http_body(patched_domain)
285
+
286
+ # return_type
287
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
288
+
289
+ # auth_names
290
+ auth_names = opts[:auth_names] || ['basicAuth']
291
+
292
+ new_options = opts.merge(
293
+ :header_params => header_params,
294
+ :query_params => query_params,
295
+ :form_params => form_params,
296
+ :body => post_body,
297
+ :auth_names => auth_names,
298
+ :return_type => return_type
299
+ )
300
+
301
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
302
+ if @api_client.config.debugging
303
+ @api_client.config.logger.debug "API called: DomainsApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
304
+ end
305
+ return data, status_code, headers
306
+ end
307
+
308
+ # Inspect a domain
309
+ # ViewSet for Domain. NOTE: This API endpoint is in \"tech preview\" and subject to change
310
+ # @param domain_href [String]
311
+ # @param [Hash] opts the optional parameters
312
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
313
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
314
+ # @return [DomainResponse]
315
+ def read(domain_href, opts = {})
316
+ data, _status_code, _headers = read_with_http_info(domain_href, opts)
317
+ data
318
+ end
319
+
320
+ # Inspect a domain
321
+ # ViewSet for Domain. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
322
+ # @param domain_href [String]
323
+ # @param [Hash] opts the optional parameters
324
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
325
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
326
+ # @return [Array<(DomainResponse, Integer, Hash)>] DomainResponse data, response status code and response headers
327
+ def read_with_http_info(domain_href, opts = {})
328
+ if @api_client.config.debugging
329
+ @api_client.config.logger.debug 'Calling API: DomainsApi.read ...'
330
+ end
331
+ # verify the required parameter 'domain_href' is set
332
+ if @api_client.config.client_side_validation && domain_href.nil?
333
+ fail ArgumentError, "Missing the required parameter 'domain_href' when calling DomainsApi.read"
334
+ end
335
+ # resource path
336
+ local_var_path = '{domain_href}'.sub('{' + 'domain_href' + '}', CGI.escape(domain_href.to_s).gsub('%2F', '/'))
337
+
338
+ # query parameters
339
+ query_params = opts[:query_params] || {}
340
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
341
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
342
+
343
+ # header parameters
344
+ header_params = opts[:header_params] || {}
345
+ # HTTP header 'Accept' (if needed)
346
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
347
+
348
+ # form parameters
349
+ form_params = opts[:form_params] || {}
350
+
351
+ # http body (model)
352
+ post_body = opts[:body]
353
+
354
+ # return_type
355
+ return_type = opts[:return_type] || 'DomainResponse'
356
+
357
+ # auth_names
358
+ auth_names = opts[:auth_names] || ['basicAuth']
359
+
360
+ new_options = opts.merge(
361
+ :header_params => header_params,
362
+ :query_params => query_params,
363
+ :form_params => form_params,
364
+ :body => post_body,
365
+ :auth_names => auth_names,
366
+ :return_type => return_type
367
+ )
368
+
369
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
370
+ if @api_client.config.debugging
371
+ @api_client.config.logger.debug "API called: DomainsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
372
+ end
373
+ return data, status_code, headers
374
+ end
375
+
376
+ # Update a domain
377
+ # Trigger an asynchronous update task
378
+ # @param domain_href [String]
379
+ # @param domain [Domain]
380
+ # @param [Hash] opts the optional parameters
381
+ # @return [AsyncOperationResponse]
382
+ def update(domain_href, domain, opts = {})
383
+ data, _status_code, _headers = update_with_http_info(domain_href, domain, opts)
384
+ data
385
+ end
386
+
387
+ # Update a domain
388
+ # Trigger an asynchronous update task
389
+ # @param domain_href [String]
390
+ # @param domain [Domain]
391
+ # @param [Hash] opts the optional parameters
392
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
393
+ def update_with_http_info(domain_href, domain, opts = {})
394
+ if @api_client.config.debugging
395
+ @api_client.config.logger.debug 'Calling API: DomainsApi.update ...'
396
+ end
397
+ # verify the required parameter 'domain_href' is set
398
+ if @api_client.config.client_side_validation && domain_href.nil?
399
+ fail ArgumentError, "Missing the required parameter 'domain_href' when calling DomainsApi.update"
400
+ end
401
+ # verify the required parameter 'domain' is set
402
+ if @api_client.config.client_side_validation && domain.nil?
403
+ fail ArgumentError, "Missing the required parameter 'domain' when calling DomainsApi.update"
404
+ end
405
+ # resource path
406
+ local_var_path = '{domain_href}'.sub('{' + 'domain_href' + '}', CGI.escape(domain_href.to_s).gsub('%2F', '/'))
407
+
408
+ # query parameters
409
+ query_params = opts[:query_params] || {}
410
+
411
+ # header parameters
412
+ header_params = opts[:header_params] || {}
413
+ # HTTP header 'Accept' (if needed)
414
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
415
+ # HTTP header 'Content-Type'
416
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
417
+
418
+ # form parameters
419
+ form_params = opts[:form_params] || {}
420
+
421
+ # http body (model)
422
+ post_body = opts[:body] || @api_client.object_to_http_body(domain)
423
+
424
+ # return_type
425
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
426
+
427
+ # auth_names
428
+ auth_names = opts[:auth_names] || ['basicAuth']
429
+
430
+ new_options = opts.merge(
431
+ :header_params => header_params,
432
+ :query_params => query_params,
433
+ :form_params => form_params,
434
+ :body => post_body,
435
+ :auth_names => auth_names,
436
+ :return_type => return_type
437
+ )
438
+
439
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
440
+ if @api_client.config.debugging
441
+ @api_client.config.logger.debug "API called: DomainsApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
442
+ end
443
+ return data, status_code, headers
444
+ end
445
+ end
446
+ end
@@ -20,7 +20,7 @@ module PulpcoreClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Create a filesystem exporter
23
- # Endpoint for managing FilesystemExporters. FilesystemExporters are provided as a tech preview.
23
+ # Endpoint for managing FilesystemExporters.
24
24
  # @param filesystem_exporter [FilesystemExporter]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [FilesystemExporterResponse]
@@ -30,7 +30,7 @@ module PulpcoreClient
30
30
  end
31
31
 
32
32
  # Create a filesystem exporter
33
- # Endpoint for managing FilesystemExporters. FilesystemExporters are provided as a tech preview.
33
+ # Endpoint for managing FilesystemExporters.
34
34
  # @param filesystem_exporter [FilesystemExporter]
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @return [Array<(FilesystemExporterResponse, Integer, Hash)>] FilesystemExporterResponse data, response status code and response headers
@@ -146,7 +146,7 @@ module PulpcoreClient
146
146
  end
147
147
 
148
148
  # List filesystem exporters
149
- # Endpoint for managing FilesystemExporters. FilesystemExporters are provided as a tech preview.
149
+ # Endpoint for managing FilesystemExporters.
150
150
  # @param [Hash] opts the optional parameters
151
151
  # @option opts [Integer] :limit Number of results to return per page.
152
152
  # @option opts [String] :name Filter results where name matches value
@@ -165,7 +165,7 @@ module PulpcoreClient
165
165
  end
166
166
 
167
167
  # List filesystem exporters
168
- # Endpoint for managing FilesystemExporters. FilesystemExporters are provided as a tech preview.
168
+ # Endpoint for managing FilesystemExporters.
169
169
  # @param [Hash] opts the optional parameters
170
170
  # @option opts [Integer] :limit Number of results to return per page.
171
171
  # @option opts [String] :name Filter results where name matches value
@@ -306,7 +306,7 @@ module PulpcoreClient
306
306
  end
307
307
 
308
308
  # Inspect a filesystem exporter
309
- # Endpoint for managing FilesystemExporters. FilesystemExporters are provided as a tech preview.
309
+ # Endpoint for managing FilesystemExporters.
310
310
  # @param filesystem_exporter_href [String]
311
311
  # @param [Hash] opts the optional parameters
312
312
  # @option opts [Array<String>] :fields A list of fields to include in the response.
@@ -318,7 +318,7 @@ module PulpcoreClient
318
318
  end
319
319
 
320
320
  # Inspect a filesystem exporter
321
- # Endpoint for managing FilesystemExporters. FilesystemExporters are provided as a tech preview.
321
+ # Endpoint for managing FilesystemExporters.
322
322
  # @param filesystem_exporter_href [String]
323
323
  # @param [Hash] opts the optional parameters
324
324
  # @option opts [Array<String>] :fields A list of fields to include in the response.
@@ -90,7 +90,7 @@ module PulpcoreClient
90
90
  end
91
91
 
92
92
  # Delete a filesystem export
93
- # Endpoint for managing FilesystemExports. This endpoint is provided as a tech preview.
93
+ # Endpoint for managing FilesystemExports.
94
94
  # @param filesystem_filesystem_export_href [String]
95
95
  # @param [Hash] opts the optional parameters
96
96
  # @return [nil]
@@ -100,7 +100,7 @@ module PulpcoreClient
100
100
  end
101
101
 
102
102
  # Delete a filesystem export
103
- # Endpoint for managing FilesystemExports. This endpoint is provided as a tech preview.
103
+ # Endpoint for managing FilesystemExports.
104
104
  # @param filesystem_filesystem_export_href [String]
105
105
  # @param [Hash] opts the optional parameters
106
106
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -150,7 +150,7 @@ module PulpcoreClient
150
150
  end
151
151
 
152
152
  # List filesystem exports
153
- # Endpoint for managing FilesystemExports. This endpoint is provided as a tech preview.
153
+ # Endpoint for managing FilesystemExports.
154
154
  # @param filesystem_exporter_href [String]
155
155
  # @param [Hash] opts the optional parameters
156
156
  # @option opts [Integer] :limit Number of results to return per page.
@@ -164,7 +164,7 @@ module PulpcoreClient
164
164
  end
165
165
 
166
166
  # List filesystem exports
167
- # Endpoint for managing FilesystemExports. This endpoint is provided as a tech preview.
167
+ # Endpoint for managing FilesystemExports.
168
168
  # @param filesystem_exporter_href [String]
169
169
  # @param [Hash] opts the optional parameters
170
170
  # @option opts [Integer] :limit Number of results to return per page.
@@ -224,7 +224,7 @@ module PulpcoreClient
224
224
  end
225
225
 
226
226
  # Inspect a filesystem export
227
- # Endpoint for managing FilesystemExports. This endpoint is provided as a tech preview.
227
+ # Endpoint for managing FilesystemExports.
228
228
  # @param filesystem_filesystem_export_href [String]
229
229
  # @param [Hash] opts the optional parameters
230
230
  # @option opts [Array<String>] :fields A list of fields to include in the response.
@@ -236,7 +236,7 @@ module PulpcoreClient
236
236
  end
237
237
 
238
238
  # Inspect a filesystem export
239
- # Endpoint for managing FilesystemExports. This endpoint is provided as a tech preview.
239
+ # Endpoint for managing FilesystemExports.
240
240
  # @param filesystem_filesystem_export_href [String]
241
241
  # @param [Hash] opts the optional parameters
242
242
  # @option opts [Array<String>] :fields A list of fields to include in the response.
@@ -88,7 +88,7 @@ module PulpcoreClient
88
88
  end
89
89
 
90
90
  # Create a group
91
- # ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
91
+ # ViewSet for Group.
92
92
  # @param group [Group]
93
93
  # @param [Hash] opts the optional parameters
94
94
  # @return [GroupResponse]
@@ -98,7 +98,7 @@ module PulpcoreClient
98
98
  end
99
99
 
100
100
  # Create a group
101
- # ViewSet for Group. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
101
+ # ViewSet for Group.
102
102
  # @param group [Group]
103
103
  # @param [Hash] opts the optional parameters
104
104
  # @return [Array<(GroupResponse, Integer, Hash)>] GroupResponse data, response status code and response headers
@@ -152,7 +152,7 @@ module PulpcoreClient
152
152
  end
153
153
 
154
154
  # Delete a group
155
- # ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
155
+ # ViewSet for Group.
156
156
  # @param group_href [String]
157
157
  # @param [Hash] opts the optional parameters
158
158
  # @return [nil]
@@ -162,7 +162,7 @@ module PulpcoreClient
162
162
  end
163
163
 
164
164
  # Delete a group
165
- # ViewSet for Group. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
165
+ # ViewSet for Group.
166
166
  # @param group_href [String]
167
167
  # @param [Hash] opts the optional parameters
168
168
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -212,7 +212,7 @@ module PulpcoreClient
212
212
  end
213
213
 
214
214
  # List groups
215
- # ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
215
+ # ViewSet for Group.
216
216
  # @param [Hash] opts the optional parameters
217
217
  # @option opts [Integer] :id Filter results where id matches value
218
218
  # @option opts [Array<Integer>] :id__in Filter results where id is in a comma-separated list of values
@@ -233,7 +233,7 @@ module PulpcoreClient
233
233
  end
234
234
 
235
235
  # List groups
236
- # ViewSet for Group. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
236
+ # ViewSet for Group.
237
237
  # @param [Hash] opts the optional parameters
238
238
  # @option opts [Integer] :id Filter results where id matches value
239
239
  # @option opts [Array<Integer>] :id__in Filter results where id is in a comma-separated list of values
@@ -440,7 +440,7 @@ module PulpcoreClient
440
440
  end
441
441
 
442
442
  # Update a group
443
- # ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
443
+ # ViewSet for Group.
444
444
  # @param group_href [String]
445
445
  # @param patched_group [PatchedGroup]
446
446
  # @param [Hash] opts the optional parameters
@@ -451,7 +451,7 @@ module PulpcoreClient
451
451
  end
452
452
 
453
453
  # Update a group
454
- # ViewSet for Group. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
454
+ # ViewSet for Group.
455
455
  # @param group_href [String]
456
456
  # @param patched_group [PatchedGroup]
457
457
  # @param [Hash] opts the optional parameters
@@ -510,7 +510,7 @@ module PulpcoreClient
510
510
  end
511
511
 
512
512
  # Inspect a group
513
- # ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
513
+ # ViewSet for Group.
514
514
  # @param group_href [String]
515
515
  # @param [Hash] opts the optional parameters
516
516
  # @option opts [Array<String>] :fields A list of fields to include in the response.
@@ -522,7 +522,7 @@ module PulpcoreClient
522
522
  end
523
523
 
524
524
  # Inspect a group
525
- # ViewSet for Group. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
525
+ # ViewSet for Group.
526
526
  # @param group_href [String]
527
527
  # @param [Hash] opts the optional parameters
528
528
  # @option opts [Array<String>] :fields A list of fields to include in the response.
@@ -646,7 +646,7 @@ module PulpcoreClient
646
646
  end
647
647
 
648
648
  # Update a group
649
- # ViewSet for Group. NOTE: This API endpoint is in \"tech preview\" and subject to change
649
+ # ViewSet for Group.
650
650
  # @param group_href [String]
651
651
  # @param group [Group]
652
652
  # @param [Hash] opts the optional parameters
@@ -657,7 +657,7 @@ module PulpcoreClient
657
657
  end
658
658
 
659
659
  # Update a group
660
- # ViewSet for Group. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
660
+ # ViewSet for Group.
661
661
  # @param group_href [String]
662
662
  # @param group [Group]
663
663
  # @param [Hash] opts the optional parameters