pulp_container_client 2.22.5 → 2.22.7

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