pulp_ansible_client 0.24.11 → 0.24.12
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.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/AnsibleCollectionVersionResponse.md +6 -6
- data/docs/AnsibleGitRemote.md +24 -24
- data/docs/AnsibleGitRemoteResponse.md +24 -24
- data/docs/AnsibleRole.md +2 -2
- data/docs/AnsibleRoleResponse.md +6 -6
- data/docs/ContentCollectionVersionsApi.md +4 -4
- data/docs/PatchedansibleGitRemote.md +24 -24
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +2 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +2 -2
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +27 -27
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +216 -216
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +129 -129
- data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +27 -27
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +212 -212
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +2 -2
- data/spec/models/ansible_collection_version_response_spec.rb +6 -6
- data/spec/models/ansible_git_remote_response_spec.rb +19 -19
- data/spec/models/ansible_git_remote_spec.rb +18 -18
- data/spec/models/ansible_role_response_spec.rb +6 -6
- data/spec/models/ansible_role_spec.rb +3 -3
- data/spec/models/patchedansible_git_remote_spec.rb +18 -18
- metadata +119 -119
|
@@ -16,63 +16,63 @@ require 'time'
|
|
|
16
16
|
module PulpAnsibleClient
|
|
17
17
|
# A serializer for Git Collection Remotes.
|
|
18
18
|
class AnsibleGitRemoteResponse
|
|
19
|
+
# A PEM encoded client certificate used for authentication.
|
|
20
|
+
attr_accessor :client_cert
|
|
21
|
+
|
|
19
22
|
# Headers for aiohttp.Clientsession
|
|
20
23
|
attr_accessor :headers
|
|
21
24
|
|
|
22
|
-
#
|
|
23
|
-
attr_accessor :
|
|
25
|
+
# The URL of an external content source.
|
|
26
|
+
attr_accessor :url
|
|
24
27
|
|
|
25
|
-
#
|
|
26
|
-
attr_accessor :
|
|
28
|
+
# If True, TLS peer validation must be performed.
|
|
29
|
+
attr_accessor :tls_validation
|
|
27
30
|
|
|
28
|
-
#
|
|
29
|
-
attr_accessor :
|
|
31
|
+
# Timestamp of creation.
|
|
32
|
+
attr_accessor :pulp_created
|
|
30
33
|
|
|
31
34
|
# Timestamp of the most recent update of the remote.
|
|
32
35
|
attr_accessor :pulp_last_updated
|
|
33
36
|
|
|
34
|
-
#
|
|
35
|
-
attr_accessor :
|
|
37
|
+
# aiohttp.ClientTimeout.sock_read (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
38
|
+
attr_accessor :sock_read_timeout
|
|
36
39
|
|
|
37
|
-
#
|
|
38
|
-
attr_accessor :
|
|
40
|
+
# A unique name for this remote.
|
|
41
|
+
attr_accessor :name
|
|
39
42
|
|
|
40
|
-
#
|
|
41
|
-
attr_accessor :
|
|
43
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
44
|
+
attr_accessor :connect_timeout
|
|
42
45
|
|
|
43
|
-
|
|
44
|
-
attr_accessor :url
|
|
46
|
+
attr_accessor :pulp_href
|
|
45
47
|
|
|
46
48
|
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
47
49
|
attr_accessor :download_concurrency
|
|
48
50
|
|
|
49
|
-
#
|
|
50
|
-
attr_accessor :
|
|
51
|
+
# aiohttp.ClientTimeout.sock_connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
52
|
+
attr_accessor :sock_connect_timeout
|
|
51
53
|
|
|
52
|
-
#
|
|
53
|
-
attr_accessor :
|
|
54
|
+
# Limits requests per second for each concurrent downloader
|
|
55
|
+
attr_accessor :rate_limit
|
|
54
56
|
|
|
55
57
|
# List of hidden (write only) fields
|
|
56
58
|
attr_accessor :hidden_fields
|
|
57
59
|
|
|
58
|
-
#
|
|
59
|
-
attr_accessor :
|
|
60
|
+
# The Pulp Resource Name (PRN).
|
|
61
|
+
attr_accessor :prn
|
|
60
62
|
|
|
61
63
|
attr_accessor :pulp_labels
|
|
62
64
|
|
|
63
|
-
#
|
|
64
|
-
attr_accessor :
|
|
65
|
-
|
|
66
|
-
# If True, TLS peer validation must be performed.
|
|
67
|
-
attr_accessor :tls_validation
|
|
65
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
66
|
+
attr_accessor :total_timeout
|
|
68
67
|
|
|
69
68
|
# The proxy URL. Format: scheme://host:port
|
|
70
69
|
attr_accessor :proxy_url
|
|
71
70
|
|
|
72
|
-
|
|
71
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
72
|
+
attr_accessor :max_retries
|
|
73
73
|
|
|
74
|
-
# A PEM encoded
|
|
75
|
-
attr_accessor :
|
|
74
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
|
75
|
+
attr_accessor :ca_cert
|
|
76
76
|
|
|
77
77
|
# If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
|
|
78
78
|
attr_accessor :metadata_only
|
|
@@ -83,26 +83,26 @@ module PulpAnsibleClient
|
|
|
83
83
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
84
84
|
def self.attribute_map
|
|
85
85
|
{
|
|
86
|
+
:'client_cert' => :'client_cert',
|
|
86
87
|
:'headers' => :'headers',
|
|
88
|
+
:'url' => :'url',
|
|
89
|
+
:'tls_validation' => :'tls_validation',
|
|
90
|
+
:'pulp_created' => :'pulp_created',
|
|
91
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
87
92
|
:'sock_read_timeout' => :'sock_read_timeout',
|
|
93
|
+
:'name' => :'name',
|
|
88
94
|
:'connect_timeout' => :'connect_timeout',
|
|
95
|
+
:'pulp_href' => :'pulp_href',
|
|
96
|
+
:'download_concurrency' => :'download_concurrency',
|
|
89
97
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
90
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
91
|
-
:'max_retries' => :'max_retries',
|
|
92
|
-
:'total_timeout' => :'total_timeout',
|
|
93
98
|
:'rate_limit' => :'rate_limit',
|
|
94
|
-
:'url' => :'url',
|
|
95
|
-
:'download_concurrency' => :'download_concurrency',
|
|
96
|
-
:'name' => :'name',
|
|
97
|
-
:'prn' => :'prn',
|
|
98
99
|
:'hidden_fields' => :'hidden_fields',
|
|
99
|
-
:'
|
|
100
|
+
:'prn' => :'prn',
|
|
100
101
|
:'pulp_labels' => :'pulp_labels',
|
|
101
|
-
:'
|
|
102
|
-
:'tls_validation' => :'tls_validation',
|
|
102
|
+
:'total_timeout' => :'total_timeout',
|
|
103
103
|
:'proxy_url' => :'proxy_url',
|
|
104
|
-
:'
|
|
105
|
-
:'
|
|
104
|
+
:'max_retries' => :'max_retries',
|
|
105
|
+
:'ca_cert' => :'ca_cert',
|
|
106
106
|
:'metadata_only' => :'metadata_only',
|
|
107
107
|
:'git_ref' => :'git_ref'
|
|
108
108
|
}
|
|
@@ -116,26 +116,26 @@ module PulpAnsibleClient
|
|
|
116
116
|
# Attribute type mapping.
|
|
117
117
|
def self.openapi_types
|
|
118
118
|
{
|
|
119
|
+
:'client_cert' => :'String',
|
|
119
120
|
:'headers' => :'Array<Object>',
|
|
121
|
+
:'url' => :'String',
|
|
122
|
+
:'tls_validation' => :'Boolean',
|
|
123
|
+
:'pulp_created' => :'Time',
|
|
124
|
+
:'pulp_last_updated' => :'Time',
|
|
120
125
|
:'sock_read_timeout' => :'Float',
|
|
126
|
+
:'name' => :'String',
|
|
121
127
|
:'connect_timeout' => :'Float',
|
|
128
|
+
:'pulp_href' => :'String',
|
|
129
|
+
:'download_concurrency' => :'Integer',
|
|
122
130
|
:'sock_connect_timeout' => :'Float',
|
|
123
|
-
:'pulp_last_updated' => :'Time',
|
|
124
|
-
:'max_retries' => :'Integer',
|
|
125
|
-
:'total_timeout' => :'Float',
|
|
126
131
|
:'rate_limit' => :'Integer',
|
|
127
|
-
:'url' => :'String',
|
|
128
|
-
:'download_concurrency' => :'Integer',
|
|
129
|
-
:'name' => :'String',
|
|
130
|
-
:'prn' => :'String',
|
|
131
132
|
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
|
132
|
-
:'
|
|
133
|
+
:'prn' => :'String',
|
|
133
134
|
:'pulp_labels' => :'Hash<String, String>',
|
|
134
|
-
:'
|
|
135
|
-
:'tls_validation' => :'Boolean',
|
|
135
|
+
:'total_timeout' => :'Float',
|
|
136
136
|
:'proxy_url' => :'String',
|
|
137
|
-
:'
|
|
138
|
-
:'
|
|
137
|
+
:'max_retries' => :'Integer',
|
|
138
|
+
:'ca_cert' => :'String',
|
|
139
139
|
:'metadata_only' => :'Boolean',
|
|
140
140
|
:'git_ref' => :'String'
|
|
141
141
|
}
|
|
@@ -144,16 +144,16 @@ module PulpAnsibleClient
|
|
|
144
144
|
# List of attributes with nullable: true
|
|
145
145
|
def self.openapi_nullable
|
|
146
146
|
Set.new([
|
|
147
|
+
:'client_cert',
|
|
147
148
|
:'sock_read_timeout',
|
|
148
149
|
:'connect_timeout',
|
|
150
|
+
:'download_concurrency',
|
|
149
151
|
:'sock_connect_timeout',
|
|
150
|
-
:'max_retries',
|
|
151
|
-
:'total_timeout',
|
|
152
152
|
:'rate_limit',
|
|
153
|
-
:'
|
|
154
|
-
:'ca_cert',
|
|
153
|
+
:'total_timeout',
|
|
155
154
|
:'proxy_url',
|
|
156
|
-
:'
|
|
155
|
+
:'max_retries',
|
|
156
|
+
:'ca_cert',
|
|
157
157
|
])
|
|
158
158
|
end
|
|
159
159
|
|
|
@@ -172,58 +172,62 @@ module PulpAnsibleClient
|
|
|
172
172
|
h[k.to_sym] = v
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
+
if attributes.key?(:'client_cert')
|
|
176
|
+
self.client_cert = attributes[:'client_cert']
|
|
177
|
+
end
|
|
178
|
+
|
|
175
179
|
if attributes.key?(:'headers')
|
|
176
180
|
if (value = attributes[:'headers']).is_a?(Array)
|
|
177
181
|
self.headers = value
|
|
178
182
|
end
|
|
179
183
|
end
|
|
180
184
|
|
|
181
|
-
if attributes.key?(:'
|
|
182
|
-
self.
|
|
185
|
+
if attributes.key?(:'url')
|
|
186
|
+
self.url = attributes[:'url']
|
|
187
|
+
else
|
|
188
|
+
self.url = nil
|
|
183
189
|
end
|
|
184
190
|
|
|
185
|
-
if attributes.key?(:'
|
|
186
|
-
self.
|
|
191
|
+
if attributes.key?(:'tls_validation')
|
|
192
|
+
self.tls_validation = attributes[:'tls_validation']
|
|
187
193
|
end
|
|
188
194
|
|
|
189
|
-
if attributes.key?(:'
|
|
190
|
-
self.
|
|
195
|
+
if attributes.key?(:'pulp_created')
|
|
196
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
191
197
|
end
|
|
192
198
|
|
|
193
199
|
if attributes.key?(:'pulp_last_updated')
|
|
194
200
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
195
201
|
end
|
|
196
202
|
|
|
197
|
-
if attributes.key?(:'
|
|
198
|
-
self.
|
|
203
|
+
if attributes.key?(:'sock_read_timeout')
|
|
204
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
|
199
205
|
end
|
|
200
206
|
|
|
201
|
-
if attributes.key?(:'
|
|
202
|
-
self.
|
|
207
|
+
if attributes.key?(:'name')
|
|
208
|
+
self.name = attributes[:'name']
|
|
209
|
+
else
|
|
210
|
+
self.name = nil
|
|
203
211
|
end
|
|
204
212
|
|
|
205
|
-
if attributes.key?(:'
|
|
206
|
-
self.
|
|
213
|
+
if attributes.key?(:'connect_timeout')
|
|
214
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
|
207
215
|
end
|
|
208
216
|
|
|
209
|
-
if attributes.key?(:'
|
|
210
|
-
self.
|
|
211
|
-
else
|
|
212
|
-
self.url = nil
|
|
217
|
+
if attributes.key?(:'pulp_href')
|
|
218
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
213
219
|
end
|
|
214
220
|
|
|
215
221
|
if attributes.key?(:'download_concurrency')
|
|
216
222
|
self.download_concurrency = attributes[:'download_concurrency']
|
|
217
223
|
end
|
|
218
224
|
|
|
219
|
-
if attributes.key?(:'
|
|
220
|
-
self.
|
|
221
|
-
else
|
|
222
|
-
self.name = nil
|
|
225
|
+
if attributes.key?(:'sock_connect_timeout')
|
|
226
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
|
223
227
|
end
|
|
224
228
|
|
|
225
|
-
if attributes.key?(:'
|
|
226
|
-
self.
|
|
229
|
+
if attributes.key?(:'rate_limit')
|
|
230
|
+
self.rate_limit = attributes[:'rate_limit']
|
|
227
231
|
end
|
|
228
232
|
|
|
229
233
|
if attributes.key?(:'hidden_fields')
|
|
@@ -232,8 +236,8 @@ module PulpAnsibleClient
|
|
|
232
236
|
end
|
|
233
237
|
end
|
|
234
238
|
|
|
235
|
-
if attributes.key?(:'
|
|
236
|
-
self.
|
|
239
|
+
if attributes.key?(:'prn')
|
|
240
|
+
self.prn = attributes[:'prn']
|
|
237
241
|
end
|
|
238
242
|
|
|
239
243
|
if attributes.key?(:'pulp_labels')
|
|
@@ -242,24 +246,20 @@ module PulpAnsibleClient
|
|
|
242
246
|
end
|
|
243
247
|
end
|
|
244
248
|
|
|
245
|
-
if attributes.key?(:'
|
|
246
|
-
self.
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
if attributes.key?(:'tls_validation')
|
|
250
|
-
self.tls_validation = attributes[:'tls_validation']
|
|
249
|
+
if attributes.key?(:'total_timeout')
|
|
250
|
+
self.total_timeout = attributes[:'total_timeout']
|
|
251
251
|
end
|
|
252
252
|
|
|
253
253
|
if attributes.key?(:'proxy_url')
|
|
254
254
|
self.proxy_url = attributes[:'proxy_url']
|
|
255
255
|
end
|
|
256
256
|
|
|
257
|
-
if attributes.key?(:'
|
|
258
|
-
self.
|
|
257
|
+
if attributes.key?(:'max_retries')
|
|
258
|
+
self.max_retries = attributes[:'max_retries']
|
|
259
259
|
end
|
|
260
260
|
|
|
261
|
-
if attributes.key?(:'
|
|
262
|
-
self.
|
|
261
|
+
if attributes.key?(:'ca_cert')
|
|
262
|
+
self.ca_cert = attributes[:'ca_cert']
|
|
263
263
|
end
|
|
264
264
|
|
|
265
265
|
if attributes.key?(:'metadata_only')
|
|
@@ -276,14 +276,26 @@ module PulpAnsibleClient
|
|
|
276
276
|
def list_invalid_properties
|
|
277
277
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
278
278
|
invalid_properties = Array.new
|
|
279
|
+
if @url.nil?
|
|
280
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
281
|
+
end
|
|
282
|
+
|
|
279
283
|
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
280
284
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
281
285
|
end
|
|
282
286
|
|
|
287
|
+
if @name.nil?
|
|
288
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
289
|
+
end
|
|
290
|
+
|
|
283
291
|
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
284
292
|
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
|
285
293
|
end
|
|
286
294
|
|
|
295
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
296
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
297
|
+
end
|
|
298
|
+
|
|
287
299
|
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
288
300
|
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
|
289
301
|
end
|
|
@@ -292,18 +304,6 @@ module PulpAnsibleClient
|
|
|
292
304
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
|
293
305
|
end
|
|
294
306
|
|
|
295
|
-
if @url.nil?
|
|
296
|
-
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
297
|
-
end
|
|
298
|
-
|
|
299
|
-
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
300
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
301
|
-
end
|
|
302
|
-
|
|
303
|
-
if @name.nil?
|
|
304
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
305
|
-
end
|
|
306
|
-
|
|
307
307
|
invalid_properties
|
|
308
308
|
end
|
|
309
309
|
|
|
@@ -311,13 +311,13 @@ module PulpAnsibleClient
|
|
|
311
311
|
# @return true if the model is valid
|
|
312
312
|
def valid?
|
|
313
313
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
314
|
+
return false if @url.nil?
|
|
314
315
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
316
|
+
return false if @name.nil?
|
|
315
317
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
318
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
316
319
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
317
320
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
318
|
-
return false if @url.nil?
|
|
319
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
320
|
-
return false if @name.nil?
|
|
321
321
|
true
|
|
322
322
|
end
|
|
323
323
|
|
|
@@ -341,6 +341,16 @@ module PulpAnsibleClient
|
|
|
341
341
|
@connect_timeout = connect_timeout
|
|
342
342
|
end
|
|
343
343
|
|
|
344
|
+
# Custom attribute writer method with validation
|
|
345
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
346
|
+
def download_concurrency=(download_concurrency)
|
|
347
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
348
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
349
|
+
end
|
|
350
|
+
|
|
351
|
+
@download_concurrency = download_concurrency
|
|
352
|
+
end
|
|
353
|
+
|
|
344
354
|
# Custom attribute writer method with validation
|
|
345
355
|
# @param [Object] sock_connect_timeout Value to be assigned
|
|
346
356
|
def sock_connect_timeout=(sock_connect_timeout)
|
|
@@ -361,41 +371,31 @@ module PulpAnsibleClient
|
|
|
361
371
|
@total_timeout = total_timeout
|
|
362
372
|
end
|
|
363
373
|
|
|
364
|
-
# Custom attribute writer method with validation
|
|
365
|
-
# @param [Object] download_concurrency Value to be assigned
|
|
366
|
-
def download_concurrency=(download_concurrency)
|
|
367
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
|
368
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
369
|
-
end
|
|
370
|
-
|
|
371
|
-
@download_concurrency = download_concurrency
|
|
372
|
-
end
|
|
373
|
-
|
|
374
374
|
# Checks equality by comparing each attribute.
|
|
375
375
|
# @param [Object] Object to be compared
|
|
376
376
|
def ==(o)
|
|
377
377
|
return true if self.equal?(o)
|
|
378
378
|
self.class == o.class &&
|
|
379
|
+
client_cert == o.client_cert &&
|
|
379
380
|
headers == o.headers &&
|
|
381
|
+
url == o.url &&
|
|
382
|
+
tls_validation == o.tls_validation &&
|
|
383
|
+
pulp_created == o.pulp_created &&
|
|
384
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
380
385
|
sock_read_timeout == o.sock_read_timeout &&
|
|
386
|
+
name == o.name &&
|
|
381
387
|
connect_timeout == o.connect_timeout &&
|
|
388
|
+
pulp_href == o.pulp_href &&
|
|
389
|
+
download_concurrency == o.download_concurrency &&
|
|
382
390
|
sock_connect_timeout == o.sock_connect_timeout &&
|
|
383
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
384
|
-
max_retries == o.max_retries &&
|
|
385
|
-
total_timeout == o.total_timeout &&
|
|
386
391
|
rate_limit == o.rate_limit &&
|
|
387
|
-
url == o.url &&
|
|
388
|
-
download_concurrency == o.download_concurrency &&
|
|
389
|
-
name == o.name &&
|
|
390
|
-
prn == o.prn &&
|
|
391
392
|
hidden_fields == o.hidden_fields &&
|
|
392
|
-
|
|
393
|
+
prn == o.prn &&
|
|
393
394
|
pulp_labels == o.pulp_labels &&
|
|
394
|
-
|
|
395
|
-
tls_validation == o.tls_validation &&
|
|
395
|
+
total_timeout == o.total_timeout &&
|
|
396
396
|
proxy_url == o.proxy_url &&
|
|
397
|
-
|
|
398
|
-
|
|
397
|
+
max_retries == o.max_retries &&
|
|
398
|
+
ca_cert == o.ca_cert &&
|
|
399
399
|
metadata_only == o.metadata_only &&
|
|
400
400
|
git_ref == o.git_ref
|
|
401
401
|
end
|
|
@@ -409,7 +409,7 @@ module PulpAnsibleClient
|
|
|
409
409
|
# Calculates hash code according to all attributes.
|
|
410
410
|
# @return [Integer] Hash code
|
|
411
411
|
def hash
|
|
412
|
-
[headers,
|
|
412
|
+
[client_cert, headers, url, tls_validation, pulp_created, pulp_last_updated, sock_read_timeout, name, connect_timeout, pulp_href, download_concurrency, sock_connect_timeout, rate_limit, hidden_fields, prn, pulp_labels, total_timeout, proxy_url, max_retries, ca_cert, metadata_only, git_ref].hash
|
|
413
413
|
end
|
|
414
414
|
|
|
415
415
|
# Builds the object from hash
|
|
@@ -16,15 +16,15 @@ require 'time'
|
|
|
16
16
|
module PulpAnsibleClient
|
|
17
17
|
# A serializer for Role versions.
|
|
18
18
|
class AnsibleRole
|
|
19
|
+
# A URI of a repository the new content unit should be associated with.
|
|
20
|
+
attr_accessor :repository
|
|
21
|
+
|
|
19
22
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
20
23
|
attr_accessor :pulp_labels
|
|
21
24
|
|
|
22
25
|
# Artifact file representing the physical content
|
|
23
26
|
attr_accessor :artifact
|
|
24
27
|
|
|
25
|
-
# A URI of a repository the new content unit should be associated with.
|
|
26
|
-
attr_accessor :repository
|
|
27
|
-
|
|
28
28
|
attr_accessor :version
|
|
29
29
|
|
|
30
30
|
attr_accessor :name
|
|
@@ -34,9 +34,9 @@ module PulpAnsibleClient
|
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
35
|
def self.attribute_map
|
|
36
36
|
{
|
|
37
|
+
:'repository' => :'repository',
|
|
37
38
|
:'pulp_labels' => :'pulp_labels',
|
|
38
39
|
:'artifact' => :'artifact',
|
|
39
|
-
:'repository' => :'repository',
|
|
40
40
|
:'version' => :'version',
|
|
41
41
|
:'name' => :'name',
|
|
42
42
|
:'namespace' => :'namespace'
|
|
@@ -51,9 +51,9 @@ module PulpAnsibleClient
|
|
|
51
51
|
# Attribute type mapping.
|
|
52
52
|
def self.openapi_types
|
|
53
53
|
{
|
|
54
|
+
:'repository' => :'String',
|
|
54
55
|
:'pulp_labels' => :'Hash<String, String>',
|
|
55
56
|
:'artifact' => :'String',
|
|
56
|
-
:'repository' => :'String',
|
|
57
57
|
:'version' => :'String',
|
|
58
58
|
:'name' => :'String',
|
|
59
59
|
:'namespace' => :'String'
|
|
@@ -81,6 +81,10 @@ module PulpAnsibleClient
|
|
|
81
81
|
h[k.to_sym] = v
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
+
if attributes.key?(:'repository')
|
|
85
|
+
self.repository = attributes[:'repository']
|
|
86
|
+
end
|
|
87
|
+
|
|
84
88
|
if attributes.key?(:'pulp_labels')
|
|
85
89
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
86
90
|
self.pulp_labels = value
|
|
@@ -93,10 +97,6 @@ module PulpAnsibleClient
|
|
|
93
97
|
self.artifact = nil
|
|
94
98
|
end
|
|
95
99
|
|
|
96
|
-
if attributes.key?(:'repository')
|
|
97
|
-
self.repository = attributes[:'repository']
|
|
98
|
-
end
|
|
99
|
-
|
|
100
100
|
if attributes.key?(:'version')
|
|
101
101
|
self.version = attributes[:'version']
|
|
102
102
|
else
|
|
@@ -213,9 +213,9 @@ module PulpAnsibleClient
|
|
|
213
213
|
def ==(o)
|
|
214
214
|
return true if self.equal?(o)
|
|
215
215
|
self.class == o.class &&
|
|
216
|
+
repository == o.repository &&
|
|
216
217
|
pulp_labels == o.pulp_labels &&
|
|
217
218
|
artifact == o.artifact &&
|
|
218
|
-
repository == o.repository &&
|
|
219
219
|
version == o.version &&
|
|
220
220
|
name == o.name &&
|
|
221
221
|
namespace == o.namespace
|
|
@@ -230,7 +230,7 @@ module PulpAnsibleClient
|
|
|
230
230
|
# Calculates hash code according to all attributes.
|
|
231
231
|
# @return [Integer] Hash code
|
|
232
232
|
def hash
|
|
233
|
-
[pulp_labels, artifact,
|
|
233
|
+
[repository, pulp_labels, artifact, version, name, namespace].hash
|
|
234
234
|
end
|
|
235
235
|
|
|
236
236
|
# Builds the object from hash
|
|
@@ -16,23 +16,23 @@ require 'time'
|
|
|
16
16
|
module PulpAnsibleClient
|
|
17
17
|
# A serializer for Role versions.
|
|
18
18
|
class AnsibleRoleResponse
|
|
19
|
+
attr_accessor :pulp_href
|
|
20
|
+
|
|
21
|
+
# Timestamp of creation.
|
|
22
|
+
attr_accessor :pulp_created
|
|
23
|
+
|
|
19
24
|
# The Pulp Resource Name (PRN).
|
|
20
25
|
attr_accessor :prn
|
|
21
26
|
|
|
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
27
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
26
28
|
attr_accessor :pulp_labels
|
|
27
29
|
|
|
28
|
-
# Timestamp of
|
|
29
|
-
attr_accessor :
|
|
30
|
+
# 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.
|
|
31
|
+
attr_accessor :pulp_last_updated
|
|
30
32
|
|
|
31
33
|
# Artifact file representing the physical content
|
|
32
34
|
attr_accessor :artifact
|
|
33
35
|
|
|
34
|
-
attr_accessor :pulp_href
|
|
35
|
-
|
|
36
36
|
attr_accessor :version
|
|
37
37
|
|
|
38
38
|
attr_accessor :name
|
|
@@ -42,12 +42,12 @@ module PulpAnsibleClient
|
|
|
42
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
43
43
|
def self.attribute_map
|
|
44
44
|
{
|
|
45
|
+
:'pulp_href' => :'pulp_href',
|
|
46
|
+
:'pulp_created' => :'pulp_created',
|
|
45
47
|
:'prn' => :'prn',
|
|
46
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
47
48
|
:'pulp_labels' => :'pulp_labels',
|
|
48
|
-
:'
|
|
49
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
49
50
|
:'artifact' => :'artifact',
|
|
50
|
-
:'pulp_href' => :'pulp_href',
|
|
51
51
|
:'version' => :'version',
|
|
52
52
|
:'name' => :'name',
|
|
53
53
|
:'namespace' => :'namespace'
|
|
@@ -62,12 +62,12 @@ module PulpAnsibleClient
|
|
|
62
62
|
# Attribute type mapping.
|
|
63
63
|
def self.openapi_types
|
|
64
64
|
{
|
|
65
|
+
:'pulp_href' => :'String',
|
|
66
|
+
:'pulp_created' => :'Time',
|
|
65
67
|
:'prn' => :'String',
|
|
66
|
-
:'pulp_last_updated' => :'Time',
|
|
67
68
|
:'pulp_labels' => :'Hash<String, String>',
|
|
68
|
-
:'
|
|
69
|
+
:'pulp_last_updated' => :'Time',
|
|
69
70
|
:'artifact' => :'String',
|
|
70
|
-
:'pulp_href' => :'String',
|
|
71
71
|
:'version' => :'String',
|
|
72
72
|
:'name' => :'String',
|
|
73
73
|
:'namespace' => :'String'
|
|
@@ -95,12 +95,16 @@ module PulpAnsibleClient
|
|
|
95
95
|
h[k.to_sym] = v
|
|
96
96
|
}
|
|
97
97
|
|
|
98
|
-
if attributes.key?(:'
|
|
99
|
-
self.
|
|
98
|
+
if attributes.key?(:'pulp_href')
|
|
99
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
100
100
|
end
|
|
101
101
|
|
|
102
|
-
if attributes.key?(:'
|
|
103
|
-
self.
|
|
102
|
+
if attributes.key?(:'pulp_created')
|
|
103
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
if attributes.key?(:'prn')
|
|
107
|
+
self.prn = attributes[:'prn']
|
|
104
108
|
end
|
|
105
109
|
|
|
106
110
|
if attributes.key?(:'pulp_labels')
|
|
@@ -109,8 +113,8 @@ module PulpAnsibleClient
|
|
|
109
113
|
end
|
|
110
114
|
end
|
|
111
115
|
|
|
112
|
-
if attributes.key?(:'
|
|
113
|
-
self.
|
|
116
|
+
if attributes.key?(:'pulp_last_updated')
|
|
117
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
114
118
|
end
|
|
115
119
|
|
|
116
120
|
if attributes.key?(:'artifact')
|
|
@@ -119,10 +123,6 @@ module PulpAnsibleClient
|
|
|
119
123
|
self.artifact = nil
|
|
120
124
|
end
|
|
121
125
|
|
|
122
|
-
if attributes.key?(:'pulp_href')
|
|
123
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
124
|
-
end
|
|
125
|
-
|
|
126
126
|
if attributes.key?(:'version')
|
|
127
127
|
self.version = attributes[:'version']
|
|
128
128
|
else
|
|
@@ -182,12 +182,12 @@ module PulpAnsibleClient
|
|
|
182
182
|
def ==(o)
|
|
183
183
|
return true if self.equal?(o)
|
|
184
184
|
self.class == o.class &&
|
|
185
|
+
pulp_href == o.pulp_href &&
|
|
186
|
+
pulp_created == o.pulp_created &&
|
|
185
187
|
prn == o.prn &&
|
|
186
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
187
188
|
pulp_labels == o.pulp_labels &&
|
|
188
|
-
|
|
189
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
189
190
|
artifact == o.artifact &&
|
|
190
|
-
pulp_href == o.pulp_href &&
|
|
191
191
|
version == o.version &&
|
|
192
192
|
name == o.name &&
|
|
193
193
|
namespace == o.namespace
|
|
@@ -202,7 +202,7 @@ module PulpAnsibleClient
|
|
|
202
202
|
# Calculates hash code according to all attributes.
|
|
203
203
|
# @return [Integer] Hash code
|
|
204
204
|
def hash
|
|
205
|
-
[
|
|
205
|
+
[pulp_href, pulp_created, prn, pulp_labels, pulp_last_updated, artifact, version, name, namespace].hash
|
|
206
206
|
end
|
|
207
207
|
|
|
208
208
|
# Builds the object from hash
|