pulp_ansible_client 0.16.7 → 0.17.0.dev1676344220
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.
Potentially problematic release.
This version of pulp_ansible_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +8 -5
- data/docs/AnsibleAnsibleRepositoryResponse.md +3 -1
- data/docs/AnsibleCollectionRemoteResponse.md +3 -1
- data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +2 -2
- data/docs/AnsibleCollectionVersionResponse.md +3 -3
- data/docs/AnsibleCollectionsApi.md +1 -1
- data/docs/AnsibleCopyApi.md +1 -1
- data/docs/AnsibleGitRemote.md +28 -28
- data/docs/AnsibleGitRemoteResponse.md +28 -28
- data/docs/AnsibleRoleResponse.md +3 -3
- data/docs/ApiCollectionsApi.md +1 -1
- data/docs/ApiRolesApi.md +1 -1
- data/docs/CollectionImportApi.md +1 -1
- data/docs/ContentCollectionDeprecationsApi.md +1 -1
- data/docs/ContentCollectionSignaturesApi.md +1 -1
- data/docs/ContentCollectionVersionsApi.md +1 -1
- data/docs/ContentRolesApi.md +1 -1
- data/docs/DistributionsAnsibleApi.md +5 -1
- data/docs/GalaxyDetailApi.md +1 -1
- data/docs/PatchedansibleGitRemote.md +28 -28
- data/docs/ProgressReportResponse.md +27 -0
- data/docs/PulpAnsibleApiApi.md +1 -1
- data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3Api.md +1 -1
- data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleTagsApi.md +1 -1
- data/docs/RemotesCollectionApi.md +9 -1
- data/docs/RemotesGitApi.md +1 -1
- data/docs/RemotesRoleApi.md +1 -1
- data/docs/RepositoriesAnsibleApi.md +17 -1
- data/docs/RepositoriesAnsibleVersionsApi.md +1 -1
- data/docs/Task.md +19 -0
- data/docs/TaskResponse.md +45 -0
- data/docs/VersionsApi.md +1 -1
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +6 -0
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +13 -1
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +24 -0
- data/lib/pulp_ansible_client/configuration.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +14 -5
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +13 -4
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +0 -10
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +232 -232
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +155 -155
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +10 -10
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +223 -223
- data/lib/pulp_ansible_client/models/progress_report_response.rb +259 -0
- data/lib/pulp_ansible_client/models/task.rb +266 -0
- data/lib/pulp_ansible_client/models/task_response.rb +366 -0
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +3 -0
- data/spec/api/distributions_ansible_api_spec.rb +2 -0
- data/spec/api/remotes_collection_api_spec.rb +4 -0
- data/spec/api/repositories_ansible_api_spec.rb +8 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/ansible_ansible_repository_response_spec.rb +6 -0
- data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
- data/spec/models/ansible_collection_version_response_spec.rb +3 -3
- data/spec/models/ansible_git_remote_response_spec.rb +19 -19
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/ansible_role_response_spec.rb +2 -2
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- data/spec/models/progress_report_response_spec.rb +71 -0
- data/spec/models/task_response_spec.rb +125 -0
- data/spec/models/task_spec.rb +47 -0
- metadata +130 -118
@@ -0,0 +1,366 @@
|
|
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.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module PulpAnsibleClient
|
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 TaskResponse
|
18
|
+
attr_accessor :pulp_href
|
19
|
+
|
20
|
+
# Timestamp of creation.
|
21
|
+
attr_accessor :pulp_created
|
22
|
+
|
23
|
+
# The current state of the task. The possible values include: 'waiting', 'skipped', 'running', 'completed', 'failed', 'canceled' and 'canceling'.
|
24
|
+
attr_accessor :state
|
25
|
+
|
26
|
+
# The name of task.
|
27
|
+
attr_accessor :name
|
28
|
+
|
29
|
+
# The logging correlation id associated with this task
|
30
|
+
attr_accessor :logging_cid
|
31
|
+
|
32
|
+
# Timestamp of the when this task started execution.
|
33
|
+
attr_accessor :started_at
|
34
|
+
|
35
|
+
# Timestamp of the when this task stopped execution.
|
36
|
+
attr_accessor :finished_at
|
37
|
+
|
38
|
+
# A JSON Object of a fatal error encountered during the execution of this task.
|
39
|
+
attr_accessor :error
|
40
|
+
|
41
|
+
# The worker associated with this task. This field is empty if a worker is not yet assigned.
|
42
|
+
attr_accessor :worker
|
43
|
+
|
44
|
+
# The parent task that spawned this task.
|
45
|
+
attr_accessor :parent_task
|
46
|
+
|
47
|
+
# Any tasks spawned by this task.
|
48
|
+
attr_accessor :child_tasks
|
49
|
+
|
50
|
+
# The task group that this task is a member of.
|
51
|
+
attr_accessor :task_group
|
52
|
+
|
53
|
+
attr_accessor :progress_reports
|
54
|
+
|
55
|
+
# Resources created by this task.
|
56
|
+
attr_accessor :created_resources
|
57
|
+
|
58
|
+
# A list of resources required by that task.
|
59
|
+
attr_accessor :reserved_resources_record
|
60
|
+
|
61
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
62
|
+
def self.attribute_map
|
63
|
+
{
|
64
|
+
:'pulp_href' => :'pulp_href',
|
65
|
+
:'pulp_created' => :'pulp_created',
|
66
|
+
:'state' => :'state',
|
67
|
+
:'name' => :'name',
|
68
|
+
:'logging_cid' => :'logging_cid',
|
69
|
+
:'started_at' => :'started_at',
|
70
|
+
:'finished_at' => :'finished_at',
|
71
|
+
:'error' => :'error',
|
72
|
+
:'worker' => :'worker',
|
73
|
+
:'parent_task' => :'parent_task',
|
74
|
+
:'child_tasks' => :'child_tasks',
|
75
|
+
:'task_group' => :'task_group',
|
76
|
+
:'progress_reports' => :'progress_reports',
|
77
|
+
:'created_resources' => :'created_resources',
|
78
|
+
:'reserved_resources_record' => :'reserved_resources_record'
|
79
|
+
}
|
80
|
+
end
|
81
|
+
|
82
|
+
# Attribute type mapping.
|
83
|
+
def self.openapi_types
|
84
|
+
{
|
85
|
+
:'pulp_href' => :'String',
|
86
|
+
:'pulp_created' => :'DateTime',
|
87
|
+
:'state' => :'String',
|
88
|
+
:'name' => :'String',
|
89
|
+
:'logging_cid' => :'String',
|
90
|
+
:'started_at' => :'DateTime',
|
91
|
+
:'finished_at' => :'DateTime',
|
92
|
+
:'error' => :'Hash<String, Object>',
|
93
|
+
:'worker' => :'String',
|
94
|
+
:'parent_task' => :'String',
|
95
|
+
:'child_tasks' => :'Array<String>',
|
96
|
+
:'task_group' => :'String',
|
97
|
+
:'progress_reports' => :'Array<ProgressReportResponse>',
|
98
|
+
:'created_resources' => :'Array<String>',
|
99
|
+
:'reserved_resources_record' => :'Array<String>'
|
100
|
+
}
|
101
|
+
end
|
102
|
+
|
103
|
+
# List of attributes with nullable: true
|
104
|
+
def self.openapi_nullable
|
105
|
+
Set.new([
|
106
|
+
])
|
107
|
+
end
|
108
|
+
|
109
|
+
# Initializes the object
|
110
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
111
|
+
def initialize(attributes = {})
|
112
|
+
if (!attributes.is_a?(Hash))
|
113
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::TaskResponse` initialize method"
|
114
|
+
end
|
115
|
+
|
116
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
117
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
118
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
119
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::TaskResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
120
|
+
end
|
121
|
+
h[k.to_sym] = v
|
122
|
+
}
|
123
|
+
|
124
|
+
if attributes.key?(:'pulp_href')
|
125
|
+
self.pulp_href = attributes[:'pulp_href']
|
126
|
+
end
|
127
|
+
|
128
|
+
if attributes.key?(:'pulp_created')
|
129
|
+
self.pulp_created = attributes[:'pulp_created']
|
130
|
+
end
|
131
|
+
|
132
|
+
if attributes.key?(:'state')
|
133
|
+
self.state = attributes[:'state']
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.key?(:'name')
|
137
|
+
self.name = attributes[:'name']
|
138
|
+
end
|
139
|
+
|
140
|
+
if attributes.key?(:'logging_cid')
|
141
|
+
self.logging_cid = attributes[:'logging_cid']
|
142
|
+
end
|
143
|
+
|
144
|
+
if attributes.key?(:'started_at')
|
145
|
+
self.started_at = attributes[:'started_at']
|
146
|
+
end
|
147
|
+
|
148
|
+
if attributes.key?(:'finished_at')
|
149
|
+
self.finished_at = attributes[:'finished_at']
|
150
|
+
end
|
151
|
+
|
152
|
+
if attributes.key?(:'error')
|
153
|
+
if (value = attributes[:'error']).is_a?(Hash)
|
154
|
+
self.error = value
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
if attributes.key?(:'worker')
|
159
|
+
self.worker = attributes[:'worker']
|
160
|
+
end
|
161
|
+
|
162
|
+
if attributes.key?(:'parent_task')
|
163
|
+
self.parent_task = attributes[:'parent_task']
|
164
|
+
end
|
165
|
+
|
166
|
+
if attributes.key?(:'child_tasks')
|
167
|
+
if (value = attributes[:'child_tasks']).is_a?(Array)
|
168
|
+
self.child_tasks = value
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
if attributes.key?(:'task_group')
|
173
|
+
self.task_group = attributes[:'task_group']
|
174
|
+
end
|
175
|
+
|
176
|
+
if attributes.key?(:'progress_reports')
|
177
|
+
if (value = attributes[:'progress_reports']).is_a?(Array)
|
178
|
+
self.progress_reports = value
|
179
|
+
end
|
180
|
+
end
|
181
|
+
|
182
|
+
if attributes.key?(:'created_resources')
|
183
|
+
if (value = attributes[:'created_resources']).is_a?(Array)
|
184
|
+
self.created_resources = value
|
185
|
+
end
|
186
|
+
end
|
187
|
+
|
188
|
+
if attributes.key?(:'reserved_resources_record')
|
189
|
+
if (value = attributes[:'reserved_resources_record']).is_a?(Array)
|
190
|
+
self.reserved_resources_record = value
|
191
|
+
end
|
192
|
+
end
|
193
|
+
end
|
194
|
+
|
195
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
196
|
+
# @return Array for valid properties with the reasons
|
197
|
+
def list_invalid_properties
|
198
|
+
invalid_properties = Array.new
|
199
|
+
if @name.nil?
|
200
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
201
|
+
end
|
202
|
+
|
203
|
+
if @logging_cid.nil?
|
204
|
+
invalid_properties.push('invalid value for "logging_cid", logging_cid cannot be nil.')
|
205
|
+
end
|
206
|
+
|
207
|
+
invalid_properties
|
208
|
+
end
|
209
|
+
|
210
|
+
# Check to see if the all the properties in the model are valid
|
211
|
+
# @return true if the model is valid
|
212
|
+
def valid?
|
213
|
+
return false if @name.nil?
|
214
|
+
return false if @logging_cid.nil?
|
215
|
+
true
|
216
|
+
end
|
217
|
+
|
218
|
+
# Checks equality by comparing each attribute.
|
219
|
+
# @param [Object] Object to be compared
|
220
|
+
def ==(o)
|
221
|
+
return true if self.equal?(o)
|
222
|
+
self.class == o.class &&
|
223
|
+
pulp_href == o.pulp_href &&
|
224
|
+
pulp_created == o.pulp_created &&
|
225
|
+
state == o.state &&
|
226
|
+
name == o.name &&
|
227
|
+
logging_cid == o.logging_cid &&
|
228
|
+
started_at == o.started_at &&
|
229
|
+
finished_at == o.finished_at &&
|
230
|
+
error == o.error &&
|
231
|
+
worker == o.worker &&
|
232
|
+
parent_task == o.parent_task &&
|
233
|
+
child_tasks == o.child_tasks &&
|
234
|
+
task_group == o.task_group &&
|
235
|
+
progress_reports == o.progress_reports &&
|
236
|
+
created_resources == o.created_resources &&
|
237
|
+
reserved_resources_record == o.reserved_resources_record
|
238
|
+
end
|
239
|
+
|
240
|
+
# @see the `==` method
|
241
|
+
# @param [Object] Object to be compared
|
242
|
+
def eql?(o)
|
243
|
+
self == o
|
244
|
+
end
|
245
|
+
|
246
|
+
# Calculates hash code according to all attributes.
|
247
|
+
# @return [Integer] Hash code
|
248
|
+
def hash
|
249
|
+
[pulp_href, pulp_created, state, name, logging_cid, started_at, finished_at, error, worker, parent_task, child_tasks, task_group, progress_reports, created_resources, reserved_resources_record].hash
|
250
|
+
end
|
251
|
+
|
252
|
+
# Builds the object from hash
|
253
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
254
|
+
# @return [Object] Returns the model itself
|
255
|
+
def self.build_from_hash(attributes)
|
256
|
+
new.build_from_hash(attributes)
|
257
|
+
end
|
258
|
+
|
259
|
+
# Builds the object from hash
|
260
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
261
|
+
# @return [Object] Returns the model itself
|
262
|
+
def build_from_hash(attributes)
|
263
|
+
return nil unless attributes.is_a?(Hash)
|
264
|
+
self.class.openapi_types.each_pair do |key, type|
|
265
|
+
if type =~ /\AArray<(.*)>/i
|
266
|
+
# check to ensure the input is an array given that the attribute
|
267
|
+
# is documented as an array but the input is not
|
268
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
269
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
270
|
+
end
|
271
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
272
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
273
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
274
|
+
end
|
275
|
+
|
276
|
+
self
|
277
|
+
end
|
278
|
+
|
279
|
+
# Deserializes the data based on type
|
280
|
+
# @param string type Data type
|
281
|
+
# @param string value Value to be deserialized
|
282
|
+
# @return [Object] Deserialized data
|
283
|
+
def _deserialize(type, value)
|
284
|
+
case type.to_sym
|
285
|
+
when :DateTime
|
286
|
+
DateTime.parse(value)
|
287
|
+
when :Date
|
288
|
+
Date.parse(value)
|
289
|
+
when :String
|
290
|
+
value.to_s
|
291
|
+
when :Integer
|
292
|
+
value.to_i
|
293
|
+
when :Float
|
294
|
+
value.to_f
|
295
|
+
when :Boolean
|
296
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
297
|
+
true
|
298
|
+
else
|
299
|
+
false
|
300
|
+
end
|
301
|
+
when :Object
|
302
|
+
# generic object (usually a Hash), return directly
|
303
|
+
value
|
304
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
305
|
+
inner_type = Regexp.last_match[:inner_type]
|
306
|
+
value.map { |v| _deserialize(inner_type, v) }
|
307
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
308
|
+
k_type = Regexp.last_match[:k_type]
|
309
|
+
v_type = Regexp.last_match[:v_type]
|
310
|
+
{}.tap do |hash|
|
311
|
+
value.each do |k, v|
|
312
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
313
|
+
end
|
314
|
+
end
|
315
|
+
else # model
|
316
|
+
PulpAnsibleClient.const_get(type).build_from_hash(value)
|
317
|
+
end
|
318
|
+
end
|
319
|
+
|
320
|
+
# Returns the string representation of the object
|
321
|
+
# @return [String] String presentation of the object
|
322
|
+
def to_s
|
323
|
+
to_hash.to_s
|
324
|
+
end
|
325
|
+
|
326
|
+
# to_body is an alias to to_hash (backward compatibility)
|
327
|
+
# @return [Hash] Returns the object in the form of hash
|
328
|
+
def to_body
|
329
|
+
to_hash
|
330
|
+
end
|
331
|
+
|
332
|
+
# Returns the object in the form of hash
|
333
|
+
# @return [Hash] Returns the object in the form of hash
|
334
|
+
def to_hash
|
335
|
+
hash = {}
|
336
|
+
self.class.attribute_map.each_pair do |attr, param|
|
337
|
+
value = self.send(attr)
|
338
|
+
if value.nil?
|
339
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
340
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
341
|
+
end
|
342
|
+
|
343
|
+
hash[param] = _to_hash(value)
|
344
|
+
end
|
345
|
+
hash
|
346
|
+
end
|
347
|
+
|
348
|
+
# Outputs non-array value in the form of hash
|
349
|
+
# For object, use to_hash. Otherwise, just return the value
|
350
|
+
# @param [Object] value Any valid value
|
351
|
+
# @return [Hash] Returns the value in the form of hash
|
352
|
+
def _to_hash(value)
|
353
|
+
if value.is_a?(Array)
|
354
|
+
value.compact.map { |v| _to_hash(v) }
|
355
|
+
elsif value.is_a?(Hash)
|
356
|
+
{}.tap do |hash|
|
357
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
358
|
+
end
|
359
|
+
elsif value.respond_to? :to_hash
|
360
|
+
value.to_hash
|
361
|
+
else
|
362
|
+
value
|
363
|
+
end
|
364
|
+
end
|
365
|
+
end
|
366
|
+
end
|
data/lib/pulp_ansible_client.rb
CHANGED
@@ -84,11 +84,14 @@ require 'pulp_ansible_client/models/patchedansible_collection_remote'
|
|
84
84
|
require 'pulp_ansible_client/models/patchedansible_git_remote'
|
85
85
|
require 'pulp_ansible_client/models/patchedansible_role_remote'
|
86
86
|
require 'pulp_ansible_client/models/policy_enum'
|
87
|
+
require 'pulp_ansible_client/models/progress_report_response'
|
87
88
|
require 'pulp_ansible_client/models/repair'
|
88
89
|
require 'pulp_ansible_client/models/repo_metadata_response'
|
89
90
|
require 'pulp_ansible_client/models/repository_add_remove_content'
|
90
91
|
require 'pulp_ansible_client/models/repository_version_response'
|
91
92
|
require 'pulp_ansible_client/models/tag_response'
|
93
|
+
require 'pulp_ansible_client/models/task'
|
94
|
+
require 'pulp_ansible_client/models/task_response'
|
92
95
|
require 'pulp_ansible_client/models/unpaginated_collection_version_response'
|
93
96
|
|
94
97
|
# APIs
|
@@ -73,6 +73,8 @@ describe 'DistributionsAnsibleApi' do
|
|
73
73
|
# @option opts [Integer] :offset The initial index from which to return the results.
|
74
74
|
# @option opts [Array<String>] :ordering Ordering
|
75
75
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
76
|
+
# @option opts [String] :repository Filter results where repository matches value
|
77
|
+
# @option opts [Array<String>] :repository__in Filter results where repository is in a comma-separated list of values
|
76
78
|
# @option opts [String] :with_content Filter distributions based on the content served by them
|
77
79
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
78
80
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
@@ -75,6 +75,10 @@ describe 'RemotesCollectionApi' do
|
|
75
75
|
# @option opts [DateTime] :pulp_last_updated__lt Filter results where pulp_last_updated is less than value
|
76
76
|
# @option opts [DateTime] :pulp_last_updated__lte Filter results where pulp_last_updated is less than or equal to value
|
77
77
|
# @option opts [Array<DateTime>] :pulp_last_updated__range Filter results where pulp_last_updated is between two comma separated values
|
78
|
+
# @option opts [String] :url Filter results where url matches value
|
79
|
+
# @option opts [String] :url__contains Filter results where url contains value
|
80
|
+
# @option opts [String] :url__icontains Filter results where url contains value
|
81
|
+
# @option opts [Array<String>] :url__in Filter results where url is in a comma-separated list of values
|
78
82
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
79
83
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
80
84
|
# @return [PaginatedansibleCollectionRemoteResponseList]
|
@@ -70,6 +70,14 @@ describe 'RepositoriesAnsibleApi' do
|
|
70
70
|
# @option opts [Array<String>] :ordering Ordering
|
71
71
|
# @option opts [String] :pulp_label_select Filter labels by search string
|
72
72
|
# @option opts [String] :remote Foreign Key referenced by HREF
|
73
|
+
# @option opts [Integer] :retain_repo_versions Filter results where retain_repo_versions matches value
|
74
|
+
# @option opts [Integer] :retain_repo_versions__gt Filter results where retain_repo_versions is greater than value
|
75
|
+
# @option opts [Integer] :retain_repo_versions__gte Filter results where retain_repo_versions is greater than or equal to value
|
76
|
+
# @option opts [Boolean] :retain_repo_versions__isnull Filter results where retain_repo_versions has a null value
|
77
|
+
# @option opts [Integer] :retain_repo_versions__lt Filter results where retain_repo_versions is less than value
|
78
|
+
# @option opts [Integer] :retain_repo_versions__lte Filter results where retain_repo_versions is less than or equal to value
|
79
|
+
# @option opts [Integer] :retain_repo_versions__ne Filter results where retain_repo_versions not equal to value
|
80
|
+
# @option opts [Array<Integer>] :retain_repo_versions__range Filter results where retain_repo_versions is between two comma separated values
|
73
81
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
74
82
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
75
83
|
# @return [PaginatedansibleAnsibleRepositoryResponseList]
|
data/spec/configuration_spec.rb
CHANGED
@@ -18,7 +18,7 @@ describe PulpAnsibleClient::Configuration do
|
|
18
18
|
before(:each) do
|
19
19
|
# uncomment below to setup host and base_path
|
20
20
|
# require 'URI'
|
21
|
-
# uri = URI.parse("
|
21
|
+
# uri = URI.parse("https://pulp")
|
22
22
|
# PulpAnsibleClient.configure do |c|
|
23
23
|
# c.host = uri.host
|
24
24
|
# c.base_path = uri.path
|
@@ -28,14 +28,14 @@ describe PulpAnsibleClient::Configuration do
|
|
28
28
|
describe '#base_url' do
|
29
29
|
it 'should have the default value' do
|
30
30
|
# uncomment below to test default value of the base path
|
31
|
-
# expect(config.base_url).to eq("
|
31
|
+
# expect(config.base_url).to eq("https://pulp")
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should remove trailing slashes' do
|
35
35
|
[nil, '', '/', '//'].each do |base_path|
|
36
36
|
config.base_path = base_path
|
37
37
|
# uncomment below to test trailing slashes
|
38
|
-
# expect(config.base_url).to eq("
|
38
|
+
# expect(config.base_url).to eq("https://pulp")
|
39
39
|
end
|
40
40
|
end
|
41
41
|
end
|
@@ -98,4 +98,10 @@ describe 'AnsibleAnsibleRepositoryResponse' do
|
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
101
|
+
describe 'test attribute "last_sync_task"' do
|
102
|
+
it 'should work' do
|
103
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
|
+
end
|
105
|
+
end
|
106
|
+
|
101
107
|
end
|
@@ -176,4 +176,10 @@ describe 'AnsibleCollectionRemoteResponse' do
|
|
176
176
|
end
|
177
177
|
end
|
178
178
|
|
179
|
+
describe 'test attribute "last_sync_task"' do
|
180
|
+
it 'should work' do
|
181
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
182
|
+
end
|
183
|
+
end
|
184
|
+
|
179
185
|
end
|
@@ -32,19 +32,19 @@ describe 'AnsibleCollectionVersionResponse' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpAnsibleClient::AnsibleCollectionVersionResponse)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "artifact"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "pulp_href"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "pulp_created"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
@@ -32,115 +32,115 @@ describe 'AnsibleGitRemoteResponse' do
|
|
32
32
|
expect(@instance).to be_instance_of(PulpAnsibleClient::AnsibleGitRemoteResponse)
|
33
33
|
end
|
34
34
|
end
|
35
|
-
describe 'test attribute "
|
35
|
+
describe 'test attribute "pulp_labels"' do
|
36
36
|
it 'should work' do
|
37
37
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
38
38
|
end
|
39
39
|
end
|
40
40
|
|
41
|
-
describe 'test attribute "
|
41
|
+
describe 'test attribute "url"' do
|
42
42
|
it 'should work' do
|
43
43
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
44
44
|
end
|
45
45
|
end
|
46
46
|
|
47
|
-
describe 'test attribute "
|
47
|
+
describe 'test attribute "rate_limit"' do
|
48
48
|
it 'should work' do
|
49
49
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
|
-
describe 'test attribute "
|
53
|
+
describe 'test attribute "proxy_url"' do
|
54
54
|
it 'should work' do
|
55
55
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
59
|
-
describe 'test attribute "
|
59
|
+
describe 'test attribute "ca_cert"' do
|
60
60
|
it 'should work' do
|
61
61
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
-
describe 'test attribute "
|
65
|
+
describe 'test attribute "sock_read_timeout"' do
|
66
66
|
it 'should work' do
|
67
67
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
68
|
end
|
69
69
|
end
|
70
70
|
|
71
|
-
describe 'test attribute "
|
71
|
+
describe 'test attribute "headers"' do
|
72
72
|
it 'should work' do
|
73
73
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
74
74
|
end
|
75
75
|
end
|
76
76
|
|
77
|
-
describe 'test attribute "
|
77
|
+
describe 'test attribute "pulp_href"' do
|
78
78
|
it 'should work' do
|
79
79
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
80
80
|
end
|
81
81
|
end
|
82
82
|
|
83
|
-
describe 'test attribute "
|
83
|
+
describe 'test attribute "sock_connect_timeout"' do
|
84
84
|
it 'should work' do
|
85
85
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
86
86
|
end
|
87
87
|
end
|
88
88
|
|
89
|
-
describe 'test attribute "
|
89
|
+
describe 'test attribute "hidden_fields"' do
|
90
90
|
it 'should work' do
|
91
91
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
|
-
describe 'test attribute "
|
95
|
+
describe 'test attribute "name"' do
|
96
96
|
it 'should work' do
|
97
97
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
98
98
|
end
|
99
99
|
end
|
100
100
|
|
101
|
-
describe 'test attribute "
|
101
|
+
describe 'test attribute "client_cert"' do
|
102
102
|
it 'should work' do
|
103
103
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
104
104
|
end
|
105
105
|
end
|
106
106
|
|
107
|
-
describe 'test attribute "
|
107
|
+
describe 'test attribute "total_timeout"' do
|
108
108
|
it 'should work' do
|
109
109
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
110
110
|
end
|
111
111
|
end
|
112
112
|
|
113
|
-
describe 'test attribute "
|
113
|
+
describe 'test attribute "download_concurrency"' do
|
114
114
|
it 'should work' do
|
115
115
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
116
116
|
end
|
117
117
|
end
|
118
118
|
|
119
|
-
describe 'test attribute "
|
119
|
+
describe 'test attribute "pulp_last_updated"' do
|
120
120
|
it 'should work' do
|
121
121
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
122
122
|
end
|
123
123
|
end
|
124
124
|
|
125
|
-
describe 'test attribute "
|
125
|
+
describe 'test attribute "tls_validation"' do
|
126
126
|
it 'should work' do
|
127
127
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
128
128
|
end
|
129
129
|
end
|
130
130
|
|
131
|
-
describe 'test attribute "
|
131
|
+
describe 'test attribute "connect_timeout"' do
|
132
132
|
it 'should work' do
|
133
133
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
134
134
|
end
|
135
135
|
end
|
136
136
|
|
137
|
-
describe 'test attribute "
|
137
|
+
describe 'test attribute "pulp_created"' do
|
138
138
|
it 'should work' do
|
139
139
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
140
140
|
end
|
141
141
|
end
|
142
142
|
|
143
|
-
describe 'test attribute "
|
143
|
+
describe 'test attribute "max_retries"' do
|
144
144
|
it 'should work' do
|
145
145
|
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
146
146
|
end
|