pulp_container_client 2.23.0 → 2.24.1

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 (55) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -5
  3. data/docs/ContainerBlobResponse.md +2 -0
  4. data/docs/ContainerContainerDistribution.md +4 -4
  5. data/docs/ContainerContainerDistributionResponse.md +10 -10
  6. data/docs/ContainerContainerPullThroughDistribution.md +4 -4
  7. data/docs/ContainerContainerPullThroughDistributionResponse.md +10 -10
  8. data/docs/ContainerContainerPushRepository.md +6 -6
  9. data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
  10. data/docs/ContainerManifestResponse.md +2 -0
  11. data/docs/ContainerManifestSignatureResponse.md +2 -0
  12. data/docs/ContainerTagResponse.md +2 -0
  13. data/docs/ContentBlobsApi.md +4 -2
  14. data/docs/ContentManifestsApi.md +4 -2
  15. data/docs/ContentSignaturesApi.md +4 -2
  16. data/docs/ContentTagsApi.md +4 -2
  17. data/docs/PatchedcontainerContainerDistribution.md +4 -4
  18. data/docs/PatchedcontainerContainerPullThroughDistribution.md +4 -4
  19. data/docs/PatchedcontainerContainerPushRepository.md +6 -6
  20. data/lib/pulp_container_client/api/content_blobs_api.rb +6 -3
  21. data/lib/pulp_container_client/api/content_manifests_api.rb +6 -3
  22. data/lib/pulp_container_client/api/content_signatures_api.rb +6 -3
  23. data/lib/pulp_container_client/api/content_tags_api.rb +6 -3
  24. data/lib/pulp_container_client/models/container_blob_response.rb +13 -1
  25. data/lib/pulp_container_client/models/container_container_distribution.rb +24 -24
  26. data/lib/pulp_container_client/models/container_container_distribution_response.rb +47 -47
  27. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +24 -24
  28. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +47 -47
  29. data/lib/pulp_container_client/models/container_container_push_repository.rb +44 -44
  30. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +62 -62
  31. data/lib/pulp_container_client/models/container_manifest_response.rb +13 -1
  32. data/lib/pulp_container_client/models/container_manifest_signature_response.rb +13 -1
  33. data/lib/pulp_container_client/models/container_tag_response.rb +13 -1
  34. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +24 -24
  35. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +24 -24
  36. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +42 -42
  37. data/lib/pulp_container_client/version.rb +1 -1
  38. data/spec/api/content_blobs_api_spec.rb +2 -1
  39. data/spec/api/content_manifests_api_spec.rb +2 -1
  40. data/spec/api/content_signatures_api_spec.rb +2 -1
  41. data/spec/api/content_tags_api_spec.rb +2 -1
  42. data/spec/models/container_blob_response_spec.rb +6 -0
  43. data/spec/models/container_container_distribution_response_spec.rb +7 -7
  44. data/spec/models/container_container_distribution_spec.rb +4 -4
  45. data/spec/models/container_container_pull_through_distribution_response_spec.rb +7 -7
  46. data/spec/models/container_container_pull_through_distribution_spec.rb +4 -4
  47. data/spec/models/container_container_push_repository_response_spec.rb +11 -11
  48. data/spec/models/container_container_push_repository_spec.rb +4 -4
  49. data/spec/models/container_manifest_response_spec.rb +6 -0
  50. data/spec/models/container_manifest_signature_response_spec.rb +6 -0
  51. data/spec/models/container_tag_response_spec.rb +6 -0
  52. data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
  53. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +4 -4
  54. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  55. metadata +63 -63
@@ -16,20 +16,20 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
18
18
  class ContainerContainerPullThroughDistribution
19
+ # Whether this distribution should be shown in the content app.
20
+ attr_accessor :hidden
21
+
19
22
  # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
20
23
  attr_accessor :base_path
21
24
 
22
- attr_accessor :pulp_labels
23
-
24
25
  # A unique name. Ex, `rawhide` and `stable`.
25
26
  attr_accessor :name
26
27
 
27
- # Whether this distribution should be shown in the content app.
28
- attr_accessor :hidden
29
-
30
28
  # An optional content-guard. If none is specified, a default one will be used.
31
29
  attr_accessor :content_guard
32
30
 
31
+ attr_accessor :pulp_labels
32
+
33
33
  # The latest RepositoryVersion for this Repository will be served.
34
34
  attr_accessor :repository
35
35
 
@@ -48,11 +48,11 @@ module PulpContainerClient
48
48
  # Attribute mapping from ruby-style variable name to JSON key.
49
49
  def self.attribute_map
50
50
  {
51
+ :'hidden' => :'hidden',
51
52
  :'base_path' => :'base_path',
52
- :'pulp_labels' => :'pulp_labels',
53
53
  :'name' => :'name',
54
- :'hidden' => :'hidden',
55
54
  :'content_guard' => :'content_guard',
55
+ :'pulp_labels' => :'pulp_labels',
56
56
  :'repository' => :'repository',
57
57
  :'remote' => :'remote',
58
58
  :'distributions' => :'distributions',
@@ -69,11 +69,11 @@ module PulpContainerClient
69
69
  # Attribute type mapping.
70
70
  def self.openapi_types
71
71
  {
72
+ :'hidden' => :'Boolean',
72
73
  :'base_path' => :'String',
73
- :'pulp_labels' => :'Hash<String, String>',
74
74
  :'name' => :'String',
75
- :'hidden' => :'Boolean',
76
75
  :'content_guard' => :'String',
76
+ :'pulp_labels' => :'Hash<String, String>',
77
77
  :'repository' => :'String',
78
78
  :'remote' => :'String',
79
79
  :'distributions' => :'Array<String>',
@@ -105,34 +105,34 @@ module PulpContainerClient
105
105
  h[k.to_sym] = v
106
106
  }
107
107
 
108
+ if attributes.key?(:'hidden')
109
+ self.hidden = attributes[:'hidden']
110
+ else
111
+ self.hidden = false
112
+ end
113
+
108
114
  if attributes.key?(:'base_path')
109
115
  self.base_path = attributes[:'base_path']
110
116
  else
111
117
  self.base_path = nil
112
118
  end
113
119
 
114
- if attributes.key?(:'pulp_labels')
115
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
116
- self.pulp_labels = value
117
- end
118
- end
119
-
120
120
  if attributes.key?(:'name')
121
121
  self.name = attributes[:'name']
122
122
  else
123
123
  self.name = nil
124
124
  end
125
125
 
126
- if attributes.key?(:'hidden')
127
- self.hidden = attributes[:'hidden']
128
- else
129
- self.hidden = false
130
- end
131
-
132
126
  if attributes.key?(:'content_guard')
133
127
  self.content_guard = attributes[:'content_guard']
134
128
  end
135
129
 
130
+ if attributes.key?(:'pulp_labels')
131
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
132
+ self.pulp_labels = value
133
+ end
134
+ end
135
+
136
136
  if attributes.key?(:'repository')
137
137
  self.repository = attributes[:'repository']
138
138
  end
@@ -246,11 +246,11 @@ module PulpContainerClient
246
246
  def ==(o)
247
247
  return true if self.equal?(o)
248
248
  self.class == o.class &&
249
+ hidden == o.hidden &&
249
250
  base_path == o.base_path &&
250
- pulp_labels == o.pulp_labels &&
251
251
  name == o.name &&
252
- hidden == o.hidden &&
253
252
  content_guard == o.content_guard &&
253
+ pulp_labels == o.pulp_labels &&
254
254
  repository == o.repository &&
255
255
  remote == o.remote &&
256
256
  distributions == o.distributions &&
@@ -267,7 +267,7 @@ module PulpContainerClient
267
267
  # Calculates hash code according to all attributes.
268
268
  # @return [Integer] Hash code
269
269
  def hash
270
- [base_path, pulp_labels, name, hidden, content_guard, repository, remote, distributions, private, description].hash
270
+ [hidden, base_path, name, content_guard, pulp_labels, repository, remote, distributions, private, description].hash
271
271
  end
272
272
 
273
273
  # Builds the object from hash
@@ -16,31 +16,31 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
18
18
  class ContainerContainerPullThroughDistributionResponse
19
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
20
- attr_accessor :base_path
19
+ # The Pulp Resource Name (PRN).
20
+ attr_accessor :prn
21
21
 
22
- attr_accessor :pulp_labels
22
+ attr_accessor :pulp_href
23
23
 
24
- # A unique name. Ex, `rawhide` and `stable`.
25
- attr_accessor :name
24
+ # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
25
+ attr_accessor :pulp_last_updated
26
26
 
27
27
  # Whether this distribution should be shown in the content app.
28
28
  attr_accessor :hidden
29
29
 
30
- # The Pulp Resource Name (PRN).
31
- attr_accessor :prn
30
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
31
+ attr_accessor :base_path
32
32
 
33
- attr_accessor :pulp_href
33
+ # A unique name. Ex, `rawhide` and `stable`.
34
+ attr_accessor :name
34
35
 
35
36
  # An optional content-guard. If none is specified, a default one will be used.
36
37
  attr_accessor :content_guard
37
38
 
39
+ attr_accessor :pulp_labels
40
+
38
41
  # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
39
42
  attr_accessor :no_content_change_since
40
43
 
41
- # Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
42
- attr_accessor :pulp_last_updated
43
-
44
44
  # Timestamp of creation.
45
45
  attr_accessor :pulp_created
46
46
 
@@ -65,15 +65,15 @@ module PulpContainerClient
65
65
  # Attribute mapping from ruby-style variable name to JSON key.
66
66
  def self.attribute_map
67
67
  {
68
- :'base_path' => :'base_path',
69
- :'pulp_labels' => :'pulp_labels',
70
- :'name' => :'name',
71
- :'hidden' => :'hidden',
72
68
  :'prn' => :'prn',
73
69
  :'pulp_href' => :'pulp_href',
70
+ :'pulp_last_updated' => :'pulp_last_updated',
71
+ :'hidden' => :'hidden',
72
+ :'base_path' => :'base_path',
73
+ :'name' => :'name',
74
74
  :'content_guard' => :'content_guard',
75
+ :'pulp_labels' => :'pulp_labels',
75
76
  :'no_content_change_since' => :'no_content_change_since',
76
- :'pulp_last_updated' => :'pulp_last_updated',
77
77
  :'pulp_created' => :'pulp_created',
78
78
  :'repository' => :'repository',
79
79
  :'remote' => :'remote',
@@ -92,15 +92,15 @@ module PulpContainerClient
92
92
  # Attribute type mapping.
93
93
  def self.openapi_types
94
94
  {
95
- :'base_path' => :'String',
96
- :'pulp_labels' => :'Hash<String, String>',
97
- :'name' => :'String',
98
- :'hidden' => :'Boolean',
99
95
  :'prn' => :'String',
100
96
  :'pulp_href' => :'String',
97
+ :'pulp_last_updated' => :'Time',
98
+ :'hidden' => :'Boolean',
99
+ :'base_path' => :'String',
100
+ :'name' => :'String',
101
101
  :'content_guard' => :'String',
102
+ :'pulp_labels' => :'Hash<String, String>',
102
103
  :'no_content_change_since' => :'String',
103
- :'pulp_last_updated' => :'Time',
104
104
  :'pulp_created' => :'Time',
105
105
  :'repository' => :'String',
106
106
  :'remote' => :'String',
@@ -134,22 +134,16 @@ module PulpContainerClient
134
134
  h[k.to_sym] = v
135
135
  }
136
136
 
137
- if attributes.key?(:'base_path')
138
- self.base_path = attributes[:'base_path']
139
- else
140
- self.base_path = nil
137
+ if attributes.key?(:'prn')
138
+ self.prn = attributes[:'prn']
141
139
  end
142
140
 
143
- if attributes.key?(:'pulp_labels')
144
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
145
- self.pulp_labels = value
146
- end
141
+ if attributes.key?(:'pulp_href')
142
+ self.pulp_href = attributes[:'pulp_href']
147
143
  end
148
144
 
149
- if attributes.key?(:'name')
150
- self.name = attributes[:'name']
151
- else
152
- self.name = nil
145
+ if attributes.key?(:'pulp_last_updated')
146
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
153
147
  end
154
148
 
155
149
  if attributes.key?(:'hidden')
@@ -158,24 +152,30 @@ module PulpContainerClient
158
152
  self.hidden = false
159
153
  end
160
154
 
161
- if attributes.key?(:'prn')
162
- self.prn = attributes[:'prn']
155
+ if attributes.key?(:'base_path')
156
+ self.base_path = attributes[:'base_path']
157
+ else
158
+ self.base_path = nil
163
159
  end
164
160
 
165
- if attributes.key?(:'pulp_href')
166
- self.pulp_href = attributes[:'pulp_href']
161
+ if attributes.key?(:'name')
162
+ self.name = attributes[:'name']
163
+ else
164
+ self.name = nil
167
165
  end
168
166
 
169
167
  if attributes.key?(:'content_guard')
170
168
  self.content_guard = attributes[:'content_guard']
171
169
  end
172
170
 
173
- if attributes.key?(:'no_content_change_since')
174
- self.no_content_change_since = attributes[:'no_content_change_since']
171
+ if attributes.key?(:'pulp_labels')
172
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
173
+ self.pulp_labels = value
174
+ end
175
175
  end
176
176
 
177
- if attributes.key?(:'pulp_last_updated')
178
- self.pulp_last_updated = attributes[:'pulp_last_updated']
177
+ if attributes.key?(:'no_content_change_since')
178
+ self.no_content_change_since = attributes[:'no_content_change_since']
179
179
  end
180
180
 
181
181
  if attributes.key?(:'pulp_created')
@@ -246,15 +246,15 @@ module PulpContainerClient
246
246
  def ==(o)
247
247
  return true if self.equal?(o)
248
248
  self.class == o.class &&
249
- base_path == o.base_path &&
250
- pulp_labels == o.pulp_labels &&
251
- name == o.name &&
252
- hidden == o.hidden &&
253
249
  prn == o.prn &&
254
250
  pulp_href == o.pulp_href &&
251
+ pulp_last_updated == o.pulp_last_updated &&
252
+ hidden == o.hidden &&
253
+ base_path == o.base_path &&
254
+ name == o.name &&
255
255
  content_guard == o.content_guard &&
256
+ pulp_labels == o.pulp_labels &&
256
257
  no_content_change_since == o.no_content_change_since &&
257
- pulp_last_updated == o.pulp_last_updated &&
258
258
  pulp_created == o.pulp_created &&
259
259
  repository == o.repository &&
260
260
  remote == o.remote &&
@@ -273,7 +273,7 @@ module PulpContainerClient
273
273
  # Calculates hash code according to all attributes.
274
274
  # @return [Integer] Hash code
275
275
  def hash
276
- [base_path, pulp_labels, name, hidden, prn, pulp_href, content_guard, no_content_change_since, pulp_last_updated, pulp_created, repository, remote, distributions, namespace, private, description].hash
276
+ [prn, pulp_href, pulp_last_updated, hidden, base_path, name, content_guard, pulp_labels, no_content_change_since, pulp_created, repository, remote, distributions, namespace, private, description].hash
277
277
  end
278
278
 
279
279
  # Builds the object from hash
@@ -16,28 +16,28 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # Serializer for Container Push Repositories.
18
18
  class ContainerContainerPushRepository
19
- # Retain X versions of the repository. Default is null which retains all versions.
20
- attr_accessor :retain_repo_versions
21
-
22
19
  # A reference to an associated signing service.
23
20
  attr_accessor :manifest_signing_service
24
21
 
25
- attr_accessor :pulp_labels
22
+ # Retain X versions of the repository. Default is null which retains all versions.
23
+ attr_accessor :retain_repo_versions
24
+
25
+ # A unique name for this repository.
26
+ attr_accessor :name
26
27
 
27
28
  # An optional description.
28
29
  attr_accessor :description
29
30
 
30
- # A unique name for this repository.
31
- attr_accessor :name
31
+ attr_accessor :pulp_labels
32
32
 
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
35
35
  {
36
- :'retain_repo_versions' => :'retain_repo_versions',
37
36
  :'manifest_signing_service' => :'manifest_signing_service',
38
- :'pulp_labels' => :'pulp_labels',
37
+ :'retain_repo_versions' => :'retain_repo_versions',
38
+ :'name' => :'name',
39
39
  :'description' => :'description',
40
- :'name' => :'name'
40
+ :'pulp_labels' => :'pulp_labels'
41
41
  }
42
42
  end
43
43
 
@@ -49,19 +49,19 @@ module PulpContainerClient
49
49
  # Attribute type mapping.
50
50
  def self.openapi_types
51
51
  {
52
- :'retain_repo_versions' => :'Integer',
53
52
  :'manifest_signing_service' => :'String',
54
- :'pulp_labels' => :'Hash<String, String>',
53
+ :'retain_repo_versions' => :'Integer',
54
+ :'name' => :'String',
55
55
  :'description' => :'String',
56
- :'name' => :'String'
56
+ :'pulp_labels' => :'Hash<String, String>'
57
57
  }
58
58
  end
59
59
 
60
60
  # List of attributes with nullable: true
61
61
  def self.openapi_nullable
62
62
  Set.new([
63
- :'retain_repo_versions',
64
63
  :'manifest_signing_service',
64
+ :'retain_repo_versions',
65
65
  :'description',
66
66
  ])
67
67
  end
@@ -81,22 +81,12 @@ module PulpContainerClient
81
81
  h[k.to_sym] = v
82
82
  }
83
83
 
84
- if attributes.key?(:'retain_repo_versions')
85
- self.retain_repo_versions = attributes[:'retain_repo_versions']
86
- end
87
-
88
84
  if attributes.key?(:'manifest_signing_service')
89
85
  self.manifest_signing_service = attributes[:'manifest_signing_service']
90
86
  end
91
87
 
92
- if attributes.key?(:'pulp_labels')
93
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
94
- self.pulp_labels = value
95
- end
96
- end
97
-
98
- if attributes.key?(:'description')
99
- self.description = attributes[:'description']
88
+ if attributes.key?(:'retain_repo_versions')
89
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
100
90
  end
101
91
 
102
92
  if attributes.key?(:'name')
@@ -104,6 +94,16 @@ module PulpContainerClient
104
94
  else
105
95
  self.name = nil
106
96
  end
97
+
98
+ if attributes.key?(:'description')
99
+ self.description = attributes[:'description']
100
+ end
101
+
102
+ if attributes.key?(:'pulp_labels')
103
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
104
+ self.pulp_labels = value
105
+ end
106
+ end
107
107
  end
108
108
 
109
109
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -115,10 +115,6 @@ module PulpContainerClient
115
115
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
116
116
  end
117
117
 
118
- if !@description.nil? && @description.to_s.length < 1
119
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
120
- end
121
-
122
118
  if @name.nil?
123
119
  invalid_properties.push('invalid value for "name", name cannot be nil.')
124
120
  end
@@ -127,6 +123,10 @@ module PulpContainerClient
127
123
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
128
124
  end
129
125
 
126
+ if !@description.nil? && @description.to_s.length < 1
127
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
128
+ end
129
+
130
130
  invalid_properties
131
131
  end
132
132
 
@@ -135,9 +135,9 @@ module PulpContainerClient
135
135
  def valid?
136
136
  warn '[DEPRECATED] the `valid?` method is obsolete'
137
137
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
138
- return false if !@description.nil? && @description.to_s.length < 1
139
138
  return false if @name.nil?
140
139
  return false if @name.to_s.length < 1
140
+ return false if !@description.nil? && @description.to_s.length < 1
141
141
  true
142
142
  end
143
143
 
@@ -151,16 +151,6 @@ module PulpContainerClient
151
151
  @retain_repo_versions = retain_repo_versions
152
152
  end
153
153
 
154
- # Custom attribute writer method with validation
155
- # @param [Object] description Value to be assigned
156
- def description=(description)
157
- if !description.nil? && description.to_s.length < 1
158
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
159
- end
160
-
161
- @description = description
162
- end
163
-
164
154
  # Custom attribute writer method with validation
165
155
  # @param [Object] name Value to be assigned
166
156
  def name=(name)
@@ -175,16 +165,26 @@ module PulpContainerClient
175
165
  @name = name
176
166
  end
177
167
 
168
+ # Custom attribute writer method with validation
169
+ # @param [Object] description Value to be assigned
170
+ def description=(description)
171
+ if !description.nil? && description.to_s.length < 1
172
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
173
+ end
174
+
175
+ @description = description
176
+ end
177
+
178
178
  # Checks equality by comparing each attribute.
179
179
  # @param [Object] Object to be compared
180
180
  def ==(o)
181
181
  return true if self.equal?(o)
182
182
  self.class == o.class &&
183
- retain_repo_versions == o.retain_repo_versions &&
184
183
  manifest_signing_service == o.manifest_signing_service &&
185
- pulp_labels == o.pulp_labels &&
184
+ retain_repo_versions == o.retain_repo_versions &&
185
+ name == o.name &&
186
186
  description == o.description &&
187
- name == o.name
187
+ pulp_labels == o.pulp_labels
188
188
  end
189
189
 
190
190
  # @see the `==` method
@@ -196,7 +196,7 @@ module PulpContainerClient
196
196
  # Calculates hash code according to all attributes.
197
197
  # @return [Integer] Hash code
198
198
  def hash
199
- [retain_repo_versions, manifest_signing_service, pulp_labels, description, name].hash
199
+ [manifest_signing_service, retain_repo_versions, name, description, pulp_labels].hash
200
200
  end
201
201
 
202
202
  # Builds the object from hash