pulp_container_client 2.0.0b3 → 2.0.0

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 (156) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +69 -57
  3. data/docs/{ContainerBlob.md → ContainerBlobResponse.md} +2 -2
  4. data/docs/ContainerContainerDistribution.md +6 -12
  5. data/docs/ContainerContainerDistributionResponse.md +31 -0
  6. data/docs/ContainerContainerPushRepository.md +4 -10
  7. data/docs/ContainerContainerPushRepositoryResponse.md +29 -0
  8. data/docs/ContainerContainerRemote.md +8 -12
  9. data/docs/ContainerContainerRemoteResponse.md +49 -0
  10. data/docs/ContainerContainerRepository.md +4 -10
  11. data/docs/ContainerContainerRepositoryResponse.md +29 -0
  12. data/docs/ContainerContentRedirectContentGuard.md +1 -5
  13. data/docs/ContainerContentRedirectContentGuardResponse.md +23 -0
  14. data/docs/{ContainerManifest.md → ContainerManifestResponse.md} +2 -2
  15. data/docs/{ContainerTag.md → ContainerTagResponse.md} +2 -4
  16. data/docs/ContentBlobsApi.md +24 -24
  17. data/docs/ContentManifestsApi.md +24 -24
  18. data/docs/ContentSummary.md +3 -3
  19. data/docs/ContentSummaryResponse.md +21 -0
  20. data/docs/ContentTagsApi.md +26 -26
  21. data/docs/ContentguardsContentRedirectApi.md +55 -55
  22. data/docs/DistributionsContainerApi.md +108 -60
  23. data/docs/InlineResponse200.md +3 -3
  24. data/docs/InlineResponse2001.md +3 -3
  25. data/docs/InlineResponse2002.md +3 -3
  26. data/docs/InlineResponse2003.md +3 -3
  27. data/docs/InlineResponse2004.md +3 -3
  28. data/docs/InlineResponse2005.md +3 -3
  29. data/docs/InlineResponse2006.md +3 -3
  30. data/docs/InlineResponse2007.md +3 -3
  31. data/docs/InlineResponse2008.md +3 -3
  32. data/docs/ManifestCopy.md +1 -1
  33. data/docs/OCIBuildImage.md +23 -0
  34. data/docs/PatchedcontainerContainerDistribution.md +25 -0
  35. data/docs/PatchedcontainerContainerRemote.md +43 -0
  36. data/docs/PatchedcontainerContainerRepository.md +21 -0
  37. data/docs/PatchedcontainerContentRedirectContentGuard.md +19 -0
  38. data/docs/PolicyEnum.md +16 -0
  39. data/docs/RecursiveManage.md +1 -1
  40. data/docs/RemotesContainerApi.md +125 -65
  41. data/docs/RepositoriesContainerApi.md +158 -134
  42. data/docs/RepositoriesContainerPushApi.md +44 -148
  43. data/docs/RepositoriesContainerVersionsApi.md +190 -126
  44. data/docs/RepositorySyncURL.md +1 -1
  45. data/docs/RepositoryVersion.md +1 -9
  46. data/docs/RepositoryVersionResponse.md +25 -0
  47. data/docs/TagCopy.md +1 -1
  48. data/docs/TokenApi.md +8 -16
  49. data/lib/pulp_container_client/api/content_blobs_api.rb +38 -34
  50. data/lib/pulp_container_client/api/content_manifests_api.rb +38 -34
  51. data/lib/pulp_container_client/api/content_tags_api.rb +41 -37
  52. data/lib/pulp_container_client/api/contentguards_content_redirect_api.rb +90 -90
  53. data/lib/pulp_container_client/api/distributions_container_api.rb +153 -90
  54. data/lib/pulp_container_client/api/remotes_container_api.rb +181 -100
  55. data/lib/pulp_container_client/api/repositories_container_api.rb +245 -222
  56. data/lib/pulp_container_client/api/repositories_container_push_api.rb +66 -197
  57. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +278 -188
  58. data/lib/pulp_container_client/api/token_api.rb +8 -14
  59. data/lib/pulp_container_client/api_client.rb +2 -2
  60. data/lib/pulp_container_client/api_error.rb +2 -2
  61. data/lib/pulp_container_client/configuration.rb +3 -3
  62. data/lib/pulp_container_client/models/async_operation_response.rb +3 -2
  63. data/lib/pulp_container_client/models/{container_blob.rb → container_blob_response.rb} +6 -43
  64. data/lib/pulp_container_client/models/container_container_distribution.rb +29 -110
  65. data/lib/pulp_container_client/models/container_container_distribution_response.rb +289 -0
  66. data/lib/pulp_container_client/models/container_container_push_repository.rb +18 -78
  67. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +271 -0
  68. data/lib/pulp_container_client/models/container_container_remote.rb +29 -227
  69. data/lib/pulp_container_client/models/container_container_remote_response.rb +409 -0
  70. data/lib/pulp_container_client/models/container_container_repository.rb +18 -78
  71. data/lib/pulp_container_client/models/container_container_repository_response.rb +271 -0
  72. data/lib/pulp_container_client/models/container_content_redirect_content_guard.rb +4 -56
  73. data/lib/pulp_container_client/models/container_content_redirect_content_guard_response.rb +243 -0
  74. data/lib/pulp_container_client/models/{container_manifest.rb → container_manifest_response.rb} +6 -43
  75. data/lib/pulp_container_client/models/{container_tag.rb → container_tag_response.rb} +7 -40
  76. data/lib/pulp_container_client/models/content_summary.rb +9 -15
  77. data/lib/pulp_container_client/models/content_summary_response.rb +240 -0
  78. data/lib/pulp_container_client/models/inline_response200.rb +3 -13
  79. data/lib/pulp_container_client/models/inline_response2001.rb +3 -13
  80. data/lib/pulp_container_client/models/inline_response2002.rb +3 -13
  81. data/lib/pulp_container_client/models/inline_response2003.rb +3 -13
  82. data/lib/pulp_container_client/models/inline_response2004.rb +3 -13
  83. data/lib/pulp_container_client/models/inline_response2005.rb +3 -13
  84. data/lib/pulp_container_client/models/inline_response2006.rb +3 -13
  85. data/lib/pulp_container_client/models/inline_response2007.rb +3 -13
  86. data/lib/pulp_container_client/models/inline_response2008.rb +3 -13
  87. data/lib/pulp_container_client/models/manifest_copy.rb +4 -3
  88. data/lib/pulp_container_client/models/oci_build_image.rb +240 -0
  89. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +250 -0
  90. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +365 -0
  91. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +229 -0
  92. data/lib/pulp_container_client/models/patchedcontainer_content_redirect_content_guard.rb +219 -0
  93. data/lib/pulp_container_client/models/policy_enum.rb +37 -0
  94. data/lib/pulp_container_client/models/recursive_manage.rb +4 -3
  95. data/lib/pulp_container_client/models/repository_sync_url.rb +3 -8
  96. data/lib/pulp_container_client/models/repository_version.rb +7 -43
  97. data/lib/pulp_container_client/models/repository_version_response.rb +246 -0
  98. data/lib/pulp_container_client/models/tag_copy.rb +4 -3
  99. data/lib/pulp_container_client/models/tag_image.rb +3 -40
  100. data/lib/pulp_container_client/models/un_tag_image.rb +3 -21
  101. data/lib/pulp_container_client/version.rb +3 -3
  102. data/lib/pulp_container_client.rb +18 -5
  103. data/pulp_container_client.gemspec +4 -4
  104. data/spec/api/content_blobs_api_spec.rb +11 -11
  105. data/spec/api/content_manifests_api_spec.rb +11 -11
  106. data/spec/api/content_tags_api_spec.rb +12 -12
  107. data/spec/api/contentguards_content_redirect_api_spec.rb +17 -17
  108. data/spec/api/distributions_container_api_spec.rb +39 -18
  109. data/spec/api/remotes_container_api_spec.rb +48 -21
  110. data/spec/api/repositories_container_api_spec.rb +41 -32
  111. data/spec/api/repositories_container_push_api_spec.rb +17 -40
  112. data/spec/api/repositories_container_versions_api_spec.rb +76 -46
  113. data/spec/api/token_api_spec.rb +4 -6
  114. data/spec/api_client_spec.rb +2 -2
  115. data/spec/configuration_spec.rb +2 -2
  116. data/spec/models/async_operation_response_spec.rb +2 -2
  117. data/spec/models/{container_blob_spec.rb → container_blob_response_spec.rb} +8 -8
  118. data/spec/models/container_container_distribution_response_spec.rb +83 -0
  119. data/spec/models/container_container_distribution_spec.rb +5 -23
  120. data/spec/models/container_container_push_repository_response_spec.rb +77 -0
  121. data/spec/models/container_container_push_repository_spec.rb +5 -23
  122. data/spec/models/container_container_remote_response_spec.rb +137 -0
  123. data/spec/models/container_container_remote_spec.rb +7 -23
  124. data/spec/models/container_container_repository_response_spec.rb +77 -0
  125. data/spec/models/container_container_repository_spec.rb +5 -23
  126. data/spec/models/container_content_redirect_content_guard_response_spec.rb +59 -0
  127. data/spec/models/container_content_redirect_content_guard_spec.rb +2 -14
  128. data/spec/models/{container_manifest_spec.rb → container_manifest_response_spec.rb} +8 -8
  129. data/spec/models/{container_tag_spec.rb → container_tag_response_spec.rb} +8 -14
  130. data/spec/models/content_summary_response_spec.rb +53 -0
  131. data/spec/models/content_summary_spec.rb +2 -2
  132. data/spec/models/inline_response2001_spec.rb +2 -2
  133. data/spec/models/inline_response2002_spec.rb +2 -2
  134. data/spec/models/inline_response2003_spec.rb +2 -2
  135. data/spec/models/inline_response2004_spec.rb +2 -2
  136. data/spec/models/inline_response2005_spec.rb +2 -2
  137. data/spec/models/inline_response2006_spec.rb +2 -2
  138. data/spec/models/inline_response2007_spec.rb +2 -2
  139. data/spec/models/inline_response2008_spec.rb +2 -2
  140. data/spec/models/inline_response200_spec.rb +2 -2
  141. data/spec/models/manifest_copy_spec.rb +2 -2
  142. data/spec/models/oci_build_image_spec.rb +59 -0
  143. data/spec/models/patchedcontainer_container_distribution_spec.rb +65 -0
  144. data/spec/models/patchedcontainer_container_remote_spec.rb +119 -0
  145. data/spec/models/patchedcontainer_container_repository_spec.rb +53 -0
  146. data/spec/models/patchedcontainer_content_redirect_content_guard_spec.rb +47 -0
  147. data/spec/models/policy_enum_spec.rb +35 -0
  148. data/spec/models/recursive_manage_spec.rb +2 -2
  149. data/spec/models/repository_sync_url_spec.rb +2 -2
  150. data/spec/models/repository_version_response_spec.rb +65 -0
  151. data/spec/models/repository_version_spec.rb +2 -26
  152. data/spec/models/tag_copy_spec.rb +2 -2
  153. data/spec/models/tag_image_spec.rb +2 -2
  154. data/spec/models/un_tag_image_spec.rb +2 -2
  155. data/spec/spec_helper.rb +2 -2
  156. metadata +93 -41
@@ -1,10 +1,10 @@
1
1
  =begin
2
2
  #Pulp 3 API
3
3
 
4
- #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
5
 
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
9
  OpenAPI Generator version: 4.2.3
10
10
 
@@ -21,26 +21,26 @@ module PulpContainerClient
21
21
  end
22
22
  # Create a content redirect content guard
23
23
  # Content guard to protect preauthenticated redirects to the content app.
24
- # @param data [ContainerContentRedirectContentGuard]
24
+ # @param container_content_redirect_content_guard [ContainerContentRedirectContentGuard]
25
25
  # @param [Hash] opts the optional parameters
26
- # @return [ContainerContentRedirectContentGuard]
27
- def create(data, opts = {})
28
- data, _status_code, _headers = create_with_http_info(data, opts)
26
+ # @return [ContainerContentRedirectContentGuardResponse]
27
+ def create(container_content_redirect_content_guard, opts = {})
28
+ data, _status_code, _headers = create_with_http_info(container_content_redirect_content_guard, opts)
29
29
  data
30
30
  end
31
31
 
32
32
  # Create a content redirect content guard
33
33
  # Content guard to protect preauthenticated redirects to the content app.
34
- # @param data [ContainerContentRedirectContentGuard]
34
+ # @param container_content_redirect_content_guard [ContainerContentRedirectContentGuard]
35
35
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(ContainerContentRedirectContentGuard, Integer, Hash)>] ContainerContentRedirectContentGuard data, response status code and response headers
37
- def create_with_http_info(data, opts = {})
36
+ # @return [Array<(ContainerContentRedirectContentGuardResponse, Integer, Hash)>] ContainerContentRedirectContentGuardResponse data, response status code and response headers
37
+ def create_with_http_info(container_content_redirect_content_guard, opts = {})
38
38
  if @api_client.config.debugging
39
39
  @api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.create ...'
40
40
  end
41
- # verify the required parameter 'data' is set
42
- if @api_client.config.client_side_validation && data.nil?
43
- fail ArgumentError, "Missing the required parameter 'data' when calling ContentguardsContentRedirectApi.create"
41
+ # verify the required parameter 'container_content_redirect_content_guard' is set
42
+ if @api_client.config.client_side_validation && container_content_redirect_content_guard.nil?
43
+ fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard' when calling ContentguardsContentRedirectApi.create"
44
44
  end
45
45
  # resource path
46
46
  local_var_path = '/pulp/api/v3/contentguards/container/content_redirect/'
@@ -53,19 +53,19 @@ module PulpContainerClient
53
53
  # HTTP header 'Accept' (if needed)
54
54
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
55
55
  # HTTP header 'Content-Type'
56
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
56
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
57
57
 
58
58
  # form parameters
59
59
  form_params = opts[:form_params] || {}
60
60
 
61
61
  # http body (model)
62
- post_body = opts[:body] || @api_client.object_to_http_body(data)
62
+ post_body = opts[:body] || @api_client.object_to_http_body(container_content_redirect_content_guard)
63
63
 
64
64
  # return_type
65
- return_type = opts[:return_type] || 'ContainerContentRedirectContentGuard'
65
+ return_type = opts[:return_type] || 'ContainerContentRedirectContentGuardResponse'
66
66
 
67
67
  # auth_names
68
- auth_names = opts[:auth_names] || ['Basic']
68
+ auth_names = opts[:auth_names] || ['basicAuth']
69
69
 
70
70
  new_options = opts.merge(
71
71
  :header_params => header_params,
@@ -85,29 +85,29 @@ module PulpContainerClient
85
85
 
86
86
  # Delete a content redirect content guard
87
87
  # Content guard to protect preauthenticated redirects to the content app.
88
- # @param content_redirect_content_guard_href [String] URI of Content Redirect Content Guard. e.g.: /pulp/api/v3/contentguards/container/content_redirect/1/
88
+ # @param container_content_redirect_content_guard_href [String]
89
89
  # @param [Hash] opts the optional parameters
90
90
  # @return [nil]
91
- def delete(content_redirect_content_guard_href, opts = {})
92
- delete_with_http_info(content_redirect_content_guard_href, opts)
91
+ def delete(container_content_redirect_content_guard_href, opts = {})
92
+ delete_with_http_info(container_content_redirect_content_guard_href, opts)
93
93
  nil
94
94
  end
95
95
 
96
96
  # Delete a content redirect content guard
97
97
  # Content guard to protect preauthenticated redirects to the content app.
98
- # @param content_redirect_content_guard_href [String] URI of Content Redirect Content Guard. e.g.: /pulp/api/v3/contentguards/container/content_redirect/1/
98
+ # @param container_content_redirect_content_guard_href [String]
99
99
  # @param [Hash] opts the optional parameters
100
100
  # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
101
- def delete_with_http_info(content_redirect_content_guard_href, opts = {})
101
+ def delete_with_http_info(container_content_redirect_content_guard_href, opts = {})
102
102
  if @api_client.config.debugging
103
103
  @api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.delete ...'
104
104
  end
105
- # verify the required parameter 'content_redirect_content_guard_href' is set
106
- if @api_client.config.client_side_validation && content_redirect_content_guard_href.nil?
107
- fail ArgumentError, "Missing the required parameter 'content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.delete"
105
+ # verify the required parameter 'container_content_redirect_content_guard_href' is set
106
+ if @api_client.config.client_side_validation && container_content_redirect_content_guard_href.nil?
107
+ fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.delete"
108
108
  end
109
109
  # resource path
110
- local_var_path = '{content_redirect_content_guard_href}'.sub('{' + 'content_redirect_content_guard_href' + '}', CGI.escape(content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
110
+ local_var_path = '{container_content_redirect_content_guard_href}'.sub('{' + 'container_content_redirect_content_guard_href' + '}', CGI.escape(container_content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
111
111
 
112
112
  # query parameters
113
113
  query_params = opts[:query_params] || {}
@@ -125,7 +125,7 @@ module PulpContainerClient
125
125
  return_type = opts[:return_type]
126
126
 
127
127
  # auth_names
128
- auth_names = opts[:auth_names] || ['Basic']
128
+ auth_names = opts[:auth_names] || ['basicAuth']
129
129
 
130
130
  new_options = opts.merge(
131
131
  :header_params => header_params,
@@ -146,11 +146,11 @@ module PulpContainerClient
146
146
  # List content redirect content guards
147
147
  # Content guard to protect preauthenticated redirects to the content app.
148
148
  # @param [Hash] opts the optional parameters
149
- # @option opts [String] :ordering Which field to use when ordering the results.
150
- # @option opts [String] :name
151
- # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
152
149
  # @option opts [Integer] :limit Number of results to return per page.
150
+ # @option opts [String] :name name
151
+ # @option opts [String] :name__in name__in
153
152
  # @option opts [Integer] :offset The initial index from which to return the results.
153
+ # @option opts [String] :ordering Which field to use when ordering the results.
154
154
  # @option opts [String] :fields A list of fields to include in the response.
155
155
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
156
156
  # @return [InlineResponse2003]
@@ -162,11 +162,11 @@ module PulpContainerClient
162
162
  # List content redirect content guards
163
163
  # Content guard to protect preauthenticated redirects to the content app.
164
164
  # @param [Hash] opts the optional parameters
165
- # @option opts [String] :ordering Which field to use when ordering the results.
166
- # @option opts [String] :name
167
- # @option opts [String] :name__in Filter results where name is in a comma-separated list of values
168
165
  # @option opts [Integer] :limit Number of results to return per page.
166
+ # @option opts [String] :name name
167
+ # @option opts [String] :name__in name__in
169
168
  # @option opts [Integer] :offset The initial index from which to return the results.
169
+ # @option opts [String] :ordering Which field to use when ordering the results.
170
170
  # @option opts [String] :fields A list of fields to include in the response.
171
171
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
172
172
  # @return [Array<(InlineResponse2003, Integer, Hash)>] InlineResponse2003 data, response status code and response headers
@@ -179,11 +179,11 @@ module PulpContainerClient
179
179
 
180
180
  # query parameters
181
181
  query_params = opts[:query_params] || {}
182
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
182
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
183
183
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
184
184
  query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
185
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
186
185
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
186
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
187
187
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
188
188
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
189
189
 
@@ -202,7 +202,7 @@ module PulpContainerClient
202
202
  return_type = opts[:return_type] || 'InlineResponse2003'
203
203
 
204
204
  # auth_names
205
- auth_names = opts[:auth_names] || ['Basic']
205
+ auth_names = opts[:auth_names] || ['basicAuth']
206
206
 
207
207
  new_options = opts.merge(
208
208
  :header_params => header_params,
@@ -220,37 +220,37 @@ module PulpContainerClient
220
220
  return data, status_code, headers
221
221
  end
222
222
 
223
- # Partially update a content redirect content guard
223
+ # Update a content redirect content guard
224
224
  # Content guard to protect preauthenticated redirects to the content app.
225
- # @param content_redirect_content_guard_href [String] URI of Content Redirect Content Guard. e.g.: /pulp/api/v3/contentguards/container/content_redirect/1/
226
- # @param data [ContainerContentRedirectContentGuard]
225
+ # @param container_content_redirect_content_guard_href [String]
226
+ # @param patchedcontainer_content_redirect_content_guard [PatchedcontainerContentRedirectContentGuard]
227
227
  # @param [Hash] opts the optional parameters
228
- # @return [ContainerContentRedirectContentGuard]
229
- def partial_update(content_redirect_content_guard_href, data, opts = {})
230
- data, _status_code, _headers = partial_update_with_http_info(content_redirect_content_guard_href, data, opts)
228
+ # @return [ContainerContentRedirectContentGuardResponse]
229
+ def partial_update(container_content_redirect_content_guard_href, patchedcontainer_content_redirect_content_guard, opts = {})
230
+ data, _status_code, _headers = partial_update_with_http_info(container_content_redirect_content_guard_href, patchedcontainer_content_redirect_content_guard, opts)
231
231
  data
232
232
  end
233
233
 
234
- # Partially update a content redirect content guard
234
+ # Update a content redirect content guard
235
235
  # Content guard to protect preauthenticated redirects to the content app.
236
- # @param content_redirect_content_guard_href [String] URI of Content Redirect Content Guard. e.g.: /pulp/api/v3/contentguards/container/content_redirect/1/
237
- # @param data [ContainerContentRedirectContentGuard]
236
+ # @param container_content_redirect_content_guard_href [String]
237
+ # @param patchedcontainer_content_redirect_content_guard [PatchedcontainerContentRedirectContentGuard]
238
238
  # @param [Hash] opts the optional parameters
239
- # @return [Array<(ContainerContentRedirectContentGuard, Integer, Hash)>] ContainerContentRedirectContentGuard data, response status code and response headers
240
- def partial_update_with_http_info(content_redirect_content_guard_href, data, opts = {})
239
+ # @return [Array<(ContainerContentRedirectContentGuardResponse, Integer, Hash)>] ContainerContentRedirectContentGuardResponse data, response status code and response headers
240
+ def partial_update_with_http_info(container_content_redirect_content_guard_href, patchedcontainer_content_redirect_content_guard, opts = {})
241
241
  if @api_client.config.debugging
242
242
  @api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.partial_update ...'
243
243
  end
244
- # verify the required parameter 'content_redirect_content_guard_href' is set
245
- if @api_client.config.client_side_validation && content_redirect_content_guard_href.nil?
246
- fail ArgumentError, "Missing the required parameter 'content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.partial_update"
244
+ # verify the required parameter 'container_content_redirect_content_guard_href' is set
245
+ if @api_client.config.client_side_validation && container_content_redirect_content_guard_href.nil?
246
+ fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.partial_update"
247
247
  end
248
- # verify the required parameter 'data' is set
249
- if @api_client.config.client_side_validation && data.nil?
250
- fail ArgumentError, "Missing the required parameter 'data' when calling ContentguardsContentRedirectApi.partial_update"
248
+ # verify the required parameter 'patchedcontainer_content_redirect_content_guard' is set
249
+ if @api_client.config.client_side_validation && patchedcontainer_content_redirect_content_guard.nil?
250
+ fail ArgumentError, "Missing the required parameter 'patchedcontainer_content_redirect_content_guard' when calling ContentguardsContentRedirectApi.partial_update"
251
251
  end
252
252
  # resource path
253
- local_var_path = '{content_redirect_content_guard_href}'.sub('{' + 'content_redirect_content_guard_href' + '}', CGI.escape(content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
253
+ local_var_path = '{container_content_redirect_content_guard_href}'.sub('{' + 'container_content_redirect_content_guard_href' + '}', CGI.escape(container_content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
254
254
 
255
255
  # query parameters
256
256
  query_params = opts[:query_params] || {}
@@ -260,19 +260,19 @@ module PulpContainerClient
260
260
  # HTTP header 'Accept' (if needed)
261
261
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
262
262
  # HTTP header 'Content-Type'
263
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
263
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
264
264
 
265
265
  # form parameters
266
266
  form_params = opts[:form_params] || {}
267
267
 
268
268
  # http body (model)
269
- post_body = opts[:body] || @api_client.object_to_http_body(data)
269
+ post_body = opts[:body] || @api_client.object_to_http_body(patchedcontainer_content_redirect_content_guard)
270
270
 
271
271
  # return_type
272
- return_type = opts[:return_type] || 'ContainerContentRedirectContentGuard'
272
+ return_type = opts[:return_type] || 'ContainerContentRedirectContentGuardResponse'
273
273
 
274
274
  # auth_names
275
- auth_names = opts[:auth_names] || ['Basic']
275
+ auth_names = opts[:auth_names] || ['basicAuth']
276
276
 
277
277
  new_options = opts.merge(
278
278
  :header_params => header_params,
@@ -292,33 +292,33 @@ module PulpContainerClient
292
292
 
293
293
  # Inspect a content redirect content guard
294
294
  # Content guard to protect preauthenticated redirects to the content app.
295
- # @param content_redirect_content_guard_href [String] URI of Content Redirect Content Guard. e.g.: /pulp/api/v3/contentguards/container/content_redirect/1/
295
+ # @param container_content_redirect_content_guard_href [String]
296
296
  # @param [Hash] opts the optional parameters
297
297
  # @option opts [String] :fields A list of fields to include in the response.
298
298
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
299
- # @return [ContainerContentRedirectContentGuard]
300
- def read(content_redirect_content_guard_href, opts = {})
301
- data, _status_code, _headers = read_with_http_info(content_redirect_content_guard_href, opts)
299
+ # @return [ContainerContentRedirectContentGuardResponse]
300
+ def read(container_content_redirect_content_guard_href, opts = {})
301
+ data, _status_code, _headers = read_with_http_info(container_content_redirect_content_guard_href, opts)
302
302
  data
303
303
  end
304
304
 
305
305
  # Inspect a content redirect content guard
306
306
  # Content guard to protect preauthenticated redirects to the content app.
307
- # @param content_redirect_content_guard_href [String] URI of Content Redirect Content Guard. e.g.: /pulp/api/v3/contentguards/container/content_redirect/1/
307
+ # @param container_content_redirect_content_guard_href [String]
308
308
  # @param [Hash] opts the optional parameters
309
309
  # @option opts [String] :fields A list of fields to include in the response.
310
310
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
311
- # @return [Array<(ContainerContentRedirectContentGuard, Integer, Hash)>] ContainerContentRedirectContentGuard data, response status code and response headers
312
- def read_with_http_info(content_redirect_content_guard_href, opts = {})
311
+ # @return [Array<(ContainerContentRedirectContentGuardResponse, Integer, Hash)>] ContainerContentRedirectContentGuardResponse data, response status code and response headers
312
+ def read_with_http_info(container_content_redirect_content_guard_href, opts = {})
313
313
  if @api_client.config.debugging
314
314
  @api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.read ...'
315
315
  end
316
- # verify the required parameter 'content_redirect_content_guard_href' is set
317
- if @api_client.config.client_side_validation && content_redirect_content_guard_href.nil?
318
- fail ArgumentError, "Missing the required parameter 'content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.read"
316
+ # verify the required parameter 'container_content_redirect_content_guard_href' is set
317
+ if @api_client.config.client_side_validation && container_content_redirect_content_guard_href.nil?
318
+ fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.read"
319
319
  end
320
320
  # resource path
321
- local_var_path = '{content_redirect_content_guard_href}'.sub('{' + 'content_redirect_content_guard_href' + '}', CGI.escape(content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
321
+ local_var_path = '{container_content_redirect_content_guard_href}'.sub('{' + 'container_content_redirect_content_guard_href' + '}', CGI.escape(container_content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
322
322
 
323
323
  # query parameters
324
324
  query_params = opts[:query_params] || {}
@@ -337,10 +337,10 @@ module PulpContainerClient
337
337
  post_body = opts[:body]
338
338
 
339
339
  # return_type
340
- return_type = opts[:return_type] || 'ContainerContentRedirectContentGuard'
340
+ return_type = opts[:return_type] || 'ContainerContentRedirectContentGuardResponse'
341
341
 
342
342
  # auth_names
343
- auth_names = opts[:auth_names] || ['Basic']
343
+ auth_names = opts[:auth_names] || ['basicAuth']
344
344
 
345
345
  new_options = opts.merge(
346
346
  :header_params => header_params,
@@ -360,35 +360,35 @@ module PulpContainerClient
360
360
 
361
361
  # Update a content redirect content guard
362
362
  # Content guard to protect preauthenticated redirects to the content app.
363
- # @param content_redirect_content_guard_href [String] URI of Content Redirect Content Guard. e.g.: /pulp/api/v3/contentguards/container/content_redirect/1/
364
- # @param data [ContainerContentRedirectContentGuard]
363
+ # @param container_content_redirect_content_guard_href [String]
364
+ # @param container_content_redirect_content_guard [ContainerContentRedirectContentGuard]
365
365
  # @param [Hash] opts the optional parameters
366
- # @return [ContainerContentRedirectContentGuard]
367
- def update(content_redirect_content_guard_href, data, opts = {})
368
- data, _status_code, _headers = update_with_http_info(content_redirect_content_guard_href, data, opts)
366
+ # @return [ContainerContentRedirectContentGuardResponse]
367
+ def update(container_content_redirect_content_guard_href, container_content_redirect_content_guard, opts = {})
368
+ data, _status_code, _headers = update_with_http_info(container_content_redirect_content_guard_href, container_content_redirect_content_guard, opts)
369
369
  data
370
370
  end
371
371
 
372
372
  # Update a content redirect content guard
373
373
  # Content guard to protect preauthenticated redirects to the content app.
374
- # @param content_redirect_content_guard_href [String] URI of Content Redirect Content Guard. e.g.: /pulp/api/v3/contentguards/container/content_redirect/1/
375
- # @param data [ContainerContentRedirectContentGuard]
374
+ # @param container_content_redirect_content_guard_href [String]
375
+ # @param container_content_redirect_content_guard [ContainerContentRedirectContentGuard]
376
376
  # @param [Hash] opts the optional parameters
377
- # @return [Array<(ContainerContentRedirectContentGuard, Integer, Hash)>] ContainerContentRedirectContentGuard data, response status code and response headers
378
- def update_with_http_info(content_redirect_content_guard_href, data, opts = {})
377
+ # @return [Array<(ContainerContentRedirectContentGuardResponse, Integer, Hash)>] ContainerContentRedirectContentGuardResponse data, response status code and response headers
378
+ def update_with_http_info(container_content_redirect_content_guard_href, container_content_redirect_content_guard, opts = {})
379
379
  if @api_client.config.debugging
380
380
  @api_client.config.logger.debug 'Calling API: ContentguardsContentRedirectApi.update ...'
381
381
  end
382
- # verify the required parameter 'content_redirect_content_guard_href' is set
383
- if @api_client.config.client_side_validation && content_redirect_content_guard_href.nil?
384
- fail ArgumentError, "Missing the required parameter 'content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.update"
382
+ # verify the required parameter 'container_content_redirect_content_guard_href' is set
383
+ if @api_client.config.client_side_validation && container_content_redirect_content_guard_href.nil?
384
+ fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard_href' when calling ContentguardsContentRedirectApi.update"
385
385
  end
386
- # verify the required parameter 'data' is set
387
- if @api_client.config.client_side_validation && data.nil?
388
- fail ArgumentError, "Missing the required parameter 'data' when calling ContentguardsContentRedirectApi.update"
386
+ # verify the required parameter 'container_content_redirect_content_guard' is set
387
+ if @api_client.config.client_side_validation && container_content_redirect_content_guard.nil?
388
+ fail ArgumentError, "Missing the required parameter 'container_content_redirect_content_guard' when calling ContentguardsContentRedirectApi.update"
389
389
  end
390
390
  # resource path
391
- local_var_path = '{content_redirect_content_guard_href}'.sub('{' + 'content_redirect_content_guard_href' + '}', CGI.escape(content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
391
+ local_var_path = '{container_content_redirect_content_guard_href}'.sub('{' + 'container_content_redirect_content_guard_href' + '}', CGI.escape(container_content_redirect_content_guard_href.to_s).gsub('%2F', '/'))
392
392
 
393
393
  # query parameters
394
394
  query_params = opts[:query_params] || {}
@@ -398,19 +398,19 @@ module PulpContainerClient
398
398
  # HTTP header 'Accept' (if needed)
399
399
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
400
400
  # HTTP header 'Content-Type'
401
- header_params['Content-Type'] = @api_client.select_header_content_type(['application/json'])
401
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
402
402
 
403
403
  # form parameters
404
404
  form_params = opts[:form_params] || {}
405
405
 
406
406
  # http body (model)
407
- post_body = opts[:body] || @api_client.object_to_http_body(data)
407
+ post_body = opts[:body] || @api_client.object_to_http_body(container_content_redirect_content_guard)
408
408
 
409
409
  # return_type
410
- return_type = opts[:return_type] || 'ContainerContentRedirectContentGuard'
410
+ return_type = opts[:return_type] || 'ContainerContentRedirectContentGuardResponse'
411
411
 
412
412
  # auth_names
413
- auth_names = opts[:auth_names] || ['Basic']
413
+ auth_names = opts[:auth_names] || ['basicAuth']
414
414
 
415
415
  new_options = opts.merge(
416
416
  :header_params => header_params,