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,492 @@
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 UpstreamPulpsApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create an upstream pulp
23
+ # API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
24
+ # @param upstream_pulp [UpstreamPulp]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [UpstreamPulpResponse]
27
+ def create(upstream_pulp, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(upstream_pulp, opts)
29
+ data
30
+ end
31
+
32
+ # Create an upstream pulp
33
+ # API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
34
+ # @param upstream_pulp [UpstreamPulp]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(UpstreamPulpResponse, Integer, Hash)>] UpstreamPulpResponse data, response status code and response headers
37
+ def create_with_http_info(upstream_pulp, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.create ...'
40
+ end
41
+ # verify the required parameter 'upstream_pulp' is set
42
+ if @api_client.config.client_side_validation && upstream_pulp.nil?
43
+ fail ArgumentError, "Missing the required parameter 'upstream_pulp' when calling UpstreamPulpsApi.create"
44
+ end
45
+ # resource path
46
+ local_var_path = '/pulp/api/v3/upstream-pulps/'
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(upstream_pulp)
63
+
64
+ # return_type
65
+ return_type = opts[:return_type] || 'UpstreamPulpResponse'
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: UpstreamPulpsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+
86
+ # Delete an upstream pulp
87
+ # API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
88
+ # @param upstream_pulp_href [String]
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [nil]
91
+ def delete(upstream_pulp_href, opts = {})
92
+ delete_with_http_info(upstream_pulp_href, opts)
93
+ nil
94
+ end
95
+
96
+ # Delete an upstream pulp
97
+ # API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
98
+ # @param upstream_pulp_href [String]
99
+ # @param [Hash] opts the optional parameters
100
+ # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
101
+ def delete_with_http_info(upstream_pulp_href, opts = {})
102
+ if @api_client.config.debugging
103
+ @api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.delete ...'
104
+ end
105
+ # verify the required parameter 'upstream_pulp_href' is set
106
+ if @api_client.config.client_side_validation && upstream_pulp_href.nil?
107
+ fail ArgumentError, "Missing the required parameter 'upstream_pulp_href' when calling UpstreamPulpsApi.delete"
108
+ end
109
+ # resource path
110
+ local_var_path = '{upstream_pulp_href}'.sub('{' + 'upstream_pulp_href' + '}', CGI.escape(upstream_pulp_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
+
118
+ # form parameters
119
+ form_params = opts[:form_params] || {}
120
+
121
+ # http body (model)
122
+ post_body = opts[:body]
123
+
124
+ # return_type
125
+ return_type = opts[:return_type]
126
+
127
+ # auth_names
128
+ auth_names = opts[:auth_names] || ['basicAuth']
129
+
130
+ new_options = opts.merge(
131
+ :header_params => header_params,
132
+ :query_params => query_params,
133
+ :form_params => form_params,
134
+ :body => post_body,
135
+ :auth_names => auth_names,
136
+ :return_type => return_type
137
+ )
138
+
139
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
140
+ if @api_client.config.debugging
141
+ @api_client.config.logger.debug "API called: UpstreamPulpsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
142
+ end
143
+ return data, status_code, headers
144
+ end
145
+
146
+ # List upstream pulps
147
+ # API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
148
+ # @param [Hash] opts the optional parameters
149
+ # @option opts [Integer] :limit Number of results to return per page.
150
+ # @option opts [Integer] :offset The initial index from which to return the results.
151
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
152
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
153
+ # @return [PaginatedUpstreamPulpResponseList]
154
+ def list(opts = {})
155
+ data, _status_code, _headers = list_with_http_info(opts)
156
+ data
157
+ end
158
+
159
+ # List upstream pulps
160
+ # API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
161
+ # @param [Hash] opts the optional parameters
162
+ # @option opts [Integer] :limit Number of results to return per page.
163
+ # @option opts [Integer] :offset The initial index from which to return the results.
164
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
165
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
166
+ # @return [Array<(PaginatedUpstreamPulpResponseList, Integer, Hash)>] PaginatedUpstreamPulpResponseList data, response status code and response headers
167
+ def list_with_http_info(opts = {})
168
+ if @api_client.config.debugging
169
+ @api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.list ...'
170
+ end
171
+ # resource path
172
+ local_var_path = '/pulp/api/v3/upstream-pulps/'
173
+
174
+ # query parameters
175
+ query_params = opts[:query_params] || {}
176
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
177
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
178
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
179
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
180
+
181
+ # header parameters
182
+ header_params = opts[:header_params] || {}
183
+ # HTTP header 'Accept' (if needed)
184
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
185
+
186
+ # form parameters
187
+ form_params = opts[:form_params] || {}
188
+
189
+ # http body (model)
190
+ post_body = opts[:body]
191
+
192
+ # return_type
193
+ return_type = opts[:return_type] || 'PaginatedUpstreamPulpResponseList'
194
+
195
+ # auth_names
196
+ auth_names = opts[:auth_names] || ['basicAuth']
197
+
198
+ new_options = opts.merge(
199
+ :header_params => header_params,
200
+ :query_params => query_params,
201
+ :form_params => form_params,
202
+ :body => post_body,
203
+ :auth_names => auth_names,
204
+ :return_type => return_type
205
+ )
206
+
207
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
208
+ if @api_client.config.debugging
209
+ @api_client.config.logger.debug "API called: UpstreamPulpsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
210
+ end
211
+ return data, status_code, headers
212
+ end
213
+
214
+ # Update an upstream pulp
215
+ # API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
216
+ # @param upstream_pulp_href [String]
217
+ # @param patched_upstream_pulp [PatchedUpstreamPulp]
218
+ # @param [Hash] opts the optional parameters
219
+ # @return [UpstreamPulpResponse]
220
+ def partial_update(upstream_pulp_href, patched_upstream_pulp, opts = {})
221
+ data, _status_code, _headers = partial_update_with_http_info(upstream_pulp_href, patched_upstream_pulp, opts)
222
+ data
223
+ end
224
+
225
+ # Update an upstream pulp
226
+ # API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
227
+ # @param upstream_pulp_href [String]
228
+ # @param patched_upstream_pulp [PatchedUpstreamPulp]
229
+ # @param [Hash] opts the optional parameters
230
+ # @return [Array<(UpstreamPulpResponse, Integer, Hash)>] UpstreamPulpResponse data, response status code and response headers
231
+ def partial_update_with_http_info(upstream_pulp_href, patched_upstream_pulp, opts = {})
232
+ if @api_client.config.debugging
233
+ @api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.partial_update ...'
234
+ end
235
+ # verify the required parameter 'upstream_pulp_href' is set
236
+ if @api_client.config.client_side_validation && upstream_pulp_href.nil?
237
+ fail ArgumentError, "Missing the required parameter 'upstream_pulp_href' when calling UpstreamPulpsApi.partial_update"
238
+ end
239
+ # verify the required parameter 'patched_upstream_pulp' is set
240
+ if @api_client.config.client_side_validation && patched_upstream_pulp.nil?
241
+ fail ArgumentError, "Missing the required parameter 'patched_upstream_pulp' when calling UpstreamPulpsApi.partial_update"
242
+ end
243
+ # resource path
244
+ local_var_path = '{upstream_pulp_href}'.sub('{' + 'upstream_pulp_href' + '}', CGI.escape(upstream_pulp_href.to_s).gsub('%2F', '/'))
245
+
246
+ # query parameters
247
+ query_params = opts[:query_params] || {}
248
+
249
+ # header parameters
250
+ header_params = opts[:header_params] || {}
251
+ # HTTP header 'Accept' (if needed)
252
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
253
+ # HTTP header 'Content-Type'
254
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
255
+
256
+ # form parameters
257
+ form_params = opts[:form_params] || {}
258
+
259
+ # http body (model)
260
+ post_body = opts[:body] || @api_client.object_to_http_body(patched_upstream_pulp)
261
+
262
+ # return_type
263
+ return_type = opts[:return_type] || 'UpstreamPulpResponse'
264
+
265
+ # auth_names
266
+ auth_names = opts[:auth_names] || ['basicAuth']
267
+
268
+ new_options = opts.merge(
269
+ :header_params => header_params,
270
+ :query_params => query_params,
271
+ :form_params => form_params,
272
+ :body => post_body,
273
+ :auth_names => auth_names,
274
+ :return_type => return_type
275
+ )
276
+
277
+ data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
278
+ if @api_client.config.debugging
279
+ @api_client.config.logger.debug "API called: UpstreamPulpsApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
280
+ end
281
+ return data, status_code, headers
282
+ end
283
+
284
+ # Inspect an upstream pulp
285
+ # API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
286
+ # @param upstream_pulp_href [String]
287
+ # @param [Hash] opts the optional parameters
288
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
289
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
290
+ # @return [UpstreamPulpResponse]
291
+ def read(upstream_pulp_href, opts = {})
292
+ data, _status_code, _headers = read_with_http_info(upstream_pulp_href, opts)
293
+ data
294
+ end
295
+
296
+ # Inspect an upstream pulp
297
+ # API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
298
+ # @param upstream_pulp_href [String]
299
+ # @param [Hash] opts the optional parameters
300
+ # @option opts [Array<String>] :fields A list of fields to include in the response.
301
+ # @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
302
+ # @return [Array<(UpstreamPulpResponse, Integer, Hash)>] UpstreamPulpResponse data, response status code and response headers
303
+ def read_with_http_info(upstream_pulp_href, opts = {})
304
+ if @api_client.config.debugging
305
+ @api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.read ...'
306
+ end
307
+ # verify the required parameter 'upstream_pulp_href' is set
308
+ if @api_client.config.client_side_validation && upstream_pulp_href.nil?
309
+ fail ArgumentError, "Missing the required parameter 'upstream_pulp_href' when calling UpstreamPulpsApi.read"
310
+ end
311
+ # resource path
312
+ local_var_path = '{upstream_pulp_href}'.sub('{' + 'upstream_pulp_href' + '}', CGI.escape(upstream_pulp_href.to_s).gsub('%2F', '/'))
313
+
314
+ # query parameters
315
+ query_params = opts[:query_params] || {}
316
+ query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
317
+ query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
318
+
319
+ # header parameters
320
+ header_params = opts[:header_params] || {}
321
+ # HTTP header 'Accept' (if needed)
322
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
323
+
324
+ # form parameters
325
+ form_params = opts[:form_params] || {}
326
+
327
+ # http body (model)
328
+ post_body = opts[:body]
329
+
330
+ # return_type
331
+ return_type = opts[:return_type] || 'UpstreamPulpResponse'
332
+
333
+ # auth_names
334
+ auth_names = opts[:auth_names] || ['basicAuth']
335
+
336
+ new_options = opts.merge(
337
+ :header_params => header_params,
338
+ :query_params => query_params,
339
+ :form_params => form_params,
340
+ :body => post_body,
341
+ :auth_names => auth_names,
342
+ :return_type => return_type
343
+ )
344
+
345
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
346
+ if @api_client.config.debugging
347
+ @api_client.config.logger.debug "API called: UpstreamPulpsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
348
+ end
349
+ return data, status_code, headers
350
+ end
351
+
352
+ # Replicate
353
+ # Trigger an asynchronous repository replication task group. This API is provided as a tech preview.
354
+ # @param upstream_pulp_href [String]
355
+ # @param upstream_pulp [UpstreamPulp]
356
+ # @param [Hash] opts the optional parameters
357
+ # @return [AsyncOperationResponse]
358
+ def replicate(upstream_pulp_href, upstream_pulp, opts = {})
359
+ data, _status_code, _headers = replicate_with_http_info(upstream_pulp_href, upstream_pulp, opts)
360
+ data
361
+ end
362
+
363
+ # Replicate
364
+ # Trigger an asynchronous repository replication task group. This API is provided as a tech preview.
365
+ # @param upstream_pulp_href [String]
366
+ # @param upstream_pulp [UpstreamPulp]
367
+ # @param [Hash] opts the optional parameters
368
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
369
+ def replicate_with_http_info(upstream_pulp_href, upstream_pulp, opts = {})
370
+ if @api_client.config.debugging
371
+ @api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.replicate ...'
372
+ end
373
+ # verify the required parameter 'upstream_pulp_href' is set
374
+ if @api_client.config.client_side_validation && upstream_pulp_href.nil?
375
+ fail ArgumentError, "Missing the required parameter 'upstream_pulp_href' when calling UpstreamPulpsApi.replicate"
376
+ end
377
+ # verify the required parameter 'upstream_pulp' is set
378
+ if @api_client.config.client_side_validation && upstream_pulp.nil?
379
+ fail ArgumentError, "Missing the required parameter 'upstream_pulp' when calling UpstreamPulpsApi.replicate"
380
+ end
381
+ # resource path
382
+ local_var_path = '{upstream_pulp_href}replicate/'.sub('{' + 'upstream_pulp_href' + '}', CGI.escape(upstream_pulp_href.to_s).gsub('%2F', '/'))
383
+
384
+ # query parameters
385
+ query_params = opts[:query_params] || {}
386
+
387
+ # header parameters
388
+ header_params = opts[:header_params] || {}
389
+ # HTTP header 'Accept' (if needed)
390
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
391
+ # HTTP header 'Content-Type'
392
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
393
+
394
+ # form parameters
395
+ form_params = opts[:form_params] || {}
396
+
397
+ # http body (model)
398
+ post_body = opts[:body] || @api_client.object_to_http_body(upstream_pulp)
399
+
400
+ # return_type
401
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
402
+
403
+ # auth_names
404
+ auth_names = opts[:auth_names] || ['basicAuth']
405
+
406
+ new_options = opts.merge(
407
+ :header_params => header_params,
408
+ :query_params => query_params,
409
+ :form_params => form_params,
410
+ :body => post_body,
411
+ :auth_names => auth_names,
412
+ :return_type => return_type
413
+ )
414
+
415
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
416
+ if @api_client.config.debugging
417
+ @api_client.config.logger.debug "API called: UpstreamPulpsApi#replicate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
418
+ end
419
+ return data, status_code, headers
420
+ end
421
+
422
+ # Update an upstream pulp
423
+ # API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
424
+ # @param upstream_pulp_href [String]
425
+ # @param upstream_pulp [UpstreamPulp]
426
+ # @param [Hash] opts the optional parameters
427
+ # @return [UpstreamPulpResponse]
428
+ def update(upstream_pulp_href, upstream_pulp, opts = {})
429
+ data, _status_code, _headers = update_with_http_info(upstream_pulp_href, upstream_pulp, opts)
430
+ data
431
+ end
432
+
433
+ # Update an upstream pulp
434
+ # API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
435
+ # @param upstream_pulp_href [String]
436
+ # @param upstream_pulp [UpstreamPulp]
437
+ # @param [Hash] opts the optional parameters
438
+ # @return [Array<(UpstreamPulpResponse, Integer, Hash)>] UpstreamPulpResponse data, response status code and response headers
439
+ def update_with_http_info(upstream_pulp_href, upstream_pulp, opts = {})
440
+ if @api_client.config.debugging
441
+ @api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.update ...'
442
+ end
443
+ # verify the required parameter 'upstream_pulp_href' is set
444
+ if @api_client.config.client_side_validation && upstream_pulp_href.nil?
445
+ fail ArgumentError, "Missing the required parameter 'upstream_pulp_href' when calling UpstreamPulpsApi.update"
446
+ end
447
+ # verify the required parameter 'upstream_pulp' is set
448
+ if @api_client.config.client_side_validation && upstream_pulp.nil?
449
+ fail ArgumentError, "Missing the required parameter 'upstream_pulp' when calling UpstreamPulpsApi.update"
450
+ end
451
+ # resource path
452
+ local_var_path = '{upstream_pulp_href}'.sub('{' + 'upstream_pulp_href' + '}', CGI.escape(upstream_pulp_href.to_s).gsub('%2F', '/'))
453
+
454
+ # query parameters
455
+ query_params = opts[:query_params] || {}
456
+
457
+ # header parameters
458
+ header_params = opts[:header_params] || {}
459
+ # HTTP header 'Accept' (if needed)
460
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
461
+ # HTTP header 'Content-Type'
462
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
463
+
464
+ # form parameters
465
+ form_params = opts[:form_params] || {}
466
+
467
+ # http body (model)
468
+ post_body = opts[:body] || @api_client.object_to_http_body(upstream_pulp)
469
+
470
+ # return_type
471
+ return_type = opts[:return_type] || 'UpstreamPulpResponse'
472
+
473
+ # auth_names
474
+ auth_names = opts[:auth_names] || ['basicAuth']
475
+
476
+ new_options = opts.merge(
477
+ :header_params => header_params,
478
+ :query_params => query_params,
479
+ :form_params => form_params,
480
+ :body => post_body,
481
+ :auth_names => auth_names,
482
+ :return_type => return_type
483
+ )
484
+
485
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
486
+ if @api_client.config.debugging
487
+ @api_client.config.logger.debug "API called: UpstreamPulpsApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
488
+ end
489
+ return data, status_code, headers
490
+ end
491
+ end
492
+ end
@@ -20,7 +20,7 @@ module PulpcoreClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Create an user
23
- # ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
23
+ # ViewSet for User.
24
24
  # @param user [User]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [UserResponse]
@@ -30,7 +30,7 @@ module PulpcoreClient
30
30
  end
31
31
 
32
32
  # Create an user
33
- # ViewSet for User. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
33
+ # ViewSet for User.
34
34
  # @param user [User]
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @return [Array<(UserResponse, Integer, Hash)>] UserResponse data, response status code and response headers
@@ -84,7 +84,7 @@ module PulpcoreClient
84
84
  end
85
85
 
86
86
  # Delete an user
87
- # ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
87
+ # ViewSet for User.
88
88
  # @param auth_user_href [String]
89
89
  # @param [Hash] opts the optional parameters
90
90
  # @return [nil]
@@ -94,7 +94,7 @@ module PulpcoreClient
94
94
  end
95
95
 
96
96
  # Delete an user
97
- # ViewSet for User. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
97
+ # ViewSet for User.
98
98
  # @param auth_user_href [String]
99
99
  # @param [Hash] opts the optional parameters
100
100
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
@@ -144,7 +144,7 @@ module PulpcoreClient
144
144
  end
145
145
 
146
146
  # List users
147
- # ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
147
+ # ViewSet for User.
148
148
  # @param [Hash] opts the optional parameters
149
149
  # @option opts [String] :email Filter results where email matches value
150
150
  # @option opts [String] :email__contains Filter results where email contains value
@@ -180,7 +180,7 @@ module PulpcoreClient
180
180
  end
181
181
 
182
182
  # List users
183
- # ViewSet for User. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
183
+ # ViewSet for User.
184
184
  # @param [Hash] opts the optional parameters
185
185
  # @option opts [String] :email Filter results where email matches value
186
186
  # @option opts [String] :email__contains Filter results where email contains value
@@ -285,7 +285,7 @@ module PulpcoreClient
285
285
  end
286
286
 
287
287
  # Update an user
288
- # ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
288
+ # ViewSet for User.
289
289
  # @param auth_user_href [String]
290
290
  # @param patched_user [PatchedUser]
291
291
  # @param [Hash] opts the optional parameters
@@ -296,7 +296,7 @@ module PulpcoreClient
296
296
  end
297
297
 
298
298
  # Update an user
299
- # ViewSet for User. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
299
+ # ViewSet for User.
300
300
  # @param auth_user_href [String]
301
301
  # @param patched_user [PatchedUser]
302
302
  # @param [Hash] opts the optional parameters
@@ -355,7 +355,7 @@ module PulpcoreClient
355
355
  end
356
356
 
357
357
  # Inspect an user
358
- # ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
358
+ # ViewSet for User.
359
359
  # @param auth_user_href [String]
360
360
  # @param [Hash] opts the optional parameters
361
361
  # @option opts [Array<String>] :fields A list of fields to include in the response.
@@ -367,7 +367,7 @@ module PulpcoreClient
367
367
  end
368
368
 
369
369
  # Inspect an user
370
- # ViewSet for User. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
370
+ # ViewSet for User.
371
371
  # @param auth_user_href [String]
372
372
  # @param [Hash] opts the optional parameters
373
373
  # @option opts [Array<String>] :fields A list of fields to include in the response.
@@ -423,7 +423,7 @@ module PulpcoreClient
423
423
  end
424
424
 
425
425
  # Update an user
426
- # ViewSet for User. NOTE: This API endpoint is in \"tech preview\" and subject to change
426
+ # ViewSet for User.
427
427
  # @param auth_user_href [String]
428
428
  # @param user [User]
429
429
  # @param [Hash] opts the optional parameters
@@ -434,7 +434,7 @@ module PulpcoreClient
434
434
  end
435
435
 
436
436
  # Update an user
437
- # ViewSet for User. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
437
+ # ViewSet for User.
438
438
  # @param auth_user_href [String]
439
439
  # @param user [User]
440
440
  # @param [Hash] opts the optional parameters
@@ -20,7 +20,7 @@ module PulpcoreClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Create an user role
23
- # ViewSet for UserRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
23
+ # ViewSet for UserRole.
24
24
  # @param auth_user_href [String]
25
25
  # @param user_role [UserRole]
26
26
  # @param [Hash] opts the optional parameters
@@ -31,7 +31,7 @@ module PulpcoreClient
31
31
  end
32
32
 
33
33
  # Create an user role
34
- # ViewSet for UserRole. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
34
+ # ViewSet for UserRole.
35
35
  # @param auth_user_href [String]
36
36
  # @param user_role [UserRole]
37
37
  # @param [Hash] opts the optional parameters
@@ -90,7 +90,7 @@ module PulpcoreClient
90
90
  end
91
91
 
92
92
  # Delete an user role
93
- # ViewSet for UserRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
93
+ # ViewSet for UserRole.
94
94
  # @param auth_users_user_role_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 an user role
103
- # ViewSet for UserRole. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
103
+ # ViewSet for UserRole.
104
104
  # @param auth_users_user_role_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,10 +150,11 @@ module PulpcoreClient
150
150
  end
151
151
 
152
152
  # List user roles
153
- # ViewSet for UserRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
153
+ # ViewSet for UserRole.
154
154
  # @param auth_user_href [String]
155
155
  # @param [Hash] opts the optional parameters
156
156
  # @option opts [String] :content_object content_object
157
+ # @option opts [String] :domain Foreign Key referenced by HREF
157
158
  # @option opts [Integer] :limit Number of results to return per page.
158
159
  # @option opts [Integer] :offset The initial index from which to return the results.
159
160
  # @option opts [Array<String>] :ordering Ordering
@@ -171,10 +172,11 @@ module PulpcoreClient
171
172
  end
172
173
 
173
174
  # List user roles
174
- # ViewSet for UserRole. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
175
+ # ViewSet for UserRole.
175
176
  # @param auth_user_href [String]
176
177
  # @param [Hash] opts the optional parameters
177
178
  # @option opts [String] :content_object content_object
179
+ # @option opts [String] :domain Foreign Key referenced by HREF
178
180
  # @option opts [Integer] :limit Number of results to return per page.
179
181
  # @option opts [Integer] :offset The initial index from which to return the results.
180
182
  # @option opts [Array<String>] :ordering Ordering
@@ -204,6 +206,7 @@ module PulpcoreClient
204
206
  # query parameters
205
207
  query_params = opts[:query_params] || {}
206
208
  query_params[:'content_object'] = opts[:'content_object'] if !opts[:'content_object'].nil?
209
+ query_params[:'domain'] = opts[:'domain'] if !opts[:'domain'].nil?
207
210
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
208
211
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
209
212
  query_params[:'ordering'] = @api_client.build_collection_param(opts[:'ordering'], :csv) if !opts[:'ordering'].nil?
@@ -249,7 +252,7 @@ module PulpcoreClient
249
252
  end
250
253
 
251
254
  # Inspect an user role
252
- # ViewSet for UserRole. NOTE: This API endpoint is in \"tech preview\" and subject to change
255
+ # ViewSet for UserRole.
253
256
  # @param auth_users_user_role_href [String]
254
257
  # @param [Hash] opts the optional parameters
255
258
  # @option opts [Array<String>] :fields A list of fields to include in the response.
@@ -261,7 +264,7 @@ module PulpcoreClient
261
264
  end
262
265
 
263
266
  # Inspect an user role
264
- # ViewSet for UserRole. NOTE: This API endpoint is in \&quot;tech preview\&quot; and subject to change
267
+ # ViewSet for UserRole.
265
268
  # @param auth_users_user_role_href [String]
266
269
  # @param [Hash] opts the optional parameters
267
270
  # @option opts [Array<String>] :fields A list of fields to include in the response.