pulpcore_client 3.9.1 → 3.10.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +37 -16
  3. data/docs/AccessPoliciesApi.md +12 -0
  4. data/docs/AccessPolicy.md +1 -3
  5. data/docs/AccessPolicyResponse.md +4 -2
  6. data/docs/ContentApi.md +78 -0
  7. data/docs/ContentGuardResponse.md +23 -0
  8. data/docs/ContentGuardsApi.md +82 -0
  9. data/docs/EvaluationResponse.md +21 -0
  10. data/docs/ExportersCoreExportsApi.md +15 -15
  11. data/docs/ExportersPulpApi.md +6 -0
  12. data/docs/GroupsApi.md +14 -0
  13. data/docs/GroupsModelPermissionsApi.md +118 -5
  14. data/docs/GroupsObjectPermissionsApi.md +15 -15
  15. data/docs/GroupsUsersApi.md +10 -10
  16. data/docs/ImportersCoreImportCheckApi.md +62 -0
  17. data/docs/ImportersCoreImportsApi.md +15 -15
  18. data/docs/ImportersPulpApi.md +6 -0
  19. data/docs/MultipleArtifactContentResponse.md +21 -0
  20. data/docs/PaginatedContentGuardResponseList.md +23 -0
  21. data/docs/PaginatedMultipleArtifactContentResponseList.md +23 -0
  22. data/docs/PaginatedRepositoryResponseList.md +23 -0
  23. data/docs/PatchedAccessPolicy.md +1 -3
  24. data/docs/PermissionResponse.md +1 -1
  25. data/docs/PulpImportCheck.md +21 -0
  26. data/docs/PulpImportCheckResponse.md +21 -0
  27. data/docs/RepositoriesApi.md +84 -0
  28. data/docs/RepositoryResponse.md +31 -0
  29. data/docs/SigningServiceResponse.md +4 -0
  30. data/docs/UsersApi.md +44 -0
  31. data/docs/WorkerResponse.md +3 -3
  32. data/docs/WorkersApi.md +6 -0
  33. data/lib/pulpcore_client/api/access_policies_api.rb +18 -0
  34. data/lib/pulpcore_client/api/content_api.rb +102 -0
  35. data/lib/pulpcore_client/api/content_guards_api.rb +108 -0
  36. data/lib/pulpcore_client/api/exporters_core_exports_api.rb +27 -27
  37. data/lib/pulpcore_client/api/exporters_pulp_api.rb +9 -0
  38. data/lib/pulpcore_client/api/groups_api.rb +21 -0
  39. data/lib/pulpcore_client/api/groups_model_permissions_api.rb +137 -9
  40. data/lib/pulpcore_client/api/groups_object_permissions_api.rb +27 -27
  41. data/lib/pulpcore_client/api/groups_users_api.rb +18 -18
  42. data/lib/pulpcore_client/api/importers_core_import_check_api.rb +86 -0
  43. data/lib/pulpcore_client/api/importers_core_imports_api.rb +27 -27
  44. data/lib/pulpcore_client/api/importers_pulp_api.rb +9 -0
  45. data/lib/pulpcore_client/api/repositories_api.rb +111 -0
  46. data/lib/pulpcore_client/api/users_api.rb +66 -0
  47. data/lib/pulpcore_client/api/workers_api.rb +9 -0
  48. data/lib/pulpcore_client/models/access_policy.rb +4 -19
  49. data/lib/pulpcore_client/models/access_policy_response.rb +14 -9
  50. data/lib/pulpcore_client/models/content_guard_response.rb +243 -0
  51. data/lib/pulpcore_client/models/evaluation_response.rb +245 -0
  52. data/lib/pulpcore_client/models/multiple_artifact_content_response.rb +232 -0
  53. data/lib/pulpcore_client/models/paginated_content_guard_response_list.rb +237 -0
  54. data/lib/pulpcore_client/models/paginated_multiple_artifact_content_response_list.rb +237 -0
  55. data/lib/pulpcore_client/models/paginated_repository_response_list.rb +237 -0
  56. data/lib/pulpcore_client/models/patched_access_policy.rb +4 -14
  57. data/lib/pulpcore_client/models/permission_response.rb +1 -1
  58. data/lib/pulpcore_client/models/pulp_import_check.rb +228 -0
  59. data/lib/pulpcore_client/models/pulp_import_check_response.rb +228 -0
  60. data/lib/pulpcore_client/models/repository_response.rb +280 -0
  61. data/lib/pulpcore_client/models/signing_service_response.rb +31 -1
  62. data/lib/pulpcore_client/models/worker_response.rb +10 -10
  63. data/lib/pulpcore_client/version.rb +1 -1
  64. data/lib/pulpcore_client.rb +13 -0
  65. data/spec/api/access_policies_api_spec.rb +6 -0
  66. data/spec/api/content_api_spec.rb +54 -0
  67. data/spec/api/content_guards_api_spec.rb +56 -0
  68. data/spec/api/exporters_core_exports_api_spec.rb +3 -3
  69. data/spec/api/exporters_pulp_api_spec.rb +3 -0
  70. data/spec/api/groups_api_spec.rb +7 -0
  71. data/spec/api/groups_model_permissions_api_spec.rb +27 -1
  72. data/spec/api/groups_object_permissions_api_spec.rb +3 -3
  73. data/spec/api/groups_users_api_spec.rb +2 -2
  74. data/spec/api/importers_core_import_check_api_spec.rb +47 -0
  75. data/spec/api/importers_core_imports_api_spec.rb +3 -3
  76. data/spec/api/importers_pulp_api_spec.rb +3 -0
  77. data/spec/api/repositories_api_spec.rb +57 -0
  78. data/spec/api/users_api_spec.rb +22 -0
  79. data/spec/api/workers_api_spec.rb +3 -0
  80. data/spec/models/access_policy_response_spec.rb +6 -0
  81. data/spec/models/access_policy_spec.rb +0 -6
  82. data/spec/models/content_guard_response_spec.rb +59 -0
  83. data/spec/models/evaluation_response_spec.rb +53 -0
  84. data/spec/models/multiple_artifact_content_response_spec.rb +53 -0
  85. data/spec/models/paginated_content_guard_response_list_spec.rb +59 -0
  86. data/spec/models/paginated_multiple_artifact_content_response_list_spec.rb +59 -0
  87. data/spec/models/paginated_repository_response_list_spec.rb +59 -0
  88. data/spec/models/patched_access_policy_spec.rb +0 -6
  89. data/spec/models/pulp_import_check_response_spec.rb +53 -0
  90. data/spec/models/pulp_import_check_spec.rb +53 -0
  91. data/spec/models/repository_response_spec.rb +83 -0
  92. data/spec/models/signing_service_response_spec.rb +12 -0
  93. data/spec/models/worker_response_spec.rb +2 -2
  94. metadata +112 -60
@@ -0,0 +1,228 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpcoreClient
16
+ # Return the response to a PulpImport import-check call.
17
+ class PulpImportCheckResponse
18
+ # Evaluation of proposed 'toc' file for PulpImport
19
+ attr_accessor :toc
20
+
21
+ # Evaluation of proposed 'path' file for PulpImport
22
+ attr_accessor :path
23
+
24
+ # Evaluation of proposed 'repo_mapping' file for PulpImport
25
+ attr_accessor :repo_mapping
26
+
27
+ # Attribute mapping from ruby-style variable name to JSON key.
28
+ def self.attribute_map
29
+ {
30
+ :'toc' => :'toc',
31
+ :'path' => :'path',
32
+ :'repo_mapping' => :'repo_mapping'
33
+ }
34
+ end
35
+
36
+ # Attribute type mapping.
37
+ def self.openapi_types
38
+ {
39
+ :'toc' => :'EvaluationResponse',
40
+ :'path' => :'EvaluationResponse',
41
+ :'repo_mapping' => :'EvaluationResponse'
42
+ }
43
+ end
44
+
45
+ # List of attributes with nullable: true
46
+ def self.openapi_nullable
47
+ Set.new([
48
+ ])
49
+ end
50
+
51
+ # Initializes the object
52
+ # @param [Hash] attributes Model attributes in the form of hash
53
+ def initialize(attributes = {})
54
+ if (!attributes.is_a?(Hash))
55
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::PulpImportCheckResponse` initialize method"
56
+ end
57
+
58
+ # check to see if the attribute exists and convert string to symbol for hash key
59
+ attributes = attributes.each_with_object({}) { |(k, v), h|
60
+ if (!self.class.attribute_map.key?(k.to_sym))
61
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::PulpImportCheckResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
62
+ end
63
+ h[k.to_sym] = v
64
+ }
65
+
66
+ if attributes.key?(:'toc')
67
+ self.toc = attributes[:'toc']
68
+ end
69
+
70
+ if attributes.key?(:'path')
71
+ self.path = attributes[:'path']
72
+ end
73
+
74
+ if attributes.key?(:'repo_mapping')
75
+ self.repo_mapping = attributes[:'repo_mapping']
76
+ end
77
+ end
78
+
79
+ # Show invalid properties with the reasons. Usually used together with valid?
80
+ # @return Array for valid properties with the reasons
81
+ def list_invalid_properties
82
+ invalid_properties = Array.new
83
+ invalid_properties
84
+ end
85
+
86
+ # Check to see if the all the properties in the model are valid
87
+ # @return true if the model is valid
88
+ def valid?
89
+ true
90
+ end
91
+
92
+ # Checks equality by comparing each attribute.
93
+ # @param [Object] Object to be compared
94
+ def ==(o)
95
+ return true if self.equal?(o)
96
+ self.class == o.class &&
97
+ toc == o.toc &&
98
+ path == o.path &&
99
+ repo_mapping == o.repo_mapping
100
+ end
101
+
102
+ # @see the `==` method
103
+ # @param [Object] Object to be compared
104
+ def eql?(o)
105
+ self == o
106
+ end
107
+
108
+ # Calculates hash code according to all attributes.
109
+ # @return [Integer] Hash code
110
+ def hash
111
+ [toc, path, repo_mapping].hash
112
+ end
113
+
114
+ # Builds the object from hash
115
+ # @param [Hash] attributes Model attributes in the form of hash
116
+ # @return [Object] Returns the model itself
117
+ def self.build_from_hash(attributes)
118
+ new.build_from_hash(attributes)
119
+ end
120
+
121
+ # Builds the object from hash
122
+ # @param [Hash] attributes Model attributes in the form of hash
123
+ # @return [Object] Returns the model itself
124
+ def build_from_hash(attributes)
125
+ return nil unless attributes.is_a?(Hash)
126
+ self.class.openapi_types.each_pair do |key, type|
127
+ if type =~ /\AArray<(.*)>/i
128
+ # check to ensure the input is an array given that the attribute
129
+ # is documented as an array but the input is not
130
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
131
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
132
+ end
133
+ elsif !attributes[self.class.attribute_map[key]].nil?
134
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
135
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
136
+ end
137
+
138
+ self
139
+ end
140
+
141
+ # Deserializes the data based on type
142
+ # @param string type Data type
143
+ # @param string value Value to be deserialized
144
+ # @return [Object] Deserialized data
145
+ def _deserialize(type, value)
146
+ case type.to_sym
147
+ when :DateTime
148
+ DateTime.parse(value)
149
+ when :Date
150
+ Date.parse(value)
151
+ when :String
152
+ value.to_s
153
+ when :Integer
154
+ value.to_i
155
+ when :Float
156
+ value.to_f
157
+ when :Boolean
158
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
159
+ true
160
+ else
161
+ false
162
+ end
163
+ when :Object
164
+ # generic object (usually a Hash), return directly
165
+ value
166
+ when /\AArray<(?<inner_type>.+)>\z/
167
+ inner_type = Regexp.last_match[:inner_type]
168
+ value.map { |v| _deserialize(inner_type, v) }
169
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
170
+ k_type = Regexp.last_match[:k_type]
171
+ v_type = Regexp.last_match[:v_type]
172
+ {}.tap do |hash|
173
+ value.each do |k, v|
174
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
175
+ end
176
+ end
177
+ else # model
178
+ PulpcoreClient.const_get(type).build_from_hash(value)
179
+ end
180
+ end
181
+
182
+ # Returns the string representation of the object
183
+ # @return [String] String presentation of the object
184
+ def to_s
185
+ to_hash.to_s
186
+ end
187
+
188
+ # to_body is an alias to to_hash (backward compatibility)
189
+ # @return [Hash] Returns the object in the form of hash
190
+ def to_body
191
+ to_hash
192
+ end
193
+
194
+ # Returns the object in the form of hash
195
+ # @return [Hash] Returns the object in the form of hash
196
+ def to_hash
197
+ hash = {}
198
+ self.class.attribute_map.each_pair do |attr, param|
199
+ value = self.send(attr)
200
+ if value.nil?
201
+ is_nullable = self.class.openapi_nullable.include?(attr)
202
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
203
+ end
204
+
205
+ hash[param] = _to_hash(value)
206
+ end
207
+ hash
208
+ end
209
+
210
+ # Outputs non-array value in the form of hash
211
+ # For object, use to_hash. Otherwise, just return the value
212
+ # @param [Object] value Any valid value
213
+ # @return [Hash] Returns the value in the form of hash
214
+ def _to_hash(value)
215
+ if value.is_a?(Array)
216
+ value.compact.map { |v| _to_hash(v) }
217
+ elsif value.is_a?(Hash)
218
+ {}.tap do |hash|
219
+ value.each { |k, v| hash[k] = _to_hash(v) }
220
+ end
221
+ elsif value.respond_to? :to_hash
222
+ value.to_hash
223
+ else
224
+ value
225
+ end
226
+ end
227
+ end
228
+ end
@@ -0,0 +1,280 @@
1
+ =begin
2
+ #Pulp 3 API
3
+
4
+ #Fetch, Upload, Organize, and Distribute Software Packages
5
+
6
+ The version of the OpenAPI document: v3
7
+ Contact: pulp-list@redhat.com
8
+ Generated by: https://openapi-generator.tech
9
+ OpenAPI Generator version: 4.2.3
10
+
11
+ =end
12
+
13
+ require 'date'
14
+
15
+ module PulpcoreClient
16
+ # Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
17
+ class RepositoryResponse
18
+ attr_accessor :pulp_href
19
+
20
+ # Timestamp of creation.
21
+ attr_accessor :pulp_created
22
+
23
+ attr_accessor :versions_href
24
+
25
+ attr_accessor :pulp_labels
26
+
27
+ attr_accessor :latest_version_href
28
+
29
+ # A unique name for this repository.
30
+ attr_accessor :name
31
+
32
+ # An optional description.
33
+ attr_accessor :description
34
+
35
+ attr_accessor :remote
36
+
37
+ # Attribute mapping from ruby-style variable name to JSON key.
38
+ def self.attribute_map
39
+ {
40
+ :'pulp_href' => :'pulp_href',
41
+ :'pulp_created' => :'pulp_created',
42
+ :'versions_href' => :'versions_href',
43
+ :'pulp_labels' => :'pulp_labels',
44
+ :'latest_version_href' => :'latest_version_href',
45
+ :'name' => :'name',
46
+ :'description' => :'description',
47
+ :'remote' => :'remote'
48
+ }
49
+ end
50
+
51
+ # Attribute type mapping.
52
+ def self.openapi_types
53
+ {
54
+ :'pulp_href' => :'String',
55
+ :'pulp_created' => :'DateTime',
56
+ :'versions_href' => :'String',
57
+ :'pulp_labels' => :'Object',
58
+ :'latest_version_href' => :'String',
59
+ :'name' => :'String',
60
+ :'description' => :'String',
61
+ :'remote' => :'String'
62
+ }
63
+ end
64
+
65
+ # List of attributes with nullable: true
66
+ def self.openapi_nullable
67
+ Set.new([
68
+ :'description',
69
+ :'remote'
70
+ ])
71
+ end
72
+
73
+ # Initializes the object
74
+ # @param [Hash] attributes Model attributes in the form of hash
75
+ def initialize(attributes = {})
76
+ if (!attributes.is_a?(Hash))
77
+ fail ArgumentError, "The input argument (attributes) must be a hash in `PulpcoreClient::RepositoryResponse` initialize method"
78
+ end
79
+
80
+ # check to see if the attribute exists and convert string to symbol for hash key
81
+ attributes = attributes.each_with_object({}) { |(k, v), h|
82
+ if (!self.class.attribute_map.key?(k.to_sym))
83
+ fail ArgumentError, "`#{k}` is not a valid attribute in `PulpcoreClient::RepositoryResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
84
+ end
85
+ h[k.to_sym] = v
86
+ }
87
+
88
+ if attributes.key?(:'pulp_href')
89
+ self.pulp_href = attributes[:'pulp_href']
90
+ end
91
+
92
+ if attributes.key?(:'pulp_created')
93
+ self.pulp_created = attributes[:'pulp_created']
94
+ end
95
+
96
+ if attributes.key?(:'versions_href')
97
+ self.versions_href = attributes[:'versions_href']
98
+ end
99
+
100
+ if attributes.key?(:'pulp_labels')
101
+ self.pulp_labels = attributes[:'pulp_labels']
102
+ end
103
+
104
+ if attributes.key?(:'latest_version_href')
105
+ self.latest_version_href = attributes[:'latest_version_href']
106
+ end
107
+
108
+ if attributes.key?(:'name')
109
+ self.name = attributes[:'name']
110
+ end
111
+
112
+ if attributes.key?(:'description')
113
+ self.description = attributes[:'description']
114
+ end
115
+
116
+ if attributes.key?(:'remote')
117
+ self.remote = attributes[:'remote']
118
+ end
119
+ end
120
+
121
+ # Show invalid properties with the reasons. Usually used together with valid?
122
+ # @return Array for valid properties with the reasons
123
+ def list_invalid_properties
124
+ invalid_properties = Array.new
125
+ if @name.nil?
126
+ invalid_properties.push('invalid value for "name", name cannot be nil.')
127
+ end
128
+
129
+ invalid_properties
130
+ end
131
+
132
+ # Check to see if the all the properties in the model are valid
133
+ # @return true if the model is valid
134
+ def valid?
135
+ return false if @name.nil?
136
+ true
137
+ end
138
+
139
+ # Checks equality by comparing each attribute.
140
+ # @param [Object] Object to be compared
141
+ def ==(o)
142
+ return true if self.equal?(o)
143
+ self.class == o.class &&
144
+ pulp_href == o.pulp_href &&
145
+ pulp_created == o.pulp_created &&
146
+ versions_href == o.versions_href &&
147
+ pulp_labels == o.pulp_labels &&
148
+ latest_version_href == o.latest_version_href &&
149
+ name == o.name &&
150
+ description == o.description &&
151
+ remote == o.remote
152
+ end
153
+
154
+ # @see the `==` method
155
+ # @param [Object] Object to be compared
156
+ def eql?(o)
157
+ self == o
158
+ end
159
+
160
+ # Calculates hash code according to all attributes.
161
+ # @return [Integer] Hash code
162
+ def hash
163
+ [pulp_href, pulp_created, versions_href, pulp_labels, latest_version_href, name, description, remote].hash
164
+ end
165
+
166
+ # Builds the object from hash
167
+ # @param [Hash] attributes Model attributes in the form of hash
168
+ # @return [Object] Returns the model itself
169
+ def self.build_from_hash(attributes)
170
+ new.build_from_hash(attributes)
171
+ end
172
+
173
+ # Builds the object from hash
174
+ # @param [Hash] attributes Model attributes in the form of hash
175
+ # @return [Object] Returns the model itself
176
+ def build_from_hash(attributes)
177
+ return nil unless attributes.is_a?(Hash)
178
+ self.class.openapi_types.each_pair do |key, type|
179
+ if type =~ /\AArray<(.*)>/i
180
+ # check to ensure the input is an array given that the attribute
181
+ # is documented as an array but the input is not
182
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
183
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
184
+ end
185
+ elsif !attributes[self.class.attribute_map[key]].nil?
186
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
187
+ end # or else data not found in attributes(hash), not an issue as the data can be optional
188
+ end
189
+
190
+ self
191
+ end
192
+
193
+ # Deserializes the data based on type
194
+ # @param string type Data type
195
+ # @param string value Value to be deserialized
196
+ # @return [Object] Deserialized data
197
+ def _deserialize(type, value)
198
+ case type.to_sym
199
+ when :DateTime
200
+ DateTime.parse(value)
201
+ when :Date
202
+ Date.parse(value)
203
+ when :String
204
+ value.to_s
205
+ when :Integer
206
+ value.to_i
207
+ when :Float
208
+ value.to_f
209
+ when :Boolean
210
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
211
+ true
212
+ else
213
+ false
214
+ end
215
+ when :Object
216
+ # generic object (usually a Hash), return directly
217
+ value
218
+ when /\AArray<(?<inner_type>.+)>\z/
219
+ inner_type = Regexp.last_match[:inner_type]
220
+ value.map { |v| _deserialize(inner_type, v) }
221
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
222
+ k_type = Regexp.last_match[:k_type]
223
+ v_type = Regexp.last_match[:v_type]
224
+ {}.tap do |hash|
225
+ value.each do |k, v|
226
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
227
+ end
228
+ end
229
+ else # model
230
+ PulpcoreClient.const_get(type).build_from_hash(value)
231
+ end
232
+ end
233
+
234
+ # Returns the string representation of the object
235
+ # @return [String] String presentation of the object
236
+ def to_s
237
+ to_hash.to_s
238
+ end
239
+
240
+ # to_body is an alias to to_hash (backward compatibility)
241
+ # @return [Hash] Returns the object in the form of hash
242
+ def to_body
243
+ to_hash
244
+ end
245
+
246
+ # Returns the object in the form of hash
247
+ # @return [Hash] Returns the object in the form of hash
248
+ def to_hash
249
+ hash = {}
250
+ self.class.attribute_map.each_pair do |attr, param|
251
+ value = self.send(attr)
252
+ if value.nil?
253
+ is_nullable = self.class.openapi_nullable.include?(attr)
254
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
255
+ end
256
+
257
+ hash[param] = _to_hash(value)
258
+ end
259
+ hash
260
+ end
261
+
262
+ # Outputs non-array value in the form of hash
263
+ # For object, use to_hash. Otherwise, just return the value
264
+ # @param [Object] value Any valid value
265
+ # @return [Hash] Returns the value in the form of hash
266
+ def _to_hash(value)
267
+ if value.is_a?(Array)
268
+ value.compact.map { |v| _to_hash(v) }
269
+ elsif value.is_a?(Hash)
270
+ {}.tap do |hash|
271
+ value.each { |k, v| hash[k] = _to_hash(v) }
272
+ end
273
+ elsif value.respond_to? :to_hash
274
+ value.to_hash
275
+ else
276
+ value
277
+ end
278
+ end
279
+ end
280
+ end
@@ -23,6 +23,12 @@ module PulpcoreClient
23
23
  # A unique name used to recognize a script.
24
24
  attr_accessor :name
25
25
 
26
+ # The value of a public key used for the repository verification.
27
+ attr_accessor :public_key
28
+
29
+ # The fingerprint of the public key.
30
+ attr_accessor :pubkey_fingerprint
31
+
26
32
  # An absolute path to a script which is going to be used for the signing.
27
33
  attr_accessor :script
28
34
 
@@ -32,6 +38,8 @@ module PulpcoreClient
32
38
  :'pulp_href' => :'pulp_href',
33
39
  :'pulp_created' => :'pulp_created',
34
40
  :'name' => :'name',
41
+ :'public_key' => :'public_key',
42
+ :'pubkey_fingerprint' => :'pubkey_fingerprint',
35
43
  :'script' => :'script'
36
44
  }
37
45
  end
@@ -42,6 +50,8 @@ module PulpcoreClient
42
50
  :'pulp_href' => :'String',
43
51
  :'pulp_created' => :'DateTime',
44
52
  :'name' => :'String',
53
+ :'public_key' => :'String',
54
+ :'pubkey_fingerprint' => :'String',
45
55
  :'script' => :'String'
46
56
  }
47
57
  end
@@ -79,6 +89,14 @@ module PulpcoreClient
79
89
  self.name = attributes[:'name']
80
90
  end
81
91
 
92
+ if attributes.key?(:'public_key')
93
+ self.public_key = attributes[:'public_key']
94
+ end
95
+
96
+ if attributes.key?(:'pubkey_fingerprint')
97
+ self.pubkey_fingerprint = attributes[:'pubkey_fingerprint']
98
+ end
99
+
82
100
  if attributes.key?(:'script')
83
101
  self.script = attributes[:'script']
84
102
  end
@@ -92,6 +110,14 @@ module PulpcoreClient
92
110
  invalid_properties.push('invalid value for "name", name cannot be nil.')
93
111
  end
94
112
 
113
+ if @public_key.nil?
114
+ invalid_properties.push('invalid value for "public_key", public_key cannot be nil.')
115
+ end
116
+
117
+ if @pubkey_fingerprint.nil?
118
+ invalid_properties.push('invalid value for "pubkey_fingerprint", pubkey_fingerprint cannot be nil.')
119
+ end
120
+
95
121
  if @script.nil?
96
122
  invalid_properties.push('invalid value for "script", script cannot be nil.')
97
123
  end
@@ -103,6 +129,8 @@ module PulpcoreClient
103
129
  # @return true if the model is valid
104
130
  def valid?
105
131
  return false if @name.nil?
132
+ return false if @public_key.nil?
133
+ return false if @pubkey_fingerprint.nil?
106
134
  return false if @script.nil?
107
135
  true
108
136
  end
@@ -115,6 +143,8 @@ module PulpcoreClient
115
143
  pulp_href == o.pulp_href &&
116
144
  pulp_created == o.pulp_created &&
117
145
  name == o.name &&
146
+ public_key == o.public_key &&
147
+ pubkey_fingerprint == o.pubkey_fingerprint &&
118
148
  script == o.script
119
149
  end
120
150
 
@@ -127,7 +157,7 @@ module PulpcoreClient
127
157
  # Calculates hash code according to all attributes.
128
158
  # @return [Integer] Hash code
129
159
  def hash
130
- [pulp_href, pulp_created, name, script].hash
160
+ [pulp_href, pulp_created, name, public_key, pubkey_fingerprint, script].hash
131
161
  end
132
162
 
133
163
  # Builds the object from hash
@@ -15,11 +15,11 @@ require 'date'
15
15
  module PulpcoreClient
16
16
  # Base serializer for use with :class:`pulpcore.app.models.Model` This ensures that all Serializers provide values for the 'pulp_href` field. The class provides a default for the ``ref_name`` attribute in the ModelSerializers's ``Meta`` class. This ensures that the OpenAPI definitions of plugins are namespaced properly.
17
17
  class WorkerResponse
18
- attr_accessor :pulp_href
19
-
20
18
  # Timestamp of creation.
21
19
  attr_accessor :pulp_created
22
20
 
21
+ attr_accessor :pulp_href
22
+
23
23
  # The name of the worker.
24
24
  attr_accessor :name
25
25
 
@@ -29,8 +29,8 @@ module PulpcoreClient
29
29
  # Attribute mapping from ruby-style variable name to JSON key.
30
30
  def self.attribute_map
31
31
  {
32
- :'pulp_href' => :'pulp_href',
33
32
  :'pulp_created' => :'pulp_created',
33
+ :'pulp_href' => :'pulp_href',
34
34
  :'name' => :'name',
35
35
  :'last_heartbeat' => :'last_heartbeat'
36
36
  }
@@ -39,8 +39,8 @@ module PulpcoreClient
39
39
  # Attribute type mapping.
40
40
  def self.openapi_types
41
41
  {
42
- :'pulp_href' => :'String',
43
42
  :'pulp_created' => :'DateTime',
43
+ :'pulp_href' => :'String',
44
44
  :'name' => :'String',
45
45
  :'last_heartbeat' => :'DateTime'
46
46
  }
@@ -67,14 +67,14 @@ module PulpcoreClient
67
67
  h[k.to_sym] = v
68
68
  }
69
69
 
70
- if attributes.key?(:'pulp_href')
71
- self.pulp_href = attributes[:'pulp_href']
72
- end
73
-
74
70
  if attributes.key?(:'pulp_created')
75
71
  self.pulp_created = attributes[:'pulp_created']
76
72
  end
77
73
 
74
+ if attributes.key?(:'pulp_href')
75
+ self.pulp_href = attributes[:'pulp_href']
76
+ end
77
+
78
78
  if attributes.key?(:'name')
79
79
  self.name = attributes[:'name']
80
80
  end
@@ -102,8 +102,8 @@ module PulpcoreClient
102
102
  def ==(o)
103
103
  return true if self.equal?(o)
104
104
  self.class == o.class &&
105
- pulp_href == o.pulp_href &&
106
105
  pulp_created == o.pulp_created &&
106
+ pulp_href == o.pulp_href &&
107
107
  name == o.name &&
108
108
  last_heartbeat == o.last_heartbeat
109
109
  end
@@ -117,7 +117,7 @@ module PulpcoreClient
117
117
  # Calculates hash code according to all attributes.
118
118
  # @return [Integer] Hash code
119
119
  def hash
120
- [pulp_href, pulp_created, name, last_heartbeat].hash
120
+ [pulp_created, pulp_href, name, last_heartbeat].hash
121
121
  end
122
122
 
123
123
  # Builds the object from hash
@@ -11,5 +11,5 @@ OpenAPI Generator version: 4.2.3
11
11
  =end
12
12
 
13
13
  module PulpcoreClient
14
- VERSION = '3.9.1'
14
+ VERSION = '3.10.0'
15
15
  end