pulp_container_client 2.24.2 → 2.25.1

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