pulp_container_client 2.1.3 → 2.2.0.post0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (154) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +1 -1
  3. data/README.md +20 -13
  4. data/docs/ContainerContainerDistribution.md +7 -7
  5. data/docs/ContainerContainerDistributionResponse.md +9 -7
  6. data/docs/ContainerContainerNamespace.md +17 -0
  7. data/docs/ContainerContainerNamespaceResponse.md +21 -0
  8. data/docs/ContainerContainerRemote.md +8 -0
  9. data/docs/ContainerContainerRemoteResponse.md +8 -0
  10. data/docs/ContentBlobsApi.md +2 -2
  11. data/docs/ContentManifestsApi.md +2 -2
  12. data/docs/ContentTagsApi.md +2 -2
  13. data/docs/ContentguardsContentRedirectApi.md +2 -2
  14. data/docs/DistributionsContainerApi.md +4 -2
  15. data/docs/ManifestCopy.md +1 -1
  16. data/docs/{InlineResponse2008.md → PaginatedRepositoryVersionResponseList.md} +4 -4
  17. data/docs/{InlineResponse200.md → PaginatedcontainerBlobResponseList.md} +4 -4
  18. data/docs/{InlineResponse2004.md → PaginatedcontainerContainerDistributionResponseList.md} +4 -4
  19. data/docs/PaginatedcontainerContainerNamespaceResponseList.md +23 -0
  20. data/docs/{InlineResponse2007.md → PaginatedcontainerContainerPushRepositoryResponseList.md} +4 -4
  21. data/docs/{InlineResponse2005.md → PaginatedcontainerContainerRemoteResponseList.md} +4 -4
  22. data/docs/{InlineResponse2006.md → PaginatedcontainerContainerRepositoryResponseList.md} +4 -4
  23. data/docs/{InlineResponse2003.md → PaginatedcontainerContentRedirectContentGuardResponseList.md} +4 -4
  24. data/docs/{InlineResponse2001.md → PaginatedcontainerManifestResponseList.md} +4 -4
  25. data/docs/{InlineResponse2002.md → PaginatedcontainerTagResponseList.md} +4 -4
  26. data/docs/PatchedcontainerContainerDistribution.md +7 -7
  27. data/docs/PatchedcontainerContainerRemote.md +8 -0
  28. data/docs/PulpContainerNamespacesApi.md +239 -0
  29. data/docs/RecursiveManage.md +1 -1
  30. data/docs/RemotesContainerApi.md +2 -2
  31. data/docs/RepositoriesContainerApi.md +2 -2
  32. data/docs/RepositoriesContainerPushApi.md +2 -2
  33. data/docs/RepositoriesContainerVersionsApi.md +8 -8
  34. data/docs/TagCopy.md +1 -1
  35. data/lib/pulp_container_client/api/content_blobs_api.rb +4 -4
  36. data/lib/pulp_container_client/api/content_manifests_api.rb +4 -4
  37. data/lib/pulp_container_client/api/content_tags_api.rb +4 -4
  38. data/lib/pulp_container_client/api/contentguards_content_redirect_api.rb +4 -4
  39. data/lib/pulp_container_client/api/distributions_container_api.rb +7 -4
  40. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +285 -0
  41. data/lib/pulp_container_client/api/remotes_container_api.rb +4 -4
  42. data/lib/pulp_container_client/api/repositories_container_api.rb +4 -4
  43. data/lib/pulp_container_client/api/repositories_container_push_api.rb +4 -4
  44. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +15 -15
  45. data/lib/pulp_container_client/api/token_api.rb +1 -1
  46. data/lib/pulp_container_client/api_client.rb +12 -13
  47. data/lib/pulp_container_client/api_error.rb +1 -1
  48. data/lib/pulp_container_client/configuration.rb +1 -9
  49. data/lib/pulp_container_client/models/async_operation_response.rb +1 -1
  50. data/lib/pulp_container_client/models/container_blob_response.rb +1 -1
  51. data/lib/pulp_container_client/models/container_container_distribution.rb +31 -31
  52. data/lib/pulp_container_client/models/container_container_distribution_response.rb +42 -32
  53. data/lib/pulp_container_client/models/container_container_namespace.rb +231 -0
  54. data/lib/pulp_container_client/models/container_container_namespace_response.rb +250 -0
  55. data/lib/pulp_container_client/models/container_container_push_repository.rb +1 -1
  56. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +1 -1
  57. data/lib/pulp_container_client/models/container_container_remote.rb +106 -2
  58. data/lib/pulp_container_client/models/container_container_remote_response.rb +106 -2
  59. data/lib/pulp_container_client/models/container_container_repository.rb +1 -1
  60. data/lib/pulp_container_client/models/container_container_repository_response.rb +1 -1
  61. data/lib/pulp_container_client/models/container_content_redirect_content_guard.rb +1 -1
  62. data/lib/pulp_container_client/models/container_content_redirect_content_guard_response.rb +1 -1
  63. data/lib/pulp_container_client/models/container_manifest_response.rb +1 -1
  64. data/lib/pulp_container_client/models/container_tag_response.rb +1 -1
  65. data/lib/pulp_container_client/models/content_summary.rb +1 -1
  66. data/lib/pulp_container_client/models/content_summary_response.rb +1 -1
  67. data/lib/pulp_container_client/models/manifest_copy.rb +2 -2
  68. data/lib/pulp_container_client/models/oci_build_image.rb +1 -1
  69. data/lib/pulp_container_client/models/{inline_response2008.rb → paginated_repository_version_response_list.rb} +4 -4
  70. data/lib/pulp_container_client/models/{inline_response200.rb → paginatedcontainer_blob_response_list.rb} +4 -4
  71. data/lib/pulp_container_client/models/{inline_response2004.rb → paginatedcontainer_container_distribution_response_list.rb} +4 -4
  72. data/lib/pulp_container_client/models/paginatedcontainer_container_namespace_response_list.rb +237 -0
  73. data/lib/pulp_container_client/models/{inline_response2007.rb → paginatedcontainer_container_push_repository_response_list.rb} +4 -4
  74. data/lib/pulp_container_client/models/{inline_response2005.rb → paginatedcontainer_container_remote_response_list.rb} +4 -4
  75. data/lib/pulp_container_client/models/{inline_response2006.rb → paginatedcontainer_container_repository_response_list.rb} +4 -4
  76. data/lib/pulp_container_client/models/{inline_response2003.rb → paginatedcontainer_content_redirect_content_guard_response_list.rb} +4 -4
  77. data/lib/pulp_container_client/models/{inline_response2001.rb → paginatedcontainer_manifest_response_list.rb} +4 -4
  78. data/lib/pulp_container_client/models/{inline_response2002.rb → paginatedcontainer_tag_response_list.rb} +4 -4
  79. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +31 -31
  80. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +106 -2
  81. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +1 -1
  82. data/lib/pulp_container_client/models/patchedcontainer_content_redirect_content_guard.rb +1 -1
  83. data/lib/pulp_container_client/models/policy_enum.rb +1 -1
  84. data/lib/pulp_container_client/models/recursive_manage.rb +2 -2
  85. data/lib/pulp_container_client/models/repository_sync_url.rb +1 -1
  86. data/lib/pulp_container_client/models/repository_version.rb +1 -1
  87. data/lib/pulp_container_client/models/repository_version_response.rb +1 -1
  88. data/lib/pulp_container_client/models/tag_copy.rb +2 -2
  89. data/lib/pulp_container_client/models/tag_image.rb +22 -1
  90. data/lib/pulp_container_client/models/un_tag_image.rb +22 -1
  91. data/lib/pulp_container_client/version.rb +2 -2
  92. data/lib/pulp_container_client.rb +14 -10
  93. data/pulp_container_client.gemspec +2 -2
  94. data/spec/api/content_blobs_api_spec.rb +2 -2
  95. data/spec/api/content_manifests_api_spec.rb +2 -2
  96. data/spec/api/content_tags_api_spec.rb +2 -2
  97. data/spec/api/contentguards_content_redirect_api_spec.rb +2 -2
  98. data/spec/api/distributions_container_api_spec.rb +3 -2
  99. data/spec/api/pulp_container_namespaces_api_spec.rb +89 -0
  100. data/spec/api/remotes_container_api_spec.rb +2 -2
  101. data/spec/api/repositories_container_api_spec.rb +2 -2
  102. data/spec/api/repositories_container_push_api_spec.rb +2 -2
  103. data/spec/api/repositories_container_versions_api_spec.rb +7 -7
  104. data/spec/api/token_api_spec.rb +1 -1
  105. data/spec/api_client_spec.rb +2 -2
  106. data/spec/configuration_spec.rb +1 -1
  107. data/spec/models/async_operation_response_spec.rb +1 -1
  108. data/spec/models/container_blob_response_spec.rb +1 -1
  109. data/spec/models/container_container_distribution_response_spec.rb +13 -7
  110. data/spec/models/container_container_distribution_spec.rb +5 -5
  111. data/spec/models/{inline_response200_spec.rb → container_container_namespace_response_spec.rb} +10 -16
  112. data/spec/models/container_container_namespace_spec.rb +41 -0
  113. data/spec/models/container_container_push_repository_response_spec.rb +1 -1
  114. data/spec/models/container_container_push_repository_spec.rb +1 -1
  115. data/spec/models/container_container_remote_response_spec.rb +25 -1
  116. data/spec/models/container_container_remote_spec.rb +25 -1
  117. data/spec/models/container_container_repository_response_spec.rb +1 -1
  118. data/spec/models/container_container_repository_spec.rb +1 -1
  119. data/spec/models/container_content_redirect_content_guard_response_spec.rb +1 -1
  120. data/spec/models/container_content_redirect_content_guard_spec.rb +1 -1
  121. data/spec/models/container_manifest_response_spec.rb +1 -1
  122. data/spec/models/container_tag_response_spec.rb +1 -1
  123. data/spec/models/content_summary_response_spec.rb +1 -1
  124. data/spec/models/content_summary_spec.rb +1 -1
  125. data/spec/models/manifest_copy_spec.rb +1 -1
  126. data/spec/models/oci_build_image_spec.rb +1 -1
  127. data/spec/models/{inline_response2003_spec.rb → paginated_repository_version_response_list_spec.rb} +7 -7
  128. data/spec/models/{inline_response2002_spec.rb → paginatedcontainer_blob_response_list_spec.rb} +7 -7
  129. data/spec/models/paginatedcontainer_container_distribution_response_list_spec.rb +59 -0
  130. data/spec/models/paginatedcontainer_container_namespace_response_list_spec.rb +59 -0
  131. data/spec/models/paginatedcontainer_container_push_repository_response_list_spec.rb +59 -0
  132. data/spec/models/paginatedcontainer_container_remote_response_list_spec.rb +59 -0
  133. data/spec/models/paginatedcontainer_container_repository_response_list_spec.rb +59 -0
  134. data/spec/models/paginatedcontainer_content_redirect_content_guard_response_list_spec.rb +59 -0
  135. data/spec/models/{inline_response2004_spec.rb → paginatedcontainer_manifest_response_list_spec.rb} +7 -7
  136. data/spec/models/{inline_response2001_spec.rb → paginatedcontainer_tag_response_list_spec.rb} +7 -7
  137. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  138. data/spec/models/patchedcontainer_container_remote_spec.rb +25 -1
  139. data/spec/models/patchedcontainer_container_repository_spec.rb +1 -1
  140. data/spec/models/patchedcontainer_content_redirect_content_guard_spec.rb +1 -1
  141. data/spec/models/policy_enum_spec.rb +1 -1
  142. data/spec/models/recursive_manage_spec.rb +1 -1
  143. data/spec/models/repository_sync_url_spec.rb +1 -1
  144. data/spec/models/repository_version_response_spec.rb +1 -1
  145. data/spec/models/repository_version_spec.rb +1 -1
  146. data/spec/models/tag_copy_spec.rb +1 -1
  147. data/spec/models/tag_image_spec.rb +1 -1
  148. data/spec/models/un_tag_image_spec.rb +1 -1
  149. data/spec/spec_helper.rb +1 -1
  150. metadata +87 -77
  151. data/spec/models/inline_response2005_spec.rb +0 -59
  152. data/spec/models/inline_response2006_spec.rb +0 -59
  153. data/spec/models/inline_response2007_spec.rb +0 -59
  154. data/spec/models/inline_response2008_spec.rb +0 -59
@@ -0,0 +1,285 @@
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.2.3
10
+
11
+ =end
12
+
13
+ require 'cgi'
14
+
15
+ module PulpContainerClient
16
+ class PulpContainerNamespacesApi
17
+ attr_accessor :api_client
18
+
19
+ def initialize(api_client = ApiClient.default)
20
+ @api_client = api_client
21
+ end
22
+ # Create a container namespace
23
+ # ViewSet for ContainerNamespaces.
24
+ # @param container_container_namespace [ContainerContainerNamespace]
25
+ # @param [Hash] opts the optional parameters
26
+ # @return [ContainerContainerNamespaceResponse]
27
+ def create(container_container_namespace, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(container_container_namespace, opts)
29
+ data
30
+ end
31
+
32
+ # Create a container namespace
33
+ # ViewSet for ContainerNamespaces.
34
+ # @param container_container_namespace [ContainerContainerNamespace]
35
+ # @param [Hash] opts the optional parameters
36
+ # @return [Array<(ContainerContainerNamespaceResponse, Integer, Hash)>] ContainerContainerNamespaceResponse data, response status code and response headers
37
+ def create_with_http_info(container_container_namespace, opts = {})
38
+ if @api_client.config.debugging
39
+ @api_client.config.logger.debug 'Calling API: PulpContainerNamespacesApi.create ...'
40
+ end
41
+ # verify the required parameter 'container_container_namespace' is set
42
+ if @api_client.config.client_side_validation && container_container_namespace.nil?
43
+ fail ArgumentError, "Missing the required parameter 'container_container_namespace' when calling PulpContainerNamespacesApi.create"
44
+ end
45
+ # resource path
46
+ local_var_path = '/pulp/api/v3/pulp_container/namespaces/'
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(container_container_namespace)
63
+
64
+ # return_type
65
+ return_type = opts[:return_type] || 'ContainerContainerNamespaceResponse'
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: PulpContainerNamespacesApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
+ end
83
+ return data, status_code, headers
84
+ end
85
+
86
+ # Delete a container namespace
87
+ # ViewSet for ContainerNamespaces.
88
+ # @param container_container_namespace_href [String]
89
+ # @param [Hash] opts the optional parameters
90
+ # @return [nil]
91
+ def delete(container_container_namespace_href, opts = {})
92
+ delete_with_http_info(container_container_namespace_href, opts)
93
+ nil
94
+ end
95
+
96
+ # Delete a container namespace
97
+ # ViewSet for ContainerNamespaces.
98
+ # @param container_container_namespace_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(container_container_namespace_href, opts = {})
102
+ if @api_client.config.debugging
103
+ @api_client.config.logger.debug 'Calling API: PulpContainerNamespacesApi.delete ...'
104
+ end
105
+ # verify the required parameter 'container_container_namespace_href' is set
106
+ if @api_client.config.client_side_validation && container_container_namespace_href.nil?
107
+ fail ArgumentError, "Missing the required parameter 'container_container_namespace_href' when calling PulpContainerNamespacesApi.delete"
108
+ end
109
+ # resource path
110
+ local_var_path = '{container_container_namespace_href}'.sub('{' + 'container_container_namespace_href' + '}', CGI.escape(container_container_namespace_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: PulpContainerNamespacesApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
142
+ end
143
+ return data, status_code, headers
144
+ end
145
+
146
+ # List container namespaces
147
+ # ViewSet for ContainerNamespaces.
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 [String] :ordering Which field to use when ordering the results.
152
+ # @option opts [String] :fields A list of fields to include in the response.
153
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
154
+ # @return [PaginatedcontainerContainerNamespaceResponseList]
155
+ def list(opts = {})
156
+ data, _status_code, _headers = list_with_http_info(opts)
157
+ data
158
+ end
159
+
160
+ # List container namespaces
161
+ # ViewSet for ContainerNamespaces.
162
+ # @param [Hash] opts the optional parameters
163
+ # @option opts [Integer] :limit Number of results to return per page.
164
+ # @option opts [Integer] :offset The initial index from which to return the results.
165
+ # @option opts [String] :ordering Which field to use when ordering the results.
166
+ # @option opts [String] :fields A list of fields to include in the response.
167
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
168
+ # @return [Array<(PaginatedcontainerContainerNamespaceResponseList, Integer, Hash)>] PaginatedcontainerContainerNamespaceResponseList data, response status code and response headers
169
+ def list_with_http_info(opts = {})
170
+ if @api_client.config.debugging
171
+ @api_client.config.logger.debug 'Calling API: PulpContainerNamespacesApi.list ...'
172
+ end
173
+ # resource path
174
+ local_var_path = '/pulp/api/v3/pulp_container/namespaces/'
175
+
176
+ # query parameters
177
+ query_params = opts[:query_params] || {}
178
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
179
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
180
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
181
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
182
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
183
+
184
+ # header parameters
185
+ header_params = opts[:header_params] || {}
186
+ # HTTP header 'Accept' (if needed)
187
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
188
+
189
+ # form parameters
190
+ form_params = opts[:form_params] || {}
191
+
192
+ # http body (model)
193
+ post_body = opts[:body]
194
+
195
+ # return_type
196
+ return_type = opts[:return_type] || 'PaginatedcontainerContainerNamespaceResponseList'
197
+
198
+ # auth_names
199
+ auth_names = opts[:auth_names] || ['basicAuth']
200
+
201
+ new_options = opts.merge(
202
+ :header_params => header_params,
203
+ :query_params => query_params,
204
+ :form_params => form_params,
205
+ :body => post_body,
206
+ :auth_names => auth_names,
207
+ :return_type => return_type
208
+ )
209
+
210
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
211
+ if @api_client.config.debugging
212
+ @api_client.config.logger.debug "API called: PulpContainerNamespacesApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
213
+ end
214
+ return data, status_code, headers
215
+ end
216
+
217
+ # Inspect a container namespace
218
+ # ViewSet for ContainerNamespaces.
219
+ # @param container_container_namespace_href [String]
220
+ # @param [Hash] opts the optional parameters
221
+ # @option opts [String] :fields A list of fields to include in the response.
222
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
223
+ # @return [ContainerContainerNamespaceResponse]
224
+ def read(container_container_namespace_href, opts = {})
225
+ data, _status_code, _headers = read_with_http_info(container_container_namespace_href, opts)
226
+ data
227
+ end
228
+
229
+ # Inspect a container namespace
230
+ # ViewSet for ContainerNamespaces.
231
+ # @param container_container_namespace_href [String]
232
+ # @param [Hash] opts the optional parameters
233
+ # @option opts [String] :fields A list of fields to include in the response.
234
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
235
+ # @return [Array<(ContainerContainerNamespaceResponse, Integer, Hash)>] ContainerContainerNamespaceResponse data, response status code and response headers
236
+ def read_with_http_info(container_container_namespace_href, opts = {})
237
+ if @api_client.config.debugging
238
+ @api_client.config.logger.debug 'Calling API: PulpContainerNamespacesApi.read ...'
239
+ end
240
+ # verify the required parameter 'container_container_namespace_href' is set
241
+ if @api_client.config.client_side_validation && container_container_namespace_href.nil?
242
+ fail ArgumentError, "Missing the required parameter 'container_container_namespace_href' when calling PulpContainerNamespacesApi.read"
243
+ end
244
+ # resource path
245
+ local_var_path = '{container_container_namespace_href}'.sub('{' + 'container_container_namespace_href' + '}', CGI.escape(container_container_namespace_href.to_s).gsub('%2F', '/'))
246
+
247
+ # query parameters
248
+ query_params = opts[:query_params] || {}
249
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
250
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
251
+
252
+ # header parameters
253
+ header_params = opts[:header_params] || {}
254
+ # HTTP header 'Accept' (if needed)
255
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
256
+
257
+ # form parameters
258
+ form_params = opts[:form_params] || {}
259
+
260
+ # http body (model)
261
+ post_body = opts[:body]
262
+
263
+ # return_type
264
+ return_type = opts[:return_type] || 'ContainerContainerNamespaceResponse'
265
+
266
+ # auth_names
267
+ auth_names = opts[:auth_names] || ['basicAuth']
268
+
269
+ new_options = opts.merge(
270
+ :header_params => header_params,
271
+ :query_params => query_params,
272
+ :form_params => form_params,
273
+ :body => post_body,
274
+ :auth_names => auth_names,
275
+ :return_type => return_type
276
+ )
277
+
278
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
279
+ if @api_client.config.debugging
280
+ @api_client.config.logger.debug "API called: PulpContainerNamespacesApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
281
+ end
282
+ return data, status_code, headers
283
+ end
284
+ end
285
+ end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -161,7 +161,7 @@ module PulpContainerClient
161
161
  # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
162
162
  # @option opts [String] :fields A list of fields to include in the response.
163
163
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
164
- # @return [InlineResponse2005]
164
+ # @return [PaginatedcontainerContainerRemoteResponseList]
165
165
  def list(opts = {})
166
166
  data, _status_code, _headers = list_with_http_info(opts)
167
167
  data
@@ -183,7 +183,7 @@ module PulpContainerClient
183
183
  # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
184
184
  # @option opts [String] :fields A list of fields to include in the response.
185
185
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
186
- # @return [Array<(InlineResponse2005, Integer, Hash)>] InlineResponse2005 data, response status code and response headers
186
+ # @return [Array<(PaginatedcontainerContainerRemoteResponseList, Integer, Hash)>] PaginatedcontainerContainerRemoteResponseList data, response status code and response headers
187
187
  def list_with_http_info(opts = {})
188
188
  if @api_client.config.debugging
189
189
  @api_client.config.logger.debug 'Calling API: RemotesContainerApi.list ...'
@@ -219,7 +219,7 @@ module PulpContainerClient
219
219
  post_body = opts[:body]
220
220
 
221
221
  # return_type
222
- return_type = opts[:return_type] || 'InlineResponse2005'
222
+ return_type = opts[:return_type] || 'PaginatedcontainerContainerRemoteResponseList'
223
223
 
224
224
  # auth_names
225
225
  auth_names = opts[:auth_names] || ['basicAuth']
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -441,7 +441,7 @@ module PulpContainerClient
441
441
  # @option opts [String] :ordering Which field to use when ordering the results.
442
442
  # @option opts [String] :fields A list of fields to include in the response.
443
443
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
444
- # @return [InlineResponse2006]
444
+ # @return [PaginatedcontainerContainerRepositoryResponseList]
445
445
  def list(opts = {})
446
446
  data, _status_code, _headers = list_with_http_info(opts)
447
447
  data
@@ -457,7 +457,7 @@ module PulpContainerClient
457
457
  # @option opts [String] :ordering Which field to use when ordering the results.
458
458
  # @option opts [String] :fields A list of fields to include in the response.
459
459
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
460
- # @return [Array<(InlineResponse2006, Integer, Hash)>] InlineResponse2006 data, response status code and response headers
460
+ # @return [Array<(PaginatedcontainerContainerRepositoryResponseList, Integer, Hash)>] PaginatedcontainerContainerRepositoryResponseList data, response status code and response headers
461
461
  def list_with_http_info(opts = {})
462
462
  if @api_client.config.debugging
463
463
  @api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.list ...'
@@ -487,7 +487,7 @@ module PulpContainerClient
487
487
  post_body = opts[:body]
488
488
 
489
489
  # return_type
490
- return_type = opts[:return_type] || 'InlineResponse2006'
490
+ return_type = opts[:return_type] || 'PaginatedcontainerContainerRepositoryResponseList'
491
491
 
492
492
  # auth_names
493
493
  auth_names = opts[:auth_names] || ['basicAuth']
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -155,7 +155,7 @@ module PulpContainerClient
155
155
  # @option opts [String] :ordering Which field to use when ordering the results.
156
156
  # @option opts [String] :fields A list of fields to include in the response.
157
157
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
158
- # @return [InlineResponse2007]
158
+ # @return [PaginatedcontainerContainerPushRepositoryResponseList]
159
159
  def list(opts = {})
160
160
  data, _status_code, _headers = list_with_http_info(opts)
161
161
  data
@@ -171,7 +171,7 @@ module PulpContainerClient
171
171
  # @option opts [String] :ordering Which field to use when ordering the results.
172
172
  # @option opts [String] :fields A list of fields to include in the response.
173
173
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
174
- # @return [Array<(InlineResponse2007, Integer, Hash)>] InlineResponse2007 data, response status code and response headers
174
+ # @return [Array<(PaginatedcontainerContainerPushRepositoryResponseList, Integer, Hash)>] PaginatedcontainerContainerPushRepositoryResponseList data, response status code and response headers
175
175
  def list_with_http_info(opts = {})
176
176
  if @api_client.config.debugging
177
177
  @api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.list ...'
@@ -201,7 +201,7 @@ module PulpContainerClient
201
201
  post_body = opts[:body]
202
202
 
203
203
  # return_type
204
- return_type = opts[:return_type] || 'InlineResponse2007'
204
+ return_type = opts[:return_type] || 'PaginatedcontainerContainerPushRepositoryResponseList'
205
205
 
206
206
  # auth_names
207
207
  auth_names = opts[:auth_names] || ['basicAuth']
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -20,7 +20,7 @@ module PulpContainerClient
20
20
  @api_client = api_client
21
21
  end
22
22
  # Delete a repository version
23
- # Trigger an asynchronous task to delete a repositroy version.
23
+ # Trigger an asynchronous task to delete a repository version.
24
24
  # @param container_container_push_repository_version_href [String]
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @return [AsyncOperationResponse]
@@ -30,7 +30,7 @@ module PulpContainerClient
30
30
  end
31
31
 
32
32
  # Delete a repository version
33
- # Trigger an asynchronous task to delete a repositroy version.
33
+ # Trigger an asynchronous task to delete a repository version.
34
34
  # @param container_container_push_repository_version_href [String]
35
35
  # @param [Hash] opts the optional parameters
36
36
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
@@ -82,7 +82,7 @@ module PulpContainerClient
82
82
  end
83
83
 
84
84
  # Delete a repository version
85
- # Trigger an asynchronous task to delete a repositroy version.
85
+ # Trigger an asynchronous task to delete a repository version.
86
86
  # @param container_container_repository_version_href [String]
87
87
  # @param [Hash] opts the optional parameters
88
88
  # @return [AsyncOperationResponse]
@@ -92,7 +92,7 @@ module PulpContainerClient
92
92
  end
93
93
 
94
94
  # Delete a repository version
95
- # Trigger an asynchronous task to delete a repositroy version.
95
+ # Trigger an asynchronous task to delete a repository version.
96
96
  # @param container_container_repository_version_href [String]
97
97
  # @param [Hash] opts the optional parameters
98
98
  # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
@@ -166,7 +166,7 @@ module PulpContainerClient
166
166
  # @option opts [String] :pulp_created__range pulp_created__range
167
167
  # @option opts [String] :fields A list of fields to include in the response.
168
168
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
169
- # @return [InlineResponse2008]
169
+ # @return [PaginatedRepositoryVersionResponseList]
170
170
  def list(container_container_push_repository_href, opts = {})
171
171
  data, _status_code, _headers = list_with_http_info(container_container_push_repository_href, opts)
172
172
  data
@@ -195,7 +195,7 @@ module PulpContainerClient
195
195
  # @option opts [String] :pulp_created__range pulp_created__range
196
196
  # @option opts [String] :fields A list of fields to include in the response.
197
197
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
198
- # @return [Array<(InlineResponse2008, Integer, Hash)>] InlineResponse2008 data, response status code and response headers
198
+ # @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
199
199
  def list_with_http_info(container_container_push_repository_href, opts = {})
200
200
  if @api_client.config.debugging
201
201
  @api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.list ...'
@@ -241,7 +241,7 @@ module PulpContainerClient
241
241
  post_body = opts[:body]
242
242
 
243
243
  # return_type
244
- return_type = opts[:return_type] || 'InlineResponse2008'
244
+ return_type = opts[:return_type] || 'PaginatedRepositoryVersionResponseList'
245
245
 
246
246
  # auth_names
247
247
  auth_names = opts[:auth_names] || ['basicAuth']
@@ -285,7 +285,7 @@ module PulpContainerClient
285
285
  # @option opts [String] :pulp_created__range pulp_created__range
286
286
  # @option opts [String] :fields A list of fields to include in the response.
287
287
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
288
- # @return [InlineResponse2008]
288
+ # @return [PaginatedRepositoryVersionResponseList]
289
289
  def list_0(container_container_repository_href, opts = {})
290
290
  data, _status_code, _headers = list_0_with_http_info(container_container_repository_href, opts)
291
291
  data
@@ -314,7 +314,7 @@ module PulpContainerClient
314
314
  # @option opts [String] :pulp_created__range pulp_created__range
315
315
  # @option opts [String] :fields A list of fields to include in the response.
316
316
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
317
- # @return [Array<(InlineResponse2008, Integer, Hash)>] InlineResponse2008 data, response status code and response headers
317
+ # @return [Array<(PaginatedRepositoryVersionResponseList, Integer, Hash)>] PaginatedRepositoryVersionResponseList data, response status code and response headers
318
318
  def list_0_with_http_info(container_container_repository_href, opts = {})
319
319
  if @api_client.config.debugging
320
320
  @api_client.config.logger.debug 'Calling API: RepositoriesContainerVersionsApi.list_0 ...'
@@ -360,7 +360,7 @@ module PulpContainerClient
360
360
  post_body = opts[:body]
361
361
 
362
362
  # return_type
363
- return_type = opts[:return_type] || 'InlineResponse2008'
363
+ return_type = opts[:return_type] || 'PaginatedRepositoryVersionResponseList'
364
364
 
365
365
  # auth_names
366
366
  auth_names = opts[:auth_names] || ['basicAuth']
@@ -517,7 +517,7 @@ module PulpContainerClient
517
517
  return data, status_code, headers
518
518
  end
519
519
 
520
- # Trigger an asynchronous task to repair a repositroy version.
520
+ # Trigger an asynchronous task to repair a repository version.
521
521
  # @param container_container_push_repository_version_href [String]
522
522
  # @param repository_version [RepositoryVersion]
523
523
  # @param [Hash] opts the optional parameters
@@ -527,7 +527,7 @@ module PulpContainerClient
527
527
  data
528
528
  end
529
529
 
530
- # Trigger an asynchronous task to repair a repositroy version.
530
+ # Trigger an asynchronous task to repair a repository version.
531
531
  # @param container_container_push_repository_version_href [String]
532
532
  # @param repository_version [RepositoryVersion]
533
533
  # @param [Hash] opts the optional parameters
@@ -585,7 +585,7 @@ module PulpContainerClient
585
585
  return data, status_code, headers
586
586
  end
587
587
 
588
- # Trigger an asynchronous task to repair a repositroy version.
588
+ # Trigger an asynchronous task to repair a repository version.
589
589
  # @param container_container_repository_version_href [String]
590
590
  # @param repository_version [RepositoryVersion]
591
591
  # @param [Hash] opts the optional parameters
@@ -595,7 +595,7 @@ module PulpContainerClient
595
595
  data
596
596
  end
597
597
 
598
- # Trigger an asynchronous task to repair a repositroy version.
598
+ # Trigger an asynchronous task to repair a repository version.
599
599
  # @param container_container_repository_version_href [String]
600
600
  # @param repository_version [RepositoryVersion]
601
601
  # @param [Hash] opts the optional parameters
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -53,10 +53,8 @@ module PulpContainerClient
53
53
  :client_cert => @config.ssl_client_cert,
54
54
  :client_key => @config.ssl_client_key
55
55
  }
56
- request_options = {
57
- :params_encoder => @config.params_encoder
58
- }
59
- connection = Faraday.new(:url => config.base_url, :ssl => ssl_options, :request => request_options) do |conn|
56
+
57
+ connection = Faraday.new(:url => config.base_url, :ssl => ssl_options) do |conn|
60
58
  conn.basic_auth(config.username, config.password)
61
59
  if opts[:header_params]["Content-Type"] == "multipart/form-data"
62
60
  conn.request :multipart
@@ -118,6 +116,9 @@ module PulpContainerClient
118
116
  update_params_for_auth! header_params, query_params, opts[:auth_names]
119
117
 
120
118
  req_opts = {
119
+ :method => http_method,
120
+ :headers => header_params,
121
+ :params => query_params,
121
122
  :params_encoding => @config.params_encoding,
122
123
  :timeout => @config.timeout,
123
124
  :verbose => @config.debugging
@@ -125,13 +126,13 @@ module PulpContainerClient
125
126
 
126
127
  if [:post, :patch, :put, :delete].include?(http_method)
127
128
  req_body = build_request_body(header_params, form_params, opts[:body])
129
+ req_opts.update :body => req_body
128
130
  if @config.debugging
129
131
  @config.logger.debug "HTTP request body param ~BEGIN~\n#{req_body}\n~END~\n"
130
132
  end
131
133
  end
132
134
  request.headers = header_params
133
135
  request.body = req_body
134
- request.options = OpenStruct.new(req_opts)
135
136
  request.url url
136
137
  request.params = query_params
137
138
  download_file(request) if opts[:return_type] == 'File'
@@ -284,13 +285,11 @@ module PulpContainerClient
284
285
  tempfile.write(chunk)
285
286
  end
286
287
  request.on_complete do |response|
287
- if tempfile
288
- tempfile.close
289
- @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
290
- "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
291
- "will be deleted automatically with GC. It's also recommended to delete the temp file "\
292
- "explicitly with `tempfile.delete`"
293
- end
288
+ tempfile.close if tempfile
289
+ @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\
290
+ "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\
291
+ "will be deleted automatically with GC. It's also recommended to delete the temp file "\
292
+ "explicitly with `tempfile.delete`"
294
293
  end
295
294
  end
296
295
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -109,12 +109,6 @@ module PulpContainerClient
109
109
  # Client private key file (for client certificate)
110
110
  attr_accessor :ssl_client_key
111
111
 
112
- # Set this to customize parameters encoder of array parameter.
113
- # Default to nil. Faraday uses NestedParamsEncoder when nil.
114
- #
115
- # @see The params_encoder option of Faraday. Related source code:
116
- # https://github.com/lostisland/faraday/tree/main/lib/faraday/encoders
117
- attr_accessor :params_encoder
118
112
  # Set this to customize parameters encoding of array parameter with multi collectionFormat.
119
113
  # Default to nil.
120
114
  #
@@ -139,8 +133,6 @@ module PulpContainerClient
139
133
  @ssl_ca_file = nil
140
134
  @ssl_client_cert = nil
141
135
  @ssl_client_key = nil
142
- @params_encoder = nil
143
- @timeout = 60
144
136
  @debugging = false
145
137
  @inject_format = false
146
138
  @force_ending_format = false
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12
 
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
  Contact: pulp-list@redhat.com
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.3.1
9
+ OpenAPI Generator version: 4.2.3
10
10
 
11
11
  =end
12
12