pulp_container_client 2.2.2 → 2.3.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 (59) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +12 -13
  3. data/docs/ContainerContainerDistribution.md +11 -5
  4. data/docs/ContainerContainerDistributionResponse.md +16 -10
  5. data/docs/ContainerContainerPushRepositoryResponse.md +2 -0
  6. data/docs/ContainerContainerRemote.md +4 -0
  7. data/docs/ContainerContainerRemoteResponse.md +4 -0
  8. data/docs/ContainerContainerRepository.md +3 -1
  9. data/docs/ContainerContainerRepositoryResponse.md +2 -0
  10. data/docs/{ContentguardsContentRedirectApi.md → ContentGuardsContentRedirectApi.md} +25 -19
  11. data/docs/DistributionsContainerApi.md +8 -0
  12. data/docs/PatchedcontainerContainerDistribution.md +11 -5
  13. data/docs/PatchedcontainerContainerRemote.md +4 -0
  14. data/docs/PatchedcontainerContainerRepository.md +3 -1
  15. data/docs/PulpContainerNamespacesApi.md +16 -5
  16. data/docs/RemotesContainerApi.md +8 -0
  17. data/docs/RepositoriesContainerApi.md +8 -0
  18. data/docs/RepositoriesContainerPushApi.md +73 -61
  19. data/docs/RepositoriesContainerVersionsApi.md +2 -2
  20. data/lib/pulp_container_client/api/{contentguards_content_redirect_api.rb → content_guards_content_redirect_api.rb} +31 -22
  21. data/lib/pulp_container_client/api/distributions_container_api.rb +12 -0
  22. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +24 -7
  23. data/lib/pulp_container_client/api/remotes_container_api.rb +12 -0
  24. data/lib/pulp_container_client/api/repositories_container_api.rb +12 -0
  25. data/lib/pulp_container_client/api/repositories_container_push_api.rb +120 -94
  26. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +4 -4
  27. data/lib/pulp_container_client/models/container_container_distribution.rb +51 -21
  28. data/lib/pulp_container_client/models/container_container_distribution_response.rb +77 -47
  29. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +10 -1
  30. data/lib/pulp_container_client/models/container_container_remote.rb +21 -1
  31. data/lib/pulp_container_client/models/container_container_remote_response.rb +21 -1
  32. data/lib/pulp_container_client/models/container_container_repository.rb +10 -1
  33. data/lib/pulp_container_client/models/container_container_repository_response.rb +10 -1
  34. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +46 -16
  35. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +21 -1
  36. data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +10 -1
  37. data/lib/pulp_container_client/version.rb +1 -1
  38. data/lib/pulp_container_client.rb +1 -2
  39. data/spec/api/{contentguards_content_redirect_api_spec.rb → content_guards_content_redirect_api_spec.rb} +9 -6
  40. data/spec/api/distributions_container_api_spec.rb +4 -0
  41. data/spec/api/pulp_container_namespaces_api_spec.rb +7 -2
  42. data/spec/api/remotes_container_api_spec.rb +4 -0
  43. data/spec/api/repositories_container_api_spec.rb +4 -0
  44. data/spec/api/repositories_container_push_api_spec.rb +32 -26
  45. data/spec/api/repositories_container_versions_api_spec.rb +2 -2
  46. data/spec/models/container_container_distribution_response_spec.rb +25 -7
  47. data/spec/models/container_container_distribution_spec.rb +20 -2
  48. data/spec/models/container_container_push_repository_response_spec.rb +6 -0
  49. data/spec/models/container_container_remote_response_spec.rb +12 -0
  50. data/spec/models/container_container_remote_spec.rb +12 -0
  51. data/spec/models/container_container_repository_response_spec.rb +6 -0
  52. data/spec/models/container_container_repository_spec.rb +6 -0
  53. data/spec/models/patchedcontainer_container_distribution_spec.rb +20 -2
  54. data/spec/models/patchedcontainer_container_remote_spec.rb +12 -0
  55. data/spec/models/patchedcontainer_container_repository_spec.rb +6 -0
  56. metadata +43 -47
  57. data/docs/ContainerContainerPushRepository.md +0 -21
  58. data/lib/pulp_container_client/models/container_container_push_repository.rb +0 -234
  59. data/spec/models/container_container_push_repository_spec.rb +0 -53
@@ -84,20 +84,20 @@ module PulpContainerClient
84
84
  end
85
85
 
86
86
  # Delete a container namespace
87
- # ViewSet for ContainerNamespaces.
87
+ # Trigger an asynchronous delete task
88
88
  # @param container_container_namespace_href [String]
89
89
  # @param [Hash] opts the optional parameters
90
- # @return [nil]
90
+ # @return [AsyncOperationResponse]
91
91
  def delete(container_container_namespace_href, opts = {})
92
- delete_with_http_info(container_container_namespace_href, opts)
93
- nil
92
+ data, _status_code, _headers = delete_with_http_info(container_container_namespace_href, opts)
93
+ data
94
94
  end
95
95
 
96
96
  # Delete a container namespace
97
- # ViewSet for ContainerNamespaces.
97
+ # Trigger an asynchronous delete task
98
98
  # @param container_container_namespace_href [String]
99
99
  # @param [Hash] opts the optional parameters
100
- # @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
100
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
101
101
  def delete_with_http_info(container_container_namespace_href, opts = {})
102
102
  if @api_client.config.debugging
103
103
  @api_client.config.logger.debug 'Calling API: PulpContainerNamespacesApi.delete ...'
@@ -114,6 +114,8 @@ module PulpContainerClient
114
114
 
115
115
  # header parameters
116
116
  header_params = opts[:header_params] || {}
117
+ # HTTP header 'Accept' (if needed)
118
+ header_params['Accept'] = @api_client.select_header_accept(['application/json'])
117
119
 
118
120
  # form parameters
119
121
  form_params = opts[:form_params] || {}
@@ -122,7 +124,7 @@ module PulpContainerClient
122
124
  post_body = opts[:body]
123
125
 
124
126
  # return_type
125
- return_type = opts[:return_type]
127
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
126
128
 
127
129
  # auth_names
128
130
  auth_names = opts[:auth_names] || ['basicAuth']
@@ -147,6 +149,11 @@ module PulpContainerClient
147
149
  # ViewSet for ContainerNamespaces.
148
150
  # @param [Hash] opts the optional parameters
149
151
  # @option opts [Integer] :limit Number of results to return per page.
152
+ # @option opts [String] :name name
153
+ # @option opts [String] :name__contains name__contains
154
+ # @option opts [String] :name__icontains name__icontains
155
+ # @option opts [String] :name__in name__in
156
+ # @option opts [String] :name__startswith name__startswith
150
157
  # @option opts [Integer] :offset The initial index from which to return the results.
151
158
  # @option opts [String] :ordering Which field to use when ordering the results.
152
159
  # @option opts [String] :fields A list of fields to include in the response.
@@ -161,6 +168,11 @@ module PulpContainerClient
161
168
  # ViewSet for ContainerNamespaces.
162
169
  # @param [Hash] opts the optional parameters
163
170
  # @option opts [Integer] :limit Number of results to return per page.
171
+ # @option opts [String] :name name
172
+ # @option opts [String] :name__contains name__contains
173
+ # @option opts [String] :name__icontains name__icontains
174
+ # @option opts [String] :name__in name__in
175
+ # @option opts [String] :name__startswith name__startswith
164
176
  # @option opts [Integer] :offset The initial index from which to return the results.
165
177
  # @option opts [String] :ordering Which field to use when ordering the results.
166
178
  # @option opts [String] :fields A list of fields to include in the response.
@@ -176,6 +188,11 @@ module PulpContainerClient
176
188
  # query parameters
177
189
  query_params = opts[:query_params] || {}
178
190
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
191
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
192
+ query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
193
+ query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
194
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
195
+ query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
179
196
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
180
197
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
181
198
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
@@ -150,9 +150,13 @@ module PulpContainerClient
150
150
  # @param [Hash] opts the optional parameters
151
151
  # @option opts [Integer] :limit Number of results to return per page.
152
152
  # @option opts [String] :name name
153
+ # @option opts [String] :name__contains name__contains
154
+ # @option opts [String] :name__icontains name__icontains
153
155
  # @option opts [String] :name__in name__in
156
+ # @option opts [String] :name__startswith name__startswith
154
157
  # @option opts [Integer] :offset The initial index from which to return the results.
155
158
  # @option opts [String] :ordering Which field to use when ordering the results.
159
+ # @option opts [String] :pulp_label_select pulp_label_select
156
160
  # @option opts [String] :pulp_last_updated pulp_last_updated
157
161
  # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
158
162
  # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
@@ -172,9 +176,13 @@ module PulpContainerClient
172
176
  # @param [Hash] opts the optional parameters
173
177
  # @option opts [Integer] :limit Number of results to return per page.
174
178
  # @option opts [String] :name name
179
+ # @option opts [String] :name__contains name__contains
180
+ # @option opts [String] :name__icontains name__icontains
175
181
  # @option opts [String] :name__in name__in
182
+ # @option opts [String] :name__startswith name__startswith
176
183
  # @option opts [Integer] :offset The initial index from which to return the results.
177
184
  # @option opts [String] :ordering Which field to use when ordering the results.
185
+ # @option opts [String] :pulp_label_select pulp_label_select
178
186
  # @option opts [String] :pulp_last_updated pulp_last_updated
179
187
  # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
180
188
  # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
@@ -195,9 +203,13 @@ module PulpContainerClient
195
203
  query_params = opts[:query_params] || {}
196
204
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
197
205
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
206
+ query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
207
+ query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
198
208
  query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
209
+ query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
199
210
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
200
211
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
212
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
201
213
  query_params[:'pulp_last_updated'] = opts[:'pulp_last_updated'] if !opts[:'pulp_last_updated'].nil?
202
214
  query_params[:'pulp_last_updated__gt'] = opts[:'pulp_last_updated__gt'] if !opts[:'pulp_last_updated__gt'].nil?
203
215
  query_params[:'pulp_last_updated__gte'] = opts[:'pulp_last_updated__gte'] if !opts[:'pulp_last_updated__gte'].nil?
@@ -436,9 +436,13 @@ module PulpContainerClient
436
436
  # @param [Hash] opts the optional parameters
437
437
  # @option opts [Integer] :limit Number of results to return per page.
438
438
  # @option opts [String] :name name
439
+ # @option opts [String] :name__contains name__contains
440
+ # @option opts [String] :name__icontains name__icontains
439
441
  # @option opts [String] :name__in name__in
442
+ # @option opts [String] :name__startswith name__startswith
440
443
  # @option opts [Integer] :offset The initial index from which to return the results.
441
444
  # @option opts [String] :ordering Which field to use when ordering the results.
445
+ # @option opts [String] :pulp_label_select pulp_label_select
442
446
  # @option opts [String] :fields A list of fields to include in the response.
443
447
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
444
448
  # @return [PaginatedcontainerContainerRepositoryResponseList]
@@ -452,9 +456,13 @@ module PulpContainerClient
452
456
  # @param [Hash] opts the optional parameters
453
457
  # @option opts [Integer] :limit Number of results to return per page.
454
458
  # @option opts [String] :name name
459
+ # @option opts [String] :name__contains name__contains
460
+ # @option opts [String] :name__icontains name__icontains
455
461
  # @option opts [String] :name__in name__in
462
+ # @option opts [String] :name__startswith name__startswith
456
463
  # @option opts [Integer] :offset The initial index from which to return the results.
457
464
  # @option opts [String] :ordering Which field to use when ordering the results.
465
+ # @option opts [String] :pulp_label_select pulp_label_select
458
466
  # @option opts [String] :fields A list of fields to include in the response.
459
467
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
460
468
  # @return [Array<(PaginatedcontainerContainerRepositoryResponseList, Integer, Hash)>] PaginatedcontainerContainerRepositoryResponseList data, response status code and response headers
@@ -469,9 +477,13 @@ module PulpContainerClient
469
477
  query_params = opts[:query_params] || {}
470
478
  query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
471
479
  query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
480
+ query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
481
+ query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
472
482
  query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
483
+ query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
473
484
  query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
474
485
  query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
486
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
475
487
  query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
476
488
  query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
477
489
 
@@ -19,50 +19,75 @@ module PulpContainerClient
19
19
  def initialize(api_client = ApiClient.default)
20
20
  @api_client = api_client
21
21
  end
22
- # Create a container push repository
23
- # ViewSet for a container push repository.
24
- # @param container_container_push_repository [ContainerContainerPushRepository]
22
+ # List container push repositorys
23
+ # ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal.
25
24
  # @param [Hash] opts the optional parameters
26
- # @return [ContainerContainerPushRepositoryResponse]
27
- def create(container_container_push_repository, opts = {})
28
- data, _status_code, _headers = create_with_http_info(container_container_push_repository, opts)
25
+ # @option opts [Integer] :limit Number of results to return per page.
26
+ # @option opts [String] :name name
27
+ # @option opts [String] :name__contains name__contains
28
+ # @option opts [String] :name__icontains name__icontains
29
+ # @option opts [String] :name__in name__in
30
+ # @option opts [String] :name__startswith name__startswith
31
+ # @option opts [Integer] :offset The initial index from which to return the results.
32
+ # @option opts [String] :ordering Which field to use when ordering the results.
33
+ # @option opts [String] :pulp_label_select pulp_label_select
34
+ # @option opts [String] :fields A list of fields to include in the response.
35
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
36
+ # @return [PaginatedcontainerContainerPushRepositoryResponseList]
37
+ def list(opts = {})
38
+ data, _status_code, _headers = list_with_http_info(opts)
29
39
  data
30
40
  end
31
41
 
32
- # Create a container push repository
33
- # ViewSet for a container push repository.
34
- # @param container_container_push_repository [ContainerContainerPushRepository]
42
+ # List container push repositorys
43
+ # ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal.
35
44
  # @param [Hash] opts the optional parameters
36
- # @return [Array<(ContainerContainerPushRepositoryResponse, Integer, Hash)>] ContainerContainerPushRepositoryResponse data, response status code and response headers
37
- def create_with_http_info(container_container_push_repository, opts = {})
45
+ # @option opts [Integer] :limit Number of results to return per page.
46
+ # @option opts [String] :name name
47
+ # @option opts [String] :name__contains name__contains
48
+ # @option opts [String] :name__icontains name__icontains
49
+ # @option opts [String] :name__in name__in
50
+ # @option opts [String] :name__startswith name__startswith
51
+ # @option opts [Integer] :offset The initial index from which to return the results.
52
+ # @option opts [String] :ordering Which field to use when ordering the results.
53
+ # @option opts [String] :pulp_label_select pulp_label_select
54
+ # @option opts [String] :fields A list of fields to include in the response.
55
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
56
+ # @return [Array<(PaginatedcontainerContainerPushRepositoryResponseList, Integer, Hash)>] PaginatedcontainerContainerPushRepositoryResponseList data, response status code and response headers
57
+ def list_with_http_info(opts = {})
38
58
  if @api_client.config.debugging
39
- @api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.create ...'
40
- end
41
- # verify the required parameter 'container_container_push_repository' is set
42
- if @api_client.config.client_side_validation && container_container_push_repository.nil?
43
- fail ArgumentError, "Missing the required parameter 'container_container_push_repository' when calling RepositoriesContainerPushApi.create"
59
+ @api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.list ...'
44
60
  end
45
61
  # resource path
46
62
  local_var_path = '/pulp/api/v3/repositories/container/container-push/'
47
63
 
48
64
  # query parameters
49
65
  query_params = opts[:query_params] || {}
66
+ query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
67
+ query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
68
+ query_params[:'name__contains'] = opts[:'name__contains'] if !opts[:'name__contains'].nil?
69
+ query_params[:'name__icontains'] = opts[:'name__icontains'] if !opts[:'name__icontains'].nil?
70
+ query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
71
+ query_params[:'name__startswith'] = opts[:'name__startswith'] if !opts[:'name__startswith'].nil?
72
+ query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
73
+ query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
74
+ query_params[:'pulp_label_select'] = opts[:'pulp_label_select'] if !opts[:'pulp_label_select'].nil?
75
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
76
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
50
77
 
51
78
  # header parameters
52
79
  header_params = opts[:header_params] || {}
53
80
  # HTTP header 'Accept' (if needed)
54
81
  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
82
 
58
83
  # form parameters
59
84
  form_params = opts[:form_params] || {}
60
85
 
61
86
  # http body (model)
62
- post_body = opts[:body] || @api_client.object_to_http_body(container_container_push_repository)
87
+ post_body = opts[:body]
63
88
 
64
89
  # return_type
65
- return_type = opts[:return_type] || 'ContainerContainerPushRepositoryResponse'
90
+ return_type = opts[:return_type] || 'PaginatedcontainerContainerPushRepositoryResponseList'
66
91
 
67
92
  # auth_names
68
93
  auth_names = opts[:auth_names] || ['basicAuth']
@@ -76,41 +101,47 @@ module PulpContainerClient
76
101
  :return_type => return_type
77
102
  )
78
103
 
79
- data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
104
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
80
105
  if @api_client.config.debugging
81
- @api_client.config.logger.debug "API called: RepositoriesContainerPushApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
106
+ @api_client.config.logger.debug "API called: RepositoriesContainerPushApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
82
107
  end
83
108
  return data, status_code, headers
84
109
  end
85
110
 
86
- # Delete a container push repository
87
- # Trigger an asynchronous delete task
111
+ # Inspect a container push repository
112
+ # ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal.
88
113
  # @param container_container_push_repository_href [String]
89
114
  # @param [Hash] opts the optional parameters
90
- # @return [AsyncOperationResponse]
91
- def delete(container_container_push_repository_href, opts = {})
92
- data, _status_code, _headers = delete_with_http_info(container_container_push_repository_href, opts)
115
+ # @option opts [String] :fields A list of fields to include in the response.
116
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
117
+ # @return [ContainerContainerPushRepositoryResponse]
118
+ def read(container_container_push_repository_href, opts = {})
119
+ data, _status_code, _headers = read_with_http_info(container_container_push_repository_href, opts)
93
120
  data
94
121
  end
95
122
 
96
- # Delete a container push repository
97
- # Trigger an asynchronous delete task
123
+ # Inspect a container push repository
124
+ # ViewSet for a container push repository. POST and DELETE are disallowed because a push repository is tightly coupled with a ContainerDistribution which handles it automatically. Created - during push operation, removed - with ContainerDistribution removal.
98
125
  # @param container_container_push_repository_href [String]
99
126
  # @param [Hash] opts the optional parameters
100
- # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
101
- def delete_with_http_info(container_container_push_repository_href, opts = {})
127
+ # @option opts [String] :fields A list of fields to include in the response.
128
+ # @option opts [String] :exclude_fields A list of fields to exclude from the response.
129
+ # @return [Array<(ContainerContainerPushRepositoryResponse, Integer, Hash)>] ContainerContainerPushRepositoryResponse data, response status code and response headers
130
+ def read_with_http_info(container_container_push_repository_href, opts = {})
102
131
  if @api_client.config.debugging
103
- @api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.delete ...'
132
+ @api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.read ...'
104
133
  end
105
134
  # verify the required parameter 'container_container_push_repository_href' is set
106
135
  if @api_client.config.client_side_validation && container_container_push_repository_href.nil?
107
- fail ArgumentError, "Missing the required parameter 'container_container_push_repository_href' when calling RepositoriesContainerPushApi.delete"
136
+ fail ArgumentError, "Missing the required parameter 'container_container_push_repository_href' when calling RepositoriesContainerPushApi.read"
108
137
  end
109
138
  # resource path
110
139
  local_var_path = '{container_container_push_repository_href}'.sub('{' + 'container_container_push_repository_href' + '}', CGI.escape(container_container_push_repository_href.to_s).gsub('%2F', '/'))
111
140
 
112
141
  # query parameters
113
142
  query_params = opts[:query_params] || {}
143
+ query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
144
+ query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
114
145
 
115
146
  # header parameters
116
147
  header_params = opts[:header_params] || {}
@@ -124,7 +155,7 @@ module PulpContainerClient
124
155
  post_body = opts[:body]
125
156
 
126
157
  # return_type
127
- return_type = opts[:return_type] || 'AsyncOperationResponse'
158
+ return_type = opts[:return_type] || 'ContainerContainerPushRepositoryResponse'
128
159
 
129
160
  # auth_names
130
161
  auth_names = opts[:auth_names] || ['basicAuth']
@@ -138,70 +169,63 @@ module PulpContainerClient
138
169
  :return_type => return_type
139
170
  )
140
171
 
141
- data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
172
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
142
173
  if @api_client.config.debugging
143
- @api_client.config.logger.debug "API called: RepositoriesContainerPushApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
174
+ @api_client.config.logger.debug "API called: RepositoriesContainerPushApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
144
175
  end
145
176
  return data, status_code, headers
146
177
  end
147
178
 
148
- # List container push repositorys
149
- # ViewSet for a container push repository.
179
+ # Create a Tag
180
+ # Trigger an asynchronous task to tag an image in the repository
181
+ # @param container_container_push_repository_href [String]
182
+ # @param tag_image [TagImage]
150
183
  # @param [Hash] opts the optional parameters
151
- # @option opts [Integer] :limit Number of results to return per page.
152
- # @option opts [String] :name name
153
- # @option opts [String] :name__in name__in
154
- # @option opts [Integer] :offset The initial index from which to return the results.
155
- # @option opts [String] :ordering Which field to use when ordering the results.
156
- # @option opts [String] :fields A list of fields to include in the response.
157
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
158
- # @return [PaginatedcontainerContainerPushRepositoryResponseList]
159
- def list(opts = {})
160
- data, _status_code, _headers = list_with_http_info(opts)
184
+ # @return [AsyncOperationResponse]
185
+ def tag(container_container_push_repository_href, tag_image, opts = {})
186
+ data, _status_code, _headers = tag_with_http_info(container_container_push_repository_href, tag_image, opts)
161
187
  data
162
188
  end
163
189
 
164
- # List container push repositorys
165
- # ViewSet for a container push repository.
190
+ # Create a Tag
191
+ # Trigger an asynchronous task to tag an image in the repository
192
+ # @param container_container_push_repository_href [String]
193
+ # @param tag_image [TagImage]
166
194
  # @param [Hash] opts the optional parameters
167
- # @option opts [Integer] :limit Number of results to return per page.
168
- # @option opts [String] :name name
169
- # @option opts [String] :name__in name__in
170
- # @option opts [Integer] :offset The initial index from which to return the results.
171
- # @option opts [String] :ordering Which field to use when ordering the results.
172
- # @option opts [String] :fields A list of fields to include in the response.
173
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
174
- # @return [Array<(PaginatedcontainerContainerPushRepositoryResponseList, Integer, Hash)>] PaginatedcontainerContainerPushRepositoryResponseList data, response status code and response headers
175
- def list_with_http_info(opts = {})
195
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
196
+ def tag_with_http_info(container_container_push_repository_href, tag_image, opts = {})
176
197
  if @api_client.config.debugging
177
- @api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.list ...'
198
+ @api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.tag ...'
199
+ end
200
+ # verify the required parameter 'container_container_push_repository_href' is set
201
+ if @api_client.config.client_side_validation && container_container_push_repository_href.nil?
202
+ fail ArgumentError, "Missing the required parameter 'container_container_push_repository_href' when calling RepositoriesContainerPushApi.tag"
203
+ end
204
+ # verify the required parameter 'tag_image' is set
205
+ if @api_client.config.client_side_validation && tag_image.nil?
206
+ fail ArgumentError, "Missing the required parameter 'tag_image' when calling RepositoriesContainerPushApi.tag"
178
207
  end
179
208
  # resource path
180
- local_var_path = '/pulp/api/v3/repositories/container/container-push/'
209
+ local_var_path = '{container_container_push_repository_href}tag/'.sub('{' + 'container_container_push_repository_href' + '}', CGI.escape(container_container_push_repository_href.to_s).gsub('%2F', '/'))
181
210
 
182
211
  # query parameters
183
212
  query_params = opts[:query_params] || {}
184
- query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
185
- query_params[:'name'] = opts[:'name'] if !opts[:'name'].nil?
186
- query_params[:'name__in'] = opts[:'name__in'] if !opts[:'name__in'].nil?
187
- query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
188
- query_params[:'ordering'] = opts[:'ordering'] if !opts[:'ordering'].nil?
189
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
190
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
191
213
 
192
214
  # header parameters
193
215
  header_params = opts[:header_params] || {}
194
216
  # HTTP header 'Accept' (if needed)
195
217
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
218
+ # HTTP header 'Content-Type'
219
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
196
220
 
197
221
  # form parameters
198
222
  form_params = opts[:form_params] || {}
199
223
 
200
224
  # http body (model)
201
- post_body = opts[:body]
225
+ post_body = opts[:body] || @api_client.object_to_http_body(tag_image)
202
226
 
203
227
  # return_type
204
- return_type = opts[:return_type] || 'PaginatedcontainerContainerPushRepositoryResponseList'
228
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
205
229
 
206
230
  # auth_names
207
231
  auth_names = opts[:auth_names] || ['basicAuth']
@@ -215,61 +239,63 @@ module PulpContainerClient
215
239
  :return_type => return_type
216
240
  )
217
241
 
218
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
242
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
219
243
  if @api_client.config.debugging
220
- @api_client.config.logger.debug "API called: RepositoriesContainerPushApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
244
+ @api_client.config.logger.debug "API called: RepositoriesContainerPushApi#tag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
221
245
  end
222
246
  return data, status_code, headers
223
247
  end
224
248
 
225
- # Inspect a container push repository
226
- # ViewSet for a container push repository.
249
+ # Delete a tag
250
+ # Trigger an asynchronous task to untag an image in the repository
227
251
  # @param container_container_push_repository_href [String]
252
+ # @param un_tag_image [UnTagImage]
228
253
  # @param [Hash] opts the optional parameters
229
- # @option opts [String] :fields A list of fields to include in the response.
230
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
231
- # @return [ContainerContainerPushRepositoryResponse]
232
- def read(container_container_push_repository_href, opts = {})
233
- data, _status_code, _headers = read_with_http_info(container_container_push_repository_href, opts)
254
+ # @return [AsyncOperationResponse]
255
+ def untag(container_container_push_repository_href, un_tag_image, opts = {})
256
+ data, _status_code, _headers = untag_with_http_info(container_container_push_repository_href, un_tag_image, opts)
234
257
  data
235
258
  end
236
259
 
237
- # Inspect a container push repository
238
- # ViewSet for a container push repository.
260
+ # Delete a tag
261
+ # Trigger an asynchronous task to untag an image in the repository
239
262
  # @param container_container_push_repository_href [String]
263
+ # @param un_tag_image [UnTagImage]
240
264
  # @param [Hash] opts the optional parameters
241
- # @option opts [String] :fields A list of fields to include in the response.
242
- # @option opts [String] :exclude_fields A list of fields to exclude from the response.
243
- # @return [Array<(ContainerContainerPushRepositoryResponse, Integer, Hash)>] ContainerContainerPushRepositoryResponse data, response status code and response headers
244
- def read_with_http_info(container_container_push_repository_href, opts = {})
265
+ # @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
266
+ def untag_with_http_info(container_container_push_repository_href, un_tag_image, opts = {})
245
267
  if @api_client.config.debugging
246
- @api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.read ...'
268
+ @api_client.config.logger.debug 'Calling API: RepositoriesContainerPushApi.untag ...'
247
269
  end
248
270
  # verify the required parameter 'container_container_push_repository_href' is set
249
271
  if @api_client.config.client_side_validation && container_container_push_repository_href.nil?
250
- fail ArgumentError, "Missing the required parameter 'container_container_push_repository_href' when calling RepositoriesContainerPushApi.read"
272
+ fail ArgumentError, "Missing the required parameter 'container_container_push_repository_href' when calling RepositoriesContainerPushApi.untag"
273
+ end
274
+ # verify the required parameter 'un_tag_image' is set
275
+ if @api_client.config.client_side_validation && un_tag_image.nil?
276
+ fail ArgumentError, "Missing the required parameter 'un_tag_image' when calling RepositoriesContainerPushApi.untag"
251
277
  end
252
278
  # resource path
253
- local_var_path = '{container_container_push_repository_href}'.sub('{' + 'container_container_push_repository_href' + '}', CGI.escape(container_container_push_repository_href.to_s).gsub('%2F', '/'))
279
+ local_var_path = '{container_container_push_repository_href}untag/'.sub('{' + 'container_container_push_repository_href' + '}', CGI.escape(container_container_push_repository_href.to_s).gsub('%2F', '/'))
254
280
 
255
281
  # query parameters
256
282
  query_params = opts[:query_params] || {}
257
- query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
258
- query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
259
283
 
260
284
  # header parameters
261
285
  header_params = opts[:header_params] || {}
262
286
  # HTTP header 'Accept' (if needed)
263
287
  header_params['Accept'] = @api_client.select_header_accept(['application/json'])
288
+ # HTTP header 'Content-Type'
289
+ header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
264
290
 
265
291
  # form parameters
266
292
  form_params = opts[:form_params] || {}
267
293
 
268
294
  # http body (model)
269
- post_body = opts[:body]
295
+ post_body = opts[:body] || @api_client.object_to_http_body(un_tag_image)
270
296
 
271
297
  # return_type
272
- return_type = opts[:return_type] || 'ContainerContainerPushRepositoryResponse'
298
+ return_type = opts[:return_type] || 'AsyncOperationResponse'
273
299
 
274
300
  # auth_names
275
301
  auth_names = opts[:auth_names] || ['basicAuth']
@@ -283,9 +309,9 @@ module PulpContainerClient
283
309
  :return_type => return_type
284
310
  )
285
311
 
286
- data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
312
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
287
313
  if @api_client.config.debugging
288
- @api_client.config.logger.debug "API called: RepositoriesContainerPushApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
314
+ @api_client.config.logger.debug "API called: RepositoriesContainerPushApi#untag\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
289
315
  end
290
316
  return data, status_code, headers
291
317
  end
@@ -144,7 +144,7 @@ module PulpContainerClient
144
144
  end
145
145
 
146
146
  # List repository versions
147
- # ContainerPushRepositoryVersion represents a single container push repository version.
147
+ # ContainerPushRepositoryVersion represents a single container push repository version. Repository versions of a push repository are not allowed to be deleted. Versioning of such repositories, as well as creation/removal, happens automatically without explicit user actions. Users could make a repository not functional by accident if allowed to delete repository versions.
148
148
  # @param container_container_push_repository_href [String]
149
149
  # @param [Hash] opts the optional parameters
150
150
  # @option opts [String] :content content
@@ -173,7 +173,7 @@ module PulpContainerClient
173
173
  end
174
174
 
175
175
  # List repository versions
176
- # ContainerPushRepositoryVersion represents a single container push repository version.
176
+ # ContainerPushRepositoryVersion represents a single container push repository version. Repository versions of a push repository are not allowed to be deleted. Versioning of such repositories, as well as creation/removal, happens automatically without explicit user actions. Users could make a repository not functional by accident if allowed to delete repository versions.
177
177
  # @param container_container_push_repository_href [String]
178
178
  # @param [Hash] opts the optional parameters
179
179
  # @option opts [String] :content content
@@ -382,7 +382,7 @@ module PulpContainerClient
382
382
  end
383
383
 
384
384
  # Inspect a repository version
385
- # ContainerPushRepositoryVersion represents a single container push repository version.
385
+ # ContainerPushRepositoryVersion represents a single container push repository version. Repository versions of a push repository are not allowed to be deleted. Versioning of such repositories, as well as creation/removal, happens automatically without explicit user actions. Users could make a repository not functional by accident if allowed to delete repository versions.
386
386
  # @param container_container_push_repository_version_href [String]
387
387
  # @param [Hash] opts the optional parameters
388
388
  # @option opts [String] :fields A list of fields to include in the response.
@@ -394,7 +394,7 @@ module PulpContainerClient
394
394
  end
395
395
 
396
396
  # Inspect a repository version
397
- # ContainerPushRepositoryVersion represents a single container push repository version.
397
+ # ContainerPushRepositoryVersion represents a single container push repository version. Repository versions of a push repository are not allowed to be deleted. Versioning of such repositories, as well as creation/removal, happens automatically without explicit user actions. Users could make a repository not functional by accident if allowed to delete repository versions.
398
398
  # @param container_container_push_repository_version_href [String]
399
399
  # @param [Hash] opts the optional parameters
400
400
  # @option opts [String] :fields A list of fields to include in the response.