pulp_container_client 2.18.0 → 2.19.0

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 (37) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContainerContainerDistribution.md +5 -5
  4. data/docs/ContainerContainerDistributionResponse.md +8 -8
  5. data/docs/ContainerContainerPullThroughDistribution.md +5 -5
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +8 -8
  7. data/docs/ContainerContainerPushRepository.md +5 -5
  8. data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
  9. data/docs/ContainerManifestResponse.md +9 -1
  10. data/docs/ContentManifestsApi.md +6 -2
  11. data/docs/PatchedcontainerContainerDistribution.md +5 -5
  12. data/docs/PatchedcontainerContainerPullThroughDistribution.md +5 -5
  13. data/docs/PatchedcontainerContainerPushRepository.md +5 -5
  14. data/lib/pulp_container_client/api/content_manifests_api.rb +9 -3
  15. data/lib/pulp_container_client/models/container_container_distribution.rb +21 -21
  16. data/lib/pulp_container_client/models/container_container_distribution_response.rb +31 -31
  17. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +21 -21
  18. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +31 -31
  19. data/lib/pulp_container_client/models/container_container_push_repository.rb +49 -49
  20. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +55 -55
  21. data/lib/pulp_container_client/models/container_manifest_response.rb +48 -4
  22. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +21 -21
  23. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +21 -21
  24. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +41 -41
  25. data/lib/pulp_container_client/version.rb +1 -1
  26. data/spec/api/content_manifests_api_spec.rb +3 -1
  27. data/spec/models/container_container_distribution_response_spec.rb +6 -6
  28. data/spec/models/container_container_distribution_spec.rb +4 -4
  29. data/spec/models/container_container_pull_through_distribution_response_spec.rb +6 -6
  30. data/spec/models/container_container_pull_through_distribution_spec.rb +4 -4
  31. data/spec/models/container_container_push_repository_response_spec.rb +9 -9
  32. data/spec/models/container_container_push_repository_spec.rb +4 -4
  33. data/spec/models/container_manifest_response_spec.rb +24 -0
  34. data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
  35. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +4 -4
  36. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  37. metadata +61 -61
@@ -15,56 +15,56 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepositoryResponse
18
+ attr_accessor :pulp_href
19
+
18
20
  # A reference to an associated signing service.
19
21
  attr_accessor :manifest_signing_service
20
22
 
21
- attr_accessor :latest_version_href
22
-
23
- # A unique name for this repository.
24
- attr_accessor :name
25
-
26
- # Retain X versions of the repository. Default is null which retains all versions.
27
- attr_accessor :retain_repo_versions
28
-
29
- attr_accessor :pulp_href
23
+ attr_accessor :versions_href
30
24
 
31
25
  # An optional description.
32
26
  attr_accessor :description
33
27
 
28
+ # Timestamp of creation.
29
+ attr_accessor :pulp_created
30
+
34
31
  attr_accessor :pulp_labels
35
32
 
36
- attr_accessor :versions_href
33
+ # Retain X versions of the repository. Default is null which retains all versions.
34
+ attr_accessor :retain_repo_versions
37
35
 
38
- # Timestamp of creation.
39
- attr_accessor :pulp_created
36
+ # A unique name for this repository.
37
+ attr_accessor :name
38
+
39
+ attr_accessor :latest_version_href
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
- :'manifest_signing_service' => :'manifest_signing_service',
45
- :'latest_version_href' => :'latest_version_href',
46
- :'name' => :'name',
47
- :'retain_repo_versions' => :'retain_repo_versions',
48
44
  :'pulp_href' => :'pulp_href',
45
+ :'manifest_signing_service' => :'manifest_signing_service',
46
+ :'versions_href' => :'versions_href',
49
47
  :'description' => :'description',
48
+ :'pulp_created' => :'pulp_created',
50
49
  :'pulp_labels' => :'pulp_labels',
51
- :'versions_href' => :'versions_href',
52
- :'pulp_created' => :'pulp_created'
50
+ :'retain_repo_versions' => :'retain_repo_versions',
51
+ :'name' => :'name',
52
+ :'latest_version_href' => :'latest_version_href'
53
53
  }
54
54
  end
55
55
 
56
56
  # Attribute type mapping.
57
57
  def self.openapi_types
58
58
  {
59
- :'manifest_signing_service' => :'String',
60
- :'latest_version_href' => :'String',
61
- :'name' => :'String',
62
- :'retain_repo_versions' => :'Integer',
63
59
  :'pulp_href' => :'String',
60
+ :'manifest_signing_service' => :'String',
61
+ :'versions_href' => :'String',
64
62
  :'description' => :'String',
63
+ :'pulp_created' => :'DateTime',
65
64
  :'pulp_labels' => :'Hash<String, String>',
66
- :'versions_href' => :'String',
67
- :'pulp_created' => :'DateTime'
65
+ :'retain_repo_versions' => :'Integer',
66
+ :'name' => :'String',
67
+ :'latest_version_href' => :'String'
68
68
  }
69
69
  end
70
70
 
@@ -72,8 +72,8 @@ module PulpContainerClient
72
72
  def self.openapi_nullable
73
73
  Set.new([
74
74
  :'manifest_signing_service',
75
- :'retain_repo_versions',
76
75
  :'description',
76
+ :'retain_repo_versions',
77
77
  ])
78
78
  end
79
79
 
@@ -92,42 +92,42 @@ module PulpContainerClient
92
92
  h[k.to_sym] = v
93
93
  }
94
94
 
95
- if attributes.key?(:'manifest_signing_service')
96
- self.manifest_signing_service = attributes[:'manifest_signing_service']
97
- end
98
-
99
- if attributes.key?(:'latest_version_href')
100
- self.latest_version_href = attributes[:'latest_version_href']
101
- end
102
-
103
- if attributes.key?(:'name')
104
- self.name = attributes[:'name']
95
+ if attributes.key?(:'pulp_href')
96
+ self.pulp_href = attributes[:'pulp_href']
105
97
  end
106
98
 
107
- if attributes.key?(:'retain_repo_versions')
108
- self.retain_repo_versions = attributes[:'retain_repo_versions']
99
+ if attributes.key?(:'manifest_signing_service')
100
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
109
101
  end
110
102
 
111
- if attributes.key?(:'pulp_href')
112
- self.pulp_href = attributes[:'pulp_href']
103
+ if attributes.key?(:'versions_href')
104
+ self.versions_href = attributes[:'versions_href']
113
105
  end
114
106
 
115
107
  if attributes.key?(:'description')
116
108
  self.description = attributes[:'description']
117
109
  end
118
110
 
111
+ if attributes.key?(:'pulp_created')
112
+ self.pulp_created = attributes[:'pulp_created']
113
+ end
114
+
119
115
  if attributes.key?(:'pulp_labels')
120
116
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
121
117
  self.pulp_labels = value
122
118
  end
123
119
  end
124
120
 
125
- if attributes.key?(:'versions_href')
126
- self.versions_href = attributes[:'versions_href']
121
+ if attributes.key?(:'retain_repo_versions')
122
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
127
123
  end
128
124
 
129
- if attributes.key?(:'pulp_created')
130
- self.pulp_created = attributes[:'pulp_created']
125
+ if attributes.key?(:'name')
126
+ self.name = attributes[:'name']
127
+ end
128
+
129
+ if attributes.key?(:'latest_version_href')
130
+ self.latest_version_href = attributes[:'latest_version_href']
131
131
  end
132
132
  end
133
133
 
@@ -135,22 +135,22 @@ module PulpContainerClient
135
135
  # @return Array for valid properties with the reasons
136
136
  def list_invalid_properties
137
137
  invalid_properties = Array.new
138
- if @name.nil?
139
- invalid_properties.push('invalid value for "name", name cannot be nil.')
140
- end
141
-
142
138
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
143
139
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
144
140
  end
145
141
 
142
+ if @name.nil?
143
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
144
+ end
145
+
146
146
  invalid_properties
147
147
  end
148
148
 
149
149
  # Check to see if the all the properties in the model are valid
150
150
  # @return true if the model is valid
151
151
  def valid?
152
- return false if @name.nil?
153
152
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
153
+ return false if @name.nil?
154
154
  true
155
155
  end
156
156
 
@@ -169,15 +169,15 @@ module PulpContainerClient
169
169
  def ==(o)
170
170
  return true if self.equal?(o)
171
171
  self.class == o.class &&
172
- manifest_signing_service == o.manifest_signing_service &&
173
- latest_version_href == o.latest_version_href &&
174
- name == o.name &&
175
- retain_repo_versions == o.retain_repo_versions &&
176
172
  pulp_href == o.pulp_href &&
173
+ manifest_signing_service == o.manifest_signing_service &&
174
+ versions_href == o.versions_href &&
177
175
  description == o.description &&
176
+ pulp_created == o.pulp_created &&
178
177
  pulp_labels == o.pulp_labels &&
179
- versions_href == o.versions_href &&
180
- pulp_created == o.pulp_created
178
+ retain_repo_versions == o.retain_repo_versions &&
179
+ name == o.name &&
180
+ latest_version_href == o.latest_version_href
181
181
  end
182
182
 
183
183
  # @see the `==` method
@@ -189,7 +189,7 @@ module PulpContainerClient
189
189
  # Calculates hash code according to all attributes.
190
190
  # @return [Integer] Hash code
191
191
  def hash
192
- [manifest_signing_service, latest_version_href, name, retain_repo_versions, pulp_href, description, pulp_labels, versions_href, pulp_created].hash
192
+ [pulp_href, manifest_signing_service, versions_href, description, pulp_created, pulp_labels, retain_repo_versions, name, latest_version_href].hash
193
193
  end
194
194
 
195
195
  # Builds the object from hash
@@ -41,6 +41,18 @@ module PulpContainerClient
41
41
  # Blobs that are referenced by this Manifest
42
42
  attr_accessor :blobs
43
43
 
44
+ # Property that contains arbitrary metadata stored inside the image manifest.
45
+ attr_accessor :annotations
46
+
47
+ # Property describing metadata stored inside the image configuration
48
+ attr_accessor :labels
49
+
50
+ # A boolean determining whether users can boot from an image or not.
51
+ attr_accessor :is_bootable
52
+
53
+ # A boolean determining whether the image bundles a Flatpak application
54
+ attr_accessor :is_flatpak
55
+
44
56
  # Attribute mapping from ruby-style variable name to JSON key.
45
57
  def self.attribute_map
46
58
  {
@@ -52,7 +64,11 @@ module PulpContainerClient
52
64
  :'media_type' => :'media_type',
53
65
  :'listed_manifests' => :'listed_manifests',
54
66
  :'config_blob' => :'config_blob',
55
- :'blobs' => :'blobs'
67
+ :'blobs' => :'blobs',
68
+ :'annotations' => :'annotations',
69
+ :'labels' => :'labels',
70
+ :'is_bootable' => :'is_bootable',
71
+ :'is_flatpak' => :'is_flatpak'
56
72
  }
57
73
  end
58
74
 
@@ -67,7 +83,11 @@ module PulpContainerClient
67
83
  :'media_type' => :'String',
68
84
  :'listed_manifests' => :'Array<String>',
69
85
  :'config_blob' => :'String',
70
- :'blobs' => :'Array<String>'
86
+ :'blobs' => :'Array<String>',
87
+ :'annotations' => :'Object',
88
+ :'labels' => :'Object',
89
+ :'is_bootable' => :'Boolean',
90
+ :'is_flatpak' => :'Boolean'
71
91
  }
72
92
  end
73
93
 
@@ -131,6 +151,26 @@ module PulpContainerClient
131
151
  self.blobs = value
132
152
  end
133
153
  end
154
+
155
+ if attributes.key?(:'annotations')
156
+ self.annotations = attributes[:'annotations']
157
+ end
158
+
159
+ if attributes.key?(:'labels')
160
+ self.labels = attributes[:'labels']
161
+ end
162
+
163
+ if attributes.key?(:'is_bootable')
164
+ self.is_bootable = attributes[:'is_bootable']
165
+ else
166
+ self.is_bootable = false
167
+ end
168
+
169
+ if attributes.key?(:'is_flatpak')
170
+ self.is_flatpak = attributes[:'is_flatpak']
171
+ else
172
+ self.is_flatpak = false
173
+ end
134
174
  end
135
175
 
136
176
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -189,7 +229,11 @@ module PulpContainerClient
189
229
  media_type == o.media_type &&
190
230
  listed_manifests == o.listed_manifests &&
191
231
  config_blob == o.config_blob &&
192
- blobs == o.blobs
232
+ blobs == o.blobs &&
233
+ annotations == o.annotations &&
234
+ labels == o.labels &&
235
+ is_bootable == o.is_bootable &&
236
+ is_flatpak == o.is_flatpak
193
237
  end
194
238
 
195
239
  # @see the `==` method
@@ -201,7 +245,7 @@ module PulpContainerClient
201
245
  # Calculates hash code according to all attributes.
202
246
  # @return [Integer] Hash code
203
247
  def hash
204
- [pulp_href, pulp_created, artifact, digest, schema_version, media_type, listed_manifests, config_blob, blobs].hash
248
+ [pulp_href, pulp_created, artifact, digest, schema_version, media_type, listed_manifests, config_blob, blobs, annotations, labels, is_bootable, is_flatpak].hash
205
249
  end
206
250
 
207
251
  # Builds the object from hash
@@ -15,23 +15,23 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for ContainerDistribution.
17
17
  class PatchedcontainerContainerDistribution
18
- # An optional content-guard. If none is specified, a default one will be used.
19
- attr_accessor :content_guard
20
-
21
18
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
22
19
  attr_accessor :base_path
23
20
 
21
+ # An optional content-guard. If none is specified, a default one will be used.
22
+ attr_accessor :content_guard
23
+
24
24
  # Whether this distribution should be shown in the content app.
25
25
  attr_accessor :hidden
26
26
 
27
27
  attr_accessor :pulp_labels
28
28
 
29
- # A unique name. Ex, `rawhide` and `stable`.
30
- attr_accessor :name
31
-
32
29
  # The latest RepositoryVersion for this Repository will be served.
33
30
  attr_accessor :repository
34
31
 
32
+ # A unique name. Ex, `rawhide` and `stable`.
33
+ attr_accessor :name
34
+
35
35
  # RepositoryVersion to be served
36
36
  attr_accessor :repository_version
37
37
 
@@ -44,12 +44,12 @@ module PulpContainerClient
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
45
45
  def self.attribute_map
46
46
  {
47
- :'content_guard' => :'content_guard',
48
47
  :'base_path' => :'base_path',
48
+ :'content_guard' => :'content_guard',
49
49
  :'hidden' => :'hidden',
50
50
  :'pulp_labels' => :'pulp_labels',
51
- :'name' => :'name',
52
51
  :'repository' => :'repository',
52
+ :'name' => :'name',
53
53
  :'repository_version' => :'repository_version',
54
54
  :'private' => :'private',
55
55
  :'description' => :'description'
@@ -59,12 +59,12 @@ module PulpContainerClient
59
59
  # Attribute type mapping.
60
60
  def self.openapi_types
61
61
  {
62
- :'content_guard' => :'String',
63
62
  :'base_path' => :'String',
63
+ :'content_guard' => :'String',
64
64
  :'hidden' => :'Boolean',
65
65
  :'pulp_labels' => :'Hash<String, String>',
66
- :'name' => :'String',
67
66
  :'repository' => :'String',
67
+ :'name' => :'String',
68
68
  :'repository_version' => :'String',
69
69
  :'private' => :'Boolean',
70
70
  :'description' => :'String'
@@ -95,14 +95,14 @@ module PulpContainerClient
95
95
  h[k.to_sym] = v
96
96
  }
97
97
 
98
- if attributes.key?(:'content_guard')
99
- self.content_guard = attributes[:'content_guard']
100
- end
101
-
102
98
  if attributes.key?(:'base_path')
103
99
  self.base_path = attributes[:'base_path']
104
100
  end
105
101
 
102
+ if attributes.key?(:'content_guard')
103
+ self.content_guard = attributes[:'content_guard']
104
+ end
105
+
106
106
  if attributes.key?(:'hidden')
107
107
  self.hidden = attributes[:'hidden']
108
108
  else
@@ -115,14 +115,14 @@ module PulpContainerClient
115
115
  end
116
116
  end
117
117
 
118
- if attributes.key?(:'name')
119
- self.name = attributes[:'name']
120
- end
121
-
122
118
  if attributes.key?(:'repository')
123
119
  self.repository = attributes[:'repository']
124
120
  end
125
121
 
122
+ if attributes.key?(:'name')
123
+ self.name = attributes[:'name']
124
+ end
125
+
126
126
  if attributes.key?(:'repository_version')
127
127
  self.repository_version = attributes[:'repository_version']
128
128
  end
@@ -199,12 +199,12 @@ module PulpContainerClient
199
199
  def ==(o)
200
200
  return true if self.equal?(o)
201
201
  self.class == o.class &&
202
- content_guard == o.content_guard &&
203
202
  base_path == o.base_path &&
203
+ content_guard == o.content_guard &&
204
204
  hidden == o.hidden &&
205
205
  pulp_labels == o.pulp_labels &&
206
- name == o.name &&
207
206
  repository == o.repository &&
207
+ name == o.name &&
208
208
  repository_version == o.repository_version &&
209
209
  private == o.private &&
210
210
  description == o.description
@@ -219,7 +219,7 @@ module PulpContainerClient
219
219
  # Calculates hash code according to all attributes.
220
220
  # @return [Integer] Hash code
221
221
  def hash
222
- [content_guard, base_path, hidden, pulp_labels, name, repository, repository_version, private, description].hash
222
+ [base_path, content_guard, hidden, pulp_labels, repository, name, repository_version, private, description].hash
223
223
  end
224
224
 
225
225
  # Builds the object from hash
@@ -15,23 +15,23 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
17
17
  class PatchedcontainerContainerPullThroughDistribution
18
- # An optional content-guard. If none is specified, a default one will be used.
19
- attr_accessor :content_guard
20
-
21
18
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
22
19
  attr_accessor :base_path
23
20
 
21
+ # An optional content-guard. If none is specified, a default one will be used.
22
+ attr_accessor :content_guard
23
+
24
24
  # Whether this distribution should be shown in the content app.
25
25
  attr_accessor :hidden
26
26
 
27
27
  attr_accessor :pulp_labels
28
28
 
29
- # A unique name. Ex, `rawhide` and `stable`.
30
- attr_accessor :name
31
-
32
29
  # The latest RepositoryVersion for this Repository will be served.
33
30
  attr_accessor :repository
34
31
 
32
+ # A unique name. Ex, `rawhide` and `stable`.
33
+ attr_accessor :name
34
+
35
35
  # Remote that can be used to fetch content when using pull-through caching.
36
36
  attr_accessor :remote
37
37
 
@@ -47,12 +47,12 @@ module PulpContainerClient
47
47
  # Attribute mapping from ruby-style variable name to JSON key.
48
48
  def self.attribute_map
49
49
  {
50
- :'content_guard' => :'content_guard',
51
50
  :'base_path' => :'base_path',
51
+ :'content_guard' => :'content_guard',
52
52
  :'hidden' => :'hidden',
53
53
  :'pulp_labels' => :'pulp_labels',
54
- :'name' => :'name',
55
54
  :'repository' => :'repository',
55
+ :'name' => :'name',
56
56
  :'remote' => :'remote',
57
57
  :'distributions' => :'distributions',
58
58
  :'private' => :'private',
@@ -63,12 +63,12 @@ module PulpContainerClient
63
63
  # Attribute type mapping.
64
64
  def self.openapi_types
65
65
  {
66
- :'content_guard' => :'String',
67
66
  :'base_path' => :'String',
67
+ :'content_guard' => :'String',
68
68
  :'hidden' => :'Boolean',
69
69
  :'pulp_labels' => :'Hash<String, String>',
70
- :'name' => :'String',
71
70
  :'repository' => :'String',
71
+ :'name' => :'String',
72
72
  :'remote' => :'String',
73
73
  :'distributions' => :'Array<String>',
74
74
  :'private' => :'Boolean',
@@ -99,14 +99,14 @@ module PulpContainerClient
99
99
  h[k.to_sym] = v
100
100
  }
101
101
 
102
- if attributes.key?(:'content_guard')
103
- self.content_guard = attributes[:'content_guard']
104
- end
105
-
106
102
  if attributes.key?(:'base_path')
107
103
  self.base_path = attributes[:'base_path']
108
104
  end
109
105
 
106
+ if attributes.key?(:'content_guard')
107
+ self.content_guard = attributes[:'content_guard']
108
+ end
109
+
110
110
  if attributes.key?(:'hidden')
111
111
  self.hidden = attributes[:'hidden']
112
112
  else
@@ -119,14 +119,14 @@ module PulpContainerClient
119
119
  end
120
120
  end
121
121
 
122
- if attributes.key?(:'name')
123
- self.name = attributes[:'name']
124
- end
125
-
126
122
  if attributes.key?(:'repository')
127
123
  self.repository = attributes[:'repository']
128
124
  end
129
125
 
126
+ if attributes.key?(:'name')
127
+ self.name = attributes[:'name']
128
+ end
129
+
130
130
  if attributes.key?(:'remote')
131
131
  self.remote = attributes[:'remote']
132
132
  end
@@ -209,12 +209,12 @@ module PulpContainerClient
209
209
  def ==(o)
210
210
  return true if self.equal?(o)
211
211
  self.class == o.class &&
212
- content_guard == o.content_guard &&
213
212
  base_path == o.base_path &&
213
+ content_guard == o.content_guard &&
214
214
  hidden == o.hidden &&
215
215
  pulp_labels == o.pulp_labels &&
216
- name == o.name &&
217
216
  repository == o.repository &&
217
+ name == o.name &&
218
218
  remote == o.remote &&
219
219
  distributions == o.distributions &&
220
220
  private == o.private &&
@@ -230,7 +230,7 @@ module PulpContainerClient
230
230
  # Calculates hash code according to all attributes.
231
231
  # @return [Integer] Hash code
232
232
  def hash
233
- [content_guard, base_path, hidden, pulp_labels, name, repository, remote, distributions, private, description].hash
233
+ [base_path, content_guard, hidden, pulp_labels, repository, name, remote, distributions, private, description].hash
234
234
  end
235
235
 
236
236
  # Builds the object from hash