pulp_docker_client 4.0.0b7 → 4.0.0b8.dev01573482113

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.

Potentially problematic release.


This version of pulp_docker_client might be problematic. Click here for more details.

Files changed (81) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -16
  3. data/docs/ContentBlobsApi.md +8 -58
  4. data/docs/ContentManifestsApi.md +8 -58
  5. data/docs/ContentTagsApi.md +8 -58
  6. data/docs/DistributionsDockerApi.md +14 -10
  7. data/docs/{Blob.md → DockerBlob.md} +5 -9
  8. data/docs/{DockerDistribution.md → DockerDockerDistribution.md} +11 -11
  9. data/docs/{DockerRemote.md → DockerDockerRemote.md} +8 -14
  10. data/docs/{Manifest.md → DockerManifest.md} +5 -9
  11. data/docs/{Tag.md → DockerTag.md} +5 -9
  12. data/docs/InlineResponse200.md +1 -1
  13. data/docs/InlineResponse2001.md +1 -1
  14. data/docs/InlineResponse2002.md +1 -1
  15. data/docs/InlineResponse2003.md +1 -1
  16. data/docs/InlineResponse2004.md +1 -1
  17. data/docs/RemotesDockerApi.md +28 -24
  18. data/lib/pulp_docker_client/api/content_blobs_api.rb +10 -68
  19. data/lib/pulp_docker_client/api/content_manifests_api.rb +10 -68
  20. data/lib/pulp_docker_client/api/content_tags_api.rb +10 -68
  21. data/lib/pulp_docker_client/api/distributions_docker_api.rb +16 -10
  22. data/lib/pulp_docker_client/api/docker_copy_api.rb +1 -1
  23. data/lib/pulp_docker_client/api/docker_recursive_add_api.rb +1 -1
  24. data/lib/pulp_docker_client/api/docker_recursive_remove_api.rb +1 -1
  25. data/lib/pulp_docker_client/api/docker_tag_api.rb +1 -1
  26. data/lib/pulp_docker_client/api/docker_untag_api.rb +1 -1
  27. data/lib/pulp_docker_client/api/remotes_docker_api.rb +37 -31
  28. data/lib/pulp_docker_client/api_client.rb +1 -1
  29. data/lib/pulp_docker_client/api_error.rb +1 -1
  30. data/lib/pulp_docker_client/configuration.rb +1 -1
  31. data/lib/pulp_docker_client/models/async_operation_response.rb +12 -2
  32. data/lib/pulp_docker_client/models/{blob.rb → docker_blob.rb} +28 -76
  33. data/lib/pulp_docker_client/models/{docker_distribution.rb → docker_docker_distribution.rb} +52 -39
  34. data/lib/pulp_docker_client/models/{docker_remote.rb → docker_docker_remote.rb} +44 -116
  35. data/lib/pulp_docker_client/models/{manifest.rb → docker_manifest.rb} +28 -76
  36. data/lib/pulp_docker_client/models/{tag.rb → docker_tag.rb} +28 -76
  37. data/lib/pulp_docker_client/models/inline_response200.rb +15 -3
  38. data/lib/pulp_docker_client/models/inline_response2001.rb +15 -3
  39. data/lib/pulp_docker_client/models/inline_response2002.rb +15 -3
  40. data/lib/pulp_docker_client/models/inline_response2003.rb +15 -3
  41. data/lib/pulp_docker_client/models/inline_response2004.rb +15 -3
  42. data/lib/pulp_docker_client/models/manifest_copy.rb +12 -2
  43. data/lib/pulp_docker_client/models/recursive_manage.rb +12 -2
  44. data/lib/pulp_docker_client/models/repository_sync_url.rb +12 -2
  45. data/lib/pulp_docker_client/models/tag_copy.rb +12 -2
  46. data/lib/pulp_docker_client/models/tag_image.rb +12 -2
  47. data/lib/pulp_docker_client/models/un_tag_image.rb +12 -2
  48. data/lib/pulp_docker_client/version.rb +2 -2
  49. data/lib/pulp_docker_client.rb +6 -6
  50. data/pulp_docker_client.gemspec +1 -1
  51. data/spec/api/content_blobs_api_spec.rb +4 -14
  52. data/spec/api/content_manifests_api_spec.rb +4 -14
  53. data/spec/api/content_tags_api_spec.rb +4 -14
  54. data/spec/api/distributions_docker_api_spec.rb +4 -2
  55. data/spec/api/docker_copy_api_spec.rb +1 -1
  56. data/spec/api/docker_recursive_add_api_spec.rb +1 -1
  57. data/spec/api/docker_recursive_remove_api_spec.rb +1 -1
  58. data/spec/api/docker_tag_api_spec.rb +1 -1
  59. data/spec/api/docker_untag_api_spec.rb +1 -1
  60. data/spec/api/remotes_docker_api_spec.rb +11 -9
  61. data/spec/api_client_spec.rb +2 -2
  62. data/spec/configuration_spec.rb +1 -1
  63. data/spec/models/async_operation_response_spec.rb +1 -1
  64. data/spec/models/{blob_spec.rb → docker_blob_spec.rb} +9 -21
  65. data/spec/models/{docker_distribution_spec.rb → docker_docker_distribution_spec.rb} +14 -14
  66. data/spec/models/{docker_remote_spec.rb → docker_docker_remote_spec.rb} +10 -28
  67. data/spec/models/{manifest_spec.rb → docker_manifest_spec.rb} +9 -21
  68. data/spec/models/{tag_spec.rb → docker_tag_spec.rb} +9 -21
  69. data/spec/models/inline_response2001_spec.rb +1 -1
  70. data/spec/models/inline_response2002_spec.rb +1 -1
  71. data/spec/models/inline_response2003_spec.rb +1 -1
  72. data/spec/models/inline_response2004_spec.rb +1 -1
  73. data/spec/models/inline_response200_spec.rb +1 -1
  74. data/spec/models/manifest_copy_spec.rb +1 -1
  75. data/spec/models/recursive_manage_spec.rb +1 -1
  76. data/spec/models/repository_sync_url_spec.rb +1 -1
  77. data/spec/models/tag_copy_spec.rb +1 -1
  78. data/spec/models/tag_image_spec.rb +1 -1
  79. data/spec/models/un_tag_image_spec.rb +1 -1
  80. data/spec/spec_helper.rb +1 -1
  81. metadata +22 -22
@@ -6,27 +6,22 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module PulpDockerClient
16
- class Blob
17
- attr_accessor :_href
16
+ class DockerBlob
17
+ attr_accessor :pulp_href
18
18
 
19
19
  # Timestamp of creation.
20
- attr_accessor :_created
21
-
22
- attr_accessor :_type
20
+ attr_accessor :pulp_created
23
21
 
24
22
  # Artifact file representing the physical content
25
23
  attr_accessor :artifact
26
24
 
27
- # Path where the artifact is located relative to distributions base_path
28
- attr_accessor :relative_path
29
-
30
25
  # sha256 of the Blob file
31
26
  attr_accessor :digest
32
27
 
@@ -36,11 +31,9 @@ module PulpDockerClient
36
31
  # Attribute mapping from ruby-style variable name to JSON key.
37
32
  def self.attribute_map
38
33
  {
39
- :'_href' => :'_href',
40
- :'_created' => :'_created',
41
- :'_type' => :'_type',
34
+ :'pulp_href' => :'pulp_href',
35
+ :'pulp_created' => :'pulp_created',
42
36
  :'artifact' => :'artifact',
43
- :'relative_path' => :'relative_path',
44
37
  :'digest' => :'digest',
45
38
  :'media_type' => :'media_type'
46
39
  }
@@ -49,51 +42,47 @@ module PulpDockerClient
49
42
  # Attribute type mapping.
50
43
  def self.openapi_types
51
44
  {
52
- :'_href' => :'String',
53
- :'_created' => :'DateTime',
54
- :'_type' => :'String',
45
+ :'pulp_href' => :'String',
46
+ :'pulp_created' => :'DateTime',
55
47
  :'artifact' => :'String',
56
- :'relative_path' => :'String',
57
48
  :'digest' => :'String',
58
49
  :'media_type' => :'String'
59
50
  }
60
51
  end
61
52
 
53
+ # List of attributes with nullable: true
54
+ def self.openapi_nullable
55
+ Set.new([
56
+ ])
57
+ end
58
+
62
59
  # Initializes the object
63
60
  # @param [Hash] attributes Model attributes in the form of hash
64
61
  def initialize(attributes = {})
65
62
  if (!attributes.is_a?(Hash))
66
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDockerClient::Blob` initialize method"
63
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDockerClient::DockerBlob` initialize method"
67
64
  end
68
65
 
69
66
  # check to see if the attribute exists and convert string to symbol for hash key
70
67
  attributes = attributes.each_with_object({}) { |(k, v), h|
71
68
  if (!self.class.attribute_map.key?(k.to_sym))
72
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDockerClient::Blob`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
69
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDockerClient::DockerBlob`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
73
70
  end
74
71
  h[k.to_sym] = v
75
72
  }
76
73
 
77
- if attributes.key?(:'_href')
78
- self._href = attributes[:'_href']
74
+ if attributes.key?(:'pulp_href')
75
+ self.pulp_href = attributes[:'pulp_href']
79
76
  end
80
77
 
81
- if attributes.key?(:'_created')
82
- self._created = attributes[:'_created']
83
- end
84
-
85
- if attributes.key?(:'_type')
86
- self._type = attributes[:'_type']
78
+ if attributes.key?(:'pulp_created')
79
+ self.pulp_created = attributes[:'pulp_created']
87
80
  end
88
81
 
89
82
  if attributes.key?(:'artifact')
90
83
  self.artifact = attributes[:'artifact']
91
84
  end
92
85
 
93
- if attributes.key?(:'relative_path')
94
- self.relative_path = attributes[:'relative_path']
95
- end
96
-
97
86
  if attributes.key?(:'digest')
98
87
  self.digest = attributes[:'digest']
99
88
  end
@@ -107,22 +96,10 @@ module PulpDockerClient
107
96
  # @return Array for valid properties with the reasons
108
97
  def list_invalid_properties
109
98
  invalid_properties = Array.new
110
- if !@_type.nil? && @_type.to_s.length < 1
111
- invalid_properties.push('invalid value for "_type", the character length must be great than or equal to 1.')
112
- end
113
-
114
99
  if @artifact.nil?
115
100
  invalid_properties.push('invalid value for "artifact", artifact cannot be nil.')
116
101
  end
117
102
 
118
- if @relative_path.nil?
119
- invalid_properties.push('invalid value for "relative_path", relative_path cannot be nil.')
120
- end
121
-
122
- if @relative_path.to_s.length < 1
123
- invalid_properties.push('invalid value for "relative_path", the character length must be great than or equal to 1.')
124
- end
125
-
126
103
  if @digest.nil?
127
104
  invalid_properties.push('invalid value for "digest", digest cannot be nil.')
128
105
  end
@@ -145,10 +122,7 @@ module PulpDockerClient
145
122
  # Check to see if the all the properties in the model are valid
146
123
  # @return true if the model is valid
147
124
  def valid?
148
- return false if !@_type.nil? && @_type.to_s.length < 1
149
125
  return false if @artifact.nil?
150
- return false if @relative_path.nil?
151
- return false if @relative_path.to_s.length < 1
152
126
  return false if @digest.nil?
153
127
  return false if @digest.to_s.length < 1
154
128
  return false if @media_type.nil?
@@ -156,30 +130,6 @@ module PulpDockerClient
156
130
  true
157
131
  end
158
132
 
159
- # Custom attribute writer method with validation
160
- # @param [Object] _type Value to be assigned
161
- def _type=(_type)
162
- if !_type.nil? && _type.to_s.length < 1
163
- fail ArgumentError, 'invalid value for "_type", the character length must be great than or equal to 1.'
164
- end
165
-
166
- @_type = _type
167
- end
168
-
169
- # Custom attribute writer method with validation
170
- # @param [Object] relative_path Value to be assigned
171
- def relative_path=(relative_path)
172
- if relative_path.nil?
173
- fail ArgumentError, 'relative_path cannot be nil'
174
- end
175
-
176
- if relative_path.to_s.length < 1
177
- fail ArgumentError, 'invalid value for "relative_path", the character length must be great than or equal to 1.'
178
- end
179
-
180
- @relative_path = relative_path
181
- end
182
-
183
133
  # Custom attribute writer method with validation
184
134
  # @param [Object] digest Value to be assigned
185
135
  def digest=(digest)
@@ -213,11 +163,9 @@ module PulpDockerClient
213
163
  def ==(o)
214
164
  return true if self.equal?(o)
215
165
  self.class == o.class &&
216
- _href == o._href &&
217
- _created == o._created &&
218
- _type == o._type &&
166
+ pulp_href == o.pulp_href &&
167
+ pulp_created == o.pulp_created &&
219
168
  artifact == o.artifact &&
220
- relative_path == o.relative_path &&
221
169
  digest == o.digest &&
222
170
  media_type == o.media_type
223
171
  end
@@ -231,7 +179,7 @@ module PulpDockerClient
231
179
  # Calculates hash code according to all attributes.
232
180
  # @return [Integer] Hash code
233
181
  def hash
234
- [_href, _created, _type, artifact, relative_path, digest, media_type].hash
182
+ [pulp_href, pulp_created, artifact, digest, media_type].hash
235
183
  end
236
184
 
237
185
  # Builds the object from hash
@@ -320,7 +268,11 @@ module PulpDockerClient
320
268
  hash = {}
321
269
  self.class.attribute_map.each_pair do |attr, param|
322
270
  value = self.send(attr)
323
- next if value.nil?
271
+ if value.nil?
272
+ is_nullable = self.class.openapi_nullable.include?(attr)
273
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
274
+ end
275
+
324
276
  hash[param] = _to_hash(value)
325
277
  end
326
278
  hash
@@ -6,47 +6,47 @@
6
6
  The version of the OpenAPI document: v3
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
- OpenAPI Generator version: 4.1.3-SNAPSHOT
9
+ OpenAPI Generator version: 4.2.1-SNAPSHOT
10
10
 
11
11
  =end
12
12
 
13
13
  require 'date'
14
14
 
15
15
  module PulpDockerClient
16
- class DockerDistribution
17
- # An optional content-guard.
18
- attr_accessor :content_guard
19
-
16
+ class DockerDockerDistribution
20
17
  # The latest RepositoryVersion for this Repository will be served.
21
18
  attr_accessor :repository
22
19
 
23
- attr_accessor :_href
20
+ # RepositoryVersion to be served
21
+ attr_accessor :repository_version
22
+
23
+ # Timestamp of creation.
24
+ attr_accessor :pulp_created
25
+
26
+ attr_accessor :pulp_href
24
27
 
25
28
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
26
29
  attr_accessor :base_path
27
30
 
28
- # Timestamp of creation.
29
- attr_accessor :_created
31
+ # An optional content-guard.
32
+ attr_accessor :content_guard
30
33
 
31
34
  # A unique name. Ex, `rawhide` and `stable`.
32
35
  attr_accessor :name
33
36
 
34
- # RepositoryVersion to be served
35
- attr_accessor :repository_version
36
-
37
37
  # The Registry hostame:port/name/ to use with docker pull command defined by this distribution.
38
38
  attr_accessor :registry_path
39
39
 
40
40
  # Attribute mapping from ruby-style variable name to JSON key.
41
41
  def self.attribute_map
42
42
  {
43
- :'content_guard' => :'content_guard',
44
43
  :'repository' => :'repository',
45
- :'_href' => :'_href',
44
+ :'repository_version' => :'repository_version',
45
+ :'pulp_created' => :'pulp_created',
46
+ :'pulp_href' => :'pulp_href',
46
47
  :'base_path' => :'base_path',
47
- :'_created' => :'_created',
48
+ :'content_guard' => :'content_guard',
48
49
  :'name' => :'name',
49
- :'repository_version' => :'repository_version',
50
50
  :'registry_path' => :'registry_path'
51
51
  }
52
52
  end
@@ -54,60 +54,69 @@ module PulpDockerClient
54
54
  # Attribute type mapping.
55
55
  def self.openapi_types
56
56
  {
57
- :'content_guard' => :'String',
58
57
  :'repository' => :'String',
59
- :'_href' => :'String',
58
+ :'repository_version' => :'String',
59
+ :'pulp_created' => :'DateTime',
60
+ :'pulp_href' => :'String',
60
61
  :'base_path' => :'String',
61
- :'_created' => :'DateTime',
62
+ :'content_guard' => :'String',
62
63
  :'name' => :'String',
63
- :'repository_version' => :'String',
64
64
  :'registry_path' => :'String'
65
65
  }
66
66
  end
67
67
 
68
+ # List of attributes with nullable: true
69
+ def self.openapi_nullable
70
+ Set.new([
71
+ :'repository',
72
+ :'repository_version',
73
+ :'content_guard',
74
+ ])
75
+ end
76
+
68
77
  # Initializes the object
69
78
  # @param [Hash] attributes Model attributes in the form of hash
70
79
  def initialize(attributes = {})
71
80
  if (!attributes.is_a?(Hash))
72
- fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDockerClient::DockerDistribution` initialize method"
81
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpDockerClient::DockerDockerDistribution` initialize method"
73
82
  end
74
83
 
75
84
  # check to see if the attribute exists and convert string to symbol for hash key
76
85
  attributes = attributes.each_with_object({}) { |(k, v), h|
77
86
  if (!self.class.attribute_map.key?(k.to_sym))
78
- fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDockerClient::DockerDistribution`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
87
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpDockerClient::DockerDockerDistribution`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
79
88
  end
80
89
  h[k.to_sym] = v
81
90
  }
82
91
 
83
- if attributes.key?(:'content_guard')
84
- self.content_guard = attributes[:'content_guard']
85
- end
86
-
87
92
  if attributes.key?(:'repository')
88
93
  self.repository = attributes[:'repository']
89
94
  end
90
95
 
91
- if attributes.key?(:'_href')
92
- self._href = attributes[:'_href']
96
+ if attributes.key?(:'repository_version')
97
+ self.repository_version = attributes[:'repository_version']
98
+ end
99
+
100
+ if attributes.key?(:'pulp_created')
101
+ self.pulp_created = attributes[:'pulp_created']
102
+ end
103
+
104
+ if attributes.key?(:'pulp_href')
105
+ self.pulp_href = attributes[:'pulp_href']
93
106
  end
94
107
 
95
108
  if attributes.key?(:'base_path')
96
109
  self.base_path = attributes[:'base_path']
97
110
  end
98
111
 
99
- if attributes.key?(:'_created')
100
- self._created = attributes[:'_created']
112
+ if attributes.key?(:'content_guard')
113
+ self.content_guard = attributes[:'content_guard']
101
114
  end
102
115
 
103
116
  if attributes.key?(:'name')
104
117
  self.name = attributes[:'name']
105
118
  end
106
119
 
107
- if attributes.key?(:'repository_version')
108
- self.repository_version = attributes[:'repository_version']
109
- end
110
-
111
120
  if attributes.key?(:'registry_path')
112
121
  self.registry_path = attributes[:'registry_path']
113
122
  end
@@ -212,13 +221,13 @@ module PulpDockerClient
212
221
  def ==(o)
213
222
  return true if self.equal?(o)
214
223
  self.class == o.class &&
215
- content_guard == o.content_guard &&
216
224
  repository == o.repository &&
217
- _href == o._href &&
225
+ repository_version == o.repository_version &&
226
+ pulp_created == o.pulp_created &&
227
+ pulp_href == o.pulp_href &&
218
228
  base_path == o.base_path &&
219
- _created == o._created &&
229
+ content_guard == o.content_guard &&
220
230
  name == o.name &&
221
- repository_version == o.repository_version &&
222
231
  registry_path == o.registry_path
223
232
  end
224
233
 
@@ -231,7 +240,7 @@ module PulpDockerClient
231
240
  # Calculates hash code according to all attributes.
232
241
  # @return [Integer] Hash code
233
242
  def hash
234
- [content_guard, repository, _href, base_path, _created, name, repository_version, registry_path].hash
243
+ [repository, repository_version, pulp_created, pulp_href, base_path, content_guard, name, registry_path].hash
235
244
  end
236
245
 
237
246
  # Builds the object from hash
@@ -320,7 +329,11 @@ module PulpDockerClient
320
329
  hash = {}
321
330
  self.class.attribute_map.each_pair do |attr, param|
322
331
  value = self.send(attr)
323
- next if value.nil?
332
+ if value.nil?
333
+ is_nullable = self.class.openapi_nullable.include?(attr)
334
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
335
+ end
336
+
324
337
  hash[param] = _to_hash(value)
325
338
  end
326
339
  hash