pulp_container_client 2.3.1 → 2.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (62) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +19 -16
  3. data/docs/ContainerContainerDistribution.md +7 -7
  4. data/docs/ContainerContainerDistributionResponse.md +8 -8
  5. data/docs/ContainerContainerRemote.md +7 -1
  6. data/docs/ContainerContainerRemoteResponse.md +3 -7
  7. data/docs/ContentBlobsApi.md +12 -12
  8. data/docs/ContentManifestsApi.md +12 -12
  9. data/docs/ContentTagsApi.md +14 -14
  10. data/docs/{ContentGuardsContentRedirectApi.md → ContentguardsContentRedirectApi.md} +29 -29
  11. data/docs/DistributionsContainerApi.md +22 -22
  12. data/docs/ManifestCopy.md +1 -1
  13. data/docs/MediaTypesEnum.md +16 -0
  14. data/docs/PatchedcontainerContainerDistribution.md +7 -7
  15. data/docs/PatchedcontainerContainerRemote.md +7 -1
  16. data/docs/PulpContainerNamespacesApi.md +10 -10
  17. data/docs/RemotesContainerApi.md +24 -24
  18. data/docs/RemoveImage.md +17 -0
  19. data/docs/RepositoriesContainerApi.md +12 -12
  20. data/docs/RepositoriesContainerPushApi.md +68 -12
  21. data/docs/RepositoriesContainerVersionsApi.md +56 -56
  22. data/lib/pulp_container_client/api/content_blobs_api.rb +14 -14
  23. data/lib/pulp_container_client/api/content_manifests_api.rb +14 -14
  24. data/lib/pulp_container_client/api/content_tags_api.rb +17 -17
  25. data/lib/pulp_container_client/api/{content_guards_content_redirect_api.rb → contentguards_content_redirect_api.rb} +33 -33
  26. data/lib/pulp_container_client/api/distributions_container_api.rb +24 -24
  27. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +11 -11
  28. data/lib/pulp_container_client/api/remotes_container_api.rb +26 -26
  29. data/lib/pulp_container_client/api/repositories_container_api.rb +13 -13
  30. data/lib/pulp_container_client/api/repositories_container_push_api.rb +83 -13
  31. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +100 -60
  32. data/lib/pulp_container_client/models/container_container_distribution.rb +36 -36
  33. data/lib/pulp_container_client/models/container_container_distribution_response.rb +40 -40
  34. data/lib/pulp_container_client/models/container_container_remote.rb +36 -2
  35. data/lib/pulp_container_client/models/container_container_remote_response.rb +14 -35
  36. data/lib/pulp_container_client/models/manifest_copy.rb +1 -23
  37. data/lib/pulp_container_client/models/media_types_enum.rb +39 -0
  38. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +31 -31
  39. data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +36 -2
  40. data/lib/pulp_container_client/models/remove_image.rb +213 -0
  41. data/lib/pulp_container_client/version.rb +1 -1
  42. data/lib/pulp_container_client.rb +3 -1
  43. data/spec/api/content_blobs_api_spec.rb +6 -6
  44. data/spec/api/content_manifests_api_spec.rb +6 -6
  45. data/spec/api/content_tags_api_spec.rb +7 -7
  46. data/spec/api/{content_guards_content_redirect_api_spec.rb → contentguards_content_redirect_api_spec.rb} +11 -11
  47. data/spec/api/distributions_container_api_spec.rb +11 -11
  48. data/spec/api/pulp_container_namespaces_api_spec.rb +5 -5
  49. data/spec/api/remotes_container_api_spec.rb +12 -12
  50. data/spec/api/repositories_container_api_spec.rb +6 -6
  51. data/spec/api/repositories_container_push_api_spec.rb +19 -6
  52. data/spec/api/repositories_container_versions_api_spec.rb +28 -28
  53. data/spec/models/container_container_distribution_response_spec.rb +7 -7
  54. data/spec/models/container_container_distribution_spec.rb +6 -6
  55. data/spec/models/container_container_remote_response_spec.rb +6 -18
  56. data/spec/models/container_container_remote_spec.rb +18 -0
  57. data/spec/models/manifest_copy_spec.rb +0 -4
  58. data/spec/models/media_types_enum_spec.rb +35 -0
  59. data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
  60. data/spec/models/patchedcontainer_container_remote_spec.rb +18 -0
  61. data/spec/models/remove_image_spec.rb +41 -0
  62. metadata +53 -45
@@ -33,9 +33,15 @@ module PulpContainerClient
33
33
  # If True, TLS peer validation must be performed.
34
34
  attr_accessor :tls_validation
35
35
 
36
- # The proxy URL. Format: scheme://user:password@host:port
36
+ # The proxy URL. Format: scheme://host:port
37
37
  attr_accessor :proxy_url
38
38
 
39
+ # The username to authenticte to the proxy.
40
+ attr_accessor :proxy_username
41
+
42
+ # The password to authenticte to the proxy.
43
+ attr_accessor :proxy_password
44
+
39
45
  # The username to be used for authentication when syncing.
40
46
  attr_accessor :username
41
47
 
@@ -62,6 +68,9 @@ module PulpContainerClient
62
68
  # aiohttp.ClientTimeout.sock_read (q.v.) for download-connections.
63
69
  attr_accessor :sock_read_timeout
64
70
 
71
+ # Headers for aiohttp.Clientsession
72
+ attr_accessor :headers
73
+
65
74
  # Limits total download rate in requests per second
66
75
  attr_accessor :rate_limit
67
76
 
@@ -84,6 +93,8 @@ module PulpContainerClient
84
93
  :'client_key' => :'client_key',
85
94
  :'tls_validation' => :'tls_validation',
86
95
  :'proxy_url' => :'proxy_url',
96
+ :'proxy_username' => :'proxy_username',
97
+ :'proxy_password' => :'proxy_password',
87
98
  :'username' => :'username',
88
99
  :'password' => :'password',
89
100
  :'pulp_labels' => :'pulp_labels',
@@ -93,6 +104,7 @@ module PulpContainerClient
93
104
  :'connect_timeout' => :'connect_timeout',
94
105
  :'sock_connect_timeout' => :'sock_connect_timeout',
95
106
  :'sock_read_timeout' => :'sock_read_timeout',
107
+ :'headers' => :'headers',
96
108
  :'rate_limit' => :'rate_limit',
97
109
  :'upstream_name' => :'upstream_name',
98
110
  :'include_tags' => :'include_tags',
@@ -110,6 +122,8 @@ module PulpContainerClient
110
122
  :'client_key' => :'String',
111
123
  :'tls_validation' => :'Boolean',
112
124
  :'proxy_url' => :'String',
125
+ :'proxy_username' => :'String',
126
+ :'proxy_password' => :'String',
113
127
  :'username' => :'String',
114
128
  :'password' => :'String',
115
129
  :'pulp_labels' => :'Object',
@@ -119,6 +133,7 @@ module PulpContainerClient
119
133
  :'connect_timeout' => :'Float',
120
134
  :'sock_connect_timeout' => :'Float',
121
135
  :'sock_read_timeout' => :'Float',
136
+ :'headers' => :'Array<Object>',
122
137
  :'rate_limit' => :'Integer',
123
138
  :'upstream_name' => :'String',
124
139
  :'include_tags' => :'Array<String>',
@@ -133,6 +148,8 @@ module PulpContainerClient
133
148
  :'client_cert',
134
149
  :'client_key',
135
150
  :'proxy_url',
151
+ :'proxy_username',
152
+ :'proxy_password',
136
153
  :'username',
137
154
  :'password',
138
155
  :'total_timeout',
@@ -188,6 +205,14 @@ module PulpContainerClient
188
205
  self.proxy_url = attributes[:'proxy_url']
189
206
  end
190
207
 
208
+ if attributes.key?(:'proxy_username')
209
+ self.proxy_username = attributes[:'proxy_username']
210
+ end
211
+
212
+ if attributes.key?(:'proxy_password')
213
+ self.proxy_password = attributes[:'proxy_password']
214
+ end
215
+
191
216
  if attributes.key?(:'username')
192
217
  self.username = attributes[:'username']
193
218
  end
@@ -224,6 +249,12 @@ module PulpContainerClient
224
249
  self.sock_read_timeout = attributes[:'sock_read_timeout']
225
250
  end
226
251
 
252
+ if attributes.key?(:'headers')
253
+ if (value = attributes[:'headers']).is_a?(Array)
254
+ self.headers = value
255
+ end
256
+ end
257
+
227
258
  if attributes.key?(:'rate_limit')
228
259
  self.rate_limit = attributes[:'rate_limit']
229
260
  end
@@ -345,6 +376,8 @@ module PulpContainerClient
345
376
  client_key == o.client_key &&
346
377
  tls_validation == o.tls_validation &&
347
378
  proxy_url == o.proxy_url &&
379
+ proxy_username == o.proxy_username &&
380
+ proxy_password == o.proxy_password &&
348
381
  username == o.username &&
349
382
  password == o.password &&
350
383
  pulp_labels == o.pulp_labels &&
@@ -354,6 +387,7 @@ module PulpContainerClient
354
387
  connect_timeout == o.connect_timeout &&
355
388
  sock_connect_timeout == o.sock_connect_timeout &&
356
389
  sock_read_timeout == o.sock_read_timeout &&
390
+ headers == o.headers &&
357
391
  rate_limit == o.rate_limit &&
358
392
  upstream_name == o.upstream_name &&
359
393
  include_tags == o.include_tags &&
@@ -369,7 +403,7 @@ module PulpContainerClient
369
403
  # Calculates hash code according to all attributes.
370
404
  # @return [Integer] Hash code
371
405
  def hash
372
- [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, rate_limit, upstream_name, include_tags, exclude_tags].hash
406
+ [name, url, ca_cert, client_cert, client_key, tls_validation, proxy_url, proxy_username, proxy_password, username, password, pulp_labels, download_concurrency, policy, total_timeout, connect_timeout, sock_connect_timeout, sock_read_timeout, headers, rate_limit, upstream_name, include_tags, exclude_tags].hash
373
407
  end
374
408
 
375
409
  # Builds the object from hash
@@ -0,0 +1,213 @@
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 'date'
14
+
15
+ module PulpContainerClient
16
+ # A serializer for parsing and validating data associated with the image removal.
17
+ class RemoveImage
18
+ # sha256 of the Manifest file
19
+ attr_accessor :digest
20
+
21
+ # Attribute mapping from ruby-style variable name to JSON key.
22
+ def self.attribute_map
23
+ {
24
+ :'digest' => :'digest'
25
+ }
26
+ end
27
+
28
+ # Attribute type mapping.
29
+ def self.openapi_types
30
+ {
31
+ :'digest' => :'String'
32
+ }
33
+ end
34
+
35
+ # List of attributes with nullable: true
36
+ def self.openapi_nullable
37
+ Set.new([
38
+ ])
39
+ end
40
+
41
+ # Initializes the object
42
+ # @param [Hash] attributes Model attributes in the form of hash
43
+ def initialize(attributes = {})
44
+ if (!attributes.is_a?(Hash))
45
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpContainerClient::RemoveImage` initialize method"
46
+ end
47
+
48
+ # check to see if the attribute exists and convert string to symbol for hash key
49
+ attributes = attributes.each_with_object({}) { |(k, v), h|
50
+ if (!self.class.attribute_map.key?(k.to_sym))
51
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpContainerClient::RemoveImage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
52
+ end
53
+ h[k.to_sym] = v
54
+ }
55
+
56
+ if attributes.key?(:'digest')
57
+ self.digest = attributes[:'digest']
58
+ end
59
+ end
60
+
61
+ # Show invalid properties with the reasons. Usually used together with valid?
62
+ # @return Array for valid properties with the reasons
63
+ def list_invalid_properties
64
+ invalid_properties = Array.new
65
+ if @digest.nil?
66
+ invalid_properties.push('invalid value for "digest", digest cannot be nil.')
67
+ end
68
+
69
+ invalid_properties
70
+ end
71
+
72
+ # Check to see if the all the properties in the model are valid
73
+ # @return true if the model is valid
74
+ def valid?
75
+ return false if @digest.nil?
76
+ true
77
+ end
78
+
79
+ # Checks equality by comparing each attribute.
80
+ # @param [Object] Object to be compared
81
+ def ==(o)
82
+ return true if self.equal?(o)
83
+ self.class == o.class &&
84
+ digest == o.digest
85
+ end
86
+
87
+ # @see the `==` method
88
+ # @param [Object] Object to be compared
89
+ def eql?(o)
90
+ self == o
91
+ end
92
+
93
+ # Calculates hash code according to all attributes.
94
+ # @return [Integer] Hash code
95
+ def hash
96
+ [digest].hash
97
+ end
98
+
99
+ # Builds the object from hash
100
+ # @param [Hash] attributes Model attributes in the form of hash
101
+ # @return [Object] Returns the model itself
102
+ def self.build_from_hash(attributes)
103
+ new.build_from_hash(attributes)
104
+ end
105
+
106
+ # Builds the object from hash
107
+ # @param [Hash] attributes Model attributes in the form of hash
108
+ # @return [Object] Returns the model itself
109
+ def build_from_hash(attributes)
110
+ return nil unless attributes.is_a?(Hash)
111
+ self.class.openapi_types.each_pair do |key, type|
112
+ if type =~ /\AArray<(.*)>/i
113
+ # check to ensure the input is an array given that the attribute
114
+ # is documented as an array but the input is not
115
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
116
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
117
+ end
118
+ elsif !attributes[self.class.attribute_map[key]].nil?
119
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
120
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
121
+ end
122
+
123
+ self
124
+ end
125
+
126
+ # Deserializes the data based on type
127
+ # @param string type Data type
128
+ # @param string value Value to be deserialized
129
+ # @return [Object] Deserialized data
130
+ def _deserialize(type, value)
131
+ case type.to_sym
132
+ when :DateTime
133
+ DateTime.parse(value)
134
+ when :Date
135
+ Date.parse(value)
136
+ when :String
137
+ value.to_s
138
+ when :Integer
139
+ value.to_i
140
+ when :Float
141
+ value.to_f
142
+ when :Boolean
143
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
144
+ true
145
+ else
146
+ false
147
+ end
148
+ when :Object
149
+ # generic object (usually a Hash), return directly
150
+ value
151
+ when /\AArray<(?<inner_type>.+)>\z/
152
+ inner_type = Regexp.last_match[:inner_type]
153
+ value.map { |v| _deserialize(inner_type, v) }
154
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
155
+ k_type = Regexp.last_match[:k_type]
156
+ v_type = Regexp.last_match[:v_type]
157
+ {}.tap do |hash|
158
+ value.each do |k, v|
159
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
160
+ end
161
+ end
162
+ else # model
163
+ PulpContainerClient.const_get(type).build_from_hash(value)
164
+ end
165
+ end
166
+
167
+ # Returns the string representation of the object
168
+ # @return [String] String presentation of the object
169
+ def to_s
170
+ to_hash.to_s
171
+ end
172
+
173
+ # to_body is an alias to to_hash (backward compatibility)
174
+ # @return [Hash] Returns the object in the form of hash
175
+ def to_body
176
+ to_hash
177
+ end
178
+
179
+ # Returns the object in the form of hash
180
+ # @return [Hash] Returns the object in the form of hash
181
+ def to_hash
182
+ hash = {}
183
+ self.class.attribute_map.each_pair do |attr, param|
184
+ value = self.send(attr)
185
+ if value.nil?
186
+ is_nullable = self.class.openapi_nullable.include?(attr)
187
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
188
+ end
189
+
190
+ hash[param] = _to_hash(value)
191
+ end
192
+ hash
193
+ end
194
+
195
+ # Outputs non-array value in the form of hash
196
+ # For object, use to_hash. Otherwise, just return the value
197
+ # @param [Object] value Any valid value
198
+ # @return [Hash] Returns the value in the form of hash
199
+ def _to_hash(value)
200
+ if value.is_a?(Array)
201
+ value.compact.map { |v| _to_hash(v) }
202
+ elsif value.is_a?(Hash)
203
+ {}.tap do |hash|
204
+ value.each { |k, v| hash[k] = _to_hash(v) }
205
+ end
206
+ elsif value.respond_to? :to_hash
207
+ value.to_hash
208
+ else
209
+ value
210
+ end
211
+ end
212
+ end
213
+ end
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module PulpContainerClient
14
- VERSION = '2.3.1'
14
+ VERSION = '2.4.0'
15
15
  end
@@ -35,6 +35,7 @@ require 'pulp_container_client/models/container_tag_response'
35
35
  require 'pulp_container_client/models/content_summary'
36
36
  require 'pulp_container_client/models/content_summary_response'
37
37
  require 'pulp_container_client/models/manifest_copy'
38
+ require 'pulp_container_client/models/media_types_enum'
38
39
  require 'pulp_container_client/models/oci_build_image'
39
40
  require 'pulp_container_client/models/paginated_repository_version_response_list'
40
41
  require 'pulp_container_client/models/paginatedcontainer_blob_response_list'
@@ -52,6 +53,7 @@ require 'pulp_container_client/models/patchedcontainer_container_repository'
52
53
  require 'pulp_container_client/models/patchedcontainer_content_redirect_content_guard'
53
54
  require 'pulp_container_client/models/policy_enum'
54
55
  require 'pulp_container_client/models/recursive_manage'
56
+ require 'pulp_container_client/models/remove_image'
55
57
  require 'pulp_container_client/models/repository_sync_url'
56
58
  require 'pulp_container_client/models/repository_version'
57
59
  require 'pulp_container_client/models/repository_version_response'
@@ -61,9 +63,9 @@ require 'pulp_container_client/models/un_tag_image'
61
63
 
62
64
  # APIs
63
65
  require 'pulp_container_client/api/content_blobs_api'
64
- require 'pulp_container_client/api/content_guards_content_redirect_api'
65
66
  require 'pulp_container_client/api/content_manifests_api'
66
67
  require 'pulp_container_client/api/content_tags_api'
68
+ require 'pulp_container_client/api/contentguards_content_redirect_api'
67
69
  require 'pulp_container_client/api/distributions_container_api'
68
70
  require 'pulp_container_client/api/pulp_container_namespaces_api'
69
71
  require 'pulp_container_client/api/remotes_container_api'
@@ -36,15 +36,15 @@ describe 'ContentBlobsApi' do
36
36
  # List blobs
37
37
  # ViewSet for Blobs.
38
38
  # @param [Hash] opts the optional parameters
39
- # @option opts [String] :digest digest
40
- # @option opts [String] :digest__in digest__in
39
+ # @option opts [String] :digest Filter results where digest matches value
40
+ # @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
41
41
  # @option opts [Integer] :limit Number of results to return per page.
42
- # @option opts [String] :media_type media_type
42
+ # @option opts [String] :media_type
43
43
  # @option opts [Integer] :offset The initial index from which to return the results.
44
44
  # @option opts [String] :ordering Which field to use when ordering the results.
45
- # @option opts [String] :repository_version repository_version
46
- # @option opts [String] :repository_version_added repository_version_added
47
- # @option opts [String] :repository_version_removed repository_version_removed
45
+ # @option opts [String] :repository_version Repository Version referenced by HREF
46
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
47
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
48
48
  # @option opts [String] :fields A list of fields to include in the response.
49
49
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
50
50
  # @return [PaginatedcontainerBlobResponseList]
@@ -36,15 +36,15 @@ describe 'ContentManifestsApi' do
36
36
  # List manifests
37
37
  # ViewSet for Manifest.
38
38
  # @param [Hash] opts the optional parameters
39
- # @option opts [String] :digest digest
40
- # @option opts [String] :digest__in digest__in
39
+ # @option opts [String] :digest Filter results where digest matches value
40
+ # @option opts [Array<String>] :digest__in Filter results where digest is in a comma-separated list of values
41
41
  # @option opts [Integer] :limit Number of results to return per page.
42
- # @option opts [String] :media_type media_type
42
+ # @option opts [String] :media_type
43
43
  # @option opts [Integer] :offset The initial index from which to return the results.
44
44
  # @option opts [String] :ordering Which field to use when ordering the results.
45
- # @option opts [String] :repository_version repository_version
46
- # @option opts [String] :repository_version_added repository_version_added
47
- # @option opts [String] :repository_version_removed repository_version_removed
45
+ # @option opts [String] :repository_version Repository Version referenced by HREF
46
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
47
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
48
48
  # @option opts [String] :fields A list of fields to include in the response.
49
49
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
50
50
  # @return [PaginatedcontainerManifestResponseList]
@@ -36,16 +36,16 @@ describe 'ContentTagsApi' do
36
36
  # List tags
37
37
  # ViewSet for Tag.
38
38
  # @param [Hash] opts the optional parameters
39
- # @option opts [String] :digest digest
39
+ # @option opts [Array<String>] :digest Multiple values may be separated by commas.
40
40
  # @option opts [Integer] :limit Number of results to return per page.
41
- # @option opts [String] :media_type media_type
42
- # @option opts [String] :name name
43
- # @option opts [String] :name__in name__in
41
+ # @option opts [String] :media_type
42
+ # @option opts [String] :name Filter results where name matches value
43
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
44
44
  # @option opts [Integer] :offset The initial index from which to return the results.
45
45
  # @option opts [String] :ordering Which field to use when ordering the results.
46
- # @option opts [String] :repository_version repository_version
47
- # @option opts [String] :repository_version_added repository_version_added
48
- # @option opts [String] :repository_version_removed repository_version_removed
46
+ # @option opts [String] :repository_version Repository Version referenced by HREF
47
+ # @option opts [String] :repository_version_added Repository Version referenced by HREF
48
+ # @option opts [String] :repository_version_removed Repository Version referenced by HREF
49
49
  # @option opts [String] :fields A list of fields to include in the response.
50
50
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
51
51
  # @return [PaginatedcontainerTagResponseList]
@@ -13,22 +13,22 @@ OpenAPI Generator version: 4.2.3
13
13
  require 'spec_helper'
14
14
  require 'json'
15
15
 
16
- # Unit tests for PulpContainerClient::ContentGuardsContentRedirectApi
16
+ # Unit tests for PulpContainerClient::ContentguardsContentRedirectApi
17
17
  # Automatically generated by openapi-generator (https://openapi-generator.tech)
18
18
  # Please update as you see appropriate
19
- describe 'ContentGuardsContentRedirectApi' do
19
+ describe 'ContentguardsContentRedirectApi' do
20
20
  before do
21
21
  # run before each test
22
- @api_instance = PulpContainerClient::ContentGuardsContentRedirectApi.new
22
+ @api_instance = PulpContainerClient::ContentguardsContentRedirectApi.new
23
23
  end
24
24
 
25
25
  after do
26
26
  # run after each test
27
27
  end
28
28
 
29
- describe 'test an instance of ContentGuardsContentRedirectApi' do
30
- it 'should create an instance of ContentGuardsContentRedirectApi' do
31
- expect(@api_instance).to be_instance_of(PulpContainerClient::ContentGuardsContentRedirectApi)
29
+ describe 'test an instance of ContentguardsContentRedirectApi' do
30
+ it 'should create an instance of ContentguardsContentRedirectApi' do
31
+ expect(@api_instance).to be_instance_of(PulpContainerClient::ContentguardsContentRedirectApi)
32
32
  end
33
33
  end
34
34
 
@@ -61,11 +61,11 @@ describe 'ContentGuardsContentRedirectApi' do
61
61
  # Content guard to protect preauthenticated redirects to the content app.
62
62
  # @param [Hash] opts the optional parameters
63
63
  # @option opts [Integer] :limit Number of results to return per page.
64
- # @option opts [String] :name name
65
- # @option opts [String] :name__contains name__contains
66
- # @option opts [String] :name__icontains name__icontains
67
- # @option opts [String] :name__in name__in
68
- # @option opts [String] :name__startswith name__startswith
64
+ # @option opts [String] :name
65
+ # @option opts [String] :name__contains Filter results where name contains value
66
+ # @option opts [String] :name__icontains Filter results where name contains value
67
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
68
+ # @option opts [String] :name__startswith Filter results where name starts with value
69
69
  # @option opts [Integer] :offset The initial index from which to return the results.
70
70
  # @option opts [String] :ordering Which field to use when ordering the results.
71
71
  # @option opts [String] :fields A list of fields to include in the response.
@@ -60,20 +60,20 @@ describe 'DistributionsContainerApi' do
60
60
  # List container distributions
61
61
  # The Container Distribution will serve the latest version of a Repository if &#x60;&#x60;repository&#x60;&#x60; is specified. The Container Distribution will serve a specific repository version if &#x60;&#x60;repository_version&#x60;&#x60;. Note that **either** &#x60;&#x60;repository&#x60;&#x60; or &#x60;&#x60;repository_version&#x60;&#x60; can be set on a Container Distribution, but not both.
62
62
  # @param [Hash] opts the optional parameters
63
- # @option opts [String] :base_path base_path
64
- # @option opts [String] :base_path__contains base_path__contains
65
- # @option opts [String] :base_path__icontains base_path__icontains
66
- # @option opts [String] :base_path__in base_path__in
63
+ # @option opts [String] :base_path
64
+ # @option opts [String] :base_path__contains Filter results where base_path contains value
65
+ # @option opts [String] :base_path__icontains Filter results where base_path contains value
66
+ # @option opts [Array<String>] :base_path__in Filter results where base_path is in a comma-separated list of values
67
67
  # @option opts [Integer] :limit Number of results to return per page.
68
- # @option opts [String] :name name
69
- # @option opts [String] :name__contains name__contains
70
- # @option opts [String] :name__icontains name__icontains
71
- # @option opts [String] :name__in name__in
72
- # @option opts [String] :name__startswith name__startswith
73
- # @option opts [String] :namespace__name namespace__name
68
+ # @option opts [String] :name
69
+ # @option opts [String] :name__contains Filter results where name contains value
70
+ # @option opts [String] :name__icontains Filter results where name contains value
71
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
72
+ # @option opts [String] :name__startswith Filter results where name starts with value
73
+ # @option opts [String] :namespace__name
74
74
  # @option opts [Integer] :offset The initial index from which to return the results.
75
75
  # @option opts [String] :ordering Which field to use when ordering the results.
76
- # @option opts [String] :pulp_label_select pulp_label_select
76
+ # @option opts [String] :pulp_label_select Filter labels by search string
77
77
  # @option opts [String] :fields A list of fields to include in the response.
78
78
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
79
79
  # @return [PaginatedcontainerContainerDistributionResponseList]
@@ -61,11 +61,11 @@ describe 'PulpContainerNamespacesApi' do
61
61
  # ViewSet for ContainerNamespaces.
62
62
  # @param [Hash] opts the optional parameters
63
63
  # @option opts [Integer] :limit Number of results to return per page.
64
- # @option opts [String] :name name
65
- # @option opts [String] :name__contains name__contains
66
- # @option opts [String] :name__icontains name__icontains
67
- # @option opts [String] :name__in name__in
68
- # @option opts [String] :name__startswith name__startswith
64
+ # @option opts [String] :name Filter results where name matches value
65
+ # @option opts [String] :name__contains Filter results where name contains value
66
+ # @option opts [String] :name__icontains Filter results where name contains value
67
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
68
+ # @option opts [String] :name__startswith Filter results where name starts with value
69
69
  # @option opts [Integer] :offset The initial index from which to return the results.
70
70
  # @option opts [String] :ordering Which field to use when ordering the results.
71
71
  # @option opts [String] :fields A list of fields to include in the response.
@@ -61,20 +61,20 @@ describe 'RemotesContainerApi' do
61
61
  # Container remotes represent an external repository that implements the Container Registry API. Container remotes support deferred downloading by configuring the &#x60;&#x60;policy&#x60;&#x60; field. &#x60;&#x60;on_demand&#x60;&#x60; and &#x60;&#x60;streamed&#x60;&#x60; policies can provide significant disk space savings.
62
62
  # @param [Hash] opts the optional parameters
63
63
  # @option opts [Integer] :limit Number of results to return per page.
64
- # @option opts [String] :name name
65
- # @option opts [String] :name__contains name__contains
66
- # @option opts [String] :name__icontains name__icontains
67
- # @option opts [String] :name__in name__in
68
- # @option opts [String] :name__startswith name__startswith
64
+ # @option opts [String] :name
65
+ # @option opts [String] :name__contains Filter results where name contains value
66
+ # @option opts [String] :name__icontains Filter results where name contains value
67
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
68
+ # @option opts [String] :name__startswith Filter results where name starts with value
69
69
  # @option opts [Integer] :offset The initial index from which to return the results.
70
70
  # @option opts [String] :ordering Which field to use when ordering the results.
71
- # @option opts [String] :pulp_label_select pulp_label_select
72
- # @option opts [String] :pulp_last_updated pulp_last_updated
73
- # @option opts [String] :pulp_last_updated__gt pulp_last_updated__gt
74
- # @option opts [String] :pulp_last_updated__gte pulp_last_updated__gte
75
- # @option opts [String] :pulp_last_updated__lt pulp_last_updated__lt
76
- # @option opts [String] :pulp_last_updated__lte pulp_last_updated__lte
77
- # @option opts [String] :pulp_last_updated__range pulp_last_updated__range
71
+ # @option opts [String] :pulp_label_select Filter labels by search string
72
+ # @option opts [DateTime] :pulp_last_updated ISO 8601 formatted dates are supported
73
+ # @option opts [DateTime] :pulp_last_updated__gt Filter results where pulp_last_updated is greater than value
74
+ # @option opts [DateTime] :pulp_last_updated__gte Filter results where pulp_last_updated is greater than or equal to value
75
+ # @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
76
+ # @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
77
+ # @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
78
78
  # @option opts [String] :fields A list of fields to include in the response.
79
79
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
80
80
  # @return [PaginatedcontainerContainerRemoteResponseList]
@@ -116,14 +116,14 @@ describe 'RepositoriesContainerApi' do
116
116
  # ViewSet for container repo.
117
117
  # @param [Hash] opts the optional parameters
118
118
  # @option opts [Integer] :limit Number of results to return per page.
119
- # @option opts [String] :name name
120
- # @option opts [String] :name__contains name__contains
121
- # @option opts [String] :name__icontains name__icontains
122
- # @option opts [String] :name__in name__in
123
- # @option opts [String] :name__startswith name__startswith
119
+ # @option opts [String] :name
120
+ # @option opts [String] :name__contains Filter results where name contains value
121
+ # @option opts [String] :name__icontains Filter results where name contains value
122
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
123
+ # @option opts [String] :name__startswith Filter results where name starts with value
124
124
  # @option opts [Integer] :offset The initial index from which to return the results.
125
125
  # @option opts [String] :ordering Which field to use when ordering the results.
126
- # @option opts [String] :pulp_label_select pulp_label_select
126
+ # @option opts [String] :pulp_label_select Filter labels by search string
127
127
  # @option opts [String] :fields A list of fields to include in the response.
128
128
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
129
129
  # @return [PaginatedcontainerContainerRepositoryResponseList]
@@ -37,14 +37,14 @@ describe 'RepositoriesContainerPushApi' do
37
37
  # 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.
38
38
  # @param [Hash] opts the optional parameters
39
39
  # @option opts [Integer] :limit Number of results to return per page.
40
- # @option opts [String] :name name
41
- # @option opts [String] :name__contains name__contains
42
- # @option opts [String] :name__icontains name__icontains
43
- # @option opts [String] :name__in name__in
44
- # @option opts [String] :name__startswith name__startswith
40
+ # @option opts [String] :name
41
+ # @option opts [String] :name__contains Filter results where name contains value
42
+ # @option opts [String] :name__icontains Filter results where name contains value
43
+ # @option opts [Array<String>] :name__in Filter results where name is in a comma-separated list of values
44
+ # @option opts [String] :name__startswith Filter results where name starts with value
45
45
  # @option opts [Integer] :offset The initial index from which to return the results.
46
46
  # @option opts [String] :ordering Which field to use when ordering the results.
47
- # @option opts [String] :pulp_label_select pulp_label_select
47
+ # @option opts [String] :pulp_label_select Filter labels by search string
48
48
  # @option opts [String] :fields A list of fields to include in the response.
49
49
  # @option opts [String] :exclude_fields A list of fields to exclude from the response.
50
50
  # @return [PaginatedcontainerContainerPushRepositoryResponseList]
@@ -68,6 +68,19 @@ describe 'RepositoriesContainerPushApi' do
68
68
  end
69
69
  end
70
70
 
71
+ # unit tests for remove_image
72
+ # Delete an image from a repository
73
+ # Trigger an asynchronous task to remove a manifest and all its associated data by a digest
74
+ # @param container_container_push_repository_href
75
+ # @param remove_image
76
+ # @param [Hash] opts the optional parameters
77
+ # @return [AsyncOperationResponse]
78
+ describe 'remove_image test' do
79
+ it 'should work' do
80
+ # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
81
+ end
82
+ end
83
+
71
84
  # unit tests for tag
72
85
  # Create a Tag
73
86
  # Trigger an asynchronous task to tag an image in the repository