pulp_container_client 2.18.0 → 2.18.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (31) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +4 -4
  3. data/docs/ContainerContainerDistribution.md +4 -4
  4. data/docs/ContainerContainerDistributionResponse.md +6 -6
  5. data/docs/ContainerContainerPullThroughDistribution.md +4 -4
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +6 -6
  7. data/docs/ContainerContainerPushRepository.md +5 -5
  8. data/docs/ContainerContainerPushRepositoryResponse.md +13 -13
  9. data/docs/PatchedcontainerContainerDistribution.md +4 -4
  10. data/docs/PatchedcontainerContainerPullThroughDistribution.md +4 -4
  11. data/docs/PatchedcontainerContainerPushRepository.md +5 -5
  12. data/lib/pulp_container_client/models/container_container_distribution.rb +47 -47
  13. data/lib/pulp_container_client/models/container_container_distribution_response.rb +36 -36
  14. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +47 -47
  15. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +36 -36
  16. data/lib/pulp_container_client/models/container_container_push_repository.rb +38 -38
  17. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +53 -53
  18. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +38 -38
  19. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +38 -38
  20. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +38 -38
  21. data/lib/pulp_container_client/version.rb +1 -1
  22. data/spec/models/container_container_distribution_response_spec.rb +6 -6
  23. data/spec/models/container_container_distribution_spec.rb +5 -5
  24. data/spec/models/container_container_pull_through_distribution_response_spec.rb +6 -6
  25. data/spec/models/container_container_pull_through_distribution_spec.rb +5 -5
  26. data/spec/models/container_container_push_repository_response_spec.rb +9 -9
  27. data/spec/models/container_container_push_repository_spec.rb +3 -3
  28. data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
  29. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +5 -5
  30. data/spec/models/patchedcontainer_container_push_repository_spec.rb +3 -3
  31. metadata +61 -61
@@ -15,56 +15,56 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepositoryResponse
18
+ attr_accessor :latest_version_href
19
+
20
+ attr_accessor :versions_href
21
+
18
22
  # A reference to an associated signing service.
19
23
  attr_accessor :manifest_signing_service
20
24
 
21
- attr_accessor :latest_version_href
22
-
23
- # A unique name for this repository.
24
- attr_accessor :name
25
+ attr_accessor :pulp_labels
25
26
 
26
27
  # Retain X versions of the repository. Default is null which retains all versions.
27
28
  attr_accessor :retain_repo_versions
28
29
 
29
- attr_accessor :pulp_href
30
+ # A unique name for this repository.
31
+ attr_accessor :name
32
+
33
+ # Timestamp of creation.
34
+ attr_accessor :pulp_created
30
35
 
31
36
  # An optional description.
32
37
  attr_accessor :description
33
38
 
34
- attr_accessor :pulp_labels
35
-
36
- attr_accessor :versions_href
37
-
38
- # Timestamp of creation.
39
- attr_accessor :pulp_created
39
+ attr_accessor :pulp_href
40
40
 
41
41
  # Attribute mapping from ruby-style variable name to JSON key.
42
42
  def self.attribute_map
43
43
  {
44
- :'manifest_signing_service' => :'manifest_signing_service',
45
44
  :'latest_version_href' => :'latest_version_href',
46
- :'name' => :'name',
45
+ :'versions_href' => :'versions_href',
46
+ :'manifest_signing_service' => :'manifest_signing_service',
47
+ :'pulp_labels' => :'pulp_labels',
47
48
  :'retain_repo_versions' => :'retain_repo_versions',
48
- :'pulp_href' => :'pulp_href',
49
+ :'name' => :'name',
50
+ :'pulp_created' => :'pulp_created',
49
51
  :'description' => :'description',
50
- :'pulp_labels' => :'pulp_labels',
51
- :'versions_href' => :'versions_href',
52
- :'pulp_created' => :'pulp_created'
52
+ :'pulp_href' => :'pulp_href'
53
53
  }
54
54
  end
55
55
 
56
56
  # Attribute type mapping.
57
57
  def self.openapi_types
58
58
  {
59
- :'manifest_signing_service' => :'String',
60
59
  :'latest_version_href' => :'String',
61
- :'name' => :'String',
60
+ :'versions_href' => :'String',
61
+ :'manifest_signing_service' => :'String',
62
+ :'pulp_labels' => :'Hash<String, String>',
62
63
  :'retain_repo_versions' => :'Integer',
63
- :'pulp_href' => :'String',
64
+ :'name' => :'String',
65
+ :'pulp_created' => :'DateTime',
64
66
  :'description' => :'String',
65
- :'pulp_labels' => :'Hash<String, String>',
66
- :'versions_href' => :'String',
67
- :'pulp_created' => :'DateTime'
67
+ :'pulp_href' => :'String'
68
68
  }
69
69
  end
70
70
 
@@ -92,28 +92,16 @@ module PulpContainerClient
92
92
  h[k.to_sym] = v
93
93
  }
94
94
 
95
- if attributes.key?(:'manifest_signing_service')
96
- self.manifest_signing_service = attributes[:'manifest_signing_service']
97
- end
98
-
99
95
  if attributes.key?(:'latest_version_href')
100
96
  self.latest_version_href = attributes[:'latest_version_href']
101
97
  end
102
98
 
103
- if attributes.key?(:'name')
104
- self.name = attributes[:'name']
105
- end
106
-
107
- if attributes.key?(:'retain_repo_versions')
108
- self.retain_repo_versions = attributes[:'retain_repo_versions']
109
- end
110
-
111
- if attributes.key?(:'pulp_href')
112
- self.pulp_href = attributes[:'pulp_href']
99
+ if attributes.key?(:'versions_href')
100
+ self.versions_href = attributes[:'versions_href']
113
101
  end
114
102
 
115
- if attributes.key?(:'description')
116
- self.description = attributes[:'description']
103
+ if attributes.key?(:'manifest_signing_service')
104
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
117
105
  end
118
106
 
119
107
  if attributes.key?(:'pulp_labels')
@@ -122,35 +110,47 @@ module PulpContainerClient
122
110
  end
123
111
  end
124
112
 
125
- if attributes.key?(:'versions_href')
126
- self.versions_href = attributes[:'versions_href']
113
+ if attributes.key?(:'retain_repo_versions')
114
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
115
+ end
116
+
117
+ if attributes.key?(:'name')
118
+ self.name = attributes[:'name']
127
119
  end
128
120
 
129
121
  if attributes.key?(:'pulp_created')
130
122
  self.pulp_created = attributes[:'pulp_created']
131
123
  end
124
+
125
+ if attributes.key?(:'description')
126
+ self.description = attributes[:'description']
127
+ end
128
+
129
+ if attributes.key?(:'pulp_href')
130
+ self.pulp_href = attributes[:'pulp_href']
131
+ end
132
132
  end
133
133
 
134
134
  # Show invalid properties with the reasons. Usually used together with valid?
135
135
  # @return Array for valid properties with the reasons
136
136
  def list_invalid_properties
137
137
  invalid_properties = Array.new
138
- if @name.nil?
139
- invalid_properties.push('invalid value for "name", name cannot be nil.')
140
- end
141
-
142
138
  if !@retain_repo_versions.nil? && @retain_repo_versions < 1
143
139
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
144
140
  end
145
141
 
142
+ if @name.nil?
143
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
144
+ end
145
+
146
146
  invalid_properties
147
147
  end
148
148
 
149
149
  # Check to see if the all the properties in the model are valid
150
150
  # @return true if the model is valid
151
151
  def valid?
152
- return false if @name.nil?
153
152
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
153
+ return false if @name.nil?
154
154
  true
155
155
  end
156
156
 
@@ -169,15 +169,15 @@ module PulpContainerClient
169
169
  def ==(o)
170
170
  return true if self.equal?(o)
171
171
  self.class == o.class &&
172
- manifest_signing_service == o.manifest_signing_service &&
173
172
  latest_version_href == o.latest_version_href &&
174
- name == o.name &&
173
+ versions_href == o.versions_href &&
174
+ manifest_signing_service == o.manifest_signing_service &&
175
+ pulp_labels == o.pulp_labels &&
175
176
  retain_repo_versions == o.retain_repo_versions &&
176
- pulp_href == o.pulp_href &&
177
+ name == o.name &&
178
+ pulp_created == o.pulp_created &&
177
179
  description == o.description &&
178
- pulp_labels == o.pulp_labels &&
179
- versions_href == o.versions_href &&
180
- pulp_created == o.pulp_created
180
+ pulp_href == o.pulp_href
181
181
  end
182
182
 
183
183
  # @see the `==` method
@@ -189,7 +189,7 @@ module PulpContainerClient
189
189
  # Calculates hash code according to all attributes.
190
190
  # @return [Integer] Hash code
191
191
  def hash
192
- [manifest_signing_service, latest_version_href, name, retain_repo_versions, pulp_href, description, pulp_labels, versions_href, pulp_created].hash
192
+ [latest_version_href, versions_href, manifest_signing_service, pulp_labels, retain_repo_versions, name, pulp_created, description, pulp_href].hash
193
193
  end
194
194
 
195
195
  # Builds the object from hash
@@ -18,12 +18,6 @@ module PulpContainerClient
18
18
  # An optional content-guard. If none is specified, a default one will be used.
19
19
  attr_accessor :content_guard
20
20
 
21
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
22
- attr_accessor :base_path
23
-
24
- # Whether this distribution should be shown in the content app.
25
- attr_accessor :hidden
26
-
27
21
  attr_accessor :pulp_labels
28
22
 
29
23
  # A unique name. Ex, `rawhide` and `stable`.
@@ -32,6 +26,12 @@ module PulpContainerClient
32
26
  # The latest RepositoryVersion for this Repository will be served.
33
27
  attr_accessor :repository
34
28
 
29
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
30
+ attr_accessor :base_path
31
+
32
+ # Whether this distribution should be shown in the content app.
33
+ attr_accessor :hidden
34
+
35
35
  # RepositoryVersion to be served
36
36
  attr_accessor :repository_version
37
37
 
@@ -45,11 +45,11 @@ module PulpContainerClient
45
45
  def self.attribute_map
46
46
  {
47
47
  :'content_guard' => :'content_guard',
48
- :'base_path' => :'base_path',
49
- :'hidden' => :'hidden',
50
48
  :'pulp_labels' => :'pulp_labels',
51
49
  :'name' => :'name',
52
50
  :'repository' => :'repository',
51
+ :'base_path' => :'base_path',
52
+ :'hidden' => :'hidden',
53
53
  :'repository_version' => :'repository_version',
54
54
  :'private' => :'private',
55
55
  :'description' => :'description'
@@ -60,11 +60,11 @@ module PulpContainerClient
60
60
  def self.openapi_types
61
61
  {
62
62
  :'content_guard' => :'String',
63
- :'base_path' => :'String',
64
- :'hidden' => :'Boolean',
65
63
  :'pulp_labels' => :'Hash<String, String>',
66
64
  :'name' => :'String',
67
65
  :'repository' => :'String',
66
+ :'base_path' => :'String',
67
+ :'hidden' => :'Boolean',
68
68
  :'repository_version' => :'String',
69
69
  :'private' => :'Boolean',
70
70
  :'description' => :'String'
@@ -99,16 +99,6 @@ module PulpContainerClient
99
99
  self.content_guard = attributes[:'content_guard']
100
100
  end
101
101
 
102
- if attributes.key?(:'base_path')
103
- self.base_path = attributes[:'base_path']
104
- end
105
-
106
- if attributes.key?(:'hidden')
107
- self.hidden = attributes[:'hidden']
108
- else
109
- self.hidden = false
110
- end
111
-
112
102
  if attributes.key?(:'pulp_labels')
113
103
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
114
104
  self.pulp_labels = value
@@ -123,6 +113,16 @@ module PulpContainerClient
123
113
  self.repository = attributes[:'repository']
124
114
  end
125
115
 
116
+ if attributes.key?(:'base_path')
117
+ self.base_path = attributes[:'base_path']
118
+ end
119
+
120
+ if attributes.key?(:'hidden')
121
+ self.hidden = attributes[:'hidden']
122
+ else
123
+ self.hidden = false
124
+ end
125
+
126
126
  if attributes.key?(:'repository_version')
127
127
  self.repository_version = attributes[:'repository_version']
128
128
  end
@@ -140,14 +140,14 @@ module PulpContainerClient
140
140
  # @return Array for valid properties with the reasons
141
141
  def list_invalid_properties
142
142
  invalid_properties = Array.new
143
- if !@base_path.nil? && @base_path.to_s.length < 1
144
- invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
145
- end
146
-
147
143
  if !@name.nil? && @name.to_s.length < 1
148
144
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
149
145
  end
150
146
 
147
+ if !@base_path.nil? && @base_path.to_s.length < 1
148
+ invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
149
+ end
150
+
151
151
  if !@description.nil? && @description.to_s.length < 1
152
152
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
153
153
  end
@@ -158,22 +158,12 @@ module PulpContainerClient
158
158
  # Check to see if the all the properties in the model are valid
159
159
  # @return true if the model is valid
160
160
  def valid?
161
- return false if !@base_path.nil? && @base_path.to_s.length < 1
162
161
  return false if !@name.nil? && @name.to_s.length < 1
162
+ return false if !@base_path.nil? && @base_path.to_s.length < 1
163
163
  return false if !@description.nil? && @description.to_s.length < 1
164
164
  true
165
165
  end
166
166
 
167
- # Custom attribute writer method with validation
168
- # @param [Object] base_path Value to be assigned
169
- def base_path=(base_path)
170
- if !base_path.nil? && base_path.to_s.length < 1
171
- fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
172
- end
173
-
174
- @base_path = base_path
175
- end
176
-
177
167
  # Custom attribute writer method with validation
178
168
  # @param [Object] name Value to be assigned
179
169
  def name=(name)
@@ -184,6 +174,16 @@ module PulpContainerClient
184
174
  @name = name
185
175
  end
186
176
 
177
+ # Custom attribute writer method with validation
178
+ # @param [Object] base_path Value to be assigned
179
+ def base_path=(base_path)
180
+ if !base_path.nil? && base_path.to_s.length < 1
181
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
182
+ end
183
+
184
+ @base_path = base_path
185
+ end
186
+
187
187
  # Custom attribute writer method with validation
188
188
  # @param [Object] description Value to be assigned
189
189
  def description=(description)
@@ -200,11 +200,11 @@ module PulpContainerClient
200
200
  return true if self.equal?(o)
201
201
  self.class == o.class &&
202
202
  content_guard == o.content_guard &&
203
- base_path == o.base_path &&
204
- hidden == o.hidden &&
205
203
  pulp_labels == o.pulp_labels &&
206
204
  name == o.name &&
207
205
  repository == o.repository &&
206
+ base_path == o.base_path &&
207
+ hidden == o.hidden &&
208
208
  repository_version == o.repository_version &&
209
209
  private == o.private &&
210
210
  description == o.description
@@ -219,7 +219,7 @@ module PulpContainerClient
219
219
  # Calculates hash code according to all attributes.
220
220
  # @return [Integer] Hash code
221
221
  def hash
222
- [content_guard, base_path, hidden, pulp_labels, name, repository, repository_version, private, description].hash
222
+ [content_guard, pulp_labels, name, repository, base_path, hidden, repository_version, private, description].hash
223
223
  end
224
224
 
225
225
  # Builds the object from hash
@@ -18,12 +18,6 @@ module PulpContainerClient
18
18
  # An optional content-guard. If none is specified, a default one will be used.
19
19
  attr_accessor :content_guard
20
20
 
21
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
22
- attr_accessor :base_path
23
-
24
- # Whether this distribution should be shown in the content app.
25
- attr_accessor :hidden
26
-
27
21
  attr_accessor :pulp_labels
28
22
 
29
23
  # A unique name. Ex, `rawhide` and `stable`.
@@ -32,6 +26,12 @@ module PulpContainerClient
32
26
  # The latest RepositoryVersion for this Repository will be served.
33
27
  attr_accessor :repository
34
28
 
29
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
30
+ attr_accessor :base_path
31
+
32
+ # Whether this distribution should be shown in the content app.
33
+ attr_accessor :hidden
34
+
35
35
  # Remote that can be used to fetch content when using pull-through caching.
36
36
  attr_accessor :remote
37
37
 
@@ -48,11 +48,11 @@ module PulpContainerClient
48
48
  def self.attribute_map
49
49
  {
50
50
  :'content_guard' => :'content_guard',
51
- :'base_path' => :'base_path',
52
- :'hidden' => :'hidden',
53
51
  :'pulp_labels' => :'pulp_labels',
54
52
  :'name' => :'name',
55
53
  :'repository' => :'repository',
54
+ :'base_path' => :'base_path',
55
+ :'hidden' => :'hidden',
56
56
  :'remote' => :'remote',
57
57
  :'distributions' => :'distributions',
58
58
  :'private' => :'private',
@@ -64,11 +64,11 @@ module PulpContainerClient
64
64
  def self.openapi_types
65
65
  {
66
66
  :'content_guard' => :'String',
67
- :'base_path' => :'String',
68
- :'hidden' => :'Boolean',
69
67
  :'pulp_labels' => :'Hash<String, String>',
70
68
  :'name' => :'String',
71
69
  :'repository' => :'String',
70
+ :'base_path' => :'String',
71
+ :'hidden' => :'Boolean',
72
72
  :'remote' => :'String',
73
73
  :'distributions' => :'Array<String>',
74
74
  :'private' => :'Boolean',
@@ -103,16 +103,6 @@ module PulpContainerClient
103
103
  self.content_guard = attributes[:'content_guard']
104
104
  end
105
105
 
106
- if attributes.key?(:'base_path')
107
- self.base_path = attributes[:'base_path']
108
- end
109
-
110
- if attributes.key?(:'hidden')
111
- self.hidden = attributes[:'hidden']
112
- else
113
- self.hidden = false
114
- end
115
-
116
106
  if attributes.key?(:'pulp_labels')
117
107
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
118
108
  self.pulp_labels = value
@@ -127,6 +117,16 @@ module PulpContainerClient
127
117
  self.repository = attributes[:'repository']
128
118
  end
129
119
 
120
+ if attributes.key?(:'base_path')
121
+ self.base_path = attributes[:'base_path']
122
+ end
123
+
124
+ if attributes.key?(:'hidden')
125
+ self.hidden = attributes[:'hidden']
126
+ else
127
+ self.hidden = false
128
+ end
129
+
130
130
  if attributes.key?(:'remote')
131
131
  self.remote = attributes[:'remote']
132
132
  end
@@ -150,14 +150,14 @@ module PulpContainerClient
150
150
  # @return Array for valid properties with the reasons
151
151
  def list_invalid_properties
152
152
  invalid_properties = Array.new
153
- if !@base_path.nil? && @base_path.to_s.length < 1
154
- invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
155
- end
156
-
157
153
  if !@name.nil? && @name.to_s.length < 1
158
154
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
159
155
  end
160
156
 
157
+ if !@base_path.nil? && @base_path.to_s.length < 1
158
+ invalid_properties.push('invalid value for "base_path", the character length must be great than or equal to 1.')
159
+ end
160
+
161
161
  if !@description.nil? && @description.to_s.length < 1
162
162
  invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
163
163
  end
@@ -168,22 +168,12 @@ module PulpContainerClient
168
168
  # Check to see if the all the properties in the model are valid
169
169
  # @return true if the model is valid
170
170
  def valid?
171
- return false if !@base_path.nil? && @base_path.to_s.length < 1
172
171
  return false if !@name.nil? && @name.to_s.length < 1
172
+ return false if !@base_path.nil? && @base_path.to_s.length < 1
173
173
  return false if !@description.nil? && @description.to_s.length < 1
174
174
  true
175
175
  end
176
176
 
177
- # Custom attribute writer method with validation
178
- # @param [Object] base_path Value to be assigned
179
- def base_path=(base_path)
180
- if !base_path.nil? && base_path.to_s.length < 1
181
- fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
182
- end
183
-
184
- @base_path = base_path
185
- end
186
-
187
177
  # Custom attribute writer method with validation
188
178
  # @param [Object] name Value to be assigned
189
179
  def name=(name)
@@ -194,6 +184,16 @@ module PulpContainerClient
194
184
  @name = name
195
185
  end
196
186
 
187
+ # Custom attribute writer method with validation
188
+ # @param [Object] base_path Value to be assigned
189
+ def base_path=(base_path)
190
+ if !base_path.nil? && base_path.to_s.length < 1
191
+ fail ArgumentError, 'invalid value for "base_path", the character length must be great than or equal to 1.'
192
+ end
193
+
194
+ @base_path = base_path
195
+ end
196
+
197
197
  # Custom attribute writer method with validation
198
198
  # @param [Object] description Value to be assigned
199
199
  def description=(description)
@@ -210,11 +210,11 @@ module PulpContainerClient
210
210
  return true if self.equal?(o)
211
211
  self.class == o.class &&
212
212
  content_guard == o.content_guard &&
213
- base_path == o.base_path &&
214
- hidden == o.hidden &&
215
213
  pulp_labels == o.pulp_labels &&
216
214
  name == o.name &&
217
215
  repository == o.repository &&
216
+ base_path == o.base_path &&
217
+ hidden == o.hidden &&
218
218
  remote == o.remote &&
219
219
  distributions == o.distributions &&
220
220
  private == o.private &&
@@ -230,7 +230,7 @@ module PulpContainerClient
230
230
  # Calculates hash code according to all attributes.
231
231
  # @return [Integer] Hash code
232
232
  def hash
233
- [content_guard, base_path, hidden, pulp_labels, name, repository, remote, distributions, private, description].hash
233
+ [content_guard, pulp_labels, name, repository, base_path, hidden, remote, distributions, private, description].hash
234
234
  end
235
235
 
236
236
  # Builds the object from hash