pulp_container_client 2.19.8 → 2.19.9

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 +7 -7
  4. data/docs/ContainerContainerDistributionResponse.md +12 -12
  5. data/docs/ContainerContainerPullThroughDistribution.md +7 -7
  6. data/docs/ContainerContainerPullThroughDistributionResponse.md +12 -12
  7. data/docs/ContainerContainerPushRepository.md +3 -3
  8. data/docs/ContainerContainerPushRepositoryResponse.md +12 -12
  9. data/docs/PatchedcontainerContainerDistribution.md +7 -7
  10. data/docs/PatchedcontainerContainerPullThroughDistribution.md +7 -7
  11. data/docs/PatchedcontainerContainerPushRepository.md +3 -3
  12. data/lib/pulp_container_client/models/container_container_distribution.rb +57 -57
  13. data/lib/pulp_container_client/models/container_container_distribution_response.rb +55 -55
  14. data/lib/pulp_container_client/models/container_container_pull_through_distribution.rb +57 -57
  15. data/lib/pulp_container_client/models/container_container_pull_through_distribution_response.rb +55 -55
  16. data/lib/pulp_container_client/models/container_container_push_repository.rb +26 -26
  17. data/lib/pulp_container_client/models/container_container_push_repository_response.rb +50 -50
  18. data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +48 -48
  19. data/lib/pulp_container_client/models/patchedcontainer_container_pull_through_distribution.rb +48 -48
  20. data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +26 -26
  21. data/lib/pulp_container_client/version.rb +1 -1
  22. data/spec/models/container_container_distribution_response_spec.rb +8 -8
  23. data/spec/models/container_container_distribution_spec.rb +6 -6
  24. data/spec/models/container_container_pull_through_distribution_response_spec.rb +8 -8
  25. data/spec/models/container_container_pull_through_distribution_spec.rb +6 -6
  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 +6 -6
  29. data/spec/models/patchedcontainer_container_pull_through_distribution_spec.rb +6 -6
  30. data/spec/models/patchedcontainer_container_push_repository_spec.rb +3 -3
  31. metadata +60 -60
@@ -15,14 +15,14 @@ require 'date'
15
15
  module PulpContainerClient
16
16
  # Serializer for Container Push Repositories.
17
17
  class ContainerContainerPushRepository
18
+ # An optional description.
19
+ attr_accessor :description
20
+
18
21
  # A unique name for this repository.
19
22
  attr_accessor :name
20
23
 
21
24
  attr_accessor :pulp_labels
22
25
 
23
- # An optional description.
24
- attr_accessor :description
25
-
26
26
  # Retain X versions of the repository. Default is null which retains all versions.
27
27
  attr_accessor :retain_repo_versions
28
28
 
@@ -32,9 +32,9 @@ 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',
35
36
  :'name' => :'name',
36
37
  :'pulp_labels' => :'pulp_labels',
37
- :'description' => :'description',
38
38
  :'retain_repo_versions' => :'retain_repo_versions',
39
39
  :'manifest_signing_service' => :'manifest_signing_service'
40
40
  }
@@ -43,9 +43,9 @@ module PulpContainerClient
43
43
  # Attribute type mapping.
44
44
  def self.openapi_types
45
45
  {
46
+ :'description' => :'String',
46
47
  :'name' => :'String',
47
48
  :'pulp_labels' => :'Hash<String, String>',
48
- :'description' => :'String',
49
49
  :'retain_repo_versions' => :'Integer',
50
50
  :'manifest_signing_service' => :'String'
51
51
  }
@@ -75,6 +75,10 @@ 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
+
78
82
  if attributes.key?(:'name')
79
83
  self.name = attributes[:'name']
80
84
  end
@@ -85,10 +89,6 @@ module PulpContainerClient
85
89
  end
86
90
  end
87
91
 
88
- if attributes.key?(:'description')
89
- self.description = attributes[:'description']
90
- end
91
-
92
92
  if attributes.key?(:'retain_repo_versions')
93
93
  self.retain_repo_versions = attributes[:'retain_repo_versions']
94
94
  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,9 +170,9 @@ module PulpContainerClient
170
170
  def ==(o)
171
171
  return true if self.equal?(o)
172
172
  self.class == o.class &&
173
+ description == o.description &&
173
174
  name == o.name &&
174
175
  pulp_labels == o.pulp_labels &&
175
- description == o.description &&
176
176
  retain_repo_versions == o.retain_repo_versions &&
177
177
  manifest_signing_service == o.manifest_signing_service
178
178
  end
@@ -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
- [name, pulp_labels, description, retain_repo_versions, manifest_signing_service].hash
189
+ [description, name, pulp_labels, retain_repo_versions, manifest_signing_service].hash
190
190
  end
191
191
 
192
192
  # Builds the object from hash
@@ -15,28 +15,28 @@ 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 :pulp_href
21
-
22
- # 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.
23
- attr_accessor :pulp_last_updated
24
-
25
- # Timestamp of creation.
26
- attr_accessor :pulp_created
18
+ # An optional description.
19
+ attr_accessor :description
27
20
 
28
21
  # A unique name for this repository.
29
22
  attr_accessor :name
30
23
 
31
24
  attr_accessor :pulp_labels
32
25
 
26
+ # Retain X versions of the repository. Default is null which retains all versions.
27
+ attr_accessor :retain_repo_versions
28
+
33
29
  attr_accessor :versions_href
34
30
 
35
- # An optional description.
36
- attr_accessor :description
31
+ # 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.
32
+ attr_accessor :pulp_last_updated
37
33
 
38
- # Retain X versions of the repository. Default is null which retains all versions.
39
- attr_accessor :retain_repo_versions
34
+ attr_accessor :latest_version_href
35
+
36
+ attr_accessor :pulp_href
37
+
38
+ # Timestamp of creation.
39
+ attr_accessor :pulp_created
40
40
 
41
41
  # A reference to an associated signing service.
42
42
  attr_accessor :manifest_signing_service
@@ -44,15 +44,15 @@ module PulpContainerClient
44
44
  # Attribute mapping from ruby-style variable name to JSON key.
45
45
  def self.attribute_map
46
46
  {
47
- :'latest_version_href' => :'latest_version_href',
48
- :'pulp_href' => :'pulp_href',
49
- :'pulp_last_updated' => :'pulp_last_updated',
50
- :'pulp_created' => :'pulp_created',
47
+ :'description' => :'description',
51
48
  :'name' => :'name',
52
49
  :'pulp_labels' => :'pulp_labels',
53
- :'versions_href' => :'versions_href',
54
- :'description' => :'description',
55
50
  :'retain_repo_versions' => :'retain_repo_versions',
51
+ :'versions_href' => :'versions_href',
52
+ :'pulp_last_updated' => :'pulp_last_updated',
53
+ :'latest_version_href' => :'latest_version_href',
54
+ :'pulp_href' => :'pulp_href',
55
+ :'pulp_created' => :'pulp_created',
56
56
  :'manifest_signing_service' => :'manifest_signing_service'
57
57
  }
58
58
  end
@@ -60,15 +60,15 @@ module PulpContainerClient
60
60
  # Attribute type mapping.
61
61
  def self.openapi_types
62
62
  {
63
- :'latest_version_href' => :'String',
64
- :'pulp_href' => :'String',
65
- :'pulp_last_updated' => :'DateTime',
66
- :'pulp_created' => :'DateTime',
63
+ :'description' => :'String',
67
64
  :'name' => :'String',
68
65
  :'pulp_labels' => :'Hash<String, String>',
69
- :'versions_href' => :'String',
70
- :'description' => :'String',
71
66
  :'retain_repo_versions' => :'Integer',
67
+ :'versions_href' => :'String',
68
+ :'pulp_last_updated' => :'DateTime',
69
+ :'latest_version_href' => :'String',
70
+ :'pulp_href' => :'String',
71
+ :'pulp_created' => :'DateTime',
72
72
  :'manifest_signing_service' => :'String'
73
73
  }
74
74
  end
@@ -97,20 +97,8 @@ module PulpContainerClient
97
97
  h[k.to_sym] = v
98
98
  }
99
99
 
100
- if attributes.key?(:'latest_version_href')
101
- self.latest_version_href = attributes[:'latest_version_href']
102
- end
103
-
104
- if attributes.key?(:'pulp_href')
105
- self.pulp_href = attributes[:'pulp_href']
106
- end
107
-
108
- if attributes.key?(:'pulp_last_updated')
109
- self.pulp_last_updated = attributes[:'pulp_last_updated']
110
- end
111
-
112
- if attributes.key?(:'pulp_created')
113
- self.pulp_created = attributes[:'pulp_created']
100
+ if attributes.key?(:'description')
101
+ self.description = attributes[:'description']
114
102
  end
115
103
 
116
104
  if attributes.key?(:'name')
@@ -123,16 +111,28 @@ module PulpContainerClient
123
111
  end
124
112
  end
125
113
 
114
+ if attributes.key?(:'retain_repo_versions')
115
+ self.retain_repo_versions = attributes[:'retain_repo_versions']
116
+ end
117
+
126
118
  if attributes.key?(:'versions_href')
127
119
  self.versions_href = attributes[:'versions_href']
128
120
  end
129
121
 
130
- if attributes.key?(:'description')
131
- self.description = attributes[:'description']
122
+ if attributes.key?(:'pulp_last_updated')
123
+ self.pulp_last_updated = attributes[:'pulp_last_updated']
132
124
  end
133
125
 
134
- if attributes.key?(:'retain_repo_versions')
135
- self.retain_repo_versions = attributes[:'retain_repo_versions']
126
+ if attributes.key?(:'latest_version_href')
127
+ self.latest_version_href = attributes[:'latest_version_href']
128
+ end
129
+
130
+ if attributes.key?(:'pulp_href')
131
+ self.pulp_href = attributes[:'pulp_href']
132
+ end
133
+
134
+ if attributes.key?(:'pulp_created')
135
+ self.pulp_created = attributes[:'pulp_created']
136
136
  end
137
137
 
138
138
  if attributes.key?(:'manifest_signing_service')
@@ -178,15 +178,15 @@ module PulpContainerClient
178
178
  def ==(o)
179
179
  return true if self.equal?(o)
180
180
  self.class == o.class &&
181
- latest_version_href == o.latest_version_href &&
182
- pulp_href == o.pulp_href &&
183
- pulp_last_updated == o.pulp_last_updated &&
184
- pulp_created == o.pulp_created &&
181
+ description == o.description &&
185
182
  name == o.name &&
186
183
  pulp_labels == o.pulp_labels &&
187
- versions_href == o.versions_href &&
188
- description == o.description &&
189
184
  retain_repo_versions == o.retain_repo_versions &&
185
+ versions_href == o.versions_href &&
186
+ pulp_last_updated == o.pulp_last_updated &&
187
+ latest_version_href == o.latest_version_href &&
188
+ pulp_href == o.pulp_href &&
189
+ pulp_created == o.pulp_created &&
190
190
  manifest_signing_service == o.manifest_signing_service
191
191
  end
192
192
 
@@ -199,7 +199,7 @@ module PulpContainerClient
199
199
  # Calculates hash code according to all attributes.
200
200
  # @return [Integer] Hash code
201
201
  def hash
202
- [latest_version_href, pulp_href, pulp_last_updated, pulp_created, name, pulp_labels, versions_href, description, retain_repo_versions, manifest_signing_service].hash
202
+ [description, name, pulp_labels, retain_repo_versions, versions_href, pulp_last_updated, latest_version_href, pulp_href, pulp_created, manifest_signing_service].hash
203
203
  end
204
204
 
205
205
  # 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
- # An optional content-guard. If none is specified, a default one will be used.
19
- attr_accessor :content_guard
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
18
  # A unique name. Ex, `rawhide` and `stable`.
25
19
  attr_accessor :name
26
20
 
27
- # Whether this distribution should be shown in the content app.
28
- attr_accessor :hidden
29
-
30
21
  attr_accessor :pulp_labels
31
22
 
23
+ # The base (relative) path component of the published url. Avoid paths that overlap with other distribution base paths (e.g. \"foo\" and \"foo/bar\")
24
+ attr_accessor :base_path
25
+
32
26
  # The latest RepositoryVersion for this Repository will be served.
33
27
  attr_accessor :repository
34
28
 
29
+ # An optional content-guard. If none is specified, a default one will be used.
30
+ attr_accessor :content_guard
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
 
@@ -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
- :'content_guard' => :'content_guard',
48
- :'base_path' => :'base_path',
49
47
  :'name' => :'name',
50
- :'hidden' => :'hidden',
51
48
  :'pulp_labels' => :'pulp_labels',
49
+ :'base_path' => :'base_path',
52
50
  :'repository' => :'repository',
51
+ :'content_guard' => :'content_guard',
52
+ :'hidden' => :'hidden',
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
- :'content_guard' => :'String',
63
- :'base_path' => :'String',
64
62
  :'name' => :'String',
65
- :'hidden' => :'Boolean',
66
63
  :'pulp_labels' => :'Hash<String, String>',
64
+ :'base_path' => :'String',
67
65
  :'repository' => :'String',
66
+ :'content_guard' => :'String',
67
+ :'hidden' => :'Boolean',
68
68
  :'repository_version' => :'String',
69
69
  :'private' => :'Boolean',
70
70
  :'description' => :'String'
@@ -95,34 +95,34 @@ module PulpContainerClient
95
95
  h[k.to_sym] = v
96
96
  }
97
97
 
98
- if attributes.key?(:'content_guard')
99
- self.content_guard = attributes[:'content_guard']
100
- end
101
-
102
- if attributes.key?(:'base_path')
103
- self.base_path = attributes[:'base_path']
104
- end
105
-
106
98
  if attributes.key?(:'name')
107
99
  self.name = attributes[:'name']
108
100
  end
109
101
 
110
- if attributes.key?(:'hidden')
111
- self.hidden = attributes[:'hidden']
112
- else
113
- self.hidden = false
114
- end
115
-
116
102
  if attributes.key?(:'pulp_labels')
117
103
  if (value = attributes[:'pulp_labels']).is_a?(Hash)
118
104
  self.pulp_labels = value
119
105
  end
120
106
  end
121
107
 
108
+ if attributes.key?(:'base_path')
109
+ self.base_path = attributes[:'base_path']
110
+ end
111
+
122
112
  if attributes.key?(:'repository')
123
113
  self.repository = attributes[:'repository']
124
114
  end
125
115
 
116
+ if attributes.key?(:'content_guard')
117
+ self.content_guard = attributes[:'content_guard']
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)
@@ -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
- content_guard == o.content_guard &&
203
- base_path == o.base_path &&
204
202
  name == o.name &&
205
- hidden == o.hidden &&
206
203
  pulp_labels == o.pulp_labels &&
204
+ base_path == o.base_path &&
207
205
  repository == o.repository &&
206
+ content_guard == o.content_guard &&
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, name, hidden, pulp_labels, repository, repository_version, private, description].hash
222
+ [name, pulp_labels, base_path, repository, content_guard, hidden, repository_version, private, description].hash
223
223
  end
224
224
 
225
225
  # Builds the object from hash