pulp_docker_client 4.0.0b5 → 4.0.0b6

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 (90) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +25 -14
  3. data/docs/ContentBlobsApi.md +24 -20
  4. data/docs/ContentManifestsApi.md +12 -6
  5. data/docs/{ContentManifestTagsApi.md → ContentTagsApi.md} +40 -34
  6. data/docs/DistributionsDockerApi.md +4 -4
  7. data/docs/DockerCopyApi.md +114 -0
  8. data/docs/DockerDistribution.md +9 -9
  9. data/docs/DockerRecursiveAddApi.md +61 -0
  10. data/docs/DockerRecursiveRemoveApi.md +61 -0
  11. data/docs/DockerTagApi.md +61 -0
  12. data/docs/DockerUntagApi.md +61 -0
  13. data/docs/InlineResponse200.md +3 -3
  14. data/docs/InlineResponse2001.md +4 -4
  15. data/docs/InlineResponse2002.md +4 -4
  16. data/docs/InlineResponse2003.md +3 -3
  17. data/docs/InlineResponse2004.md +3 -3
  18. data/docs/ManifestCopy.md +25 -0
  19. data/docs/RecursiveManage.md +19 -0
  20. data/docs/RemotesDockerApi.md +4 -4
  21. data/docs/{ManifestTag.md → Tag.md} +2 -2
  22. data/docs/TagCopy.md +23 -0
  23. data/docs/TagImage.md +21 -0
  24. data/docs/UnTagImage.md +19 -0
  25. data/git_push.sh +10 -7
  26. data/lib/pulp_docker_client/api/content_blobs_api.rb +35 -29
  27. data/lib/pulp_docker_client/api/content_manifests_api.rb +21 -12
  28. data/lib/pulp_docker_client/api/{content_manifest_tags_api.rb → content_tags_api.rb} +59 -50
  29. data/lib/pulp_docker_client/api/distributions_docker_api.rb +12 -12
  30. data/lib/pulp_docker_client/api/docker_copy_api.rb +146 -0
  31. data/lib/pulp_docker_client/api/docker_recursive_add_api.rb +84 -0
  32. data/lib/pulp_docker_client/api/docker_recursive_remove_api.rb +84 -0
  33. data/lib/pulp_docker_client/api/docker_tag_api.rb +84 -0
  34. data/lib/pulp_docker_client/api/docker_untag_api.rb +84 -0
  35. data/lib/pulp_docker_client/api/remotes_docker_api.rb +13 -13
  36. data/lib/pulp_docker_client/api_client.rb +77 -62
  37. data/lib/pulp_docker_client/api_error.rb +1 -1
  38. data/lib/pulp_docker_client/configuration.rb +13 -21
  39. data/lib/pulp_docker_client/models/async_operation_response.rb +1 -1
  40. data/lib/pulp_docker_client/models/blob.rb +1 -1
  41. data/lib/pulp_docker_client/models/docker_distribution.rb +37 -37
  42. data/lib/pulp_docker_client/models/docker_remote.rb +1 -1
  43. data/lib/pulp_docker_client/models/inline_response200.rb +11 -11
  44. data/lib/pulp_docker_client/models/inline_response2001.rb +12 -12
  45. data/lib/pulp_docker_client/models/inline_response2002.rb +12 -12
  46. data/lib/pulp_docker_client/models/inline_response2003.rb +11 -11
  47. data/lib/pulp_docker_client/models/inline_response2004.rb +11 -11
  48. data/lib/pulp_docker_client/models/manifest.rb +1 -1
  49. data/lib/pulp_docker_client/models/manifest_copy.rb +268 -0
  50. data/lib/pulp_docker_client/models/recursive_manage.rb +214 -0
  51. data/lib/pulp_docker_client/models/repository_sync_url.rb +1 -1
  52. data/lib/pulp_docker_client/models/{manifest_tag.rb → tag.rb} +4 -4
  53. data/lib/pulp_docker_client/models/tag_copy.rb +234 -0
  54. data/lib/pulp_docker_client/models/tag_image.rb +270 -0
  55. data/lib/pulp_docker_client/models/un_tag_image.rb +236 -0
  56. data/lib/pulp_docker_client/version.rb +2 -2
  57. data/lib/pulp_docker_client.rb +13 -3
  58. data/pulp_docker_client.gemspec +3 -9
  59. data/spec/api/content_blobs_api_spec.rb +12 -10
  60. data/spec/api/content_manifests_api_spec.rb +7 -4
  61. data/spec/api/{content_manifest_tags_api_spec.rb → content_tags_api_spec.rb} +22 -19
  62. data/spec/api/distributions_docker_api_spec.rb +3 -3
  63. data/spec/api/docker_copy_api_spec.rb +57 -0
  64. data/spec/api/docker_recursive_add_api_spec.rb +46 -0
  65. data/spec/api/docker_recursive_remove_api_spec.rb +46 -0
  66. data/spec/api/docker_tag_api_spec.rb +46 -0
  67. data/spec/api/docker_untag_api_spec.rb +46 -0
  68. data/spec/api/remotes_docker_api_spec.rb +3 -3
  69. data/spec/api_client_spec.rb +1 -39
  70. data/spec/configuration_spec.rb +1 -1
  71. data/spec/models/async_operation_response_spec.rb +1 -1
  72. data/spec/models/blob_spec.rb +1 -1
  73. data/spec/models/docker_distribution_spec.rb +7 -7
  74. data/spec/models/docker_remote_spec.rb +1 -1
  75. data/spec/models/inline_response2001_spec.rb +4 -4
  76. data/spec/models/inline_response2002_spec.rb +4 -4
  77. data/spec/models/inline_response2003_spec.rb +4 -4
  78. data/spec/models/inline_response2004_spec.rb +4 -4
  79. data/spec/models/inline_response200_spec.rb +4 -4
  80. data/spec/models/manifest_copy_spec.rb +69 -0
  81. data/spec/models/manifest_spec.rb +1 -1
  82. data/spec/models/recursive_manage_spec.rb +47 -0
  83. data/spec/models/repository_sync_url_spec.rb +1 -1
  84. data/spec/models/tag_copy_spec.rb +59 -0
  85. data/spec/models/tag_image_spec.rb +53 -0
  86. data/spec/models/{manifest_tag_spec.rb → tag_spec.rb} +7 -7
  87. data/spec/models/un_tag_image_spec.rb +47 -0
  88. data/spec/spec_helper.rb +1 -1
  89. metadata +54 -141
  90. data/Gemfile.lock +0 -79
@@ -0,0 +1,270 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.1.2-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpDockerClient
16
+ class TagImage
17
+ # A URI of the repository.
18
+ attr_accessor :repository
19
+
20
+ # A tag name
21
+ attr_accessor :tag
22
+
23
+ # sha256 of the Manifest file
24
+ attr_accessor :digest
25
+
26
+ # Attribute mapping from ruby-style variable name to JSON key.
27
+ def self.attribute_map
28
+ {
29
+ :'repository' => :'repository',
30
+ :'tag' => :'tag',
31
+ :'digest' => :'digest'
32
+ }
33
+ end
34
+
35
+ # Attribute type mapping.
36
+ def self.openapi_types
37
+ {
38
+ :'repository' => :'String',
39
+ :'tag' => :'String',
40
+ :'digest' => :'String'
41
+ }
42
+ end
43
+
44
+ # Initializes the object
45
+ # @param [Hash] attributes Model attributes in the form of hash
46
+ def initialize(attributes = {})
47
+ if (!attributes.is_a?(Hash))
48
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDockerClient::TagImage` initialize method"
49
+ end
50
+
51
+ # check to see if the attribute exists and convert string to symbol for hash key
52
+ attributes = attributes.each_with_object({}) { |(k, v), h|
53
+ if (!self.class.attribute_map.key?(k.to_sym))
54
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDockerClient::TagImage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
55
+ end
56
+ h[k.to_sym] = v
57
+ }
58
+
59
+ if attributes.key?(:'repository')
60
+ self.repository = attributes[:'repository']
61
+ end
62
+
63
+ if attributes.key?(:'tag')
64
+ self.tag = attributes[:'tag']
65
+ end
66
+
67
+ if attributes.key?(:'digest')
68
+ self.digest = attributes[:'digest']
69
+ end
70
+ end
71
+
72
+ # Show invalid properties with the reasons. Usually used together with valid?
73
+ # @return Array for valid properties with the reasons
74
+ def list_invalid_properties
75
+ invalid_properties = Array.new
76
+ if @repository.nil?
77
+ invalid_properties.push('invalid value for "repository", repository cannot be nil.')
78
+ end
79
+
80
+ if @tag.nil?
81
+ invalid_properties.push('invalid value for "tag", tag cannot be nil.')
82
+ end
83
+
84
+ if @tag.to_s.length < 1
85
+ invalid_properties.push('invalid value for "tag", the character length must be great than or equal to 1.')
86
+ end
87
+
88
+ if @digest.nil?
89
+ invalid_properties.push('invalid value for "digest", digest cannot be nil.')
90
+ end
91
+
92
+ if @digest.to_s.length < 1
93
+ invalid_properties.push('invalid value for "digest", the character length must be great than or equal to 1.')
94
+ end
95
+
96
+ invalid_properties
97
+ end
98
+
99
+ # Check to see if the all the properties in the model are valid
100
+ # @return true if the model is valid
101
+ def valid?
102
+ return false if @repository.nil?
103
+ return false if @tag.nil?
104
+ return false if @tag.to_s.length < 1
105
+ return false if @digest.nil?
106
+ return false if @digest.to_s.length < 1
107
+ true
108
+ end
109
+
110
+ # Custom attribute writer method with validation
111
+ # @param [Object] tag Value to be assigned
112
+ def tag=(tag)
113
+ if tag.nil?
114
+ fail ArgumentError, 'tag cannot be nil'
115
+ end
116
+
117
+ if tag.to_s.length < 1
118
+ fail ArgumentError, 'invalid value for "tag", the character length must be great than or equal to 1.'
119
+ end
120
+
121
+ @tag = tag
122
+ end
123
+
124
+ # Custom attribute writer method with validation
125
+ # @param [Object] digest Value to be assigned
126
+ def digest=(digest)
127
+ if digest.nil?
128
+ fail ArgumentError, 'digest cannot be nil'
129
+ end
130
+
131
+ if digest.to_s.length < 1
132
+ fail ArgumentError, 'invalid value for "digest", the character length must be great than or equal to 1.'
133
+ end
134
+
135
+ @digest = digest
136
+ end
137
+
138
+ # Checks equality by comparing each attribute.
139
+ # @param [Object] Object to be compared
140
+ def ==(o)
141
+ return true if self.equal?(o)
142
+ self.class == o.class &&
143
+ repository == o.repository &&
144
+ tag == o.tag &&
145
+ digest == o.digest
146
+ end
147
+
148
+ # @see the `==` method
149
+ # @param [Object] Object to be compared
150
+ def eql?(o)
151
+ self == o
152
+ end
153
+
154
+ # Calculates hash code according to all attributes.
155
+ # @return [Integer] Hash code
156
+ def hash
157
+ [repository, tag, digest].hash
158
+ end
159
+
160
+ # Builds the object from hash
161
+ # @param [Hash] attributes Model attributes in the form of hash
162
+ # @return [Object] Returns the model itself
163
+ def self.build_from_hash(attributes)
164
+ new.build_from_hash(attributes)
165
+ end
166
+
167
+ # Builds the object from hash
168
+ # @param [Hash] attributes Model attributes in the form of hash
169
+ # @return [Object] Returns the model itself
170
+ def build_from_hash(attributes)
171
+ return nil unless attributes.is_a?(Hash)
172
+ self.class.openapi_types.each_pair do |key, type|
173
+ if type =~ /\AArray<(.*)>/i
174
+ # check to ensure the input is an array given that the attribute
175
+ # is documented as an array but the input is not
176
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
177
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
178
+ end
179
+ elsif !attributes[self.class.attribute_map[key]].nil?
180
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
181
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
182
+ end
183
+
184
+ self
185
+ end
186
+
187
+ # Deserializes the data based on type
188
+ # @param string type Data type
189
+ # @param string value Value to be deserialized
190
+ # @return [Object] Deserialized data
191
+ def _deserialize(type, value)
192
+ case type.to_sym
193
+ when :DateTime
194
+ DateTime.parse(value)
195
+ when :Date
196
+ Date.parse(value)
197
+ when :String
198
+ value.to_s
199
+ when :Integer
200
+ value.to_i
201
+ when :Float
202
+ value.to_f
203
+ when :Boolean
204
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
205
+ true
206
+ else
207
+ false
208
+ end
209
+ when :Object
210
+ # generic object (usually a Hash), return directly
211
+ value
212
+ when /\AArray<(?<inner_type>.+)>\z/
213
+ inner_type = Regexp.last_match[:inner_type]
214
+ value.map { |v| _deserialize(inner_type, v) }
215
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
216
+ k_type = Regexp.last_match[:k_type]
217
+ v_type = Regexp.last_match[:v_type]
218
+ {}.tap do |hash|
219
+ value.each do |k, v|
220
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
221
+ end
222
+ end
223
+ else # model
224
+ PulpDockerClient.const_get(type).build_from_hash(value)
225
+ end
226
+ end
227
+
228
+ # Returns the string representation of the object
229
+ # @return [String] String presentation of the object
230
+ def to_s
231
+ to_hash.to_s
232
+ end
233
+
234
+ # to_body is an alias to to_hash (backward compatibility)
235
+ # @return [Hash] Returns the object in the form of hash
236
+ def to_body
237
+ to_hash
238
+ end
239
+
240
+ # Returns the object in the form of hash
241
+ # @return [Hash] Returns the object in the form of hash
242
+ def to_hash
243
+ hash = {}
244
+ self.class.attribute_map.each_pair do |attr, param|
245
+ value = self.send(attr)
246
+ next if value.nil?
247
+ hash[param] = _to_hash(value)
248
+ end
249
+ hash
250
+ end
251
+
252
+ # Outputs non-array value in the form of hash
253
+ # For object, use to_hash. Otherwise, just return the value
254
+ # @param [Object] value Any valid value
255
+ # @return [Hash] Returns the value in the form of hash
256
+ def _to_hash(value)
257
+ if value.is_a?(Array)
258
+ value.compact.map { |v| _to_hash(v) }
259
+ elsif value.is_a?(Hash)
260
+ {}.tap do |hash|
261
+ value.each { |k, v| hash[k] = _to_hash(v) }
262
+ end
263
+ elsif value.respond_to? :to_hash
264
+ value.to_hash
265
+ else
266
+ value
267
+ end
268
+ end
269
+ end
270
+ end
@@ -0,0 +1,236 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
5
+
6
+ The version of the OpenAPI document: v3
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.1.2-SNAPSHOT
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpDockerClient
16
+ class UnTagImage
17
+ # A URI of the repository.
18
+ attr_accessor :repository
19
+
20
+ # A tag name
21
+ attr_accessor :tag
22
+
23
+ # Attribute mapping from ruby-style variable name to JSON key.
24
+ def self.attribute_map
25
+ {
26
+ :'repository' => :'repository',
27
+ :'tag' => :'tag'
28
+ }
29
+ end
30
+
31
+ # Attribute type mapping.
32
+ def self.openapi_types
33
+ {
34
+ :'repository' => :'String',
35
+ :'tag' => :'String'
36
+ }
37
+ end
38
+
39
+ # Initializes the object
40
+ # @param [Hash] attributes Model attributes in the form of hash
41
+ def initialize(attributes = {})
42
+ if (!attributes.is_a?(Hash))
43
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDockerClient::UnTagImage` initialize method"
44
+ end
45
+
46
+ # check to see if the attribute exists and convert string to symbol for hash key
47
+ attributes = attributes.each_with_object({}) { |(k, v), h|
48
+ if (!self.class.attribute_map.key?(k.to_sym))
49
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDockerClient::UnTagImage`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
50
+ end
51
+ h[k.to_sym] = v
52
+ }
53
+
54
+ if attributes.key?(:'repository')
55
+ self.repository = attributes[:'repository']
56
+ end
57
+
58
+ if attributes.key?(:'tag')
59
+ self.tag = attributes[:'tag']
60
+ end
61
+ end
62
+
63
+ # Show invalid properties with the reasons. Usually used together with valid?
64
+ # @return Array for valid properties with the reasons
65
+ def list_invalid_properties
66
+ invalid_properties = Array.new
67
+ if @repository.nil?
68
+ invalid_properties.push('invalid value for "repository", repository cannot be nil.')
69
+ end
70
+
71
+ if @tag.nil?
72
+ invalid_properties.push('invalid value for "tag", tag cannot be nil.')
73
+ end
74
+
75
+ if @tag.to_s.length < 1
76
+ invalid_properties.push('invalid value for "tag", the character length must be great than or equal to 1.')
77
+ end
78
+
79
+ invalid_properties
80
+ end
81
+
82
+ # Check to see if the all the properties in the model are valid
83
+ # @return true if the model is valid
84
+ def valid?
85
+ return false if @repository.nil?
86
+ return false if @tag.nil?
87
+ return false if @tag.to_s.length < 1
88
+ true
89
+ end
90
+
91
+ # Custom attribute writer method with validation
92
+ # @param [Object] tag Value to be assigned
93
+ def tag=(tag)
94
+ if tag.nil?
95
+ fail ArgumentError, 'tag cannot be nil'
96
+ end
97
+
98
+ if tag.to_s.length < 1
99
+ fail ArgumentError, 'invalid value for "tag", the character length must be great than or equal to 1.'
100
+ end
101
+
102
+ @tag = tag
103
+ end
104
+
105
+ # Checks equality by comparing each attribute.
106
+ # @param [Object] Object to be compared
107
+ def ==(o)
108
+ return true if self.equal?(o)
109
+ self.class == o.class &&
110
+ repository == o.repository &&
111
+ tag == o.tag
112
+ end
113
+
114
+ # @see the `==` method
115
+ # @param [Object] Object to be compared
116
+ def eql?(o)
117
+ self == o
118
+ end
119
+
120
+ # Calculates hash code according to all attributes.
121
+ # @return [Integer] Hash code
122
+ def hash
123
+ [repository, tag].hash
124
+ end
125
+
126
+ # Builds the object from hash
127
+ # @param [Hash] attributes Model attributes in the form of hash
128
+ # @return [Object] Returns the model itself
129
+ def self.build_from_hash(attributes)
130
+ new.build_from_hash(attributes)
131
+ end
132
+
133
+ # Builds the object from hash
134
+ # @param [Hash] attributes Model attributes in the form of hash
135
+ # @return [Object] Returns the model itself
136
+ def build_from_hash(attributes)
137
+ return nil unless attributes.is_a?(Hash)
138
+ self.class.openapi_types.each_pair do |key, type|
139
+ if type =~ /\AArray<(.*)>/i
140
+ # check to ensure the input is an array given that the attribute
141
+ # is documented as an array but the input is not
142
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
143
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
144
+ end
145
+ elsif !attributes[self.class.attribute_map[key]].nil?
146
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
147
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
148
+ end
149
+
150
+ self
151
+ end
152
+
153
+ # Deserializes the data based on type
154
+ # @param string type Data type
155
+ # @param string value Value to be deserialized
156
+ # @return [Object] Deserialized data
157
+ def _deserialize(type, value)
158
+ case type.to_sym
159
+ when :DateTime
160
+ DateTime.parse(value)
161
+ when :Date
162
+ Date.parse(value)
163
+ when :String
164
+ value.to_s
165
+ when :Integer
166
+ value.to_i
167
+ when :Float
168
+ value.to_f
169
+ when :Boolean
170
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
171
+ true
172
+ else
173
+ false
174
+ end
175
+ when :Object
176
+ # generic object (usually a Hash), return directly
177
+ value
178
+ when /\AArray<(?<inner_type>.+)>\z/
179
+ inner_type = Regexp.last_match[:inner_type]
180
+ value.map { |v| _deserialize(inner_type, v) }
181
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
182
+ k_type = Regexp.last_match[:k_type]
183
+ v_type = Regexp.last_match[:v_type]
184
+ {}.tap do |hash|
185
+ value.each do |k, v|
186
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
187
+ end
188
+ end
189
+ else # model
190
+ PulpDockerClient.const_get(type).build_from_hash(value)
191
+ end
192
+ end
193
+
194
+ # Returns the string representation of the object
195
+ # @return [String] String presentation of the object
196
+ def to_s
197
+ to_hash.to_s
198
+ end
199
+
200
+ # to_body is an alias to to_hash (backward compatibility)
201
+ # @return [Hash] Returns the object in the form of hash
202
+ def to_body
203
+ to_hash
204
+ end
205
+
206
+ # Returns the object in the form of hash
207
+ # @return [Hash] Returns the object in the form of hash
208
+ def to_hash
209
+ hash = {}
210
+ self.class.attribute_map.each_pair do |attr, param|
211
+ value = self.send(attr)
212
+ next if value.nil?
213
+ hash[param] = _to_hash(value)
214
+ end
215
+ hash
216
+ end
217
+
218
+ # Outputs non-array value in the form of hash
219
+ # For object, use to_hash. Otherwise, just return the value
220
+ # @param [Object] value Any valid value
221
+ # @return [Hash] Returns the value in the form of hash
222
+ def _to_hash(value)
223
+ if value.is_a?(Array)
224
+ value.compact.map { |v| _to_hash(v) }
225
+ elsif value.is_a?(Hash)
226
+ {}.tap do |hash|
227
+ value.each { |k, v| hash[k] = _to_hash(v) }
228
+ end
229
+ elsif value.respond_to? :to_hash
230
+ value.to_hash
231
+ else
232
+ value
233
+ end
234
+ end
235
+ end
236
+ end
@@ -6,10 +6,10 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.2-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  module PulpDockerClient
14
- VERSION = '4.0.0b5'
14
+ VERSION = '4.0.0b6'
15
15
  end
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.2-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -27,14 +27,24 @@ require 'pulp_docker_client/models/inline_response2002'
27
27
  require 'pulp_docker_client/models/inline_response2003'
28
28
  require 'pulp_docker_client/models/inline_response2004'
29
29
  require 'pulp_docker_client/models/manifest'
30
- require 'pulp_docker_client/models/manifest_tag'
30
+ require 'pulp_docker_client/models/manifest_copy'
31
+ require 'pulp_docker_client/models/recursive_manage'
31
32
  require 'pulp_docker_client/models/repository_sync_url'
33
+ require 'pulp_docker_client/models/tag'
34
+ require 'pulp_docker_client/models/tag_copy'
35
+ require 'pulp_docker_client/models/tag_image'
36
+ require 'pulp_docker_client/models/un_tag_image'
32
37
 
33
38
  # APIs
34
39
  require 'pulp_docker_client/api/content_blobs_api'
35
- require 'pulp_docker_client/api/content_manifest_tags_api'
36
40
  require 'pulp_docker_client/api/content_manifests_api'
41
+ require 'pulp_docker_client/api/content_tags_api'
37
42
  require 'pulp_docker_client/api/distributions_docker_api'
43
+ require 'pulp_docker_client/api/docker_copy_api'
44
+ require 'pulp_docker_client/api/docker_recursive_add_api'
45
+ require 'pulp_docker_client/api/docker_recursive_remove_api'
46
+ require 'pulp_docker_client/api/docker_tag_api'
47
+ require 'pulp_docker_client/api/docker_untag_api'
38
48
  require 'pulp_docker_client/api/remotes_docker_api'
39
49
 
40
50
  module PulpDockerClient
@@ -8,7 +8,7 @@
8
8
  The version of the OpenAPI document: v3
9
9
 
10
10
  Generated by: https://openapi-generator.tech
11
- OpenAPI Generator version: 4.0.0
11
+ OpenAPI Generator version: 4.1.2-SNAPSHOT
12
12
 
13
13
  =end
14
14
 
@@ -24,19 +24,13 @@ Gem::Specification.new do |s|
24
24
  s.homepage = "https://openapi-generator.tech"
25
25
  s.summary = "Pulp 3 API Ruby Gem"
26
26
  s.description = "No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)"
27
- s.license = 'GPLv2'
27
+ s.license = 'GPL-2.0'
28
28
  s.required_ruby_version = ">= 1.9"
29
29
 
30
- s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
30
+ s.add_runtime_dependency 'faraday', '>= 0.14.0'
31
31
  s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
32
 
33
33
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
- s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
35
- s.add_development_dependency 'webmock', '~> 1.24', '>= 1.24.3'
36
- s.add_development_dependency 'autotest', '~> 4.4', '>= 4.4.6'
37
- s.add_development_dependency 'autotest-rails-pure', '~> 4.1', '>= 4.1.2'
38
- s.add_development_dependency 'autotest-growl', '~> 0.2', '>= 0.2.16'
39
- s.add_development_dependency 'autotest-fsevent', '~> 0.2', '>= 0.2.12'
40
34
 
41
35
  s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
42
36
  s.test_files = `find spec/*`.split("\n")
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.2-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -33,8 +33,8 @@ describe 'ContentBlobsApi' do
33
33
  end
34
34
 
35
35
  # unit tests for create
36
- # Create a manifest blob
37
- # Create a new ManifestBlob from a request.
36
+ # Create a blob
37
+ # Create a new Blob from a request.
38
38
  # @param data
39
39
  # @param [Hash] opts the optional parameters
40
40
  # @return [Blob]
@@ -45,15 +45,17 @@ describe 'ContentBlobsApi' do
45
45
  end
46
46
 
47
47
  # unit tests for list
48
- # List manifest blobs
49
- # ViewSet for ManifestBlobs.
48
+ # List blobs
49
+ # ViewSet for Blobs.
50
50
  # @param [Hash] opts the optional parameters
51
51
  # @option opts [String] :digest Filter results where digest matches value
52
+ # @option opts [String] :digest__in Filter results where digest is in a comma-separated list of values
52
53
  # @option opts [String] :repository_version Repository Version referenced by HREF
53
54
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
54
55
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
55
- # @option opts [Integer] :page A page number within the paginated result set.
56
- # @option opts [Integer] :page_size Number of results to return per page.
56
+ # @option opts [String] :media_type
57
+ # @option opts [Integer] :limit Number of results to return per page.
58
+ # @option opts [Integer] :offset The initial index from which to return the results.
57
59
  # @return [InlineResponse200]
58
60
  describe 'list test' do
59
61
  it 'should work' do
@@ -62,9 +64,9 @@ describe 'ContentBlobsApi' do
62
64
  end
63
65
 
64
66
  # unit tests for read
65
- # Inspect a manifest blob
66
- # ViewSet for ManifestBlobs.
67
- # @param manifest_blob_href URI of Manifest Blob. e.g.: /pulp/api/v3/content/docker/blobs/1/
67
+ # Inspect a blob
68
+ # ViewSet for Blobs.
69
+ # @param blob_href URI of Blob. e.g.: /pulp/api/v3/content/docker/blobs/1/
68
70
  # @param [Hash] opts the optional parameters
69
71
  # @return [Blob]
70
72
  describe 'read test' do
@@ -6,7 +6,7 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.0.0
9
+ OpenAPI Generator version: 4.1.2-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
@@ -48,12 +48,15 @@ describe 'ContentManifestsApi' do
48
48
  # List manifests
49
49
  # ViewSet for Manifest.
50
50
  # @param [Hash] opts the optional parameters
51
+ # @option opts [String] :digest Filter results where digest matches value
52
+ # @option opts [String] :digest__in Filter results where digest is in a comma-separated list of values
51
53
  # @option opts [String] :repository_version Repository Version referenced by HREF
52
54
  # @option opts [String] :repository_version_added Repository Version referenced by HREF
53
55
  # @option opts [String] :repository_version_removed Repository Version referenced by HREF
54
- # @option opts [Integer] :page A page number within the paginated result set.
55
- # @option opts [Integer] :page_size Number of results to return per page.
56
- # @return [InlineResponse2002]
56
+ # @option opts [String] :media_type
57
+ # @option opts [Integer] :limit Number of results to return per page.
58
+ # @option opts [Integer] :offset The initial index from which to return the results.
59
+ # @return [InlineResponse2001]
57
60
  describe 'list test' do
58
61
  it 'should work' do
59
62
  # assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers