pulp_container_client 2.27.5 → 2.27.6

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