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