pulp_container_client 2.29.2 → 2.29.3

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 (33) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContainerContainerDistribution.md +8 -8
  4. data/docs/ContainerContainerDistributionResponse.md +18 -18
  5. data/docs/ContainerContainerPullThroughDistribution.md +8 -8
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +18 -18
  7. data/docs/ContainerContainerPushRepository.md +6 -6
  8. data/docs/ContainerContainerPushRepositoryResponse.md +15 -15
  9. data/docs/DistributionsContainerApi.md +2 -2
  10. data/docs/DistributionsPullThroughApi.md +2 -2
  11. data/docs/PatchedcontainerContainerDistribution.md +8 -8
  12. data/docs/PatchedcontainerContainerPullThroughDistribution.md +8 -8
  13. data/docs/PatchedcontainerContainerPushRepository.md +6 -6
  14. data/lib/pulp_container_client/models/container_container_distribution.rb +64 -64
  15. data/lib/pulp_container_client/models/container_container_distribution_response.rb +88 -88
  16. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +64 -64
  17. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +88 -88
  18. data/lib/pulp_container_client/models/container_container_push_repository.rb +53 -53
  19. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +70 -70
  20. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +57 -57
  21. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +57 -57
  22. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +47 -47
  23. data/lib/pulp_container_client/version.rb +1 -1
  24. data/spec/models/container_container_distribution_response_spec.rb +13 -13
  25. data/spec/models/container_container_distribution_spec.rb +6 -6
  26. data/spec/models/container_container_pull_through_distribution_response_spec.rb +13 -13
  27. data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
  28. data/spec/models/container_container_push_repository_response_spec.rb +10 -10
  29. data/spec/models/container_container_push_repository_spec.rb +5 -5
  30. data/spec/models/patchedcontainer_container_distribution_spec.rb +6 -6
  31. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
  32. data/spec/models/patchedcontainer_container_push_repository_spec.rb +5 -5
  33. metadata +2 -2
@@ -19,10 +19,8 @@ module PulpContainerClient
19
19
  # Retain X versions of the repository. Default is null which retains all versions.
20
20
  attr_accessor :retain_repo_versions
21
21
 
22
- attr_accessor :pulp_labels
23
-
24
- # A unique name for this repository.
25
- attr_accessor :name
22
+ # An optional description.
23
+ attr_accessor :description
26
24
 
27
25
  # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
28
26
  attr_accessor :retain_checkpoints
@@ -30,18 +28,20 @@ module PulpContainerClient
30
28
  # A reference to an associated signing service.
31
29
  attr_accessor :manifest_signing_service
32
30
 
33
- # An optional description.
34
- attr_accessor :description
31
+ attr_accessor :pulp_labels
32
+
33
+ # A unique name for this repository.
34
+ attr_accessor :name
35
35
 
36
36
  # Attribute mapping from ruby-style variable name to JSON key.
37
37
  def self.attribute_map
38
38
  {
39
39
  :'retain_repo_versions' => :'retain_repo_versions',
40
- :'pulp_labels' => :'pulp_labels',
41
- :'name' => :'name',
40
+ :'description' => :'description',
42
41
  :'retain_checkpoints' => :'retain_checkpoints',
43
42
  :'manifest_signing_service' => :'manifest_signing_service',
44
- :'description' => :'description'
43
+ :'pulp_labels' => :'pulp_labels',
44
+ :'name' => :'name'
45
45
  }
46
46
  end
47
47
 
@@ -54,11 +54,11 @@ module PulpContainerClient
54
54
  def self.openapi_types
55
55
  {
56
56
  :'retain_repo_versions' => :'Integer',
57
- :'pulp_labels' => :'Hash<String, String>',
58
- :'name' => :'String',
57
+ :'description' => :'String',
59
58
  :'retain_checkpoints' => :'Integer',
60
59
  :'manifest_signing_service' => :'String',
61
- :'description' => :'String'
60
+ :'pulp_labels' => :'Hash<String, String>',
61
+ :'name' => :'String'
62
62
  }
63
63
  end
64
64
 
@@ -66,9 +66,9 @@ module PulpContainerClient
66
66
  def self.openapi_nullable
67
67
  Set.new([
68
68
  :'retain_repo_versions',
69
+ :'description',
69
70
  :'retain_checkpoints',
70
71
  :'manifest_signing_service',
71
- :'description'
72
72
  ])
73
73
  end
74
74
 
@@ -91,16 +91,8 @@ module PulpContainerClient
91
91
  self.retain_repo_versions = attributes[:'retain_repo_versions']
92
92
  end
93
93
 
94
- if attributes.key?(:'pulp_labels')
95
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
96
- self.pulp_labels = value
97
- end
98
- end
99
-
100
- if attributes.key?(:'name')
101
- self.name = attributes[:'name']
102
- else
103
- self.name = nil
94
+ if attributes.key?(:'description')
95
+ self.description = attributes[:'description']
104
96
  end
105
97
 
106
98
  if attributes.key?(:'retain_checkpoints')
@@ -111,8 +103,16 @@ module PulpContainerClient
111
103
  self.manifest_signing_service = attributes[:'manifest_signing_service']
112
104
  end
113
105
 
114
- if attributes.key?(:'description')
115
- self.description = attributes[:'description']
106
+ if attributes.key?(:'pulp_labels')
107
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
108
+ self.pulp_labels = value
109
+ end
110
+ end
111
+
112
+ if attributes.key?(:'name')
113
+ self.name = attributes[:'name']
114
+ else
115
+ self.name = nil
116
116
  end
117
117
  end
118
118
 
@@ -125,20 +125,20 @@ module PulpContainerClient
125
125
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
126
126
  end
127
127
 
128
- if @name.nil?
129
- invalid_properties.push('invalid value for "name", name cannot be nil.')
130
- end
131
-
132
- if @name.to_s.length < 1
133
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
128
+ if !@description.nil? && @description.to_s.length < 1
129
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
134
130
  end
135
131
 
136
132
  if !@retain_checkpoints.nil? && @retain_checkpoints < 1
137
133
  invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
138
134
  end
139
135
 
140
- if !@description.nil? && @description.to_s.length < 1
141
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
136
+ if @name.nil?
137
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
138
+ end
139
+
140
+ if @name.to_s.length < 1
141
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
142
142
  end
143
143
 
144
144
  invalid_properties
@@ -149,10 +149,10 @@ module PulpContainerClient
149
149
  def valid?
150
150
  warn '[DEPRECATED] the `valid?` method is obsolete'
151
151
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
152
+ return false if !@description.nil? && @description.to_s.length < 1
153
+ return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
152
154
  return false if @name.nil?
153
155
  return false if @name.to_s.length < 1
154
- return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
155
- return false if !@description.nil? && @description.to_s.length < 1
156
156
  true
157
157
  end
158
158
 
@@ -167,17 +167,13 @@ module PulpContainerClient
167
167
  end
168
168
 
169
169
  # Custom attribute writer method with validation
170
- # @param [Object] name Value to be assigned
171
- def name=(name)
172
- if name.nil?
173
- fail ArgumentError, 'name cannot be nil'
174
- end
175
-
176
- if name.to_s.length < 1
177
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
170
+ # @param [Object] description Value to be assigned
171
+ def description=(description)
172
+ if !description.nil? && description.to_s.length < 1
173
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
178
174
  end
179
175
 
180
- @name = name
176
+ @description = description
181
177
  end
182
178
 
183
179
  # Custom attribute writer method with validation
@@ -191,13 +187,17 @@ module PulpContainerClient
191
187
  end
192
188
 
193
189
  # Custom attribute writer method with validation
194
- # @param [Object] description Value to be assigned
195
- def description=(description)
196
- if !description.nil? && description.to_s.length < 1
197
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
190
+ # @param [Object] name Value to be assigned
191
+ def name=(name)
192
+ if name.nil?
193
+ fail ArgumentError, 'name cannot be nil'
198
194
  end
199
195
 
200
- @description = description
196
+ if name.to_s.length < 1
197
+ fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
198
+ end
199
+
200
+ @name = name
201
201
  end
202
202
 
203
203
  # Checks equality by comparing each attribute.
@@ -206,11 +206,11 @@ module PulpContainerClient
206
206
  return true if self.equal?(o)
207
207
  self.class == o.class &&
208
208
  retain_repo_versions == o.retain_repo_versions &&
209
- pulp_labels == o.pulp_labels &&
210
- name == o.name &&
209
+ description == o.description &&
211
210
  retain_checkpoints == o.retain_checkpoints &&
212
211
  manifest_signing_service == o.manifest_signing_service &&
213
- description == o.description
212
+ pulp_labels == o.pulp_labels &&
213
+ name == o.name
214
214
  end
215
215
 
216
216
  # @see the `==` method
@@ -222,7 +222,7 @@ module PulpContainerClient
222
222
  # Calculates hash code according to all attributes.
223
223
  # @return [Integer] Hash code
224
224
  def hash
225
- [retain_repo_versions, pulp_labels, name, retain_checkpoints, manifest_signing_service, description].hash
225
+ [retain_repo_versions, description, retain_checkpoints, manifest_signing_service, pulp_labels, name].hash
226
226
  end
227
227
 
228
228
  # Builds the object from hash
@@ -16,53 +16,53 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # Serializer for Container Push Repositories.
18
18
  class ContainerContainerPushRepositoryResponse
19
- # 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.
20
- attr_accessor :pulp_last_updated
21
-
22
19
  # Retain X versions of the repository. Default is null which retains all versions.
23
20
  attr_accessor :retain_repo_versions
24
21
 
25
- attr_accessor :pulp_labels
22
+ # Timestamp of creation.
23
+ attr_accessor :pulp_created
26
24
 
27
- # A unique name for this repository.
28
- attr_accessor :name
25
+ # 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.
26
+ attr_accessor :pulp_last_updated
27
+
28
+ # An optional description.
29
+ attr_accessor :description
29
30
 
30
31
  # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
31
32
  attr_accessor :retain_checkpoints
32
33
 
33
- attr_accessor :latest_version_href
34
-
35
34
  attr_accessor :pulp_href
36
35
 
36
+ attr_accessor :versions_href
37
+
37
38
  # A reference to an associated signing service.
38
39
  attr_accessor :manifest_signing_service
39
40
 
40
- # An optional description.
41
- attr_accessor :description
42
-
43
- attr_accessor :versions_href
44
-
45
- # Timestamp of creation.
46
- attr_accessor :pulp_created
41
+ attr_accessor :pulp_labels
47
42
 
48
43
  # The Pulp Resource Name (PRN).
49
44
  attr_accessor :prn
50
45
 
46
+ attr_accessor :latest_version_href
47
+
48
+ # A unique name for this repository.
49
+ attr_accessor :name
50
+
51
51
  # Attribute mapping from ruby-style variable name to JSON key.
52
52
  def self.attribute_map
53
53
  {
54
- :'pulp_last_updated' => :'pulp_last_updated',
55
54
  :'retain_repo_versions' => :'retain_repo_versions',
56
- :'pulp_labels' => :'pulp_labels',
57
- :'name' => :'name',
55
+ :'pulp_created' => :'pulp_created',
56
+ :'pulp_last_updated' => :'pulp_last_updated',
57
+ :'description' => :'description',
58
58
  :'retain_checkpoints' => :'retain_checkpoints',
59
- :'latest_version_href' => :'latest_version_href',
60
59
  :'pulp_href' => :'pulp_href',
61
- :'manifest_signing_service' => :'manifest_signing_service',
62
- :'description' => :'description',
63
60
  :'versions_href' => :'versions_href',
64
- :'pulp_created' => :'pulp_created',
65
- :'prn' => :'prn'
61
+ :'manifest_signing_service' => :'manifest_signing_service',
62
+ :'pulp_labels' => :'pulp_labels',
63
+ :'prn' => :'prn',
64
+ :'latest_version_href' => :'latest_version_href',
65
+ :'name' => :'name'
66
66
  }
67
67
  end
68
68
 
@@ -74,18 +74,18 @@ module PulpContainerClient
74
74
  # Attribute type mapping.
75
75
  def self.openapi_types
76
76
  {
77
- :'pulp_last_updated' => :'Time',
78
77
  :'retain_repo_versions' => :'Integer',
79
- :'pulp_labels' => :'Hash<String, String>',
80
- :'name' => :'String',
78
+ :'pulp_created' => :'Time',
79
+ :'pulp_last_updated' => :'Time',
80
+ :'description' => :'String',
81
81
  :'retain_checkpoints' => :'Integer',
82
- :'latest_version_href' => :'String',
83
82
  :'pulp_href' => :'String',
84
- :'manifest_signing_service' => :'String',
85
- :'description' => :'String',
86
83
  :'versions_href' => :'String',
87
- :'pulp_created' => :'Time',
88
- :'prn' => :'String'
84
+ :'manifest_signing_service' => :'String',
85
+ :'pulp_labels' => :'Hash<String, String>',
86
+ :'prn' => :'String',
87
+ :'latest_version_href' => :'String',
88
+ :'name' => :'String'
89
89
  }
90
90
  end
91
91
 
@@ -93,9 +93,9 @@ module PulpContainerClient
93
93
  def self.openapi_nullable
94
94
  Set.new([
95
95
  :'retain_repo_versions',
96
+ :'description',
96
97
  :'retain_checkpoints',
97
98
  :'manifest_signing_service',
98
- :'description',
99
99
  ])
100
100
  end
101
101
 
@@ -114,56 +114,56 @@ module PulpContainerClient
114
114
  h[k.to_sym] = v
115
115
  }
116
116
 
117
- if attributes.key?(:'pulp_last_updated')
118
- self.pulp_last_updated = attributes[:'pulp_last_updated']
119
- end
120
-
121
117
  if attributes.key?(:'retain_repo_versions')
122
118
  self.retain_repo_versions = attributes[:'retain_repo_versions']
123
119
  end
124
120
 
125
- if attributes.key?(:'pulp_labels')
126
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
127
- self.pulp_labels = value
128
- end
121
+ if attributes.key?(:'pulp_created')
122
+ self.pulp_created = attributes[:'pulp_created']
129
123
  end
130
124
 
131
- if attributes.key?(:'name')
132
- self.name = attributes[:'name']
133
- else
134
- self.name = nil
125
+ if attributes.key?(:'pulp_last_updated')
126
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
135
127
  end
136
128
 
137
- if attributes.key?(:'retain_checkpoints')
138
- self.retain_checkpoints = attributes[:'retain_checkpoints']
129
+ if attributes.key?(:'description')
130
+ self.description = attributes[:'description']
139
131
  end
140
132
 
141
- if attributes.key?(:'latest_version_href')
142
- self.latest_version_href = attributes[:'latest_version_href']
133
+ if attributes.key?(:'retain_checkpoints')
134
+ self.retain_checkpoints = attributes[:'retain_checkpoints']
143
135
  end
144
136
 
145
137
  if attributes.key?(:'pulp_href')
146
138
  self.pulp_href = attributes[:'pulp_href']
147
139
  end
148
140
 
141
+ if attributes.key?(:'versions_href')
142
+ self.versions_href = attributes[:'versions_href']
143
+ end
144
+
149
145
  if attributes.key?(:'manifest_signing_service')
150
146
  self.manifest_signing_service = attributes[:'manifest_signing_service']
151
147
  end
152
148
 
153
- if attributes.key?(:'description')
154
- self.description = attributes[:'description']
149
+ if attributes.key?(:'pulp_labels')
150
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
151
+ self.pulp_labels = value
152
+ end
155
153
  end
156
154
 
157
- if attributes.key?(:'versions_href')
158
- self.versions_href = attributes[:'versions_href']
155
+ if attributes.key?(:'prn')
156
+ self.prn = attributes[:'prn']
159
157
  end
160
158
 
161
- if attributes.key?(:'pulp_created')
162
- self.pulp_created = attributes[:'pulp_created']
159
+ if attributes.key?(:'latest_version_href')
160
+ self.latest_version_href = attributes[:'latest_version_href']
163
161
  end
164
162
 
165
- if attributes.key?(:'prn')
166
- self.prn = attributes[:'prn']
163
+ if attributes.key?(:'name')
164
+ self.name = attributes[:'name']
165
+ else
166
+ self.name = nil
167
167
  end
168
168
  end
169
169
 
@@ -176,14 +176,14 @@ module PulpContainerClient
176
176
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
177
177
  end
178
178
 
179
- if @name.nil?
180
- invalid_properties.push('invalid value for "name", name cannot be nil.')
181
- end
182
-
183
179
  if !@retain_checkpoints.nil? && @retain_checkpoints < 1
184
180
  invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
185
181
  end
186
182
 
183
+ if @name.nil?
184
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
185
+ end
186
+
187
187
  invalid_properties
188
188
  end
189
189
 
@@ -192,8 +192,8 @@ module PulpContainerClient
192
192
  def valid?
193
193
  warn '[DEPRECATED] the `valid?` method is obsolete'
194
194
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
195
- return false if @name.nil?
196
195
  return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
196
+ return false if @name.nil?
197
197
  true
198
198
  end
199
199
 
@@ -222,18 +222,18 @@ module PulpContainerClient
222
222
  def ==(o)
223
223
  return true if self.equal?(o)
224
224
  self.class == o.class &&
225
- pulp_last_updated == o.pulp_last_updated &&
226
225
  retain_repo_versions == o.retain_repo_versions &&
227
- pulp_labels == o.pulp_labels &&
228
- name == o.name &&
226
+ pulp_created == o.pulp_created &&
227
+ pulp_last_updated == o.pulp_last_updated &&
228
+ description == o.description &&
229
229
  retain_checkpoints == o.retain_checkpoints &&
230
- latest_version_href == o.latest_version_href &&
231
230
  pulp_href == o.pulp_href &&
232
- manifest_signing_service == o.manifest_signing_service &&
233
- description == o.description &&
234
231
  versions_href == o.versions_href &&
235
- pulp_created == o.pulp_created &&
236
- prn == o.prn
232
+ manifest_signing_service == o.manifest_signing_service &&
233
+ pulp_labels == o.pulp_labels &&
234
+ prn == o.prn &&
235
+ latest_version_href == o.latest_version_href &&
236
+ name == o.name
237
237
  end
238
238
 
239
239
  # @see the `==` method
@@ -245,7 +245,7 @@ module PulpContainerClient
245
245
  # Calculates hash code according to all attributes.
246
246
  # @return [Integer] Hash code
247
247
  def hash
248
- [pulp_last_updated, retain_repo_versions, pulp_labels, name, retain_checkpoints, latest_version_href, pulp_href, manifest_signing_service, description, versions_href, pulp_created, prn].hash
248
+ [retain_repo_versions, pulp_created, pulp_last_updated, description, retain_checkpoints, pulp_href, versions_href, manifest_signing_service, pulp_labels, prn, latest_version_href, name].hash
249
249
  end
250
250
 
251
251
  # Builds the object from hash