pulp_container_client 2.29.1 → 2.30.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 (33) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContainerContainerDistribution.md +6 -6
  4. data/docs/ContainerContainerDistributionResponse.md +12 -12
  5. data/docs/ContainerContainerPullThroughDistribution.md +6 -6
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +12 -12
  7. data/docs/ContainerContainerPushRepository.md +7 -7
  8. data/docs/ContainerContainerPushRepositoryResponse.md +17 -17
  9. data/docs/DistributionsContainerApi.md +2 -2
  10. data/docs/DistributionsPullThroughApi.md +2 -2
  11. data/docs/PatchedcontainerContainerDistribution.md +6 -6
  12. data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
  13. data/docs/PatchedcontainerContainerPushRepository.md +7 -7
  14. data/lib/pulp_container_client/models/container_container_distribution.rb +55 -55
  15. data/lib/pulp_container_client/models/container_container_distribution_response.rb +66 -66
  16. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +55 -55
  17. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +66 -66
  18. data/lib/pulp_container_client/models/container_container_push_repository.rb +59 -59
  19. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +77 -77
  20. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +49 -49
  21. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +49 -49
  22. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +52 -52
  23. data/lib/pulp_container_client/version.rb +1 -1
  24. data/spec/models/container_container_distribution_response_spec.rb +12 -12
  25. data/spec/models/container_container_distribution_spec.rb +6 -6
  26. data/spec/models/container_container_pull_through_distribution_response_spec.rb +12 -12
  27. data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
  28. data/spec/models/container_container_push_repository_response_spec.rb +11 -11
  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
26
-
27
19
  # An optional description.
28
20
  attr_accessor :description
29
21
 
22
+ attr_accessor :pulp_labels
23
+
30
24
  # Retain X versions of the repository. Default is null which retains all versions.
31
25
  attr_accessor :retain_repo_versions
32
26
 
33
27
  # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
34
28
  attr_accessor :retain_checkpoints
35
29
 
30
+ # A reference to an associated signing service.
31
+ attr_accessor :manifest_signing_service
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',
40
- :'manifest_signing_service' => :'manifest_signing_service',
41
- :'pulp_labels' => :'pulp_labels',
42
39
  :'description' => :'description',
40
+ :'pulp_labels' => :'pulp_labels',
43
41
  :'retain_repo_versions' => :'retain_repo_versions',
44
- :'retain_checkpoints' => :'retain_checkpoints'
42
+ :'retain_checkpoints' => :'retain_checkpoints',
43
+ :'manifest_signing_service' => :'manifest_signing_service',
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',
57
- :'manifest_signing_service' => :'String',
58
- :'pulp_labels' => :'Hash<String, String>',
59
56
  :'description' => :'String',
57
+ :'pulp_labels' => :'Hash<String, String>',
60
58
  :'retain_repo_versions' => :'Integer',
61
- :'retain_checkpoints' => :'Integer'
59
+ :'retain_checkpoints' => :'Integer',
60
+ :'manifest_signing_service' => :'String',
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
68
  :'description',
70
69
  :'retain_repo_versions',
71
- :'retain_checkpoints'
70
+ :'retain_checkpoints',
71
+ :'manifest_signing_service',
72
72
  ])
73
73
  end
74
74
 
@@ -87,14 +87,8 @@ 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
94
- end
95
-
96
- if attributes.key?(:'manifest_signing_service')
97
- self.manifest_signing_service = attributes[:'manifest_signing_service']
90
+ if attributes.key?(:'description')
91
+ self.description = attributes[:'description']
98
92
  end
99
93
 
100
94
  if attributes.key?(:'pulp_labels')
@@ -103,10 +97,6 @@ module PulpContainerClient
103
97
  end
104
98
  end
105
99
 
106
- if attributes.key?(:'description')
107
- self.description = attributes[:'description']
108
- end
109
-
110
100
  if attributes.key?(:'retain_repo_versions')
111
101
  self.retain_repo_versions = attributes[:'retain_repo_versions']
112
102
  end
@@ -114,6 +104,16 @@ module PulpContainerClient
114
104
  if attributes.key?(:'retain_checkpoints')
115
105
  self.retain_checkpoints = attributes[:'retain_checkpoints']
116
106
  end
107
+
108
+ if attributes.key?(:'manifest_signing_service')
109
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
110
+ end
111
+
112
+ if attributes.key?(:'name')
113
+ self.name = attributes[:'name']
114
+ else
115
+ self.name = nil
116
+ end
117
117
  end
118
118
 
119
119
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -121,14 +121,6 @@ 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.')
130
- end
131
-
132
124
  if !@description.nil? && @description.to_s.length < 1
133
125
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
134
126
  end
@@ -141,6 +133,14 @@ module PulpContainerClient
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,28 +148,14 @@ 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
151
  return false if !@description.nil? && @description.to_s.length < 1
154
152
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 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
- # 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.'
168
- end
169
-
170
- @name = name
171
- end
172
-
173
159
  # Custom attribute writer method with validation
174
160
  # @param [Object] description Value to be assigned
175
161
  def description=(description)
@@ -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 &&
209
- manifest_signing_service == o.manifest_signing_service &&
210
- pulp_labels == o.pulp_labels &&
211
208
  description == o.description &&
209
+ pulp_labels == o.pulp_labels &&
212
210
  retain_repo_versions == o.retain_repo_versions &&
213
- retain_checkpoints == o.retain_checkpoints
211
+ retain_checkpoints == o.retain_checkpoints &&
212
+ manifest_signing_service == o.manifest_signing_service &&
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
+ [description, pulp_labels, retain_repo_versions, retain_checkpoints, manifest_signing_service, name].hash
226
226
  end
227
227
 
228
228
  # Builds the object from hash
@@ -16,31 +16,17 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # Serializer for Container Push Repositories.
18
18
  class ContainerContainerPushRepositoryResponse
19
- attr_accessor :versions_href
20
-
21
- # A unique name for this repository.
22
- attr_accessor :name
23
-
24
- # A reference to an associated signing service.
25
- attr_accessor :manifest_signing_service
26
-
27
- attr_accessor :pulp_href
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
28
21
 
29
22
  attr_accessor :latest_version_href
30
23
 
31
- attr_accessor :pulp_labels
32
-
33
24
  # An optional description.
34
25
  attr_accessor :description
35
26
 
36
- # Timestamp of creation.
37
- attr_accessor :pulp_created
38
-
39
- # The Pulp Resource Name (PRN).
40
- attr_accessor :prn
27
+ attr_accessor :pulp_href
41
28
 
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
29
+ attr_accessor :pulp_labels
44
30
 
45
31
  # Retain X versions of the repository. Default is null which retains all versions.
46
32
  attr_accessor :retain_repo_versions
@@ -48,21 +34,35 @@ module PulpContainerClient
48
34
  # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
49
35
  attr_accessor :retain_checkpoints
50
36
 
37
+ # A reference to an associated signing service.
38
+ attr_accessor :manifest_signing_service
39
+
40
+ attr_accessor :versions_href
41
+
42
+ # Timestamp of creation.
43
+ attr_accessor :pulp_created
44
+
45
+ # A unique name for this repository.
46
+ attr_accessor :name
47
+
48
+ # The Pulp Resource Name (PRN).
49
+ attr_accessor :prn
50
+
51
51
  # Attribute mapping from ruby-style variable name to JSON key.
52
52
  def self.attribute_map
53
53
  {
54
- :'versions_href' => :'versions_href',
55
- :'name' => :'name',
56
- :'manifest_signing_service' => :'manifest_signing_service',
57
- :'pulp_href' => :'pulp_href',
54
+ :'pulp_last_updated' => :'pulp_last_updated',
58
55
  :'latest_version_href' => :'latest_version_href',
59
- :'pulp_labels' => :'pulp_labels',
60
56
  :'description' => :'description',
61
- :'pulp_created' => :'pulp_created',
62
- :'prn' => :'prn',
63
- :'pulp_last_updated' => :'pulp_last_updated',
57
+ :'pulp_href' => :'pulp_href',
58
+ :'pulp_labels' => :'pulp_labels',
64
59
  :'retain_repo_versions' => :'retain_repo_versions',
65
- :'retain_checkpoints' => :'retain_checkpoints'
60
+ :'retain_checkpoints' => :'retain_checkpoints',
61
+ :'manifest_signing_service' => :'manifest_signing_service',
62
+ :'versions_href' => :'versions_href',
63
+ :'pulp_created' => :'pulp_created',
64
+ :'name' => :'name',
65
+ :'prn' => :'prn'
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
- :'versions_href' => :'String',
78
- :'name' => :'String',
79
- :'manifest_signing_service' => :'String',
80
- :'pulp_href' => :'String',
77
+ :'pulp_last_updated' => :'Time',
81
78
  :'latest_version_href' => :'String',
82
- :'pulp_labels' => :'Hash<String, String>',
83
79
  :'description' => :'String',
84
- :'pulp_created' => :'Time',
85
- :'prn' => :'String',
86
- :'pulp_last_updated' => :'Time',
80
+ :'pulp_href' => :'String',
81
+ :'pulp_labels' => :'Hash<String, String>',
87
82
  :'retain_repo_versions' => :'Integer',
88
- :'retain_checkpoints' => :'Integer'
83
+ :'retain_checkpoints' => :'Integer',
84
+ :'manifest_signing_service' => :'String',
85
+ :'versions_href' => :'String',
86
+ :'pulp_created' => :'Time',
87
+ :'name' => :'String',
88
+ :'prn' => :'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
95
  :'description',
97
96
  :'retain_repo_versions',
98
- :'retain_checkpoints'
97
+ :'retain_checkpoints',
98
+ :'manifest_signing_service',
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?(:'versions_href')
118
- self.versions_href = attributes[:'versions_href']
117
+ if attributes.key?(:'pulp_last_updated')
118
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
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?(:'latest_version_href')
122
+ self.latest_version_href = attributes[:'latest_version_href']
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?(:'description')
126
+ self.description = attributes[:'description']
129
127
  end
130
128
 
131
129
  if attributes.key?(:'pulp_href')
132
130
  self.pulp_href = attributes[:'pulp_href']
133
131
  end
134
132
 
135
- if attributes.key?(:'latest_version_href')
136
- self.latest_version_href = attributes[:'latest_version_href']
137
- end
138
-
139
133
  if attributes.key?(:'pulp_labels')
140
134
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
141
135
  self.pulp_labels = value
142
136
  end
143
137
  end
144
138
 
145
- if attributes.key?(:'description')
146
- self.description = attributes[:'description']
139
+ if attributes.key?(:'retain_repo_versions')
140
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
147
141
  end
148
142
 
149
- if attributes.key?(:'pulp_created')
150
- self.pulp_created = attributes[:'pulp_created']
143
+ if attributes.key?(:'retain_checkpoints')
144
+ self.retain_checkpoints = attributes[:'retain_checkpoints']
151
145
  end
152
146
 
153
- if attributes.key?(:'prn')
154
- self.prn = attributes[:'prn']
147
+ if attributes.key?(:'manifest_signing_service')
148
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
155
149
  end
156
150
 
157
- if attributes.key?(:'pulp_last_updated')
158
- self.pulp_last_updated = attributes[:'pulp_last_updated']
151
+ if attributes.key?(:'versions_href')
152
+ self.versions_href = attributes[:'versions_href']
159
153
  end
160
154
 
161
- if attributes.key?(:'retain_repo_versions')
162
- self.retain_repo_versions = attributes[:'retain_repo_versions']
155
+ if attributes.key?(:'pulp_created')
156
+ self.pulp_created = attributes[:'pulp_created']
163
157
  end
164
158
 
165
- if attributes.key?(:'retain_checkpoints')
166
- self.retain_checkpoints = attributes[:'retain_checkpoints']
159
+ if attributes.key?(:'name')
160
+ self.name = attributes[:'name']
161
+ else
162
+ self.name = nil
163
+ end
164
+
165
+ if attributes.key?(:'prn')
166
+ self.prn = attributes[:'prn']
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
- versions_href == o.versions_href &&
226
- name == o.name &&
227
- manifest_signing_service == o.manifest_signing_service &&
228
- pulp_href == o.pulp_href &&
225
+ pulp_last_updated == o.pulp_last_updated &&
229
226
  latest_version_href == o.latest_version_href &&
230
- pulp_labels == o.pulp_labels &&
231
227
  description == o.description &&
232
- pulp_created == o.pulp_created &&
233
- prn == o.prn &&
234
- pulp_last_updated == o.pulp_last_updated &&
228
+ pulp_href == o.pulp_href &&
229
+ pulp_labels == o.pulp_labels &&
235
230
  retain_repo_versions == o.retain_repo_versions &&
236
- retain_checkpoints == o.retain_checkpoints
231
+ retain_checkpoints == o.retain_checkpoints &&
232
+ manifest_signing_service == o.manifest_signing_service &&
233
+ versions_href == o.versions_href &&
234
+ pulp_created == o.pulp_created &&
235
+ name == o.name &&
236
+ prn == o.prn
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
+ [pulp_last_updated, latest_version_href, description, pulp_href, pulp_labels, retain_repo_versions, retain_checkpoints, manifest_signing_service, versions_href, pulp_created, name, prn].hash
249
249
  end
250
250
 
251
251
  # Builds the object from hash