pulp_container_client 2.4.0.dev01613532120 → 2.4.0.dev01614136827

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


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

Files changed (53) 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 +11 -11
  5. data/docs/ContentBlobsApi.md +12 -12
  6. data/docs/ContentManifestsApi.md +12 -12
  7. data/docs/ContentTagsApi.md +14 -14
  8. data/docs/{ContentGuardsContentRedirectApi.md → ContentguardsContentRedirectApi.md} +29 -29
  9. data/docs/DistributionsContainerApi.md +22 -22
  10. data/docs/ManifestCopy.md +1 -1
  11. data/docs/MediaTypesEnum.md +16 -0
  12. data/docs/PatchedcontainerContainerDistribution.md +7 -7
  13. data/docs/PulpContainerNamespacesApi.md +10 -10
  14. data/docs/RemotesContainerApi.md +24 -24
  15. data/docs/RemoveImage.md +17 -0
  16. data/docs/RepositoriesContainerApi.md +12 -12
  17. data/docs/RepositoriesContainerPushApi.md +68 -12
  18. data/docs/RepositoriesContainerVersionsApi.md +56 -56
  19. data/lib/pulp_container_client.rb +3 -1
  20. data/lib/pulp_container_client/api/content_blobs_api.rb +14 -14
  21. data/lib/pulp_container_client/api/content_manifests_api.rb +14 -14
  22. data/lib/pulp_container_client/api/content_tags_api.rb +17 -17
  23. data/lib/pulp_container_client/api/{content_guards_content_redirect_api.rb → contentguards_content_redirect_api.rb} +33 -33
  24. data/lib/pulp_container_client/api/distributions_container_api.rb +24 -24
  25. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +11 -11
  26. data/lib/pulp_container_client/api/remotes_container_api.rb +26 -26
  27. data/lib/pulp_container_client/api/repositories_container_api.rb +13 -13
  28. data/lib/pulp_container_client/api/repositories_container_push_api.rb +83 -13
  29. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +100 -60
  30. data/lib/pulp_container_client/models/container_container_distribution.rb +27 -27
  31. data/lib/pulp_container_client/models/container_container_distribution_response.rb +43 -43
  32. data/lib/pulp_container_client/models/manifest_copy.rb +1 -23
  33. data/lib/pulp_container_client/models/media_types_enum.rb +39 -0
  34. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +27 -27
  35. data/lib/pulp_container_client/models/remove_image.rb +213 -0
  36. data/lib/pulp_container_client/version.rb +1 -1
  37. data/spec/api/content_blobs_api_spec.rb +6 -6
  38. data/spec/api/content_manifests_api_spec.rb +6 -6
  39. data/spec/api/content_tags_api_spec.rb +7 -7
  40. data/spec/api/{content_guards_content_redirect_api_spec.rb → contentguards_content_redirect_api_spec.rb} +11 -11
  41. data/spec/api/distributions_container_api_spec.rb +11 -11
  42. data/spec/api/pulp_container_namespaces_api_spec.rb +5 -5
  43. data/spec/api/remotes_container_api_spec.rb +12 -12
  44. data/spec/api/repositories_container_api_spec.rb +6 -6
  45. data/spec/api/repositories_container_push_api_spec.rb +19 -6
  46. data/spec/api/repositories_container_versions_api_spec.rb +28 -28
  47. data/spec/models/container_container_distribution_response_spec.rb +8 -8
  48. data/spec/models/container_container_distribution_spec.rb +6 -6
  49. data/spec/models/manifest_copy_spec.rb +0 -4
  50. data/spec/models/media_types_enum_spec.rb +35 -0
  51. data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
  52. data/spec/models/remove_image_spec.rb +41 -0
  53. metadata +14 -6
@@ -15,22 +15,22 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistribution
18
- attr_accessor :pulp_labels
19
-
20
- # An optional content-guard. If none is specified, a default one will be used.
21
- attr_accessor :content_guard
22
-
23
18
  # RepositoryVersion to be served
24
19
  attr_accessor :repository_version
25
20
 
26
21
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
27
22
  attr_accessor :base_path
28
23
 
24
+ # A unique name. Ex, `rawhide` and `stable`.
25
+ attr_accessor :name
26
+
29
27
  # The latest RepositoryVersion for this Repository will be served.
30
28
  attr_accessor :repository
31
29
 
32
- # A unique name. Ex, `rawhide` and `stable`.
33
- attr_accessor :name
30
+ attr_accessor :pulp_labels
31
+
32
+ # An optional content-guard. If none is specified, a default one will be used.
33
+ attr_accessor :content_guard
34
34
 
35
35
  # Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
36
36
  attr_accessor :private
@@ -41,12 +41,12 @@ module PulpContainerClient
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
- :'pulp_labels' => :'pulp_labels',
45
- :'content_guard' => :'content_guard',
46
44
  :'repository_version' => :'repository_version',
47
45
  :'base_path' => :'base_path',
48
- :'repository' => :'repository',
49
46
  :'name' => :'name',
47
+ :'repository' => :'repository',
48
+ :'pulp_labels' => :'pulp_labels',
49
+ :'content_guard' => :'content_guard',
50
50
  :'private' => :'private',
51
51
  :'description' => :'description'
52
52
  }
@@ -55,12 +55,12 @@ module PulpContainerClient
55
55
  # Attribute type mapping.
56
56
  def self.openapi_types
57
57
  {
58
- :'pulp_labels' => :'Object',
59
- :'content_guard' => :'String',
60
58
  :'repository_version' => :'String',
61
59
  :'base_path' => :'String',
62
- :'repository' => :'String',
63
60
  :'name' => :'String',
61
+ :'repository' => :'String',
62
+ :'pulp_labels' => :'Object',
63
+ :'content_guard' => :'String',
64
64
  :'private' => :'Boolean',
65
65
  :'description' => :'String'
66
66
  }
@@ -90,14 +90,6 @@ module PulpContainerClient
90
90
  h[k.to_sym] = v
91
91
  }
92
92
 
93
- if attributes.key?(:'pulp_labels')
94
- self.pulp_labels = attributes[:'pulp_labels']
95
- end
96
-
97
- if attributes.key?(:'content_guard')
98
- self.content_guard = attributes[:'content_guard']
99
- end
100
-
101
93
  if attributes.key?(:'repository_version')
102
94
  self.repository_version = attributes[:'repository_version']
103
95
  end
@@ -106,12 +98,20 @@ module PulpContainerClient
106
98
  self.base_path = attributes[:'base_path']
107
99
  end
108
100
 
101
+ if attributes.key?(:'name')
102
+ self.name = attributes[:'name']
103
+ end
104
+
109
105
  if attributes.key?(:'repository')
110
106
  self.repository = attributes[:'repository']
111
107
  end
112
108
 
113
- if attributes.key?(:'name')
114
- self.name = attributes[:'name']
109
+ if attributes.key?(:'pulp_labels')
110
+ self.pulp_labels = attributes[:'pulp_labels']
111
+ end
112
+
113
+ if attributes.key?(:'content_guard')
114
+ self.content_guard = attributes[:'content_guard']
115
115
  end
116
116
 
117
117
  if attributes.key?(:'private')
@@ -151,12 +151,12 @@ module PulpContainerClient
151
151
  def ==(o)
152
152
  return true if self.equal?(o)
153
153
  self.class == o.class &&
154
- pulp_labels == o.pulp_labels &&
155
- content_guard == o.content_guard &&
156
154
  repository_version == o.repository_version &&
157
155
  base_path == o.base_path &&
158
- repository == o.repository &&
159
156
  name == o.name &&
157
+ repository == o.repository &&
158
+ pulp_labels == o.pulp_labels &&
159
+ content_guard == o.content_guard &&
160
160
  private == o.private &&
161
161
  description == o.description
162
162
  end
@@ -170,7 +170,7 @@ module PulpContainerClient
170
170
  # Calculates hash code according to all attributes.
171
171
  # @return [Integer] Hash code
172
172
  def hash
173
- [pulp_labels, content_guard, repository_version, base_path, repository, name, private, description].hash
173
+ [repository_version, base_path, name, repository, pulp_labels, content_guard, private, description].hash
174
174
  end
175
175
 
176
176
  # Builds the object from hash
@@ -15,27 +15,27 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistributionResponse
18
- # Timestamp of creation.
19
- attr_accessor :pulp_created
20
-
21
- attr_accessor :pulp_labels
22
-
23
- # An optional content-guard. If none is specified, a default one will be used.
24
- attr_accessor :content_guard
25
-
26
18
  # RepositoryVersion to be served
27
19
  attr_accessor :repository_version
28
20
 
29
21
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
30
22
  attr_accessor :base_path
31
23
 
24
+ # A unique name. Ex, `rawhide` and `stable`.
25
+ attr_accessor :name
26
+
27
+ attr_accessor :pulp_href
28
+
32
29
  # The latest RepositoryVersion for this Repository will be served.
33
30
  attr_accessor :repository
34
31
 
35
- attr_accessor :pulp_href
32
+ attr_accessor :pulp_labels
36
33
 
37
- # A unique name. Ex, `rawhide` and `stable`.
38
- attr_accessor :name
34
+ # An optional content-guard. If none is specified, a default one will be used.
35
+ attr_accessor :content_guard
36
+
37
+ # Timestamp of creation.
38
+ attr_accessor :pulp_created
39
39
 
40
40
  # The Registry hostame/name/ to use with docker pull command defined by this distribution.
41
41
  attr_accessor :registry_path
@@ -52,14 +52,14 @@ module PulpContainerClient
52
52
  # Attribute mapping from ruby-style variable name to JSON key.
53
53
  def self.attribute_map
54
54
  {
55
- :'pulp_created' => :'pulp_created',
56
- :'pulp_labels' => :'pulp_labels',
57
- :'content_guard' => :'content_guard',
58
55
  :'repository_version' => :'repository_version',
59
56
  :'base_path' => :'base_path',
60
- :'repository' => :'repository',
61
- :'pulp_href' => :'pulp_href',
62
57
  :'name' => :'name',
58
+ :'pulp_href' => :'pulp_href',
59
+ :'repository' => :'repository',
60
+ :'pulp_labels' => :'pulp_labels',
61
+ :'content_guard' => :'content_guard',
62
+ :'pulp_created' => :'pulp_created',
63
63
  :'registry_path' => :'registry_path',
64
64
  :'namespace' => :'namespace',
65
65
  :'private' => :'private',
@@ -70,14 +70,14 @@ module PulpContainerClient
70
70
  # Attribute type mapping.
71
71
  def self.openapi_types
72
72
  {
73
- :'pulp_created' => :'DateTime',
74
- :'pulp_labels' => :'Object',
75
- :'content_guard' => :'String',
76
73
  :'repository_version' => :'String',
77
74
  :'base_path' => :'String',
78
- :'repository' => :'String',
79
- :'pulp_href' => :'String',
80
75
  :'name' => :'String',
76
+ :'pulp_href' => :'String',
77
+ :'repository' => :'String',
78
+ :'pulp_labels' => :'Object',
79
+ :'content_guard' => :'String',
80
+ :'pulp_created' => :'DateTime',
81
81
  :'registry_path' => :'String',
82
82
  :'namespace' => :'String',
83
83
  :'private' => :'Boolean',
@@ -109,18 +109,6 @@ module PulpContainerClient
109
109
  h[k.to_sym] = v
110
110
  }
111
111
 
112
- if attributes.key?(:'pulp_created')
113
- self.pulp_created = attributes[:'pulp_created']
114
- end
115
-
116
- if attributes.key?(:'pulp_labels')
117
- self.pulp_labels = attributes[:'pulp_labels']
118
- end
119
-
120
- if attributes.key?(:'content_guard')
121
- self.content_guard = attributes[:'content_guard']
122
- end
123
-
124
112
  if attributes.key?(:'repository_version')
125
113
  self.repository_version = attributes[:'repository_version']
126
114
  end
@@ -129,16 +117,28 @@ module PulpContainerClient
129
117
  self.base_path = attributes[:'base_path']
130
118
  end
131
119
 
132
- if attributes.key?(:'repository')
133
- self.repository = attributes[:'repository']
120
+ if attributes.key?(:'name')
121
+ self.name = attributes[:'name']
134
122
  end
135
123
 
136
124
  if attributes.key?(:'pulp_href')
137
125
  self.pulp_href = attributes[:'pulp_href']
138
126
  end
139
127
 
140
- if attributes.key?(:'name')
141
- self.name = attributes[:'name']
128
+ if attributes.key?(:'repository')
129
+ self.repository = attributes[:'repository']
130
+ end
131
+
132
+ if attributes.key?(:'pulp_labels')
133
+ self.pulp_labels = attributes[:'pulp_labels']
134
+ end
135
+
136
+ if attributes.key?(:'content_guard')
137
+ self.content_guard = attributes[:'content_guard']
138
+ end
139
+
140
+ if attributes.key?(:'pulp_created')
141
+ self.pulp_created = attributes[:'pulp_created']
142
142
  end
143
143
 
144
144
  if attributes.key?(:'registry_path')
@@ -186,14 +186,14 @@ module PulpContainerClient
186
186
  def ==(o)
187
187
  return true if self.equal?(o)
188
188
  self.class == o.class &&
189
- pulp_created == o.pulp_created &&
190
- pulp_labels == o.pulp_labels &&
191
- content_guard == o.content_guard &&
192
189
  repository_version == o.repository_version &&
193
190
  base_path == o.base_path &&
194
- repository == o.repository &&
195
- pulp_href == o.pulp_href &&
196
191
  name == o.name &&
192
+ pulp_href == o.pulp_href &&
193
+ repository == o.repository &&
194
+ pulp_labels == o.pulp_labels &&
195
+ content_guard == o.content_guard &&
196
+ pulp_created == o.pulp_created &&
197
197
  registry_path == o.registry_path &&
198
198
  namespace == o.namespace &&
199
199
  private == o.private &&
@@ -209,7 +209,7 @@ module PulpContainerClient
209
209
  # Calculates hash code according to all attributes.
210
210
  # @return [Integer] Hash code
211
211
  def hash
212
- [pulp_created, pulp_labels, content_guard, repository_version, base_path, repository, pulp_href, name, registry_path, namespace, private, description].hash
212
+ [repository_version, base_path, name, pulp_href, repository, pulp_labels, content_guard, pulp_created, registry_path, namespace, private, description].hash
213
213
  end
214
214
 
215
215
  # Builds the object from hash
@@ -27,28 +27,6 @@ module PulpContainerClient
27
27
  # A list of media_types to copy.
28
28
  attr_accessor :media_types
29
29
 
30
- class EnumAttributeValidator
31
- attr_reader :datatype
32
- attr_reader :allowable_values
33
-
34
- def initialize(datatype, allowable_values)
35
- @allowable_values = allowable_values.map do |value|
36
- case datatype.to_s
37
- when /Integer/i
38
- value.to_i
39
- when /Float/i
40
- value.to_f
41
- else
42
- value
43
- end
44
- end
45
- end
46
-
47
- def valid?(value)
48
- !value || allowable_values.include?(value)
49
- end
50
- end
51
-
52
30
  # Attribute mapping from ruby-style variable name to JSON key.
53
31
  def self.attribute_map
54
32
  {
@@ -65,7 +43,7 @@ module PulpContainerClient
65
43
  :'source_repository' => :'String',
66
44
  :'source_repository_version' => :'String',
67
45
  :'digests' => :'Array<Object>',
68
- :'media_types' => :'Array<String>'
46
+ :'media_types' => :'Array<MediaTypesEnum>'
69
47
  }
70
48
  end
71
49
 
@@ -0,0 +1,39 @@
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
+ class MediaTypesEnum
17
+ DOCKER_DISTRIBUTION_MANIFEST_V1JSON = "application/vnd.docker.distribution.manifest.v1+json".freeze
18
+ DOCKER_DISTRIBUTION_MANIFEST_V2JSON = "application/vnd.docker.distribution.manifest.v2+json".freeze
19
+ DOCKER_DISTRIBUTION_MANIFEST_LIST_V2JSON = "application/vnd.docker.distribution.manifest.list.v2+json".freeze
20
+ OCI_IMAGE_MANIFEST_V1JSON = "application/vnd.oci.image.manifest.v1+json".freeze
21
+ OCI_IMAGE_INDEX_V1JSON = "application/vnd.oci.image.index.v1+json".freeze
22
+
23
+ # Builds the enum from string
24
+ # @param [String] The enum value in the form of the string
25
+ # @return [String] The enum value
26
+ def self.build_from_hash(value)
27
+ new.build_from_hash(value)
28
+ end
29
+
30
+ # Builds the enum from string
31
+ # @param [String] The enum value in the form of the string
32
+ # @return [String] The enum value
33
+ def build_from_hash(value)
34
+ constantValues = MediaTypesEnum.constants.select { |c| MediaTypesEnum::const_get(c) == value }
35
+ raise "Invalid ENUM value #{value} for class #MediaTypesEnum" if constantValues.empty?
36
+ value
37
+ end
38
+ end
39
+ end
@@ -15,22 +15,22 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class PatchedcontainerContainerDistribution
18
- attr_accessor :pulp_labels
19
-
20
- # An optional content-guard. If none is specified, a default one will be used.
21
- attr_accessor :content_guard
22
-
23
18
  # RepositoryVersion to be served
24
19
  attr_accessor :repository_version
25
20
 
26
21
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
27
22
  attr_accessor :base_path
28
23
 
24
+ # A unique name. Ex, `rawhide` and `stable`.
25
+ attr_accessor :name
26
+
29
27
  # The latest RepositoryVersion for this Repository will be served.
30
28
  attr_accessor :repository
31
29
 
32
- # A unique name. Ex, `rawhide` and `stable`.
33
- attr_accessor :name
30
+ attr_accessor :pulp_labels
31
+
32
+ # An optional content-guard. If none is specified, a default one will be used.
33
+ attr_accessor :content_guard
34
34
 
35
35
  # Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
36
36
  attr_accessor :private
@@ -41,12 +41,12 @@ module PulpContainerClient
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
- :'pulp_labels' => :'pulp_labels',
45
- :'content_guard' => :'content_guard',
46
44
  :'repository_version' => :'repository_version',
47
45
  :'base_path' => :'base_path',
48
- :'repository' => :'repository',
49
46
  :'name' => :'name',
47
+ :'repository' => :'repository',
48
+ :'pulp_labels' => :'pulp_labels',
49
+ :'content_guard' => :'content_guard',
50
50
  :'private' => :'private',
51
51
  :'description' => :'description'
52
52
  }
@@ -55,12 +55,12 @@ module PulpContainerClient
55
55
  # Attribute type mapping.
56
56
  def self.openapi_types
57
57
  {
58
- :'pulp_labels' => :'Object',
59
- :'content_guard' => :'String',
60
58
  :'repository_version' => :'String',
61
59
  :'base_path' => :'String',
62
- :'repository' => :'String',
63
60
  :'name' => :'String',
61
+ :'repository' => :'String',
62
+ :'pulp_labels' => :'Object',
63
+ :'content_guard' => :'String',
64
64
  :'private' => :'Boolean',
65
65
  :'description' => :'String'
66
66
  }
@@ -90,14 +90,6 @@ module PulpContainerClient
90
90
  h[k.to_sym] = v
91
91
  }
92
92
 
93
- if attributes.key?(:'pulp_labels')
94
- self.pulp_labels = attributes[:'pulp_labels']
95
- end
96
-
97
- if attributes.key?(:'content_guard')
98
- self.content_guard = attributes[:'content_guard']
99
- end
100
-
101
93
  if attributes.key?(:'repository_version')
102
94
  self.repository_version = attributes[:'repository_version']
103
95
  end
@@ -106,12 +98,20 @@ module PulpContainerClient
106
98
  self.base_path = attributes[:'base_path']
107
99
  end
108
100
 
101
+ if attributes.key?(:'name')
102
+ self.name = attributes[:'name']
103
+ end
104
+
109
105
  if attributes.key?(:'repository')
110
106
  self.repository = attributes[:'repository']
111
107
  end
112
108
 
113
- if attributes.key?(:'name')
114
- self.name = attributes[:'name']
109
+ if attributes.key?(:'pulp_labels')
110
+ self.pulp_labels = attributes[:'pulp_labels']
111
+ end
112
+
113
+ if attributes.key?(:'content_guard')
114
+ self.content_guard = attributes[:'content_guard']
115
115
  end
116
116
 
117
117
  if attributes.key?(:'private')
@@ -141,12 +141,12 @@ module PulpContainerClient
141
141
  def ==(o)
142
142
  return true if self.equal?(o)
143
143
  self.class == o.class &&
144
- pulp_labels == o.pulp_labels &&
145
- content_guard == o.content_guard &&
146
144
  repository_version == o.repository_version &&
147
145
  base_path == o.base_path &&
148
- repository == o.repository &&
149
146
  name == o.name &&
147
+ repository == o.repository &&
148
+ pulp_labels == o.pulp_labels &&
149
+ content_guard == o.content_guard &&
150
150
  private == o.private &&
151
151
  description == o.description
152
152
  end
@@ -160,7 +160,7 @@ module PulpContainerClient
160
160
  # Calculates hash code according to all attributes.
161
161
  # @return [Integer] Hash code
162
162
  def hash
163
- [pulp_labels, content_guard, repository_version, base_path, repository, name, private, description].hash
163
+ [repository_version, base_path, name, repository, pulp_labels, content_guard, private, description].hash
164
164
  end
165
165
 
166
166
  # Builds the object from hash