pulp_container_client 2.22.13 → 2.22.14

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