pulp_container_client 2.26.6 → 2.26.8

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 +14 -14
  5. data/docs/ContainerContainerPullThroughDistribution.md +8 -8
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +14 -14
  7. data/docs/ContainerContainerPushRepository.md +3 -3
  8. data/docs/ContainerContainerPushRepositoryResponse.md +12 -12
  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 +3 -3
  14. data/lib/pulp_container_client/models/container_container_distribution.rb +59 -59
  15. data/lib/pulp_container_client/models/container_container_distribution_response.rb +71 -71
  16. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +59 -59
  17. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +71 -71
  18. data/lib/pulp_container_client/models/container_container_push_repository.rb +16 -16
  19. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +53 -53
  20. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +53 -53
  21. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +53 -53
  22. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +14 -14
  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 +5 -5
  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 +5 -5
  28. data/spec/models/container_container_push_repository_response_spec.rb +10 -10
  29. data/spec/models/container_container_push_repository_spec.rb +4 -4
  30. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  31. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
  32. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  33. metadata +59 -59
@@ -16,36 +16,36 @@ 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 Pulp Resource Name (PRN).
20
- attr_accessor :prn
19
+ # Timestamp of creation.
20
+ attr_accessor :pulp_created
21
21
 
22
- # 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.
23
- attr_accessor :pulp_last_updated
22
+ # Whether this distribution should be shown in the content app.
23
+ attr_accessor :hidden
24
24
 
25
- # A unique name. Ex, `rawhide` and `stable`.
26
- attr_accessor :name
25
+ # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
26
+ attr_accessor :no_content_change_since
27
27
 
28
- attr_accessor :pulp_href
28
+ # The latest RepositoryVersion for this Repository will be served.
29
+ attr_accessor :repository
29
30
 
30
- # An optional content-guard. If none is specified, a default one will be used.
31
- attr_accessor :content_guard
31
+ # 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.
32
+ attr_accessor :pulp_last_updated
32
33
 
33
34
  attr_accessor :pulp_labels
34
35
 
35
- # Timestamp since when the distributed content served by this distribution has not changed. If equals to `null`, no guarantee is provided about content changes.
36
- attr_accessor :no_content_change_since
36
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
37
+ attr_accessor :base_path
37
38
 
38
- # Whether this distribution should be shown in the content app.
39
- attr_accessor :hidden
39
+ # A unique name. Ex, `rawhide` and `stable`.
40
+ attr_accessor :name
40
41
 
41
- # Timestamp of creation.
42
- attr_accessor :pulp_created
42
+ attr_accessor :pulp_href
43
43
 
44
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
45
- attr_accessor :base_path
44
+ # The Pulp Resource Name (PRN).
45
+ attr_accessor :prn
46
46
 
47
- # The latest RepositoryVersion for this Repository will be served.
48
- attr_accessor :repository
47
+ # An optional content-guard. If none is specified, a default one will be used.
48
+ attr_accessor :content_guard
49
49
 
50
50
  # Remote that can be used to fetch content when using pull-through caching.
51
51
  attr_accessor :remote
@@ -65,17 +65,17 @@ module PulpContainerClient
65
65
  # Attribute mapping from ruby-style variable name to JSON key.
66
66
  def self.attribute_map
67
67
  {
68
- :'prn' => :'prn',
68
+ :'pulp_created' => :'pulp_created',
69
+ :'hidden' => :'hidden',
70
+ :'no_content_change_since' => :'no_content_change_since',
71
+ :'repository' => :'repository',
69
72
  :'pulp_last_updated' => :'pulp_last_updated',
73
+ :'pulp_labels' => :'pulp_labels',
74
+ :'base_path' => :'base_path',
70
75
  :'name' => :'name',
71
76
  :'pulp_href' => :'pulp_href',
77
+ :'prn' => :'prn',
72
78
  :'content_guard' => :'content_guard',
73
- :'pulp_labels' => :'pulp_labels',
74
- :'no_content_change_since' => :'no_content_change_since',
75
- :'hidden' => :'hidden',
76
- :'pulp_created' => :'pulp_created',
77
- :'base_path' => :'base_path',
78
- :'repository' => :'repository',
79
79
  :'remote' => :'remote',
80
80
  :'distributions' => :'distributions',
81
81
  :'namespace' => :'namespace',
@@ -92,17 +92,17 @@ module PulpContainerClient
92
92
  # Attribute type mapping.
93
93
  def self.openapi_types
94
94
  {
95
- :'prn' => :'String',
95
+ :'pulp_created' => :'Time',
96
+ :'hidden' => :'Boolean',
97
+ :'no_content_change_since' => :'String',
98
+ :'repository' => :'String',
96
99
  :'pulp_last_updated' => :'Time',
100
+ :'pulp_labels' => :'Hash<String, String>',
101
+ :'base_path' => :'String',
97
102
  :'name' => :'String',
98
103
  :'pulp_href' => :'String',
104
+ :'prn' => :'String',
99
105
  :'content_guard' => :'String',
100
- :'pulp_labels' => :'Hash<String, String>',
101
- :'no_content_change_since' => :'String',
102
- :'hidden' => :'Boolean',
103
- :'pulp_created' => :'Time',
104
- :'base_path' => :'String',
105
- :'repository' => :'String',
106
106
  :'remote' => :'String',
107
107
  :'distributions' => :'Array<String>',
108
108
  :'namespace' => :'String',
@@ -134,26 +134,26 @@ module PulpContainerClient
134
134
  h[k.to_sym] = v
135
135
  }
136
136
 
137
- if attributes.key?(:'prn')
138
- self.prn = attributes[:'prn']
137
+ if attributes.key?(:'pulp_created')
138
+ self.pulp_created = attributes[:'pulp_created']
139
139
  end
140
140
 
141
- if attributes.key?(:'pulp_last_updated')
142
- self.pulp_last_updated = attributes[:'pulp_last_updated']
141
+ if attributes.key?(:'hidden')
142
+ self.hidden = attributes[:'hidden']
143
+ else
144
+ self.hidden = false
143
145
  end
144
146
 
145
- if attributes.key?(:'name')
146
- self.name = attributes[:'name']
147
- else
148
- self.name = nil
147
+ if attributes.key?(:'no_content_change_since')
148
+ self.no_content_change_since = attributes[:'no_content_change_since']
149
149
  end
150
150
 
151
- if attributes.key?(:'pulp_href')
152
- self.pulp_href = attributes[:'pulp_href']
151
+ if attributes.key?(:'repository')
152
+ self.repository = attributes[:'repository']
153
153
  end
154
154
 
155
- if attributes.key?(:'content_guard')
156
- self.content_guard = attributes[:'content_guard']
155
+ if attributes.key?(:'pulp_last_updated')
156
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
157
157
  end
158
158
 
159
159
  if attributes.key?(:'pulp_labels')
@@ -162,28 +162,28 @@ module PulpContainerClient
162
162
  end
163
163
  end
164
164
 
165
- if attributes.key?(:'no_content_change_since')
166
- self.no_content_change_since = attributes[:'no_content_change_since']
165
+ if attributes.key?(:'base_path')
166
+ self.base_path = attributes[:'base_path']
167
+ else
168
+ self.base_path = nil
167
169
  end
168
170
 
169
- if attributes.key?(:'hidden')
170
- self.hidden = attributes[:'hidden']
171
+ if attributes.key?(:'name')
172
+ self.name = attributes[:'name']
171
173
  else
172
- self.hidden = false
174
+ self.name = nil
173
175
  end
174
176
 
175
- if attributes.key?(:'pulp_created')
176
- self.pulp_created = attributes[:'pulp_created']
177
+ if attributes.key?(:'pulp_href')
178
+ self.pulp_href = attributes[:'pulp_href']
177
179
  end
178
180
 
179
- if attributes.key?(:'base_path')
180
- self.base_path = attributes[:'base_path']
181
- else
182
- self.base_path = nil
181
+ if attributes.key?(:'prn')
182
+ self.prn = attributes[:'prn']
183
183
  end
184
184
 
185
- if attributes.key?(:'repository')
186
- self.repository = attributes[:'repository']
185
+ if attributes.key?(:'content_guard')
186
+ self.content_guard = attributes[:'content_guard']
187
187
  end
188
188
 
189
189
  if attributes.key?(:'remote')
@@ -216,14 +216,14 @@ module PulpContainerClient
216
216
  def list_invalid_properties
217
217
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
218
218
  invalid_properties = Array.new
219
- if @name.nil?
220
- invalid_properties.push('invalid value for "name", name cannot be nil.')
221
- end
222
-
223
219
  if @base_path.nil?
224
220
  invalid_properties.push('invalid value for "base_path", base_path cannot be nil.')
225
221
  end
226
222
 
223
+ if @name.nil?
224
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
225
+ end
226
+
227
227
  if @remote.nil?
228
228
  invalid_properties.push('invalid value for "remote", remote cannot be nil.')
229
229
  end
@@ -235,8 +235,8 @@ module PulpContainerClient
235
235
  # @return true if the model is valid
236
236
  def valid?
237
237
  warn '[DEPRECATED] the `valid?` method is obsolete'
238
- return false if @name.nil?
239
238
  return false if @base_path.nil?
239
+ return false if @name.nil?
240
240
  return false if @remote.nil?
241
241
  true
242
242
  end
@@ -246,17 +246,17 @@ module PulpContainerClient
246
246
  def ==(o)
247
247
  return true if self.equal?(o)
248
248
  self.class == o.class &&
249
- prn == o.prn &&
249
+ pulp_created == o.pulp_created &&
250
+ hidden == o.hidden &&
251
+ no_content_change_since == o.no_content_change_since &&
252
+ repository == o.repository &&
250
253
  pulp_last_updated == o.pulp_last_updated &&
254
+ pulp_labels == o.pulp_labels &&
255
+ base_path == o.base_path &&
251
256
  name == o.name &&
252
257
  pulp_href == o.pulp_href &&
258
+ prn == o.prn &&
253
259
  content_guard == o.content_guard &&
254
- pulp_labels == o.pulp_labels &&
255
- no_content_change_since == o.no_content_change_since &&
256
- hidden == o.hidden &&
257
- pulp_created == o.pulp_created &&
258
- base_path == o.base_path &&
259
- repository == o.repository &&
260
260
  remote == o.remote &&
261
261
  distributions == o.distributions &&
262
262
  namespace == o.namespace &&
@@ -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
- [prn, pulp_last_updated, name, pulp_href, content_guard, pulp_labels, no_content_change_since, hidden, pulp_created, base_path, repository, remote, distributions, namespace, private, description].hash
276
+ [pulp_created, hidden, no_content_change_since, repository, pulp_last_updated, pulp_labels, base_path, name, pulp_href, prn, content_guard, remote, distributions, namespace, private, description].hash
277
277
  end
278
278
 
279
279
  # Builds the object from hash
@@ -19,9 +19,6 @@ module PulpContainerClient
19
19
  # An optional description.
20
20
  attr_accessor :description
21
21
 
22
- # A unique name for this repository.
23
- attr_accessor :name
24
-
25
22
  # Retain X versions of the repository. Default is null which retains all versions.
26
23
  attr_accessor :retain_repo_versions
27
24
 
@@ -30,14 +27,17 @@ module PulpContainerClient
30
27
 
31
28
  attr_accessor :pulp_labels
32
29
 
30
+ # A unique name for this repository.
31
+ attr_accessor :name
32
+
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
35
35
  {
36
36
  :'description' => :'description',
37
- :'name' => :'name',
38
37
  :'retain_repo_versions' => :'retain_repo_versions',
39
38
  :'manifest_signing_service' => :'manifest_signing_service',
40
- :'pulp_labels' => :'pulp_labels'
39
+ :'pulp_labels' => :'pulp_labels',
40
+ :'name' => :'name'
41
41
  }
42
42
  end
43
43
 
@@ -50,10 +50,10 @@ module PulpContainerClient
50
50
  def self.openapi_types
51
51
  {
52
52
  :'description' => :'String',
53
- :'name' => :'String',
54
53
  :'retain_repo_versions' => :'Integer',
55
54
  :'manifest_signing_service' => :'String',
56
- :'pulp_labels' => :'Hash<String, String>'
55
+ :'pulp_labels' => :'Hash<String, String>',
56
+ :'name' => :'String'
57
57
  }
58
58
  end
59
59
 
@@ -85,12 +85,6 @@ module PulpContainerClient
85
85
  self.description = attributes[:'description']
86
86
  end
87
87
 
88
- if attributes.key?(:'name')
89
- self.name = attributes[:'name']
90
- else
91
- self.name = nil
92
- end
93
-
94
88
  if attributes.key?(:'retain_repo_versions')
95
89
  self.retain_repo_versions = attributes[:'retain_repo_versions']
96
90
  end
@@ -104,6 +98,12 @@ module PulpContainerClient
104
98
  self.pulp_labels = value
105
99
  end
106
100
  end
101
+
102
+ if attributes.key?(:'name')
103
+ self.name = attributes[:'name']
104
+ else
105
+ self.name = nil
106
+ end
107
107
  end
108
108
 
109
109
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -166,10 +166,10 @@ module PulpContainerClient
166
166
  return true if self.equal?(o)
167
167
  self.class == o.class &&
168
168
  description == o.description &&
169
- name == o.name &&
170
169
  retain_repo_versions == o.retain_repo_versions &&
171
170
  manifest_signing_service == o.manifest_signing_service &&
172
- pulp_labels == o.pulp_labels
171
+ pulp_labels == o.pulp_labels &&
172
+ name == o.name
173
173
  end
174
174
 
175
175
  # @see the `==` method
@@ -181,7 +181,7 @@ module PulpContainerClient
181
181
  # Calculates hash code according to all attributes.
182
182
  # @return [Integer] Hash code
183
183
  def hash
184
- [description, name, retain_repo_versions, manifest_signing_service, pulp_labels].hash
184
+ [description, retain_repo_versions, manifest_signing_service, pulp_labels, name].hash
185
185
  end
186
186
 
187
187
  # Builds the object from hash
@@ -18,47 +18,47 @@ module PulpContainerClient
18
18
  class ContainerContainerPushRepositoryResponse
19
19
  attr_accessor :versions_href
20
20
 
21
- # The Pulp Resource Name (PRN).
22
- attr_accessor :prn
23
-
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
-
27
21
  # An optional description.
28
22
  attr_accessor :description
29
23
 
30
- # A unique name for this repository.
31
- attr_accessor :name
32
-
33
- attr_accessor :pulp_href
24
+ # Timestamp of creation.
25
+ attr_accessor :pulp_created
34
26
 
35
27
  # Retain X versions of the repository. Default is null which retains all versions.
36
28
  attr_accessor :retain_repo_versions
37
29
 
38
- attr_accessor :latest_version_href
39
-
40
30
  # A reference to an associated signing service.
41
31
  attr_accessor :manifest_signing_service
42
32
 
33
+ # 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.
34
+ attr_accessor :pulp_last_updated
35
+
43
36
  attr_accessor :pulp_labels
44
37
 
45
- # Timestamp of creation.
46
- attr_accessor :pulp_created
38
+ # A unique name for this repository.
39
+ attr_accessor :name
40
+
41
+ attr_accessor :pulp_href
42
+
43
+ # The Pulp Resource Name (PRN).
44
+ attr_accessor :prn
45
+
46
+ attr_accessor :latest_version_href
47
47
 
48
48
  # Attribute mapping from ruby-style variable name to JSON key.
49
49
  def self.attribute_map
50
50
  {
51
51
  :'versions_href' => :'versions_href',
52
- :'prn' => :'prn',
53
- :'pulp_last_updated' => :'pulp_last_updated',
54
52
  :'description' => :'description',
55
- :'name' => :'name',
56
- :'pulp_href' => :'pulp_href',
53
+ :'pulp_created' => :'pulp_created',
57
54
  :'retain_repo_versions' => :'retain_repo_versions',
58
- :'latest_version_href' => :'latest_version_href',
59
55
  :'manifest_signing_service' => :'manifest_signing_service',
56
+ :'pulp_last_updated' => :'pulp_last_updated',
60
57
  :'pulp_labels' => :'pulp_labels',
61
- :'pulp_created' => :'pulp_created'
58
+ :'name' => :'name',
59
+ :'pulp_href' => :'pulp_href',
60
+ :'prn' => :'prn',
61
+ :'latest_version_href' => :'latest_version_href'
62
62
  }
63
63
  end
64
64
 
@@ -71,16 +71,16 @@ module PulpContainerClient
71
71
  def self.openapi_types
72
72
  {
73
73
  :'versions_href' => :'String',
74
- :'prn' => :'String',
75
- :'pulp_last_updated' => :'Time',
76
74
  :'description' => :'String',
77
- :'name' => :'String',
78
- :'pulp_href' => :'String',
75
+ :'pulp_created' => :'Time',
79
76
  :'retain_repo_versions' => :'Integer',
80
- :'latest_version_href' => :'String',
81
77
  :'manifest_signing_service' => :'String',
78
+ :'pulp_last_updated' => :'Time',
82
79
  :'pulp_labels' => :'Hash<String, String>',
83
- :'pulp_created' => :'Time'
80
+ :'name' => :'String',
81
+ :'pulp_href' => :'String',
82
+ :'prn' => :'String',
83
+ :'latest_version_href' => :'String'
84
84
  }
85
85
  end
86
86
 
@@ -112,16 +112,30 @@ module PulpContainerClient
112
112
  self.versions_href = attributes[:'versions_href']
113
113
  end
114
114
 
115
- if attributes.key?(:'prn')
116
- self.prn = attributes[:'prn']
115
+ if attributes.key?(:'description')
116
+ self.description = attributes[:'description']
117
+ end
118
+
119
+ if attributes.key?(:'pulp_created')
120
+ self.pulp_created = attributes[:'pulp_created']
121
+ end
122
+
123
+ if attributes.key?(:'retain_repo_versions')
124
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
125
+ end
126
+
127
+ if attributes.key?(:'manifest_signing_service')
128
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
117
129
  end
118
130
 
119
131
  if attributes.key?(:'pulp_last_updated')
120
132
  self.pulp_last_updated = attributes[:'pulp_last_updated']
121
133
  end
122
134
 
123
- if attributes.key?(:'description')
124
- self.description = attributes[:'description']
135
+ if attributes.key?(:'pulp_labels')
136
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
137
+ self.pulp_labels = value
138
+ end
125
139
  end
126
140
 
127
141
  if attributes.key?(:'name')
@@ -134,27 +148,13 @@ module PulpContainerClient
134
148
  self.pulp_href = attributes[:'pulp_href']
135
149
  end
136
150
 
137
- if attributes.key?(:'retain_repo_versions')
138
- self.retain_repo_versions = attributes[:'retain_repo_versions']
151
+ if attributes.key?(:'prn')
152
+ self.prn = attributes[:'prn']
139
153
  end
140
154
 
141
155
  if attributes.key?(:'latest_version_href')
142
156
  self.latest_version_href = attributes[:'latest_version_href']
143
157
  end
144
-
145
- if attributes.key?(:'manifest_signing_service')
146
- self.manifest_signing_service = attributes[:'manifest_signing_service']
147
- end
148
-
149
- if attributes.key?(:'pulp_labels')
150
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
151
- self.pulp_labels = value
152
- end
153
- end
154
-
155
- if attributes.key?(:'pulp_created')
156
- self.pulp_created = attributes[:'pulp_created']
157
- end
158
158
  end
159
159
 
160
160
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -183,16 +183,16 @@ module PulpContainerClient
183
183
  return true if self.equal?(o)
184
184
  self.class == o.class &&
185
185
  versions_href == o.versions_href &&
186
- prn == o.prn &&
187
- pulp_last_updated == o.pulp_last_updated &&
188
186
  description == o.description &&
189
- name == o.name &&
190
- pulp_href == o.pulp_href &&
187
+ pulp_created == o.pulp_created &&
191
188
  retain_repo_versions == o.retain_repo_versions &&
192
- latest_version_href == o.latest_version_href &&
193
189
  manifest_signing_service == o.manifest_signing_service &&
190
+ pulp_last_updated == o.pulp_last_updated &&
194
191
  pulp_labels == o.pulp_labels &&
195
- pulp_created == o.pulp_created
192
+ name == o.name &&
193
+ pulp_href == o.pulp_href &&
194
+ prn == o.prn &&
195
+ latest_version_href == o.latest_version_href
196
196
  end
197
197
 
198
198
  # @see the `==` method
@@ -204,7 +204,7 @@ module PulpContainerClient
204
204
  # Calculates hash code according to all attributes.
205
205
  # @return [Integer] Hash code
206
206
  def hash
207
- [versions_href, prn, pulp_last_updated, description, name, pulp_href, retain_repo_versions, latest_version_href, manifest_signing_service, pulp_labels, pulp_created].hash
207
+ [versions_href, description, pulp_created, retain_repo_versions, manifest_signing_service, pulp_last_updated, pulp_labels, name, pulp_href, prn, latest_version_href].hash
208
208
  end
209
209
 
210
210
  # Builds the object from hash