pulp_container_client 2.27.10 → 2.27.11

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 (31) 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 +4 -4
  8. data/docs/ContainerContainerPushRepositoryResponse.md +12 -12
  9. data/docs/PatchedcontainerContainerDistribution.md +6 -6
  10. data/docs/PatchedcontainerContainerPullThroughDistribution.md +6 -6
  11. data/docs/PatchedcontainerContainerPushRepository.md +4 -4
  12. data/lib/pulp_container_client/models/container_container_distribution.rb +29 -29
  13. data/lib/pulp_container_client/models/container_container_distribution_response.rb +56 -56
  14. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +29 -29
  15. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +56 -56
  16. data/lib/pulp_container_client/models/container_container_push_repository.rb +35 -35
  17. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +48 -48
  18. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +29 -29
  19. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +29 -29
  20. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +35 -35
  21. data/lib/pulp_container_client/version.rb +1 -1
  22. data/spec/models/container_container_distribution_response_spec.rb +12 -12
  23. data/spec/models/container_container_distribution_spec.rb +7 -7
  24. data/spec/models/container_container_pull_through_distribution_response_spec.rb +12 -12
  25. data/spec/models/container_container_pull_through_distribution_spec.rb +7 -7
  26. data/spec/models/container_container_push_repository_response_spec.rb +9 -9
  27. data/spec/models/container_container_push_repository_spec.rb +4 -4
  28. data/spec/models/patchedcontainer_container_distribution_spec.rb +7 -7
  29. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +7 -7
  30. data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
  31. metadata +58 -58
@@ -16,32 +16,32 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # Serializer for Container Push Repositories.
18
18
  class ContainerContainerPushRepository
19
- # A reference to an associated signing service.
20
- attr_accessor :manifest_signing_service
21
-
22
19
  attr_accessor :pulp_labels
23
20
 
24
21
  # Retain X versions of the repository. Default is null which retains all versions.
25
22
  attr_accessor :retain_repo_versions
26
23
 
24
+ # An optional description.
25
+ attr_accessor :description
26
+
27
27
  # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
28
28
  attr_accessor :retain_checkpoints
29
29
 
30
30
  # A unique name for this repository.
31
31
  attr_accessor :name
32
32
 
33
- # An optional description.
34
- attr_accessor :description
33
+ # A reference to an associated signing service.
34
+ attr_accessor :manifest_signing_service
35
35
 
36
36
  # Attribute mapping from ruby-style variable name to JSON key.
37
37
  def self.attribute_map
38
38
  {
39
- :'manifest_signing_service' => :'manifest_signing_service',
40
39
  :'pulp_labels' => :'pulp_labels',
41
40
  :'retain_repo_versions' => :'retain_repo_versions',
41
+ :'description' => :'description',
42
42
  :'retain_checkpoints' => :'retain_checkpoints',
43
43
  :'name' => :'name',
44
- :'description' => :'description'
44
+ :'manifest_signing_service' => :'manifest_signing_service'
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
- :'manifest_signing_service' => :'String',
57
56
  :'pulp_labels' => :'Hash<String, String>',
58
57
  :'retain_repo_versions' => :'Integer',
58
+ :'description' => :'String',
59
59
  :'retain_checkpoints' => :'Integer',
60
60
  :'name' => :'String',
61
- :'description' => :'String'
61
+ :'manifest_signing_service' => :'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
  :'retain_repo_versions',
69
+ :'description',
70
70
  :'retain_checkpoints',
71
- :'description'
71
+ :'manifest_signing_service'
72
72
  ])
73
73
  end
74
74
 
@@ -87,10 +87,6 @@ module PulpContainerClient
87
87
  h[k.to_sym] = v
88
88
  }
89
89
 
90
- if attributes.key?(:'manifest_signing_service')
91
- self.manifest_signing_service = attributes[:'manifest_signing_service']
92
- end
93
-
94
90
  if attributes.key?(:'pulp_labels')
95
91
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
96
92
  self.pulp_labels = value
@@ -101,6 +97,10 @@ module PulpContainerClient
101
97
  self.retain_repo_versions = attributes[:'retain_repo_versions']
102
98
  end
103
99
 
100
+ if attributes.key?(:'description')
101
+ self.description = attributes[:'description']
102
+ end
103
+
104
104
  if attributes.key?(:'retain_checkpoints')
105
105
  self.retain_checkpoints = attributes[:'retain_checkpoints']
106
106
  end
@@ -111,8 +111,8 @@ module PulpContainerClient
111
111
  self.name = nil
112
112
  end
113
113
 
114
- if attributes.key?(:'description')
115
- self.description = attributes[:'description']
114
+ if attributes.key?(:'manifest_signing_service')
115
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
116
116
  end
117
117
  end
118
118
 
@@ -125,6 +125,10 @@ module PulpContainerClient
125
125
  invalid_properties.push('invalid value for "retain_repo_versions", must be greater than or equal to 1.')
126
126
  end
127
127
 
128
+ if !@description.nil? && @description.to_s.length < 1
129
+ invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
130
+ end
131
+
128
132
  if !@retain_checkpoints.nil? && @retain_checkpoints < 1
129
133
  invalid_properties.push('invalid value for "retain_checkpoints", must be greater than or equal to 1.')
130
134
  end
@@ -137,10 +141,6 @@ module PulpContainerClient
137
141
  invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
138
142
  end
139
143
 
140
- if !@description.nil? && @description.to_s.length < 1
141
- invalid_properties.push('invalid value for "description", the character length must be great than or equal to 1.')
142
- end
143
-
144
144
  invalid_properties
145
145
  end
146
146
 
@@ -149,10 +149,10 @@ module PulpContainerClient
149
149
  def valid?
150
150
  warn '[DEPRECATED] the `valid?` method is obsolete'
151
151
  return false if !@retain_repo_versions.nil? && @retain_repo_versions < 1
152
+ return false if !@description.nil? && @description.to_s.length < 1
152
153
  return false if !@retain_checkpoints.nil? && @retain_checkpoints < 1
153
154
  return false if @name.nil?
154
155
  return false if @name.to_s.length < 1
155
- return false if !@description.nil? && @description.to_s.length < 1
156
156
  true
157
157
  end
158
158
 
@@ -166,6 +166,16 @@ module PulpContainerClient
166
166
  @retain_repo_versions = retain_repo_versions
167
167
  end
168
168
 
169
+ # Custom attribute writer method with validation
170
+ # @param [Object] description Value to be assigned
171
+ def description=(description)
172
+ if !description.nil? && description.to_s.length < 1
173
+ fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
174
+ end
175
+
176
+ @description = description
177
+ end
178
+
169
179
  # Custom attribute writer method with validation
170
180
  # @param [Object] retain_checkpoints Value to be assigned
171
181
  def retain_checkpoints=(retain_checkpoints)
@@ -190,27 +200,17 @@ module PulpContainerClient
190
200
  @name = name
191
201
  end
192
202
 
193
- # Custom attribute writer method with validation
194
- # @param [Object] description Value to be assigned
195
- def description=(description)
196
- if !description.nil? && description.to_s.length < 1
197
- fail ArgumentError, 'invalid value for "description", the character length must be great than or equal to 1.'
198
- end
199
-
200
- @description = description
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
- manifest_signing_service == o.manifest_signing_service &&
209
208
  pulp_labels == o.pulp_labels &&
210
209
  retain_repo_versions == o.retain_repo_versions &&
210
+ description == o.description &&
211
211
  retain_checkpoints == o.retain_checkpoints &&
212
212
  name == o.name &&
213
- description == o.description
213
+ manifest_signing_service == o.manifest_signing_service
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
- [manifest_signing_service, pulp_labels, retain_repo_versions, retain_checkpoints, name, description].hash
225
+ [pulp_labels, retain_repo_versions, description, retain_checkpoints, name, manifest_signing_service].hash
226
226
  end
227
227
 
228
228
  # Builds the object from hash
@@ -16,21 +16,20 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # Serializer for Container Push Repositories.
18
18
  class ContainerContainerPushRepositoryResponse
19
- # A reference to an associated signing service.
20
- attr_accessor :manifest_signing_service
21
-
22
19
  attr_accessor :pulp_labels
23
20
 
24
21
  # Retain X versions of the repository. Default is null which retains all versions.
25
22
  attr_accessor :retain_repo_versions
26
23
 
27
- attr_accessor :pulp_href
24
+ # An optional description.
25
+ attr_accessor :description
28
26
 
29
27
  # Retain X checkpoint publications for the repository. Default is null which retains all checkpoints.
30
28
  attr_accessor :retain_checkpoints
31
29
 
32
- # A unique name for this repository.
33
- attr_accessor :name
30
+ attr_accessor :latest_version_href
31
+
32
+ attr_accessor :pulp_href
34
33
 
35
34
  # The Pulp Resource Name (PRN).
36
35
  attr_accessor :prn
@@ -38,31 +37,32 @@ module PulpContainerClient
38
37
  # Timestamp of creation.
39
38
  attr_accessor :pulp_created
40
39
 
41
- # 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.
42
- attr_accessor :pulp_last_updated
40
+ # A unique name for this repository.
41
+ attr_accessor :name
43
42
 
44
- attr_accessor :latest_version_href
43
+ # A reference to an associated signing service.
44
+ attr_accessor :manifest_signing_service
45
45
 
46
46
  attr_accessor :versions_href
47
47
 
48
- # An optional description.
49
- attr_accessor :description
48
+ # 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.
49
+ attr_accessor :pulp_last_updated
50
50
 
51
51
  # Attribute mapping from ruby-style variable name to JSON key.
52
52
  def self.attribute_map
53
53
  {
54
- :'manifest_signing_service' => :'manifest_signing_service',
55
54
  :'pulp_labels' => :'pulp_labels',
56
55
  :'retain_repo_versions' => :'retain_repo_versions',
57
- :'pulp_href' => :'pulp_href',
56
+ :'description' => :'description',
58
57
  :'retain_checkpoints' => :'retain_checkpoints',
59
- :'name' => :'name',
58
+ :'latest_version_href' => :'latest_version_href',
59
+ :'pulp_href' => :'pulp_href',
60
60
  :'prn' => :'prn',
61
61
  :'pulp_created' => :'pulp_created',
62
- :'pulp_last_updated' => :'pulp_last_updated',
63
- :'latest_version_href' => :'latest_version_href',
62
+ :'name' => :'name',
63
+ :'manifest_signing_service' => :'manifest_signing_service',
64
64
  :'versions_href' => :'versions_href',
65
- :'description' => :'description'
65
+ :'pulp_last_updated' => :'pulp_last_updated'
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
- :'manifest_signing_service' => :'String',
78
77
  :'pulp_labels' => :'Hash<String, String>',
79
78
  :'retain_repo_versions' => :'Integer',
80
- :'pulp_href' => :'String',
79
+ :'description' => :'String',
81
80
  :'retain_checkpoints' => :'Integer',
82
- :'name' => :'String',
81
+ :'latest_version_href' => :'String',
82
+ :'pulp_href' => :'String',
83
83
  :'prn' => :'String',
84
84
  :'pulp_created' => :'Time',
85
- :'pulp_last_updated' => :'Time',
86
- :'latest_version_href' => :'String',
85
+ :'name' => :'String',
86
+ :'manifest_signing_service' => :'String',
87
87
  :'versions_href' => :'String',
88
- :'description' => :'String'
88
+ :'pulp_last_updated' => :'Time'
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
  :'retain_repo_versions',
96
+ :'description',
97
97
  :'retain_checkpoints',
98
- :'description'
98
+ :'manifest_signing_service',
99
99
  ])
100
100
  end
101
101
 
@@ -114,10 +114,6 @@ module PulpContainerClient
114
114
  h[k.to_sym] = v
115
115
  }
116
116
 
117
- if attributes.key?(:'manifest_signing_service')
118
- self.manifest_signing_service = attributes[:'manifest_signing_service']
119
- end
120
-
121
117
  if attributes.key?(:'pulp_labels')
122
118
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
123
119
  self.pulp_labels = value
@@ -128,18 +124,20 @@ module PulpContainerClient
128
124
  self.retain_repo_versions = attributes[:'retain_repo_versions']
129
125
  end
130
126
 
131
- if attributes.key?(:'pulp_href')
132
- self.pulp_href = attributes[:'pulp_href']
127
+ if attributes.key?(:'description')
128
+ self.description = attributes[:'description']
133
129
  end
134
130
 
135
131
  if attributes.key?(:'retain_checkpoints')
136
132
  self.retain_checkpoints = attributes[:'retain_checkpoints']
137
133
  end
138
134
 
139
- if attributes.key?(:'name')
140
- self.name = attributes[:'name']
141
- else
142
- self.name = nil
135
+ if attributes.key?(:'latest_version_href')
136
+ self.latest_version_href = attributes[:'latest_version_href']
137
+ end
138
+
139
+ if attributes.key?(:'pulp_href')
140
+ self.pulp_href = attributes[:'pulp_href']
143
141
  end
144
142
 
145
143
  if attributes.key?(:'prn')
@@ -150,20 +148,22 @@ module PulpContainerClient
150
148
  self.pulp_created = attributes[:'pulp_created']
151
149
  end
152
150
 
153
- if attributes.key?(:'pulp_last_updated')
154
- self.pulp_last_updated = attributes[:'pulp_last_updated']
151
+ if attributes.key?(:'name')
152
+ self.name = attributes[:'name']
153
+ else
154
+ self.name = nil
155
155
  end
156
156
 
157
- if attributes.key?(:'latest_version_href')
158
- self.latest_version_href = attributes[:'latest_version_href']
157
+ if attributes.key?(:'manifest_signing_service')
158
+ self.manifest_signing_service = attributes[:'manifest_signing_service']
159
159
  end
160
160
 
161
161
  if attributes.key?(:'versions_href')
162
162
  self.versions_href = attributes[:'versions_href']
163
163
  end
164
164
 
165
- if attributes.key?(:'description')
166
- self.description = attributes[:'description']
165
+ if attributes.key?(:'pulp_last_updated')
166
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
167
167
  end
168
168
  end
169
169
 
@@ -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
- manifest_signing_service == o.manifest_signing_service &&
226
225
  pulp_labels == o.pulp_labels &&
227
226
  retain_repo_versions == o.retain_repo_versions &&
228
- pulp_href == o.pulp_href &&
227
+ description == o.description &&
229
228
  retain_checkpoints == o.retain_checkpoints &&
230
- name == o.name &&
229
+ latest_version_href == o.latest_version_href &&
230
+ pulp_href == o.pulp_href &&
231
231
  prn == o.prn &&
232
232
  pulp_created == o.pulp_created &&
233
- pulp_last_updated == o.pulp_last_updated &&
234
- latest_version_href == o.latest_version_href &&
233
+ name == o.name &&
234
+ manifest_signing_service == o.manifest_signing_service &&
235
235
  versions_href == o.versions_href &&
236
- description == o.description
236
+ pulp_last_updated == o.pulp_last_updated
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
- [manifest_signing_service, pulp_labels, retain_repo_versions, pulp_href, retain_checkpoints, name, prn, pulp_created, pulp_last_updated, latest_version_href, versions_href, description].hash
248
+ [pulp_labels, retain_repo_versions, description, retain_checkpoints, latest_version_href, pulp_href, prn, pulp_created, name, manifest_signing_service, versions_href, pulp_last_updated].hash
249
249
  end
250
250
 
251
251
  # Builds the object from hash
@@ -16,13 +16,10 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for ContainerDistribution.
18
18
  class PatchedcontainerContainerDistribution
19
- attr_accessor :pulp_labels
20
-
21
19
  # Whether this distribution should be shown in the content app.
22
20
  attr_accessor :hidden
23
21
 
24
- # An optional content-guard. If none is specified, a default one will be used.
25
- attr_accessor :content_guard
22
+ attr_accessor :pulp_labels
26
23
 
27
24
  # The latest RepositoryVersion for this Repository will be served.
28
25
  attr_accessor :repository
@@ -30,12 +27,15 @@ module PulpContainerClient
30
27
  # A unique name. Ex, `rawhide` and `stable`.
31
28
  attr_accessor :name
32
29
 
33
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
34
- attr_accessor :base_path
35
-
36
30
  # RepositoryVersion to be served
37
31
  attr_accessor :repository_version
38
32
 
33
+ # An optional content-guard. If none is specified, a default one will be used.
34
+ attr_accessor :content_guard
35
+
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
38
+
39
39
  # Restrict pull access to explicitly authorized users. Defaults to unrestricted pull access.
40
40
  attr_accessor :private
41
41
 
@@ -45,13 +45,13 @@ module PulpContainerClient
45
45
  # Attribute mapping from ruby-style variable name to JSON key.
46
46
  def self.attribute_map
47
47
  {
48
- :'pulp_labels' => :'pulp_labels',
49
48
  :'hidden' => :'hidden',
50
- :'content_guard' => :'content_guard',
49
+ :'pulp_labels' => :'pulp_labels',
51
50
  :'repository' => :'repository',
52
51
  :'name' => :'name',
53
- :'base_path' => :'base_path',
54
52
  :'repository_version' => :'repository_version',
53
+ :'content_guard' => :'content_guard',
54
+ :'base_path' => :'base_path',
55
55
  :'private' => :'private',
56
56
  :'description' => :'description'
57
57
  }
@@ -65,13 +65,13 @@ module PulpContainerClient
65
65
  # Attribute type mapping.
66
66
  def self.openapi_types
67
67
  {
68
- :'pulp_labels' => :'Hash<String, String>',
69
68
  :'hidden' => :'Boolean',
70
- :'content_guard' => :'String',
69
+ :'pulp_labels' => :'Hash<String, String>',
71
70
  :'repository' => :'String',
72
71
  :'name' => :'String',
73
- :'base_path' => :'String',
74
72
  :'repository_version' => :'String',
73
+ :'content_guard' => :'String',
74
+ :'base_path' => :'String',
75
75
  :'private' => :'Boolean',
76
76
  :'description' => :'String'
77
77
  }
@@ -101,20 +101,16 @@ module PulpContainerClient
101
101
  h[k.to_sym] = v
102
102
  }
103
103
 
104
- if attributes.key?(:'pulp_labels')
105
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
106
- self.pulp_labels = value
107
- end
108
- end
109
-
110
104
  if attributes.key?(:'hidden')
111
105
  self.hidden = attributes[:'hidden']
112
106
  else
113
107
  self.hidden = false
114
108
  end
115
109
 
116
- if attributes.key?(:'content_guard')
117
- self.content_guard = attributes[:'content_guard']
110
+ if attributes.key?(:'pulp_labels')
111
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
112
+ self.pulp_labels = value
113
+ end
118
114
  end
119
115
 
120
116
  if attributes.key?(:'repository')
@@ -125,14 +121,18 @@ module PulpContainerClient
125
121
  self.name = attributes[:'name']
126
122
  end
127
123
 
128
- if attributes.key?(:'base_path')
129
- self.base_path = attributes[:'base_path']
130
- end
131
-
132
124
  if attributes.key?(:'repository_version')
133
125
  self.repository_version = attributes[:'repository_version']
134
126
  end
135
127
 
128
+ if attributes.key?(:'content_guard')
129
+ self.content_guard = attributes[:'content_guard']
130
+ end
131
+
132
+ if attributes.key?(:'base_path')
133
+ self.base_path = attributes[:'base_path']
134
+ end
135
+
136
136
  if attributes.key?(:'private')
137
137
  self.private = attributes[:'private']
138
138
  end
@@ -215,13 +215,13 @@ module PulpContainerClient
215
215
  def ==(o)
216
216
  return true if self.equal?(o)
217
217
  self.class == o.class &&
218
- pulp_labels == o.pulp_labels &&
219
218
  hidden == o.hidden &&
220
- content_guard == o.content_guard &&
219
+ pulp_labels == o.pulp_labels &&
221
220
  repository == o.repository &&
222
221
  name == o.name &&
223
- base_path == o.base_path &&
224
222
  repository_version == o.repository_version &&
223
+ content_guard == o.content_guard &&
224
+ base_path == o.base_path &&
225
225
  private == o.private &&
226
226
  description == o.description
227
227
  end
@@ -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
- [pulp_labels, hidden, content_guard, repository, name, base_path, repository_version, private, description].hash
238
+ [hidden, pulp_labels, repository, name, repository_version, content_guard, base_path, private, description].hash
239
239
  end
240
240
 
241
241
  # Builds the object from hash
@@ -16,13 +16,10 @@ require 'time'
16
16
  module PulpContainerClient
17
17
  # A serializer for a specialized pull-through distribution referencing sub-distributions.
18
18
  class PatchedcontainerContainerPullThroughDistribution
19
- attr_accessor :pulp_labels
20
-
21
19
  # Whether this distribution should be shown in the content app.
22
20
  attr_accessor :hidden
23
21
 
24
- # An optional content-guard. If none is specified, a default one will be used.
25
- attr_accessor :content_guard
22
+ attr_accessor :pulp_labels
26
23
 
27
24
  # The latest RepositoryVersion for this Repository will be served.
28
25
  attr_accessor :repository
@@ -30,12 +27,15 @@ module PulpContainerClient
30
27
  # A unique name. Ex, `rawhide` and `stable`.
31
28
  attr_accessor :name
32
29
 
33
- # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
34
- attr_accessor :base_path
35
-
36
30
  # RepositoryVersion to be served
37
31
  attr_accessor :repository_version
38
32
 
33
+ # An optional content-guard. If none is specified, a default one will be used.
34
+ attr_accessor :content_guard
35
+
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
38
+
39
39
  # Remote that can be used to fetch content when using pull-through caching.
40
40
  attr_accessor :remote
41
41
 
@@ -51,13 +51,13 @@ module PulpContainerClient
51
51
  # Attribute mapping from ruby-style variable name to JSON key.
52
52
  def self.attribute_map
53
53
  {
54
- :'pulp_labels' => :'pulp_labels',
55
54
  :'hidden' => :'hidden',
56
- :'content_guard' => :'content_guard',
55
+ :'pulp_labels' => :'pulp_labels',
57
56
  :'repository' => :'repository',
58
57
  :'name' => :'name',
59
- :'base_path' => :'base_path',
60
58
  :'repository_version' => :'repository_version',
59
+ :'content_guard' => :'content_guard',
60
+ :'base_path' => :'base_path',
61
61
  :'remote' => :'remote',
62
62
  :'distributions' => :'distributions',
63
63
  :'private' => :'private',
@@ -73,13 +73,13 @@ module PulpContainerClient
73
73
  # Attribute type mapping.
74
74
  def self.openapi_types
75
75
  {
76
- :'pulp_labels' => :'Hash<String, String>',
77
76
  :'hidden' => :'Boolean',
78
- :'content_guard' => :'String',
77
+ :'pulp_labels' => :'Hash<String, String>',
79
78
  :'repository' => :'String',
80
79
  :'name' => :'String',
81
- :'base_path' => :'String',
82
80
  :'repository_version' => :'String',
81
+ :'content_guard' => :'String',
82
+ :'base_path' => :'String',
83
83
  :'remote' => :'String',
84
84
  :'distributions' => :'Array<String>',
85
85
  :'private' => :'Boolean',
@@ -111,20 +111,16 @@ module PulpContainerClient
111
111
  h[k.to_sym] = v
112
112
  }
113
113
 
114
- if attributes.key?(:'pulp_labels')
115
- if (value = attributes[:'pulp_labels']).is_a?(Hash)
116
- self.pulp_labels = value
117
- end
118
- end
119
-
120
114
  if attributes.key?(:'hidden')
121
115
  self.hidden = attributes[:'hidden']
122
116
  else
123
117
  self.hidden = false
124
118
  end
125
119
 
126
- if attributes.key?(:'content_guard')
127
- self.content_guard = attributes[:'content_guard']
120
+ if attributes.key?(:'pulp_labels')
121
+ if (value = attributes[:'pulp_labels']).is_a?(Hash)
122
+ self.pulp_labels = value
123
+ end
128
124
  end
129
125
 
130
126
  if attributes.key?(:'repository')
@@ -135,14 +131,18 @@ module PulpContainerClient
135
131
  self.name = attributes[:'name']
136
132
  end
137
133
 
138
- if attributes.key?(:'base_path')
139
- self.base_path = attributes[:'base_path']
140
- end
141
-
142
134
  if attributes.key?(:'repository_version')
143
135
  self.repository_version = attributes[:'repository_version']
144
136
  end
145
137
 
138
+ if attributes.key?(:'content_guard')
139
+ self.content_guard = attributes[:'content_guard']
140
+ end
141
+
142
+ if attributes.key?(:'base_path')
143
+ self.base_path = attributes[:'base_path']
144
+ end
145
+
146
146
  if attributes.key?(:'remote')
147
147
  self.remote = attributes[:'remote']
148
148
  end
@@ -235,13 +235,13 @@ module PulpContainerClient
235
235
  def ==(o)
236
236
  return true if self.equal?(o)
237
237
  self.class == o.class &&
238
- pulp_labels == o.pulp_labels &&
239
238
  hidden == o.hidden &&
240
- content_guard == o.content_guard &&
239
+ pulp_labels == o.pulp_labels &&
241
240
  repository == o.repository &&
242
241
  name == o.name &&
243
- base_path == o.base_path &&
244
242
  repository_version == o.repository_version &&
243
+ content_guard == o.content_guard &&
244
+ base_path == o.base_path &&
245
245
  remote == o.remote &&
246
246
  distributions == o.distributions &&
247
247
  private == o.private &&
@@ -257,7 +257,7 @@ module PulpContainerClient
257
257
  # Calculates hash code according to all attributes.
258
258
  # @return [Integer] Hash code
259
259
  def hash
260
- [pulp_labels, hidden, content_guard, repository, name, base_path, repository_version, remote, distributions, private, description].hash
260
+ [hidden, pulp_labels, repository, name, repository_version, content_guard, base_path, remote, distributions, private, description].hash
261
261
  end
262
262
 
263
263
  # Builds the object from hash