pulp_container_client 2.26.17 → 2.26.19

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 +5 -5
  8. data/docs/ContainerContainerPushRepositoryResponse.md +11 -11
  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 +5 -5
  14. data/lib/pulp_container_client/models/container_container_distribution.rb +53 -53
  15. data/lib/pulp_container_client/models/container_container_distribution_response.rb +60 -60
  16. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +53 -53
  17. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +60 -60
  18. data/lib/pulp_container_client/models/container_container_push_repository.rb +27 -27
  19. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +57 -57
  20. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +47 -47
  21. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +47 -47
  22. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +25 -25
  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 +11 -11
  29. data/spec/models/container_container_push_repository_spec.rb +5 -5
  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 +5 -5
  33. metadata +2 -2
@@ -16,28 +16,28 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # Serializer for Container Push Repositories.
18
18
  class ContainerContainerPushRepository
19
- attr_accessor :pulp_labels
20
-
21
19
  # A unique name for this repository.
22
20
  attr_accessor :name
23
21
 
22
+ # Retain X versions of the repository. Default is null which retains all versions.
23
+ attr_accessor :retain_repo_versions
24
+
25
+ attr_accessor :pulp_labels
26
+
24
27
  # An optional description.
25
28
  attr_accessor :description
26
29
 
27
30
  # A reference to an associated signing service.
28
31
  attr_accessor :manifest_signing_service
29
32
 
30
- # Retain X versions of the repository. Default is null which retains all versions.
31
- attr_accessor :retain_repo_versions
32
-
33
33
  # Attribute mapping from ruby-style variable name to JSON key.
34
34
  def self.attribute_map
35
35
  {
36
- :'pulp_labels' => :'pulp_labels',
37
36
  :'name' => :'name',
37
+ :'retain_repo_versions' => :'retain_repo_versions',
38
+ :'pulp_labels' => :'pulp_labels',
38
39
  :'description' => :'description',
39
- :'manifest_signing_service' => :'manifest_signing_service',
40
- :'retain_repo_versions' => :'retain_repo_versions'
40
+ :'manifest_signing_service' => :'manifest_signing_service'
41
41
  }
42
42
  end
43
43
 
@@ -49,20 +49,20 @@ module PulpContainerClient
49
49
  # Attribute type mapping.
50
50
  def self.openapi_types
51
51
  {
52
- :'pulp_labels' => :'Hash<String, String>',
53
52
  :'name' => :'String',
53
+ :'retain_repo_versions' => :'Integer',
54
+ :'pulp_labels' => :'Hash<String, String>',
54
55
  :'description' => :'String',
55
- :'manifest_signing_service' => :'String',
56
- :'retain_repo_versions' => :'Integer'
56
+ :'manifest_signing_service' => :'String'
57
57
  }
58
58
  end
59
59
 
60
60
  # List of attributes with nullable: true
61
61
  def self.openapi_nullable
62
62
  Set.new([
63
+ :'retain_repo_versions',
63
64
  :'description',
64
- :'manifest_signing_service',
65
- :'retain_repo_versions'
65
+ :'manifest_signing_service'
66
66
  ])
67
67
  end
68
68
 
@@ -81,18 +81,22 @@ module PulpContainerClient
81
81
  h[k.to_sym] = v
82
82
  }
83
83
 
84
- if attributes.key?(:'pulp_labels')
85
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
86
- self.pulp_labels = value
87
- end
88
- end
89
-
90
84
  if attributes.key?(:'name')
91
85
  self.name = attributes[:'name']
92
86
  else
93
87
  self.name = nil
94
88
  end
95
89
 
90
+ if attributes.key?(:'retain_repo_versions')
91
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
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
98
+ end
99
+
96
100
  if attributes.key?(:'description')
97
101
  self.description = attributes[:'description']
98
102
  end
@@ -100,10 +104,6 @@ module PulpContainerClient
100
104
  if attributes.key?(:'manifest_signing_service')
101
105
  self.manifest_signing_service = attributes[:'manifest_signing_service']
102
106
  end
103
-
104
- if attributes.key?(:'retain_repo_versions')
105
- self.retain_repo_versions = attributes[:'retain_repo_versions']
106
- end
107
107
  end
108
108
 
109
109
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -165,11 +165,11 @@ module PulpContainerClient
165
165
  def ==(o)
166
166
  return true if self.equal?(o)
167
167
  self.class == o.class &&
168
- pulp_labels == o.pulp_labels &&
169
168
  name == o.name &&
169
+ retain_repo_versions == o.retain_repo_versions &&
170
+ pulp_labels == o.pulp_labels &&
170
171
  description == o.description &&
171
- manifest_signing_service == o.manifest_signing_service &&
172
- retain_repo_versions == o.retain_repo_versions
172
+ manifest_signing_service == o.manifest_signing_service
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
- [pulp_labels, name, description, manifest_signing_service, retain_repo_versions].hash
184
+ [name, retain_repo_versions, pulp_labels, description, manifest_signing_service].hash
185
185
  end
186
186
 
187
187
  # Builds the object from hash
@@ -16,6 +16,17 @@ 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 unique name for this repository.
23
+ attr_accessor :name
24
+
25
+ # Retain X versions of the repository. Default is null which retains all versions.
26
+ attr_accessor :retain_repo_versions
27
+
28
+ attr_accessor :pulp_href
29
+
19
30
  attr_accessor :pulp_labels
20
31
 
21
32
  # The Pulp Resource Name (PRN).
@@ -23,42 +34,31 @@ module PulpContainerClient
23
34
 
24
35
  attr_accessor :latest_version_href
25
36
 
26
- # 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.
27
- attr_accessor :pulp_last_updated
28
-
29
- # Timestamp of creation.
30
- attr_accessor :pulp_created
31
-
32
37
  attr_accessor :versions_href
33
38
 
34
- # A unique name for this repository.
35
- attr_accessor :name
36
-
37
39
  # An optional description.
38
40
  attr_accessor :description
39
41
 
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
+
40
45
  # A reference to an associated signing service.
41
46
  attr_accessor :manifest_signing_service
42
47
 
43
- attr_accessor :pulp_href
44
-
45
- # Retain X versions of the repository. Default is null which retains all versions.
46
- attr_accessor :retain_repo_versions
47
-
48
48
  # Attribute mapping from ruby-style variable name to JSON key.
49
49
  def self.attribute_map
50
50
  {
51
+ :'pulp_created' => :'pulp_created',
52
+ :'name' => :'name',
53
+ :'retain_repo_versions' => :'retain_repo_versions',
54
+ :'pulp_href' => :'pulp_href',
51
55
  :'pulp_labels' => :'pulp_labels',
52
56
  :'prn' => :'prn',
53
57
  :'latest_version_href' => :'latest_version_href',
54
- :'pulp_last_updated' => :'pulp_last_updated',
55
- :'pulp_created' => :'pulp_created',
56
58
  :'versions_href' => :'versions_href',
57
- :'name' => :'name',
58
59
  :'description' => :'description',
59
- :'manifest_signing_service' => :'manifest_signing_service',
60
- :'pulp_href' => :'pulp_href',
61
- :'retain_repo_versions' => :'retain_repo_versions'
60
+ :'pulp_last_updated' => :'pulp_last_updated',
61
+ :'manifest_signing_service' => :'manifest_signing_service'
62
62
  }
63
63
  end
64
64
 
@@ -70,26 +70,26 @@ module PulpContainerClient
70
70
  # Attribute type mapping.
71
71
  def self.openapi_types
72
72
  {
73
+ :'pulp_created' => :'Time',
74
+ :'name' => :'String',
75
+ :'retain_repo_versions' => :'Integer',
76
+ :'pulp_href' => :'String',
73
77
  :'pulp_labels' => :'Hash<String, String>',
74
78
  :'prn' => :'String',
75
79
  :'latest_version_href' => :'String',
76
- :'pulp_last_updated' => :'Time',
77
- :'pulp_created' => :'Time',
78
80
  :'versions_href' => :'String',
79
- :'name' => :'String',
80
81
  :'description' => :'String',
81
- :'manifest_signing_service' => :'String',
82
- :'pulp_href' => :'String',
83
- :'retain_repo_versions' => :'Integer'
82
+ :'pulp_last_updated' => :'Time',
83
+ :'manifest_signing_service' => :'String'
84
84
  }
85
85
  end
86
86
 
87
87
  # List of attributes with nullable: true
88
88
  def self.openapi_nullable
89
89
  Set.new([
90
+ :'retain_repo_versions',
90
91
  :'description',
91
- :'manifest_signing_service',
92
- :'retain_repo_versions'
92
+ :'manifest_signing_service'
93
93
  ])
94
94
  end
95
95
 
@@ -108,6 +108,24 @@ module PulpContainerClient
108
108
  h[k.to_sym] = v
109
109
  }
110
110
 
111
+ if attributes.key?(:'pulp_created')
112
+ self.pulp_created = attributes[:'pulp_created']
113
+ end
114
+
115
+ if attributes.key?(:'name')
116
+ self.name = attributes[:'name']
117
+ else
118
+ self.name = nil
119
+ end
120
+
121
+ if attributes.key?(:'retain_repo_versions')
122
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
123
+ end
124
+
125
+ if attributes.key?(:'pulp_href')
126
+ self.pulp_href = attributes[:'pulp_href']
127
+ end
128
+
111
129
  if attributes.key?(:'pulp_labels')
112
130
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
113
131
  self.pulp_labels = value
@@ -122,38 +140,20 @@ module PulpContainerClient
122
140
  self.latest_version_href = attributes[:'latest_version_href']
123
141
  end
124
142
 
125
- if attributes.key?(:'pulp_last_updated')
126
- self.pulp_last_updated = attributes[:'pulp_last_updated']
127
- end
128
-
129
- if attributes.key?(:'pulp_created')
130
- self.pulp_created = attributes[:'pulp_created']
131
- end
132
-
133
143
  if attributes.key?(:'versions_href')
134
144
  self.versions_href = attributes[:'versions_href']
135
145
  end
136
146
 
137
- if attributes.key?(:'name')
138
- self.name = attributes[:'name']
139
- else
140
- self.name = nil
141
- end
142
-
143
147
  if attributes.key?(:'description')
144
148
  self.description = attributes[:'description']
145
149
  end
146
150
 
147
- if attributes.key?(:'manifest_signing_service')
148
- self.manifest_signing_service = attributes[:'manifest_signing_service']
149
- end
150
-
151
- if attributes.key?(:'pulp_href')
152
- self.pulp_href = attributes[:'pulp_href']
151
+ if attributes.key?(:'pulp_last_updated')
152
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
153
153
  end
154
154
 
155
- if attributes.key?(:'retain_repo_versions')
156
- self.retain_repo_versions = attributes[:'retain_repo_versions']
155
+ if attributes.key?(:'manifest_signing_service')
156
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
157
157
  end
158
158
  end
159
159
 
@@ -182,17 +182,17 @@ module PulpContainerClient
182
182
  def ==(o)
183
183
  return true if self.equal?(o)
184
184
  self.class == o.class &&
185
+ pulp_created == o.pulp_created &&
186
+ name == o.name &&
187
+ retain_repo_versions == o.retain_repo_versions &&
188
+ pulp_href == o.pulp_href &&
185
189
  pulp_labels == o.pulp_labels &&
186
190
  prn == o.prn &&
187
191
  latest_version_href == o.latest_version_href &&
188
- pulp_last_updated == o.pulp_last_updated &&
189
- pulp_created == o.pulp_created &&
190
192
  versions_href == o.versions_href &&
191
- name == o.name &&
192
193
  description == o.description &&
193
- manifest_signing_service == o.manifest_signing_service &&
194
- pulp_href == o.pulp_href &&
195
- retain_repo_versions == o.retain_repo_versions
194
+ pulp_last_updated == o.pulp_last_updated &&
195
+ manifest_signing_service == o.manifest_signing_service
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
- [pulp_labels, prn, latest_version_href, pulp_last_updated, pulp_created, versions_href, name, description, manifest_signing_service, pulp_href, retain_repo_versions].hash
207
+ [pulp_created, name, retain_repo_versions, pulp_href, pulp_labels, prn, latest_version_href, versions_href, description, pulp_last_updated, manifest_signing_service].hash
208
208
  end
209
209
 
210
210
  # Builds the object from hash
@@ -19,20 +19,20 @@ module PulpContainerClient
19
19
  # An optional content-guard. If none is specified, a default one will be used.
20
20
  attr_accessor :content_guard
21
21
 
22
- attr_accessor :pulp_labels
23
-
24
- # Whether this distribution should be shown in the content app.
25
- attr_accessor :hidden
22
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
23
+ attr_accessor :base_path
26
24
 
27
25
  # A unique name. Ex, `rawhide` and `stable`.
28
26
  attr_accessor :name
29
27
 
30
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
31
- attr_accessor :base_path
28
+ attr_accessor :pulp_labels
32
29
 
33
30
  # The latest RepositoryVersion for this Repository will be served.
34
31
  attr_accessor :repository
35
32
 
33
+ # Whether this distribution should be shown in the content app.
34
+ attr_accessor :hidden
35
+
36
36
  # RepositoryVersion to be served
37
37
  attr_accessor :repository_version
38
38
 
@@ -46,11 +46,11 @@ module PulpContainerClient
46
46
  def self.attribute_map
47
47
  {
48
48
  :'content_guard' => :'content_guard',
49
- :'pulp_labels' => :'pulp_labels',
50
- :'hidden' => :'hidden',
51
- :'name' => :'name',
52
49
  :'base_path' => :'base_path',
50
+ :'name' => :'name',
51
+ :'pulp_labels' => :'pulp_labels',
53
52
  :'repository' => :'repository',
53
+ :'hidden' => :'hidden',
54
54
  :'repository_version' => :'repository_version',
55
55
  :'private' => :'private',
56
56
  :'description' => :'description'
@@ -66,11 +66,11 @@ module PulpContainerClient
66
66
  def self.openapi_types
67
67
  {
68
68
  :'content_guard' => :'String',
69
- :'pulp_labels' => :'Hash<String, String>',
70
- :'hidden' => :'Boolean',
71
- :'name' => :'String',
72
69
  :'base_path' => :'String',
70
+ :'name' => :'String',
71
+ :'pulp_labels' => :'Hash<String, String>',
73
72
  :'repository' => :'String',
73
+ :'hidden' => :'Boolean',
74
74
  :'repository_version' => :'String',
75
75
  :'private' => :'Boolean',
76
76
  :'description' => :'String'
@@ -105,30 +105,30 @@ module PulpContainerClient
105
105
  self.content_guard = attributes[:'content_guard']
106
106
  end
107
107
 
108
- if attributes.key?(:'pulp_labels')
109
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
110
- self.pulp_labels = value
111
- end
112
- end
113
-
114
- if attributes.key?(:'hidden')
115
- self.hidden = attributes[:'hidden']
116
- else
117
- self.hidden = false
108
+ if attributes.key?(:'base_path')
109
+ self.base_path = attributes[:'base_path']
118
110
  end
119
111
 
120
112
  if attributes.key?(:'name')
121
113
  self.name = attributes[:'name']
122
114
  end
123
115
 
124
- if attributes.key?(:'base_path')
125
- self.base_path = attributes[:'base_path']
116
+ if attributes.key?(:'pulp_labels')
117
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
118
+ self.pulp_labels = value
119
+ end
126
120
  end
127
121
 
128
122
  if attributes.key?(:'repository')
129
123
  self.repository = attributes[:'repository']
130
124
  end
131
125
 
126
+ if attributes.key?(:'hidden')
127
+ self.hidden = attributes[:'hidden']
128
+ else
129
+ self.hidden = false
130
+ end
131
+
132
132
  if attributes.key?(:'repository_version')
133
133
  self.repository_version = attributes[:'repository_version']
134
134
  end
@@ -147,14 +147,14 @@ module PulpContainerClient
147
147
  def list_invalid_properties
148
148
  warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
149
149
  invalid_properties = Array.new
150
- if !@name.nil? && @name.to_s.length < 1
151
- invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
152
- end
153
-
154
150
  if !@base_path.nil? && @base_path.to_s.length < 1
155
151
  invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
156
152
  end
157
153
 
154
+ if !@name.nil? && @name.to_s.length < 1
155
+ invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
156
+ end
157
+
158
158
  if !@description.nil? && @description.to_s.length < 1
159
159
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
160
160
  end
@@ -166,26 +166,12 @@ module PulpContainerClient
166
166
  # @return true if the model is valid
167
167
  def valid?
168
168
  warn '[DEPRECATED] the `valid?` method is obsolete'
169
- return false if !@name.nil? && @name.to_s.length < 1
170
169
  return false if !@base_path.nil? && @base_path.to_s.length < 1
170
+ return false if !@name.nil? && @name.to_s.length < 1
171
171
  return false if !@description.nil? && @description.to_s.length < 1
172
172
  true
173
173
  end
174
174
 
175
- # Custom attribute writer method with validation
176
- # @param [Object] name Value to be assigned
177
- def name=(name)
178
- if name.nil?
179
- fail ArgumentError, 'name cannot be nil'
180
- end
181
-
182
- if name.to_s.length < 1
183
- fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
184
- end
185
-
186
- @name = name
187
- end
188
-
189
175
  # Custom attribute writer method with validation
190
176
  # @param [Object] base_path Value to be assigned
191
177
  def base_path=(base_path)
@@ -200,6 +186,20 @@ module PulpContainerClient
200
186
  @base_path = base_path
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
  # Custom attribute writer method with validation
204
204
  # @param [Object] description Value to be assigned
205
205
  def description=(description)
@@ -216,11 +216,11 @@ module PulpContainerClient
216
216
  return true if self.equal?(o)
217
217
  self.class == o.class &&
218
218
  content_guard == o.content_guard &&
219
- pulp_labels == o.pulp_labels &&
220
- hidden == o.hidden &&
221
- name == o.name &&
222
219
  base_path == o.base_path &&
220
+ name == o.name &&
221
+ pulp_labels == o.pulp_labels &&
223
222
  repository == o.repository &&
223
+ hidden == o.hidden &&
224
224
  repository_version == o.repository_version &&
225
225
  private == o.private &&
226
226
  description == o.description
@@ -235,7 +235,7 @@ module PulpContainerClient
235
235
  # Calculates hash code according to all attributes.
236
236
  # @return [Integer] Hash code
237
237
  def hash
238
- [content_guard, pulp_labels, hidden, name, base_path, repository, repository_version, private, description].hash
238
+ [content_guard, base_path, name, pulp_labels, repository, hidden, repository_version, private, description].hash
239
239
  end
240
240
 
241
241
  # Builds the object from hash