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