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 PatchedansibleGitRemote
|
19
|
-
#
|
20
|
-
attr_accessor :
|
19
|
+
# The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
|
20
|
+
attr_accessor :password
|
21
21
|
|
22
|
-
#
|
23
|
-
attr_accessor :
|
22
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
23
|
+
attr_accessor :download_concurrency
|
24
24
|
|
25
|
-
#
|
26
|
-
attr_accessor :
|
25
|
+
# Limits requests per second for each concurrent downloader
|
26
|
+
attr_accessor :rate_limit
|
27
|
+
|
28
|
+
# The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
|
29
|
+
attr_accessor :proxy_password
|
30
|
+
|
31
|
+
# The URL of an external content source.
|
32
|
+
attr_accessor :url
|
27
33
|
|
28
34
|
# If True, TLS peer validation must be performed.
|
29
35
|
attr_accessor :tls_validation
|
30
36
|
|
31
|
-
#
|
32
|
-
attr_accessor :
|
37
|
+
# A PEM encoded client certificate used for authentication.
|
38
|
+
attr_accessor :client_cert
|
33
39
|
|
34
|
-
#
|
35
|
-
attr_accessor :
|
40
|
+
# 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.
|
41
|
+
attr_accessor :sock_connect_timeout
|
36
42
|
|
37
|
-
# A
|
38
|
-
attr_accessor :
|
43
|
+
# A unique name for this remote.
|
44
|
+
attr_accessor :name
|
39
45
|
|
40
|
-
# aiohttp.ClientTimeout.
|
41
|
-
attr_accessor :
|
46
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
47
|
+
attr_accessor :connect_timeout
|
42
48
|
|
43
|
-
# A PEM encoded
|
44
|
-
attr_accessor :
|
49
|
+
# A PEM encoded private key used for authentication.
|
50
|
+
attr_accessor :client_key
|
45
51
|
|
46
|
-
|
47
|
-
attr_accessor :proxy_username
|
52
|
+
attr_accessor :pulp_labels
|
48
53
|
|
49
54
|
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
50
55
|
attr_accessor :ca_cert
|
51
56
|
|
52
|
-
#
|
53
|
-
attr_accessor :
|
54
|
-
|
55
|
-
# A unique name for this remote.
|
56
|
-
attr_accessor :name
|
57
|
-
|
58
|
-
# Limits requests per second for each concurrent downloader
|
59
|
-
attr_accessor :rate_limit
|
60
|
-
|
61
|
-
# The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
|
62
|
-
attr_accessor :proxy_password
|
57
|
+
# Headers for aiohttp.Clientsession
|
58
|
+
attr_accessor :headers
|
63
59
|
|
64
|
-
# aiohttp.ClientTimeout.
|
65
|
-
attr_accessor :
|
60
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
61
|
+
attr_accessor :total_timeout
|
66
62
|
|
67
|
-
#
|
68
|
-
attr_accessor :
|
63
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
64
|
+
attr_accessor :max_retries
|
69
65
|
|
70
|
-
|
66
|
+
# 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.
|
67
|
+
attr_accessor :sock_read_timeout
|
71
68
|
|
72
69
|
# The proxy URL. Format: scheme://host:port
|
73
70
|
attr_accessor :proxy_url
|
74
71
|
|
75
|
-
#
|
76
|
-
attr_accessor :
|
72
|
+
# The username to authenticte to the proxy.
|
73
|
+
attr_accessor :proxy_username
|
74
|
+
|
75
|
+
# The username to be used for authentication when syncing.
|
76
|
+
attr_accessor :username
|
77
77
|
|
78
78
|
# If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
|
79
79
|
attr_accessor :metadata_only
|
@@ -84,26 +84,26 @@ module PulpAnsibleClient
|
|
84
84
|
# Attribute mapping from ruby-style variable name to JSON key.
|
85
85
|
def self.attribute_map
|
86
86
|
{
|
87
|
-
:'total_timeout' => :'total_timeout',
|
88
|
-
:'connect_timeout' => :'connect_timeout',
|
89
|
-
:'headers' => :'headers',
|
90
|
-
:'tls_validation' => :'tls_validation',
|
91
|
-
:'max_retries' => :'max_retries',
|
92
87
|
:'password' => :'password',
|
93
|
-
:'
|
94
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
95
|
-
:'client_cert' => :'client_cert',
|
96
|
-
:'proxy_username' => :'proxy_username',
|
97
|
-
:'ca_cert' => :'ca_cert',
|
98
|
-
:'url' => :'url',
|
99
|
-
:'name' => :'name',
|
88
|
+
:'download_concurrency' => :'download_concurrency',
|
100
89
|
:'rate_limit' => :'rate_limit',
|
101
90
|
:'proxy_password' => :'proxy_password',
|
91
|
+
:'url' => :'url',
|
92
|
+
:'tls_validation' => :'tls_validation',
|
93
|
+
:'client_cert' => :'client_cert',
|
102
94
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
103
|
-
:'
|
95
|
+
:'name' => :'name',
|
96
|
+
:'connect_timeout' => :'connect_timeout',
|
97
|
+
:'client_key' => :'client_key',
|
104
98
|
:'pulp_labels' => :'pulp_labels',
|
99
|
+
:'ca_cert' => :'ca_cert',
|
100
|
+
:'headers' => :'headers',
|
101
|
+
:'total_timeout' => :'total_timeout',
|
102
|
+
:'max_retries' => :'max_retries',
|
103
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
105
104
|
:'proxy_url' => :'proxy_url',
|
106
|
-
:'
|
105
|
+
:'proxy_username' => :'proxy_username',
|
106
|
+
:'username' => :'username',
|
107
107
|
:'metadata_only' => :'metadata_only',
|
108
108
|
:'git_ref' => :'git_ref'
|
109
109
|
}
|
@@ -117,26 +117,26 @@ module PulpAnsibleClient
|
|
117
117
|
# Attribute type mapping.
|
118
118
|
def self.openapi_types
|
119
119
|
{
|
120
|
-
:'total_timeout' => :'Float',
|
121
|
-
:'connect_timeout' => :'Float',
|
122
|
-
:'headers' => :'Array<Object>',
|
123
|
-
:'tls_validation' => :'Boolean',
|
124
|
-
:'max_retries' => :'Integer',
|
125
120
|
:'password' => :'String',
|
126
|
-
:'
|
127
|
-
:'sock_read_timeout' => :'Float',
|
128
|
-
:'client_cert' => :'String',
|
129
|
-
:'proxy_username' => :'String',
|
130
|
-
:'ca_cert' => :'String',
|
131
|
-
:'url' => :'String',
|
132
|
-
:'name' => :'String',
|
121
|
+
:'download_concurrency' => :'Integer',
|
133
122
|
:'rate_limit' => :'Integer',
|
134
123
|
:'proxy_password' => :'String',
|
124
|
+
:'url' => :'String',
|
125
|
+
:'tls_validation' => :'Boolean',
|
126
|
+
:'client_cert' => :'String',
|
135
127
|
:'sock_connect_timeout' => :'Float',
|
136
|
-
:'
|
128
|
+
:'name' => :'String',
|
129
|
+
:'connect_timeout' => :'Float',
|
130
|
+
:'client_key' => :'String',
|
137
131
|
:'pulp_labels' => :'Hash<String, String>',
|
132
|
+
:'ca_cert' => :'String',
|
133
|
+
:'headers' => :'Array<Object>',
|
134
|
+
:'total_timeout' => :'Float',
|
135
|
+
:'max_retries' => :'Integer',
|
136
|
+
:'sock_read_timeout' => :'Float',
|
138
137
|
:'proxy_url' => :'String',
|
139
|
-
:'
|
138
|
+
:'proxy_username' => :'String',
|
139
|
+
:'username' => :'String',
|
140
140
|
:'metadata_only' => :'Boolean',
|
141
141
|
:'git_ref' => :'String'
|
142
142
|
}
|
@@ -145,21 +145,21 @@ module PulpAnsibleClient
|
|
145
145
|
# List of attributes with nullable: true
|
146
146
|
def self.openapi_nullable
|
147
147
|
Set.new([
|
148
|
-
:'total_timeout',
|
149
|
-
:'connect_timeout',
|
150
|
-
:'max_retries',
|
151
148
|
:'password',
|
152
|
-
:'
|
153
|
-
:'sock_read_timeout',
|
154
|
-
:'client_cert',
|
155
|
-
:'proxy_username',
|
156
|
-
:'ca_cert',
|
149
|
+
:'download_concurrency',
|
157
150
|
:'rate_limit',
|
158
151
|
:'proxy_password',
|
152
|
+
:'client_cert',
|
159
153
|
:'sock_connect_timeout',
|
160
|
-
:'
|
154
|
+
:'connect_timeout',
|
155
|
+
:'client_key',
|
156
|
+
:'ca_cert',
|
157
|
+
:'total_timeout',
|
158
|
+
:'max_retries',
|
159
|
+
:'sock_read_timeout',
|
161
160
|
:'proxy_url',
|
162
|
-
:'
|
161
|
+
:'proxy_username',
|
162
|
+
:'username',
|
163
163
|
])
|
164
164
|
end
|
165
165
|
|
@@ -178,88 +178,88 @@ module PulpAnsibleClient
|
|
178
178
|
h[k.to_sym] = v
|
179
179
|
}
|
180
180
|
|
181
|
-
if attributes.key?(:'
|
182
|
-
self.
|
183
|
-
end
|
184
|
-
|
185
|
-
if attributes.key?(:'connect_timeout')
|
186
|
-
self.connect_timeout = attributes[:'connect_timeout']
|
187
|
-
end
|
188
|
-
|
189
|
-
if attributes.key?(:'headers')
|
190
|
-
if (value = attributes[:'headers']).is_a?(Array)
|
191
|
-
self.headers = value
|
192
|
-
end
|
181
|
+
if attributes.key?(:'password')
|
182
|
+
self.password = attributes[:'password']
|
193
183
|
end
|
194
184
|
|
195
|
-
if attributes.key?(:'
|
196
|
-
self.
|
185
|
+
if attributes.key?(:'download_concurrency')
|
186
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
197
187
|
end
|
198
188
|
|
199
|
-
if attributes.key?(:'
|
200
|
-
self.
|
189
|
+
if attributes.key?(:'rate_limit')
|
190
|
+
self.rate_limit = attributes[:'rate_limit']
|
201
191
|
end
|
202
192
|
|
203
|
-
if attributes.key?(:'
|
204
|
-
self.
|
193
|
+
if attributes.key?(:'proxy_password')
|
194
|
+
self.proxy_password = attributes[:'proxy_password']
|
205
195
|
end
|
206
196
|
|
207
|
-
if attributes.key?(:'
|
208
|
-
self.
|
197
|
+
if attributes.key?(:'url')
|
198
|
+
self.url = attributes[:'url']
|
209
199
|
end
|
210
200
|
|
211
|
-
if attributes.key?(:'
|
212
|
-
self.
|
201
|
+
if attributes.key?(:'tls_validation')
|
202
|
+
self.tls_validation = attributes[:'tls_validation']
|
213
203
|
end
|
214
204
|
|
215
205
|
if attributes.key?(:'client_cert')
|
216
206
|
self.client_cert = attributes[:'client_cert']
|
217
207
|
end
|
218
208
|
|
219
|
-
if attributes.key?(:'
|
220
|
-
self.
|
209
|
+
if attributes.key?(:'sock_connect_timeout')
|
210
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
221
211
|
end
|
222
212
|
|
223
|
-
if attributes.key?(:'
|
224
|
-
self.
|
213
|
+
if attributes.key?(:'name')
|
214
|
+
self.name = attributes[:'name']
|
225
215
|
end
|
226
216
|
|
227
|
-
if attributes.key?(:'
|
228
|
-
self.
|
217
|
+
if attributes.key?(:'connect_timeout')
|
218
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
229
219
|
end
|
230
220
|
|
231
|
-
if attributes.key?(:'
|
232
|
-
self.
|
221
|
+
if attributes.key?(:'client_key')
|
222
|
+
self.client_key = attributes[:'client_key']
|
233
223
|
end
|
234
224
|
|
235
|
-
if attributes.key?(:'
|
236
|
-
|
225
|
+
if attributes.key?(:'pulp_labels')
|
226
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
227
|
+
self.pulp_labels = value
|
228
|
+
end
|
237
229
|
end
|
238
230
|
|
239
|
-
if attributes.key?(:'
|
240
|
-
self.
|
231
|
+
if attributes.key?(:'ca_cert')
|
232
|
+
self.ca_cert = attributes[:'ca_cert']
|
241
233
|
end
|
242
234
|
|
243
|
-
if attributes.key?(:'
|
244
|
-
|
235
|
+
if attributes.key?(:'headers')
|
236
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
237
|
+
self.headers = value
|
238
|
+
end
|
245
239
|
end
|
246
240
|
|
247
|
-
if attributes.key?(:'
|
248
|
-
self.
|
241
|
+
if attributes.key?(:'total_timeout')
|
242
|
+
self.total_timeout = attributes[:'total_timeout']
|
249
243
|
end
|
250
244
|
|
251
|
-
if attributes.key?(:'
|
252
|
-
|
253
|
-
|
254
|
-
|
245
|
+
if attributes.key?(:'max_retries')
|
246
|
+
self.max_retries = attributes[:'max_retries']
|
247
|
+
end
|
248
|
+
|
249
|
+
if attributes.key?(:'sock_read_timeout')
|
250
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
255
251
|
end
|
256
252
|
|
257
253
|
if attributes.key?(:'proxy_url')
|
258
254
|
self.proxy_url = attributes[:'proxy_url']
|
259
255
|
end
|
260
256
|
|
261
|
-
if attributes.key?(:'
|
262
|
-
self.
|
257
|
+
if attributes.key?(:'proxy_username')
|
258
|
+
self.proxy_username = attributes[:'proxy_username']
|
259
|
+
end
|
260
|
+
|
261
|
+
if attributes.key?(:'username')
|
262
|
+
self.username = attributes[:'username']
|
263
263
|
end
|
264
264
|
|
265
265
|
if attributes.key?(:'metadata_only')
|
@@ -276,64 +276,64 @@ 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 !@total_timeout.nil? && @total_timeout < 0.0
|
280
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
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
279
|
if !@password.nil? && @password.to_s.length < 1
|
288
280
|
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
289
281
|
end
|
290
282
|
|
291
|
-
if !@
|
292
|
-
invalid_properties.push('invalid value for "
|
283
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
284
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
293
285
|
end
|
294
286
|
|
295
|
-
if !@
|
296
|
-
invalid_properties.push('invalid value for "
|
287
|
+
if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
288
|
+
invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
|
289
|
+
end
|
290
|
+
|
291
|
+
if !@url.nil? && @url.to_s.length < 1
|
292
|
+
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
|
297
293
|
end
|
298
294
|
|
299
295
|
if !@client_cert.nil? && @client_cert.to_s.length < 1
|
300
296
|
invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
|
301
297
|
end
|
302
298
|
|
303
|
-
if !@
|
304
|
-
invalid_properties.push('invalid value for "
|
299
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
300
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
305
301
|
end
|
306
302
|
|
307
|
-
if !@
|
308
|
-
invalid_properties.push('invalid value for "
|
303
|
+
if !@name.nil? && @name.to_s.length < 1
|
304
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
309
305
|
end
|
310
306
|
|
311
|
-
if !@
|
312
|
-
invalid_properties.push('invalid value for "
|
307
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
308
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
313
309
|
end
|
314
310
|
|
315
|
-
if !@
|
316
|
-
invalid_properties.push('invalid value for "
|
311
|
+
if !@client_key.nil? && @client_key.to_s.length < 1
|
312
|
+
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
317
313
|
end
|
318
314
|
|
319
|
-
if !@
|
320
|
-
invalid_properties.push('invalid value for "
|
315
|
+
if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
316
|
+
invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
|
321
317
|
end
|
322
318
|
|
323
|
-
if !@
|
324
|
-
invalid_properties.push('invalid value for "
|
319
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
320
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
325
321
|
end
|
326
322
|
|
327
|
-
if !@
|
328
|
-
invalid_properties.push('invalid value for "
|
323
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
324
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
329
325
|
end
|
330
326
|
|
331
327
|
if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
332
328
|
invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
|
333
329
|
end
|
334
330
|
|
335
|
-
if !@
|
336
|
-
invalid_properties.push('invalid value for "
|
331
|
+
if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
332
|
+
invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
|
333
|
+
end
|
334
|
+
|
335
|
+
if !@username.nil? && @username.to_s.length < 1
|
336
|
+
invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
|
337
337
|
end
|
338
338
|
|
339
339
|
if !@git_ref.nil? && @git_ref.to_s.length < 1
|
@@ -347,73 +347,67 @@ module PulpAnsibleClient
|
|
347
347
|
# @return true if the model is valid
|
348
348
|
def valid?
|
349
349
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
350
|
-
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
351
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
352
350
|
return false if !@password.nil? && @password.to_s.length < 1
|
351
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
352
|
+
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
353
|
+
return false if !@url.nil? && @url.to_s.length < 1
|
354
|
+
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
355
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
356
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
357
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
353
358
|
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
359
|
+
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
360
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
354
361
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
355
|
-
return false if !@
|
362
|
+
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
356
363
|
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
357
|
-
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
358
|
-
return false if !@url.nil? && @url.to_s.length < 1
|
359
|
-
return false if !@name.nil? && @name.to_s.length < 1
|
360
|
-
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
361
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
362
364
|
return false if !@username.nil? && @username.to_s.length < 1
|
363
|
-
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
364
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
365
365
|
return false if !@git_ref.nil? && @git_ref.to_s.length < 1
|
366
366
|
true
|
367
367
|
end
|
368
368
|
|
369
369
|
# Custom attribute writer method with validation
|
370
|
-
# @param [Object]
|
371
|
-
def
|
372
|
-
if !
|
373
|
-
fail ArgumentError, 'invalid value for "
|
370
|
+
# @param [Object] password Value to be assigned
|
371
|
+
def password=(password)
|
372
|
+
if !password.nil? && password.to_s.length < 1
|
373
|
+
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
|
374
374
|
end
|
375
375
|
|
376
|
-
@
|
376
|
+
@password = password
|
377
377
|
end
|
378
378
|
|
379
379
|
# Custom attribute writer method with validation
|
380
|
-
# @param [Object]
|
381
|
-
def
|
382
|
-
if !
|
383
|
-
fail ArgumentError, 'invalid value for "
|
380
|
+
# @param [Object] download_concurrency Value to be assigned
|
381
|
+
def download_concurrency=(download_concurrency)
|
382
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
383
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
384
384
|
end
|
385
385
|
|
386
|
-
@
|
386
|
+
@download_concurrency = download_concurrency
|
387
387
|
end
|
388
388
|
|
389
389
|
# Custom attribute writer method with validation
|
390
|
-
# @param [Object]
|
391
|
-
def
|
392
|
-
if !
|
393
|
-
fail ArgumentError, 'invalid value for "
|
390
|
+
# @param [Object] proxy_password Value to be assigned
|
391
|
+
def proxy_password=(proxy_password)
|
392
|
+
if !proxy_password.nil? && proxy_password.to_s.length < 1
|
393
|
+
fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
|
394
394
|
end
|
395
395
|
|
396
|
-
@
|
396
|
+
@proxy_password = proxy_password
|
397
397
|
end
|
398
398
|
|
399
399
|
# Custom attribute writer method with validation
|
400
|
-
# @param [Object]
|
401
|
-
def
|
402
|
-
if
|
403
|
-
fail ArgumentError, '
|
400
|
+
# @param [Object] url Value to be assigned
|
401
|
+
def url=(url)
|
402
|
+
if url.nil?
|
403
|
+
fail ArgumentError, 'url cannot be nil'
|
404
404
|
end
|
405
405
|
|
406
|
-
|
407
|
-
|
408
|
-
|
409
|
-
# Custom attribute writer method with validation
|
410
|
-
# @param [Object] sock_read_timeout Value to be assigned
|
411
|
-
def sock_read_timeout=(sock_read_timeout)
|
412
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
413
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
406
|
+
if url.to_s.length < 1
|
407
|
+
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
|
414
408
|
end
|
415
409
|
|
416
|
-
@
|
410
|
+
@url = url
|
417
411
|
end
|
418
412
|
|
419
413
|
# Custom attribute writer method with validation
|
@@ -427,81 +421,77 @@ module PulpAnsibleClient
|
|
427
421
|
end
|
428
422
|
|
429
423
|
# Custom attribute writer method with validation
|
430
|
-
# @param [Object]
|
431
|
-
def
|
432
|
-
if !
|
433
|
-
fail ArgumentError, 'invalid value for "
|
424
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
425
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
426
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
427
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
434
428
|
end
|
435
429
|
|
436
|
-
@
|
430
|
+
@sock_connect_timeout = sock_connect_timeout
|
437
431
|
end
|
438
432
|
|
439
433
|
# Custom attribute writer method with validation
|
440
|
-
# @param [Object]
|
441
|
-
def
|
442
|
-
if
|
443
|
-
fail ArgumentError, '
|
434
|
+
# @param [Object] name Value to be assigned
|
435
|
+
def name=(name)
|
436
|
+
if name.nil?
|
437
|
+
fail ArgumentError, 'name cannot be nil'
|
444
438
|
end
|
445
439
|
|
446
|
-
|
440
|
+
if name.to_s.length < 1
|
441
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
442
|
+
end
|
443
|
+
|
444
|
+
@name = name
|
447
445
|
end
|
448
446
|
|
449
447
|
# Custom attribute writer method with validation
|
450
|
-
# @param [Object]
|
451
|
-
def
|
452
|
-
if
|
453
|
-
fail ArgumentError, '
|
454
|
-
end
|
455
|
-
|
456
|
-
if url.to_s.length < 1
|
457
|
-
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
|
448
|
+
# @param [Object] connect_timeout Value to be assigned
|
449
|
+
def connect_timeout=(connect_timeout)
|
450
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
451
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
458
452
|
end
|
459
453
|
|
460
|
-
@
|
454
|
+
@connect_timeout = connect_timeout
|
461
455
|
end
|
462
456
|
|
463
457
|
# Custom attribute writer method with validation
|
464
|
-
# @param [Object]
|
465
|
-
def
|
466
|
-
if
|
467
|
-
fail ArgumentError, '
|
468
|
-
end
|
469
|
-
|
470
|
-
if name.to_s.length < 1
|
471
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
458
|
+
# @param [Object] client_key Value to be assigned
|
459
|
+
def client_key=(client_key)
|
460
|
+
if !client_key.nil? && client_key.to_s.length < 1
|
461
|
+
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
472
462
|
end
|
473
463
|
|
474
|
-
@
|
464
|
+
@client_key = client_key
|
475
465
|
end
|
476
466
|
|
477
467
|
# Custom attribute writer method with validation
|
478
|
-
# @param [Object]
|
479
|
-
def
|
480
|
-
if !
|
481
|
-
fail ArgumentError, 'invalid value for "
|
468
|
+
# @param [Object] ca_cert Value to be assigned
|
469
|
+
def ca_cert=(ca_cert)
|
470
|
+
if !ca_cert.nil? && ca_cert.to_s.length < 1
|
471
|
+
fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
|
482
472
|
end
|
483
473
|
|
484
|
-
@
|
474
|
+
@ca_cert = ca_cert
|
485
475
|
end
|
486
476
|
|
487
477
|
# Custom attribute writer method with validation
|
488
|
-
# @param [Object]
|
489
|
-
def
|
490
|
-
if !
|
491
|
-
fail ArgumentError, 'invalid value for "
|
478
|
+
# @param [Object] total_timeout Value to be assigned
|
479
|
+
def total_timeout=(total_timeout)
|
480
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
481
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
492
482
|
end
|
493
483
|
|
494
|
-
@
|
484
|
+
@total_timeout = total_timeout
|
495
485
|
end
|
496
486
|
|
497
487
|
# Custom attribute writer method with validation
|
498
|
-
# @param [Object]
|
499
|
-
def
|
500
|
-
if !
|
501
|
-
fail ArgumentError, 'invalid value for "
|
488
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
489
|
+
def sock_read_timeout=(sock_read_timeout)
|
490
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
491
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
502
492
|
end
|
503
493
|
|
504
|
-
@
|
494
|
+
@sock_read_timeout = sock_read_timeout
|
505
495
|
end
|
506
496
|
|
507
497
|
# Custom attribute writer method with validation
|
@@ -515,13 +505,23 @@ module PulpAnsibleClient
|
|
515
505
|
end
|
516
506
|
|
517
507
|
# Custom attribute writer method with validation
|
518
|
-
# @param [Object]
|
519
|
-
def
|
520
|
-
if !
|
521
|
-
fail ArgumentError, 'invalid value for "
|
508
|
+
# @param [Object] proxy_username Value to be assigned
|
509
|
+
def proxy_username=(proxy_username)
|
510
|
+
if !proxy_username.nil? && proxy_username.to_s.length < 1
|
511
|
+
fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
|
522
512
|
end
|
523
513
|
|
524
|
-
@
|
514
|
+
@proxy_username = proxy_username
|
515
|
+
end
|
516
|
+
|
517
|
+
# Custom attribute writer method with validation
|
518
|
+
# @param [Object] username Value to be assigned
|
519
|
+
def username=(username)
|
520
|
+
if !username.nil? && username.to_s.length < 1
|
521
|
+
fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
|
522
|
+
end
|
523
|
+
|
524
|
+
@username = username
|
525
525
|
end
|
526
526
|
|
527
527
|
# Custom attribute writer method with validation
|
@@ -543,26 +543,26 @@ module PulpAnsibleClient
|
|
543
543
|
def ==(o)
|
544
544
|
return true if self.equal?(o)
|
545
545
|
self.class == o.class &&
|
546
|
-
total_timeout == o.total_timeout &&
|
547
|
-
connect_timeout == o.connect_timeout &&
|
548
|
-
headers == o.headers &&
|
549
|
-
tls_validation == o.tls_validation &&
|
550
|
-
max_retries == o.max_retries &&
|
551
546
|
password == o.password &&
|
552
|
-
|
553
|
-
sock_read_timeout == o.sock_read_timeout &&
|
554
|
-
client_cert == o.client_cert &&
|
555
|
-
proxy_username == o.proxy_username &&
|
556
|
-
ca_cert == o.ca_cert &&
|
557
|
-
url == o.url &&
|
558
|
-
name == o.name &&
|
547
|
+
download_concurrency == o.download_concurrency &&
|
559
548
|
rate_limit == o.rate_limit &&
|
560
549
|
proxy_password == o.proxy_password &&
|
550
|
+
url == o.url &&
|
551
|
+
tls_validation == o.tls_validation &&
|
552
|
+
client_cert == o.client_cert &&
|
561
553
|
sock_connect_timeout == o.sock_connect_timeout &&
|
562
|
-
|
554
|
+
name == o.name &&
|
555
|
+
connect_timeout == o.connect_timeout &&
|
556
|
+
client_key == o.client_key &&
|
563
557
|
pulp_labels == o.pulp_labels &&
|
558
|
+
ca_cert == o.ca_cert &&
|
559
|
+
headers == o.headers &&
|
560
|
+
total_timeout == o.total_timeout &&
|
561
|
+
max_retries == o.max_retries &&
|
562
|
+
sock_read_timeout == o.sock_read_timeout &&
|
564
563
|
proxy_url == o.proxy_url &&
|
565
|
-
|
564
|
+
proxy_username == o.proxy_username &&
|
565
|
+
username == o.username &&
|
566
566
|
metadata_only == o.metadata_only &&
|
567
567
|
git_ref == o.git_ref
|
568
568
|
end
|
@@ -576,7 +576,7 @@ module PulpAnsibleClient
|
|
576
576
|
# Calculates hash code according to all attributes.
|
577
577
|
# @return [Integer] Hash code
|
578
578
|
def hash
|
579
|
-
[
|
579
|
+
[password, download_concurrency, rate_limit, proxy_password, url, tls_validation, client_cert, sock_connect_timeout, name, connect_timeout, client_key, pulp_labels, ca_cert, headers, total_timeout, max_retries, sock_read_timeout, proxy_url, proxy_username, username, metadata_only, git_ref].hash
|
580
580
|
end
|
581
581
|
|
582
582
|
# Builds the object from hash
|