pulp_container_client 2.4.0.dev01613272873 → 2.4.0.dev01613877682

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_container_client might be problematic. Click here for more details.

Files changed (50) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +17 -16
  3. data/docs/ContainerContainerDistribution.md +8 -8
  4. data/docs/ContainerContainerDistributionResponse.md +10 -10
  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 +8 -8
  13. data/docs/PulpContainerNamespacesApi.md +10 -10
  14. data/docs/RemotesContainerApi.md +24 -24
  15. data/docs/RepositoriesContainerApi.md +12 -12
  16. data/docs/RepositoriesContainerPushApi.md +12 -12
  17. data/docs/RepositoriesContainerVersionsApi.md +56 -56
  18. data/lib/pulp_container_client.rb +2 -1
  19. data/lib/pulp_container_client/api/content_blobs_api.rb +14 -14
  20. data/lib/pulp_container_client/api/content_manifests_api.rb +14 -14
  21. data/lib/pulp_container_client/api/content_tags_api.rb +17 -17
  22. data/lib/pulp_container_client/api/{content_guards_content_redirect_api.rb → contentguards_content_redirect_api.rb} +33 -33
  23. data/lib/pulp_container_client/api/distributions_container_api.rb +24 -24
  24. data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +11 -11
  25. data/lib/pulp_container_client/api/remotes_container_api.rb +26 -26
  26. data/lib/pulp_container_client/api/repositories_container_api.rb +13 -13
  27. data/lib/pulp_container_client/api/repositories_container_push_api.rb +13 -13
  28. data/lib/pulp_container_client/api/repositories_container_versions_api.rb +100 -60
  29. data/lib/pulp_container_client/models/container_container_distribution.rb +33 -33
  30. data/lib/pulp_container_client/models/container_container_distribution_response.rb +45 -45
  31. data/lib/pulp_container_client/models/manifest_copy.rb +1 -23
  32. data/lib/pulp_container_client/models/media_types_enum.rb +39 -0
  33. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +28 -28
  34. data/lib/pulp_container_client/version.rb +1 -1
  35. data/spec/api/content_blobs_api_spec.rb +6 -6
  36. data/spec/api/content_manifests_api_spec.rb +6 -6
  37. data/spec/api/content_tags_api_spec.rb +7 -7
  38. data/spec/api/{content_guards_content_redirect_api_spec.rb → contentguards_content_redirect_api_spec.rb} +11 -11
  39. data/spec/api/distributions_container_api_spec.rb +11 -11
  40. data/spec/api/pulp_container_namespaces_api_spec.rb +5 -5
  41. data/spec/api/remotes_container_api_spec.rb +12 -12
  42. data/spec/api/repositories_container_api_spec.rb +6 -6
  43. data/spec/api/repositories_container_push_api_spec.rb +6 -6
  44. data/spec/api/repositories_container_versions_api_spec.rb +28 -28
  45. data/spec/models/container_container_distribution_response_spec.rb +7 -7
  46. data/spec/models/container_container_distribution_spec.rb +4 -4
  47. data/spec/models/manifest_copy_spec.rb +0 -4
  48. data/spec/models/media_types_enum_spec.rb +35 -0
  49. data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
  50. metadata +10 -6
@@ -18,19 +18,19 @@ module PulpContainerClient
18
18
  # RepositoryVersion to be served
19
19
  attr_accessor :repository_version
20
20
 
21
- # An optional content-guard. If none is specified, a default one will be used.
22
- attr_accessor :content_guard
21
+ attr_accessor :pulp_labels
23
22
 
24
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
25
- attr_accessor :base_path
23
+ # The latest RepositoryVersion for this Repository will be served.
24
+ attr_accessor :repository
26
25
 
27
26
  # A unique name. Ex, `rawhide` and `stable`.
28
27
  attr_accessor :name
29
28
 
30
- # The latest RepositoryVersion for this Repository will be served.
31
- attr_accessor :repository
29
+ # 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
+ attr_accessor :base_path
32
31
 
33
- attr_accessor :pulp_labels
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
@@ -42,11 +42,11 @@ module PulpContainerClient
42
42
  def self.attribute_map
43
43
  {
44
44
  :'repository_version' => :'repository_version',
45
- :'content_guard' => :'content_guard',
46
- :'base_path' => :'base_path',
47
- :'name' => :'name',
48
- :'repository' => :'repository',
49
45
  :'pulp_labels' => :'pulp_labels',
46
+ :'repository' => :'repository',
47
+ :'name' => :'name',
48
+ :'base_path' => :'base_path',
49
+ :'content_guard' => :'content_guard',
50
50
  :'private' => :'private',
51
51
  :'description' => :'description'
52
52
  }
@@ -56,11 +56,11 @@ module PulpContainerClient
56
56
  def self.openapi_types
57
57
  {
58
58
  :'repository_version' => :'String',
59
- :'content_guard' => :'String',
60
- :'base_path' => :'String',
61
- :'name' => :'String',
62
- :'repository' => :'String',
63
59
  :'pulp_labels' => :'Object',
60
+ :'repository' => :'String',
61
+ :'name' => :'String',
62
+ :'base_path' => :'String',
63
+ :'content_guard' => :'String',
64
64
  :'private' => :'Boolean',
65
65
  :'description' => :'String'
66
66
  }
@@ -94,24 +94,24 @@ module PulpContainerClient
94
94
  self.repository_version = attributes[:'repository_version']
95
95
  end
96
96
 
97
- if attributes.key?(:'content_guard')
98
- self.content_guard = attributes[:'content_guard']
97
+ if attributes.key?(:'pulp_labels')
98
+ self.pulp_labels = attributes[:'pulp_labels']
99
99
  end
100
100
 
101
- if attributes.key?(:'base_path')
102
- self.base_path = attributes[:'base_path']
101
+ if attributes.key?(:'repository')
102
+ self.repository = attributes[:'repository']
103
103
  end
104
104
 
105
105
  if attributes.key?(:'name')
106
106
  self.name = attributes[:'name']
107
107
  end
108
108
 
109
- if attributes.key?(:'repository')
110
- self.repository = attributes[:'repository']
109
+ if attributes.key?(:'base_path')
110
+ self.base_path = attributes[:'base_path']
111
111
  end
112
112
 
113
- if attributes.key?(:'pulp_labels')
114
- self.pulp_labels = attributes[:'pulp_labels']
113
+ if attributes.key?(:'content_guard')
114
+ self.content_guard = attributes[:'content_guard']
115
115
  end
116
116
 
117
117
  if attributes.key?(:'private')
@@ -127,22 +127,22 @@ module PulpContainerClient
127
127
  # @return Array for valid properties with the reasons
128
128
  def list_invalid_properties
129
129
  invalid_properties = Array.new
130
- if @base_path.nil?
131
- invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
132
- end
133
-
134
130
  if @name.nil?
135
131
  invalid_properties.push('invalid value for "name", name cannot be nil.')
136
132
  end
137
133
 
134
+ if @base_path.nil?
135
+ invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
136
+ end
137
+
138
138
  invalid_properties
139
139
  end
140
140
 
141
141
  # Check to see if the all the properties in the model are valid
142
142
  # @return true if the model is valid
143
143
  def valid?
144
- return false if @base_path.nil?
145
144
  return false if @name.nil?
145
+ return false if @base_path.nil?
146
146
  true
147
147
  end
148
148
 
@@ -152,11 +152,11 @@ module PulpContainerClient
152
152
  return true if self.equal?(o)
153
153
  self.class == o.class &&
154
154
  repository_version == o.repository_version &&
155
- content_guard == o.content_guard &&
156
- base_path == o.base_path &&
157
- name == o.name &&
158
- repository == o.repository &&
159
155
  pulp_labels == o.pulp_labels &&
156
+ repository == o.repository &&
157
+ name == o.name &&
158
+ base_path == o.base_path &&
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
- [repository_version, content_guard, base_path, name, repository, pulp_labels, private, description].hash
173
+ [repository_version, pulp_labels, repository, name, base_path, content_guard, private, description].hash
174
174
  end
175
175
 
176
176
  # Builds the object from hash
@@ -18,24 +18,24 @@ module PulpContainerClient
18
18
  # RepositoryVersion to be served
19
19
  attr_accessor :repository_version
20
20
 
21
- # An optional content-guard. If none is specified, a default one will be used.
22
- attr_accessor :content_guard
23
-
24
- attr_accessor :pulp_href
25
-
26
- # 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
- attr_accessor :base_path
21
+ attr_accessor :pulp_labels
28
22
 
29
23
  # Timestamp of creation.
30
24
  attr_accessor :pulp_created
31
25
 
26
+ # The latest RepositoryVersion for this Repository will be served.
27
+ attr_accessor :repository
28
+
32
29
  # A unique name. Ex, `rawhide` and `stable`.
33
30
  attr_accessor :name
34
31
 
35
- # The latest RepositoryVersion for this Repository will be served.
36
- attr_accessor :repository
32
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
33
+ attr_accessor :base_path
37
34
 
38
- attr_accessor :pulp_labels
35
+ attr_accessor :pulp_href
36
+
37
+ # An optional content-guard. If none is specified, a default one will be used.
38
+ attr_accessor :content_guard
39
39
 
40
40
  # The Registry hostame/name/ to use with docker pull command defined by this distribution.
41
41
  attr_accessor :registry_path
@@ -53,13 +53,13 @@ module PulpContainerClient
53
53
  def self.attribute_map
54
54
  {
55
55
  :'repository_version' => :'repository_version',
56
- :'content_guard' => :'content_guard',
57
- :'pulp_href' => :'pulp_href',
58
- :'base_path' => :'base_path',
56
+ :'pulp_labels' => :'pulp_labels',
59
57
  :'pulp_created' => :'pulp_created',
60
- :'name' => :'name',
61
58
  :'repository' => :'repository',
62
- :'pulp_labels' => :'pulp_labels',
59
+ :'name' => :'name',
60
+ :'base_path' => :'base_path',
61
+ :'pulp_href' => :'pulp_href',
62
+ :'content_guard' => :'content_guard',
63
63
  :'registry_path' => :'registry_path',
64
64
  :'namespace' => :'namespace',
65
65
  :'private' => :'private',
@@ -71,13 +71,13 @@ module PulpContainerClient
71
71
  def self.openapi_types
72
72
  {
73
73
  :'repository_version' => :'String',
74
- :'content_guard' => :'String',
75
- :'pulp_href' => :'String',
76
- :'base_path' => :'String',
74
+ :'pulp_labels' => :'Object',
77
75
  :'pulp_created' => :'DateTime',
78
- :'name' => :'String',
79
76
  :'repository' => :'String',
80
- :'pulp_labels' => :'Object',
77
+ :'name' => :'String',
78
+ :'base_path' => :'String',
79
+ :'pulp_href' => :'String',
80
+ :'content_guard' => :'String',
81
81
  :'registry_path' => :'String',
82
82
  :'namespace' => :'String',
83
83
  :'private' => :'Boolean',
@@ -113,32 +113,32 @@ module PulpContainerClient
113
113
  self.repository_version = attributes[:'repository_version']
114
114
  end
115
115
 
116
- if attributes.key?(:'content_guard')
117
- self.content_guard = attributes[:'content_guard']
118
- end
119
-
120
- if attributes.key?(:'pulp_href')
121
- self.pulp_href = attributes[:'pulp_href']
122
- end
123
-
124
- if attributes.key?(:'base_path')
125
- self.base_path = attributes[:'base_path']
116
+ if attributes.key?(:'pulp_labels')
117
+ self.pulp_labels = attributes[:'pulp_labels']
126
118
  end
127
119
 
128
120
  if attributes.key?(:'pulp_created')
129
121
  self.pulp_created = attributes[:'pulp_created']
130
122
  end
131
123
 
124
+ if attributes.key?(:'repository')
125
+ self.repository = attributes[:'repository']
126
+ end
127
+
132
128
  if attributes.key?(:'name')
133
129
  self.name = attributes[:'name']
134
130
  end
135
131
 
136
- if attributes.key?(:'repository')
137
- self.repository = attributes[:'repository']
132
+ if attributes.key?(:'base_path')
133
+ self.base_path = attributes[:'base_path']
138
134
  end
139
135
 
140
- if attributes.key?(:'pulp_labels')
141
- self.pulp_labels = attributes[:'pulp_labels']
136
+ if attributes.key?(:'pulp_href')
137
+ self.pulp_href = attributes[:'pulp_href']
138
+ end
139
+
140
+ if attributes.key?(:'content_guard')
141
+ self.content_guard = attributes[:'content_guard']
142
142
  end
143
143
 
144
144
  if attributes.key?(:'registry_path')
@@ -162,22 +162,22 @@ module PulpContainerClient
162
162
  # @return Array for valid properties with the reasons
163
163
  def list_invalid_properties
164
164
  invalid_properties = Array.new
165
- if @base_path.nil?
166
- invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
167
- end
168
-
169
165
  if @name.nil?
170
166
  invalid_properties.push('invalid value for "name", name cannot be nil.')
171
167
  end
172
168
 
169
+ if @base_path.nil?
170
+ invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
171
+ end
172
+
173
173
  invalid_properties
174
174
  end
175
175
 
176
176
  # Check to see if the all the properties in the model are valid
177
177
  # @return true if the model is valid
178
178
  def valid?
179
- return false if @base_path.nil?
180
179
  return false if @name.nil?
180
+ return false if @base_path.nil?
181
181
  true
182
182
  end
183
183
 
@@ -187,13 +187,13 @@ module PulpContainerClient
187
187
  return true if self.equal?(o)
188
188
  self.class == o.class &&
189
189
  repository_version == o.repository_version &&
190
- content_guard == o.content_guard &&
191
- pulp_href == o.pulp_href &&
192
- base_path == o.base_path &&
190
+ pulp_labels == o.pulp_labels &&
193
191
  pulp_created == o.pulp_created &&
194
- name == o.name &&
195
192
  repository == o.repository &&
196
- pulp_labels == o.pulp_labels &&
193
+ name == o.name &&
194
+ base_path == o.base_path &&
195
+ pulp_href == o.pulp_href &&
196
+ content_guard == o.content_guard &&
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
- [repository_version, content_guard, pulp_href, base_path, pulp_created, name, repository, pulp_labels, registry_path, namespace, private, description].hash
212
+ [repository_version, pulp_labels, pulp_created, repository, name, base_path, pulp_href, content_guard, 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
@@ -18,19 +18,19 @@ module PulpContainerClient
18
18
  # RepositoryVersion to be served
19
19
  attr_accessor :repository_version
20
20
 
21
- # An optional content-guard. If none is specified, a default one will be used.
22
- attr_accessor :content_guard
21
+ attr_accessor :pulp_labels
23
22
 
24
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
25
- attr_accessor :base_path
23
+ # The latest RepositoryVersion for this Repository will be served.
24
+ attr_accessor :repository
26
25
 
27
26
  # A unique name. Ex, `rawhide` and `stable`.
28
27
  attr_accessor :name
29
28
 
30
- # The latest RepositoryVersion for this Repository will be served.
31
- attr_accessor :repository
29
+ # 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
+ attr_accessor :base_path
32
31
 
33
- attr_accessor :pulp_labels
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
@@ -42,11 +42,11 @@ module PulpContainerClient
42
42
  def self.attribute_map
43
43
  {
44
44
  :'repository_version' => :'repository_version',
45
- :'content_guard' => :'content_guard',
46
- :'base_path' => :'base_path',
47
- :'name' => :'name',
48
- :'repository' => :'repository',
49
45
  :'pulp_labels' => :'pulp_labels',
46
+ :'repository' => :'repository',
47
+ :'name' => :'name',
48
+ :'base_path' => :'base_path',
49
+ :'content_guard' => :'content_guard',
50
50
  :'private' => :'private',
51
51
  :'description' => :'description'
52
52
  }
@@ -56,11 +56,11 @@ module PulpContainerClient
56
56
  def self.openapi_types
57
57
  {
58
58
  :'repository_version' => :'String',
59
- :'content_guard' => :'String',
60
- :'base_path' => :'String',
61
- :'name' => :'String',
62
- :'repository' => :'String',
63
59
  :'pulp_labels' => :'Object',
60
+ :'repository' => :'String',
61
+ :'name' => :'String',
62
+ :'base_path' => :'String',
63
+ :'content_guard' => :'String',
64
64
  :'private' => :'Boolean',
65
65
  :'description' => :'String'
66
66
  }
@@ -94,24 +94,24 @@ module PulpContainerClient
94
94
  self.repository_version = attributes[:'repository_version']
95
95
  end
96
96
 
97
- if attributes.key?(:'content_guard')
98
- self.content_guard = attributes[:'content_guard']
97
+ if attributes.key?(:'pulp_labels')
98
+ self.pulp_labels = attributes[:'pulp_labels']
99
99
  end
100
100
 
101
- if attributes.key?(:'base_path')
102
- self.base_path = attributes[:'base_path']
101
+ if attributes.key?(:'repository')
102
+ self.repository = attributes[:'repository']
103
103
  end
104
104
 
105
105
  if attributes.key?(:'name')
106
106
  self.name = attributes[:'name']
107
107
  end
108
108
 
109
- if attributes.key?(:'repository')
110
- self.repository = attributes[:'repository']
109
+ if attributes.key?(:'base_path')
110
+ self.base_path = attributes[:'base_path']
111
111
  end
112
112
 
113
- if attributes.key?(:'pulp_labels')
114
- self.pulp_labels = attributes[:'pulp_labels']
113
+ if attributes.key?(:'content_guard')
114
+ self.content_guard = attributes[:'content_guard']
115
115
  end
116
116
 
117
117
  if attributes.key?(:'private')
@@ -142,11 +142,11 @@ module PulpContainerClient
142
142
  return true if self.equal?(o)
143
143
  self.class == o.class &&
144
144
  repository_version == o.repository_version &&
145
- content_guard == o.content_guard &&
146
- base_path == o.base_path &&
147
- name == o.name &&
148
- repository == o.repository &&
149
145
  pulp_labels == o.pulp_labels &&
146
+ repository == o.repository &&
147
+ name == o.name &&
148
+ base_path == o.base_path &&
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
- [repository_version, content_guard, base_path, name, repository, pulp_labels, private, description].hash
163
+ [repository_version, pulp_labels, repository, name, base_path, content_guard, private, description].hash
164
164
  end
165
165
 
166
166
  # Builds the object from hash