pulp_container_client 2.4.0.dev01613445646 → 2.4.0.dev01614050467

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 +7 -7
  4. data/docs/ContainerContainerDistributionResponse.md +7 -7
  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/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 +27 -27
  30. data/lib/pulp_container_client/models/container_container_distribution_response.rb +30 -30
  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 +27 -27
  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 +6 -6
  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 +6 -6
  50. metadata +10 -6
@@ -15,23 +15,23 @@ 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
  # A unique name. Ex, `rawhide` and `stable`.
24
19
  attr_accessor :name
25
20
 
21
+ # RepositoryVersion to be served
22
+ attr_accessor :repository_version
23
+
26
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\")
27
25
  attr_accessor :base_path
28
26
 
29
- # RepositoryVersion to be served
30
- attr_accessor :repository_version
27
+ # An optional content-guard. If none is specified, a default one will be used.
28
+ attr_accessor :content_guard
31
29
 
32
30
  # The latest RepositoryVersion for this Repository will be served.
33
31
  attr_accessor :repository
34
32
 
33
+ attr_accessor :pulp_labels
34
+
35
35
  # Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
36
36
  attr_accessor :private
37
37
 
@@ -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
  :'name' => :'name',
47
- :'base_path' => :'base_path',
48
45
  :'repository_version' => :'repository_version',
46
+ :'base_path' => :'base_path',
47
+ :'content_guard' => :'content_guard',
49
48
  :'repository' => :'repository',
49
+ :'pulp_labels' => :'pulp_labels',
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
  :'name' => :'String',
61
- :'base_path' => :'String',
62
59
  :'repository_version' => :'String',
60
+ :'base_path' => :'String',
61
+ :'content_guard' => :'String',
63
62
  :'repository' => :'String',
63
+ :'pulp_labels' => :'Object',
64
64
  :'private' => :'Boolean',
65
65
  :'description' => :'String'
66
66
  }
@@ -90,30 +90,30 @@ 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?(:'name')
102
94
  self.name = attributes[:'name']
103
95
  end
104
96
 
97
+ if attributes.key?(:'repository_version')
98
+ self.repository_version = attributes[:'repository_version']
99
+ end
100
+
105
101
  if attributes.key?(:'base_path')
106
102
  self.base_path = attributes[:'base_path']
107
103
  end
108
104
 
109
- if attributes.key?(:'repository_version')
110
- self.repository_version = attributes[:'repository_version']
105
+ if attributes.key?(:'content_guard')
106
+ self.content_guard = attributes[:'content_guard']
111
107
  end
112
108
 
113
109
  if attributes.key?(:'repository')
114
110
  self.repository = attributes[:'repository']
115
111
  end
116
112
 
113
+ if attributes.key?(:'pulp_labels')
114
+ self.pulp_labels = attributes[:'pulp_labels']
115
+ end
116
+
117
117
  if attributes.key?(:'private')
118
118
  self.private = attributes[:'private']
119
119
  end
@@ -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
  name == o.name &&
157
- base_path == o.base_path &&
158
155
  repository_version == o.repository_version &&
156
+ base_path == o.base_path &&
157
+ content_guard == o.content_guard &&
159
158
  repository == o.repository &&
159
+ pulp_labels == o.pulp_labels &&
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, name, base_path, repository_version, repository, private, description].hash
173
+ [name, repository_version, base_path, content_guard, repository, pulp_labels, private, description].hash
174
174
  end
175
175
 
176
176
  # Builds the object from hash
@@ -15,28 +15,28 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class ContainerContainerDistributionResponse
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
  # Timestamp of creation.
24
19
  attr_accessor :pulp_created
25
20
 
26
21
  # A unique name. Ex, `rawhide` and `stable`.
27
22
  attr_accessor :name
28
23
 
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
31
-
32
24
  attr_accessor :pulp_href
33
25
 
34
26
  # RepositoryVersion to be served
35
27
  attr_accessor :repository_version
36
28
 
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
31
+
32
+ # An optional content-guard. If none is specified, a default one will be used.
33
+ attr_accessor :content_guard
34
+
37
35
  # The latest RepositoryVersion for this Repository will be served.
38
36
  attr_accessor :repository
39
37
 
38
+ attr_accessor :pulp_labels
39
+
40
40
  # The Registry hostame/name/ to use with docker pull command defined by this distribution.
41
41
  attr_accessor :registry_path
42
42
 
@@ -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_labels' => :'pulp_labels',
56
- :'content_guard' => :'content_guard',
57
55
  :'pulp_created' => :'pulp_created',
58
56
  :'name' => :'name',
59
- :'base_path' => :'base_path',
60
57
  :'pulp_href' => :'pulp_href',
61
58
  :'repository_version' => :'repository_version',
59
+ :'base_path' => :'base_path',
60
+ :'content_guard' => :'content_guard',
62
61
  :'repository' => :'repository',
62
+ :'pulp_labels' => :'pulp_labels',
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_labels' => :'Object',
74
- :'content_guard' => :'String',
75
73
  :'pulp_created' => :'DateTime',
76
74
  :'name' => :'String',
77
- :'base_path' => :'String',
78
75
  :'pulp_href' => :'String',
79
76
  :'repository_version' => :'String',
77
+ :'base_path' => :'String',
78
+ :'content_guard' => :'String',
80
79
  :'repository' => :'String',
80
+ :'pulp_labels' => :'Object',
81
81
  :'registry_path' => :'String',
82
82
  :'namespace' => :'String',
83
83
  :'private' => :'Boolean',
@@ -109,14 +109,6 @@ module PulpContainerClient
109
109
  h[k.to_sym] = v
110
110
  }
111
111
 
112
- if attributes.key?(:'pulp_labels')
113
- self.pulp_labels = attributes[:'pulp_labels']
114
- end
115
-
116
- if attributes.key?(:'content_guard')
117
- self.content_guard = attributes[:'content_guard']
118
- end
119
-
120
112
  if attributes.key?(:'pulp_created')
121
113
  self.pulp_created = attributes[:'pulp_created']
122
114
  end
@@ -125,10 +117,6 @@ module PulpContainerClient
125
117
  self.name = attributes[:'name']
126
118
  end
127
119
 
128
- if attributes.key?(:'base_path')
129
- self.base_path = attributes[:'base_path']
130
- end
131
-
132
120
  if attributes.key?(:'pulp_href')
133
121
  self.pulp_href = attributes[:'pulp_href']
134
122
  end
@@ -137,10 +125,22 @@ module PulpContainerClient
137
125
  self.repository_version = attributes[:'repository_version']
138
126
  end
139
127
 
128
+ if attributes.key?(:'base_path')
129
+ self.base_path = attributes[:'base_path']
130
+ end
131
+
132
+ if attributes.key?(:'content_guard')
133
+ self.content_guard = attributes[:'content_guard']
134
+ end
135
+
140
136
  if attributes.key?(:'repository')
141
137
  self.repository = attributes[:'repository']
142
138
  end
143
139
 
140
+ if attributes.key?(:'pulp_labels')
141
+ self.pulp_labels = attributes[:'pulp_labels']
142
+ end
143
+
144
144
  if attributes.key?(:'registry_path')
145
145
  self.registry_path = attributes[:'registry_path']
146
146
  end
@@ -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_labels == o.pulp_labels &&
190
- content_guard == o.content_guard &&
191
189
  pulp_created == o.pulp_created &&
192
190
  name == o.name &&
193
- base_path == o.base_path &&
194
191
  pulp_href == o.pulp_href &&
195
192
  repository_version == o.repository_version &&
193
+ base_path == o.base_path &&
194
+ content_guard == o.content_guard &&
196
195
  repository == o.repository &&
196
+ pulp_labels == o.pulp_labels &&
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_labels, content_guard, pulp_created, name, base_path, pulp_href, repository_version, repository, registry_path, namespace, private, description].hash
212
+ [pulp_created, name, pulp_href, repository_version, base_path, content_guard, repository, pulp_labels, 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,23 +15,23 @@ 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
  # A unique name. Ex, `rawhide` and `stable`.
24
19
  attr_accessor :name
25
20
 
21
+ # RepositoryVersion to be served
22
+ attr_accessor :repository_version
23
+
26
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\")
27
25
  attr_accessor :base_path
28
26
 
29
- # RepositoryVersion to be served
30
- attr_accessor :repository_version
27
+ # An optional content-guard. If none is specified, a default one will be used.
28
+ attr_accessor :content_guard
31
29
 
32
30
  # The latest RepositoryVersion for this Repository will be served.
33
31
  attr_accessor :repository
34
32
 
33
+ attr_accessor :pulp_labels
34
+
35
35
  # Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
36
36
  attr_accessor :private
37
37
 
@@ -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
  :'name' => :'name',
47
- :'base_path' => :'base_path',
48
45
  :'repository_version' => :'repository_version',
46
+ :'base_path' => :'base_path',
47
+ :'content_guard' => :'content_guard',
49
48
  :'repository' => :'repository',
49
+ :'pulp_labels' => :'pulp_labels',
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
  :'name' => :'String',
61
- :'base_path' => :'String',
62
59
  :'repository_version' => :'String',
60
+ :'base_path' => :'String',
61
+ :'content_guard' => :'String',
63
62
  :'repository' => :'String',
63
+ :'pulp_labels' => :'Object',
64
64
  :'private' => :'Boolean',
65
65
  :'description' => :'String'
66
66
  }
@@ -90,30 +90,30 @@ 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?(:'name')
102
94
  self.name = attributes[:'name']
103
95
  end
104
96
 
97
+ if attributes.key?(:'repository_version')
98
+ self.repository_version = attributes[:'repository_version']
99
+ end
100
+
105
101
  if attributes.key?(:'base_path')
106
102
  self.base_path = attributes[:'base_path']
107
103
  end
108
104
 
109
- if attributes.key?(:'repository_version')
110
- self.repository_version = attributes[:'repository_version']
105
+ if attributes.key?(:'content_guard')
106
+ self.content_guard = attributes[:'content_guard']
111
107
  end
112
108
 
113
109
  if attributes.key?(:'repository')
114
110
  self.repository = attributes[:'repository']
115
111
  end
116
112
 
113
+ if attributes.key?(:'pulp_labels')
114
+ self.pulp_labels = attributes[:'pulp_labels']
115
+ end
116
+
117
117
  if attributes.key?(:'private')
118
118
  self.private = attributes[:'private']
119
119
  end
@@ -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
  name == o.name &&
147
- base_path == o.base_path &&
148
145
  repository_version == o.repository_version &&
146
+ base_path == o.base_path &&
147
+ content_guard == o.content_guard &&
149
148
  repository == o.repository &&
149
+ pulp_labels == o.pulp_labels &&
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, name, base_path, repository_version, repository, private, description].hash
163
+ [name, repository_version, base_path, content_guard, repository, pulp_labels, private, description].hash
164
164
  end
165
165
 
166
166
  # Builds the object from hash