pulp_ansible_client 0.11.0 → 0.11.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/AnsibleCollectionVersion.md +3 -3
- data/docs/AnsibleGitRemote.md +30 -30
- data/docs/AnsibleGitRemoteResponse.md +27 -27
- data/docs/ContentCollectionVersionsApi.md +3 -3
- data/docs/PatchedansibleGitRemote.md +30 -30
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +234 -234
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +147 -147
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +226 -226
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +1 -1
- data/spec/models/ansible_collection_version_spec.rb +2 -2
- data/spec/models/ansible_git_remote_response_spec.rb +18 -18
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- metadata +2 -2
@@ -15,64 +15,64 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Git Collection Remotes.
|
17
17
|
class PatchedansibleGitRemote
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# The username to authenticte to the proxy.
|
19
|
+
attr_accessor :proxy_username
|
20
20
|
|
21
|
-
|
21
|
+
# The proxy URL. Format: scheme://host:port
|
22
|
+
attr_accessor :proxy_url
|
22
23
|
|
23
|
-
#
|
24
|
-
attr_accessor :
|
24
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
25
|
+
attr_accessor :max_retries
|
25
26
|
|
26
|
-
#
|
27
|
-
attr_accessor :
|
27
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
28
|
+
attr_accessor :connect_timeout
|
29
|
+
|
30
|
+
# If True, TLS peer validation must be performed.
|
31
|
+
attr_accessor :tls_validation
|
28
32
|
|
29
33
|
# The username to be used for authentication when syncing.
|
30
34
|
attr_accessor :username
|
31
35
|
|
32
|
-
#
|
33
|
-
attr_accessor :
|
34
|
-
|
35
|
-
# The password to be used for authentication when syncing.
|
36
|
-
attr_accessor :password
|
36
|
+
# Limits requests per second for each concurrent downloader
|
37
|
+
attr_accessor :rate_limit
|
37
38
|
|
38
39
|
# A PEM encoded private key used for authentication.
|
39
40
|
attr_accessor :client_key
|
40
41
|
|
41
|
-
#
|
42
|
-
attr_accessor :
|
43
|
-
|
44
|
-
# If True, TLS peer validation must be performed.
|
45
|
-
attr_accessor :tls_validation
|
42
|
+
# A PEM encoded client certificate used for authentication.
|
43
|
+
attr_accessor :client_cert
|
46
44
|
|
47
|
-
#
|
48
|
-
attr_accessor :
|
45
|
+
# 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.
|
46
|
+
attr_accessor :sock_connect_timeout
|
49
47
|
|
50
|
-
#
|
51
|
-
attr_accessor :
|
48
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
49
|
+
attr_accessor :download_concurrency
|
52
50
|
|
53
|
-
|
54
|
-
attr_accessor :ca_cert
|
51
|
+
attr_accessor :pulp_labels
|
55
52
|
|
56
53
|
# The password to authenticte to the proxy.
|
57
54
|
attr_accessor :proxy_password
|
58
55
|
|
59
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
60
|
-
attr_accessor :connect_timeout
|
61
|
-
|
62
56
|
# Headers for aiohttp.Clientsession
|
63
57
|
attr_accessor :headers
|
64
58
|
|
65
|
-
# aiohttp.ClientTimeout.
|
66
|
-
attr_accessor :
|
59
|
+
# 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.
|
60
|
+
attr_accessor :sock_read_timeout
|
61
|
+
|
62
|
+
# A unique name for this remote.
|
63
|
+
attr_accessor :name
|
67
64
|
|
68
65
|
# The URL of an external content source.
|
69
66
|
attr_accessor :url
|
70
67
|
|
71
|
-
# The
|
72
|
-
attr_accessor :
|
68
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
69
|
+
attr_accessor :total_timeout
|
73
70
|
|
74
|
-
#
|
75
|
-
attr_accessor :
|
71
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
72
|
+
attr_accessor :ca_cert
|
73
|
+
|
74
|
+
# The password to be used for authentication when syncing.
|
75
|
+
attr_accessor :password
|
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
|
-
:'
|
87
|
-
:'pulp_labels' => :'pulp_labels',
|
88
|
-
:'client_cert' => :'client_cert',
|
89
|
-
:'rate_limit' => :'rate_limit',
|
90
|
-
:'username' => :'username',
|
91
|
-
:'total_timeout' => :'total_timeout',
|
92
|
-
:'password' => :'password',
|
93
|
-
:'client_key' => :'client_key',
|
86
|
+
:'proxy_username' => :'proxy_username',
|
94
87
|
:'proxy_url' => :'proxy_url',
|
95
|
-
:'tls_validation' => :'tls_validation',
|
96
88
|
:'max_retries' => :'max_retries',
|
97
|
-
:'name' => :'name',
|
98
|
-
:'ca_cert' => :'ca_cert',
|
99
|
-
:'proxy_password' => :'proxy_password',
|
100
89
|
:'connect_timeout' => :'connect_timeout',
|
101
|
-
:'
|
90
|
+
:'tls_validation' => :'tls_validation',
|
91
|
+
:'username' => :'username',
|
92
|
+
:'rate_limit' => :'rate_limit',
|
93
|
+
:'client_key' => :'client_key',
|
94
|
+
:'client_cert' => :'client_cert',
|
102
95
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
103
|
-
:'url' => :'url',
|
104
|
-
:'proxy_username' => :'proxy_username',
|
105
96
|
:'download_concurrency' => :'download_concurrency',
|
97
|
+
:'pulp_labels' => :'pulp_labels',
|
98
|
+
:'proxy_password' => :'proxy_password',
|
99
|
+
:'headers' => :'headers',
|
100
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
101
|
+
:'name' => :'name',
|
102
|
+
:'url' => :'url',
|
103
|
+
:'total_timeout' => :'total_timeout',
|
104
|
+
:'ca_cert' => :'ca_cert',
|
105
|
+
:'password' => :'password',
|
106
106
|
:'metadata_only' => :'metadata_only',
|
107
107
|
:'git_ref' => :'git_ref'
|
108
108
|
}
|
@@ -111,26 +111,26 @@ module PulpAnsibleClient
|
|
111
111
|
# Attribute type mapping.
|
112
112
|
def self.openapi_types
|
113
113
|
{
|
114
|
-
:'
|
115
|
-
:'pulp_labels' => :'Object',
|
116
|
-
:'client_cert' => :'String',
|
117
|
-
:'rate_limit' => :'Integer',
|
118
|
-
:'username' => :'String',
|
119
|
-
:'total_timeout' => :'Float',
|
120
|
-
:'password' => :'String',
|
121
|
-
:'client_key' => :'String',
|
114
|
+
:'proxy_username' => :'String',
|
122
115
|
:'proxy_url' => :'String',
|
123
|
-
:'tls_validation' => :'Boolean',
|
124
116
|
:'max_retries' => :'Integer',
|
125
|
-
:'name' => :'String',
|
126
|
-
:'ca_cert' => :'String',
|
127
|
-
:'proxy_password' => :'String',
|
128
117
|
:'connect_timeout' => :'Float',
|
129
|
-
:'
|
118
|
+
:'tls_validation' => :'Boolean',
|
119
|
+
:'username' => :'String',
|
120
|
+
:'rate_limit' => :'Integer',
|
121
|
+
:'client_key' => :'String',
|
122
|
+
:'client_cert' => :'String',
|
130
123
|
:'sock_connect_timeout' => :'Float',
|
131
|
-
:'url' => :'String',
|
132
|
-
:'proxy_username' => :'String',
|
133
124
|
:'download_concurrency' => :'Integer',
|
125
|
+
:'pulp_labels' => :'Object',
|
126
|
+
:'proxy_password' => :'String',
|
127
|
+
:'headers' => :'Array<Object>',
|
128
|
+
:'sock_read_timeout' => :'Float',
|
129
|
+
:'name' => :'String',
|
130
|
+
:'url' => :'String',
|
131
|
+
:'total_timeout' => :'Float',
|
132
|
+
:'ca_cert' => :'String',
|
133
|
+
:'password' => :'String',
|
134
134
|
:'metadata_only' => :'Boolean',
|
135
135
|
:'git_ref' => :'String'
|
136
136
|
}
|
@@ -139,21 +139,21 @@ module PulpAnsibleClient
|
|
139
139
|
# List of attributes with nullable: true
|
140
140
|
def self.openapi_nullable
|
141
141
|
Set.new([
|
142
|
-
:'
|
143
|
-
:'client_cert',
|
144
|
-
:'rate_limit',
|
145
|
-
:'username',
|
146
|
-
:'total_timeout',
|
147
|
-
:'password',
|
148
|
-
:'client_key',
|
142
|
+
:'proxy_username',
|
149
143
|
:'proxy_url',
|
150
144
|
:'max_retries',
|
151
|
-
:'ca_cert',
|
152
|
-
:'proxy_password',
|
153
145
|
:'connect_timeout',
|
146
|
+
:'username',
|
147
|
+
:'rate_limit',
|
148
|
+
:'client_key',
|
149
|
+
:'client_cert',
|
154
150
|
:'sock_connect_timeout',
|
155
|
-
:'proxy_username',
|
156
151
|
:'download_concurrency',
|
152
|
+
:'proxy_password',
|
153
|
+
:'sock_read_timeout',
|
154
|
+
:'total_timeout',
|
155
|
+
:'ca_cert',
|
156
|
+
:'password',
|
157
157
|
])
|
158
158
|
end
|
159
159
|
|
@@ -172,86 +172,86 @@ module PulpAnsibleClient
|
|
172
172
|
h[k.to_sym] = v
|
173
173
|
}
|
174
174
|
|
175
|
-
if attributes.key?(:'
|
176
|
-
self.
|
175
|
+
if attributes.key?(:'proxy_username')
|
176
|
+
self.proxy_username = attributes[:'proxy_username']
|
177
177
|
end
|
178
178
|
|
179
|
-
if attributes.key?(:'
|
180
|
-
self.
|
179
|
+
if attributes.key?(:'proxy_url')
|
180
|
+
self.proxy_url = attributes[:'proxy_url']
|
181
181
|
end
|
182
182
|
|
183
|
-
if attributes.key?(:'
|
184
|
-
self.
|
183
|
+
if attributes.key?(:'max_retries')
|
184
|
+
self.max_retries = attributes[:'max_retries']
|
185
185
|
end
|
186
186
|
|
187
|
-
if attributes.key?(:'
|
188
|
-
self.
|
187
|
+
if attributes.key?(:'connect_timeout')
|
188
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
189
189
|
end
|
190
190
|
|
191
|
-
if attributes.key?(:'
|
192
|
-
self.
|
191
|
+
if attributes.key?(:'tls_validation')
|
192
|
+
self.tls_validation = attributes[:'tls_validation']
|
193
193
|
end
|
194
194
|
|
195
|
-
if attributes.key?(:'
|
196
|
-
self.
|
195
|
+
if attributes.key?(:'username')
|
196
|
+
self.username = attributes[:'username']
|
197
197
|
end
|
198
198
|
|
199
|
-
if attributes.key?(:'
|
200
|
-
self.
|
199
|
+
if attributes.key?(:'rate_limit')
|
200
|
+
self.rate_limit = attributes[:'rate_limit']
|
201
201
|
end
|
202
202
|
|
203
203
|
if attributes.key?(:'client_key')
|
204
204
|
self.client_key = attributes[:'client_key']
|
205
205
|
end
|
206
206
|
|
207
|
-
if attributes.key?(:'
|
208
|
-
self.
|
209
|
-
end
|
210
|
-
|
211
|
-
if attributes.key?(:'tls_validation')
|
212
|
-
self.tls_validation = attributes[:'tls_validation']
|
207
|
+
if attributes.key?(:'client_cert')
|
208
|
+
self.client_cert = attributes[:'client_cert']
|
213
209
|
end
|
214
210
|
|
215
|
-
if attributes.key?(:'
|
216
|
-
self.
|
211
|
+
if attributes.key?(:'sock_connect_timeout')
|
212
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
217
213
|
end
|
218
214
|
|
219
|
-
if attributes.key?(:'
|
220
|
-
self.
|
215
|
+
if attributes.key?(:'download_concurrency')
|
216
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
221
217
|
end
|
222
218
|
|
223
|
-
if attributes.key?(:'
|
224
|
-
self.
|
219
|
+
if attributes.key?(:'pulp_labels')
|
220
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
225
221
|
end
|
226
222
|
|
227
223
|
if attributes.key?(:'proxy_password')
|
228
224
|
self.proxy_password = attributes[:'proxy_password']
|
229
225
|
end
|
230
226
|
|
231
|
-
if attributes.key?(:'connect_timeout')
|
232
|
-
self.connect_timeout = attributes[:'connect_timeout']
|
233
|
-
end
|
234
|
-
|
235
227
|
if attributes.key?(:'headers')
|
236
228
|
if (value = attributes[:'headers']).is_a?(Array)
|
237
229
|
self.headers = value
|
238
230
|
end
|
239
231
|
end
|
240
232
|
|
241
|
-
if attributes.key?(:'
|
242
|
-
self.
|
233
|
+
if attributes.key?(:'sock_read_timeout')
|
234
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
235
|
+
end
|
236
|
+
|
237
|
+
if attributes.key?(:'name')
|
238
|
+
self.name = attributes[:'name']
|
243
239
|
end
|
244
240
|
|
245
241
|
if attributes.key?(:'url')
|
246
242
|
self.url = attributes[:'url']
|
247
243
|
end
|
248
244
|
|
249
|
-
if attributes.key?(:'
|
250
|
-
self.
|
245
|
+
if attributes.key?(:'total_timeout')
|
246
|
+
self.total_timeout = attributes[:'total_timeout']
|
251
247
|
end
|
252
248
|
|
253
|
-
if attributes.key?(:'
|
254
|
-
self.
|
249
|
+
if attributes.key?(:'ca_cert')
|
250
|
+
self.ca_cert = attributes[:'ca_cert']
|
251
|
+
end
|
252
|
+
|
253
|
+
if attributes.key?(:'password')
|
254
|
+
self.password = attributes[:'password']
|
255
255
|
end
|
256
256
|
|
257
257
|
if attributes.key?(:'metadata_only')
|
@@ -267,64 +267,64 @@ module PulpAnsibleClient
|
|
267
267
|
# @return Array for valid properties with the reasons
|
268
268
|
def list_invalid_properties
|
269
269
|
invalid_properties = Array.new
|
270
|
-
if !@
|
271
|
-
invalid_properties.push('invalid value for "
|
272
|
-
end
|
273
|
-
|
274
|
-
if !@client_cert.nil? && @client_cert.to_s.length < 1
|
275
|
-
invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
|
270
|
+
if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
271
|
+
invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
|
276
272
|
end
|
277
273
|
|
278
|
-
if !@
|
279
|
-
invalid_properties.push('invalid value for "
|
274
|
+
if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
275
|
+
invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
|
280
276
|
end
|
281
277
|
|
282
|
-
if !@
|
283
|
-
invalid_properties.push('invalid value for "
|
278
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
279
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
284
280
|
end
|
285
281
|
|
286
|
-
if !@
|
287
|
-
invalid_properties.push('invalid value for "
|
282
|
+
if !@username.nil? && @username.to_s.length < 1
|
283
|
+
invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
|
288
284
|
end
|
289
285
|
|
290
286
|
if !@client_key.nil? && @client_key.to_s.length < 1
|
291
287
|
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
292
288
|
end
|
293
289
|
|
294
|
-
if !@
|
295
|
-
invalid_properties.push('invalid value for "
|
290
|
+
if !@client_cert.nil? && @client_cert.to_s.length < 1
|
291
|
+
invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
|
296
292
|
end
|
297
293
|
|
298
|
-
if !@
|
299
|
-
invalid_properties.push('invalid value for "
|
294
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
295
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
300
296
|
end
|
301
297
|
|
302
|
-
if !@
|
303
|
-
invalid_properties.push('invalid value for "
|
298
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
299
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
304
300
|
end
|
305
301
|
|
306
302
|
if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
307
303
|
invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
|
308
304
|
end
|
309
305
|
|
310
|
-
if !@
|
311
|
-
invalid_properties.push('invalid value for "
|
306
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
307
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
312
308
|
end
|
313
309
|
|
314
|
-
if !@
|
315
|
-
invalid_properties.push('invalid value for "
|
310
|
+
if !@name.nil? && @name.to_s.length < 1
|
311
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
316
312
|
end
|
317
313
|
|
318
314
|
if !@url.nil? && @url.to_s.length < 1
|
319
315
|
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
|
320
316
|
end
|
321
317
|
|
322
|
-
if !@
|
323
|
-
invalid_properties.push('invalid value for "
|
318
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
319
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
324
320
|
end
|
325
321
|
|
326
|
-
if !@
|
327
|
-
invalid_properties.push('invalid value for "
|
322
|
+
if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
323
|
+
invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
|
324
|
+
end
|
325
|
+
|
326
|
+
if !@password.nil? && @password.to_s.length < 1
|
327
|
+
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
328
328
|
end
|
329
329
|
|
330
330
|
if !@git_ref.nil? && @git_ref.to_s.length < 1
|
@@ -337,73 +337,63 @@ module PulpAnsibleClient
|
|
337
337
|
# Check to see if the all the properties in the model are valid
|
338
338
|
# @return true if the model is valid
|
339
339
|
def valid?
|
340
|
-
return false if !@
|
341
|
-
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
342
|
-
return false if !@username.nil? && @username.to_s.length < 1
|
343
|
-
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
344
|
-
return false if !@password.nil? && @password.to_s.length < 1
|
345
|
-
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
340
|
+
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
346
341
|
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
347
|
-
return false if !@name.nil? && @name.to_s.length < 1
|
348
|
-
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
349
|
-
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
350
342
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
343
|
+
return false if !@username.nil? && @username.to_s.length < 1
|
344
|
+
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
345
|
+
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
351
346
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
352
|
-
return false if !@url.nil? && @url.to_s.length < 1
|
353
|
-
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
354
347
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
348
|
+
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
349
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
350
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
351
|
+
return false if !@url.nil? && @url.to_s.length < 1
|
352
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
353
|
+
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
354
|
+
return false if !@password.nil? && @password.to_s.length < 1
|
355
355
|
return false if !@git_ref.nil? && @git_ref.to_s.length < 1
|
356
356
|
true
|
357
357
|
end
|
358
358
|
|
359
359
|
# Custom attribute writer method with validation
|
360
|
-
# @param [Object]
|
361
|
-
def
|
362
|
-
if !
|
363
|
-
fail ArgumentError, 'invalid value for "
|
364
|
-
end
|
365
|
-
|
366
|
-
@sock_read_timeout = sock_read_timeout
|
367
|
-
end
|
368
|
-
|
369
|
-
# Custom attribute writer method with validation
|
370
|
-
# @param [Object] client_cert Value to be assigned
|
371
|
-
def client_cert=(client_cert)
|
372
|
-
if !client_cert.nil? && client_cert.to_s.length < 1
|
373
|
-
fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
|
360
|
+
# @param [Object] proxy_username Value to be assigned
|
361
|
+
def proxy_username=(proxy_username)
|
362
|
+
if !proxy_username.nil? && proxy_username.to_s.length < 1
|
363
|
+
fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
|
374
364
|
end
|
375
365
|
|
376
|
-
@
|
366
|
+
@proxy_username = proxy_username
|
377
367
|
end
|
378
368
|
|
379
369
|
# Custom attribute writer method with validation
|
380
|
-
# @param [Object]
|
381
|
-
def
|
382
|
-
if !
|
383
|
-
fail ArgumentError, 'invalid value for "
|
370
|
+
# @param [Object] proxy_url Value to be assigned
|
371
|
+
def proxy_url=(proxy_url)
|
372
|
+
if !proxy_url.nil? && proxy_url.to_s.length < 1
|
373
|
+
fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
|
384
374
|
end
|
385
375
|
|
386
|
-
@
|
376
|
+
@proxy_url = proxy_url
|
387
377
|
end
|
388
378
|
|
389
379
|
# Custom attribute writer method with validation
|
390
|
-
# @param [Object]
|
391
|
-
def
|
392
|
-
if !
|
393
|
-
fail ArgumentError, 'invalid value for "
|
380
|
+
# @param [Object] connect_timeout Value to be assigned
|
381
|
+
def connect_timeout=(connect_timeout)
|
382
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
383
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
394
384
|
end
|
395
385
|
|
396
|
-
@
|
386
|
+
@connect_timeout = connect_timeout
|
397
387
|
end
|
398
388
|
|
399
389
|
# Custom attribute writer method with validation
|
400
|
-
# @param [Object]
|
401
|
-
def
|
402
|
-
if !
|
403
|
-
fail ArgumentError, 'invalid value for "
|
390
|
+
# @param [Object] username Value to be assigned
|
391
|
+
def username=(username)
|
392
|
+
if !username.nil? && username.to_s.length < 1
|
393
|
+
fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
|
404
394
|
end
|
405
395
|
|
406
|
-
@
|
396
|
+
@username = username
|
407
397
|
end
|
408
398
|
|
409
399
|
# Custom attribute writer method with validation
|
@@ -417,33 +407,33 @@ module PulpAnsibleClient
|
|
417
407
|
end
|
418
408
|
|
419
409
|
# Custom attribute writer method with validation
|
420
|
-
# @param [Object]
|
421
|
-
def
|
422
|
-
if !
|
423
|
-
fail ArgumentError, 'invalid value for "
|
410
|
+
# @param [Object] client_cert Value to be assigned
|
411
|
+
def client_cert=(client_cert)
|
412
|
+
if !client_cert.nil? && client_cert.to_s.length < 1
|
413
|
+
fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
|
424
414
|
end
|
425
415
|
|
426
|
-
@
|
416
|
+
@client_cert = client_cert
|
427
417
|
end
|
428
418
|
|
429
419
|
# Custom attribute writer method with validation
|
430
|
-
# @param [Object]
|
431
|
-
def
|
432
|
-
if !
|
433
|
-
fail ArgumentError, 'invalid value for "
|
420
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
421
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
422
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
423
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
434
424
|
end
|
435
425
|
|
436
|
-
@
|
426
|
+
@sock_connect_timeout = sock_connect_timeout
|
437
427
|
end
|
438
428
|
|
439
429
|
# Custom attribute writer method with validation
|
440
|
-
# @param [Object]
|
441
|
-
def
|
442
|
-
if !
|
443
|
-
fail ArgumentError, 'invalid value for "
|
430
|
+
# @param [Object] download_concurrency Value to be assigned
|
431
|
+
def download_concurrency=(download_concurrency)
|
432
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
433
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
444
434
|
end
|
445
435
|
|
446
|
-
@
|
436
|
+
@download_concurrency = download_concurrency
|
447
437
|
end
|
448
438
|
|
449
439
|
# Custom attribute writer method with validation
|
@@ -457,23 +447,23 @@ module PulpAnsibleClient
|
|
457
447
|
end
|
458
448
|
|
459
449
|
# Custom attribute writer method with validation
|
460
|
-
# @param [Object]
|
461
|
-
def
|
462
|
-
if !
|
463
|
-
fail ArgumentError, 'invalid value for "
|
450
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
451
|
+
def sock_read_timeout=(sock_read_timeout)
|
452
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
453
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
464
454
|
end
|
465
455
|
|
466
|
-
@
|
456
|
+
@sock_read_timeout = sock_read_timeout
|
467
457
|
end
|
468
458
|
|
469
459
|
# Custom attribute writer method with validation
|
470
|
-
# @param [Object]
|
471
|
-
def
|
472
|
-
if !
|
473
|
-
fail ArgumentError, 'invalid value for "
|
460
|
+
# @param [Object] name Value to be assigned
|
461
|
+
def name=(name)
|
462
|
+
if !name.nil? && name.to_s.length < 1
|
463
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
474
464
|
end
|
475
465
|
|
476
|
-
@
|
466
|
+
@name = name
|
477
467
|
end
|
478
468
|
|
479
469
|
# Custom attribute writer method with validation
|
@@ -487,23 +477,33 @@ module PulpAnsibleClient
|
|
487
477
|
end
|
488
478
|
|
489
479
|
# Custom attribute writer method with validation
|
490
|
-
# @param [Object]
|
491
|
-
def
|
492
|
-
if !
|
493
|
-
fail ArgumentError, 'invalid value for "
|
480
|
+
# @param [Object] total_timeout Value to be assigned
|
481
|
+
def total_timeout=(total_timeout)
|
482
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
483
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
494
484
|
end
|
495
485
|
|
496
|
-
@
|
486
|
+
@total_timeout = total_timeout
|
497
487
|
end
|
498
488
|
|
499
489
|
# Custom attribute writer method with validation
|
500
|
-
# @param [Object]
|
501
|
-
def
|
502
|
-
if !
|
503
|
-
fail ArgumentError, 'invalid value for "
|
490
|
+
# @param [Object] ca_cert Value to be assigned
|
491
|
+
def ca_cert=(ca_cert)
|
492
|
+
if !ca_cert.nil? && ca_cert.to_s.length < 1
|
493
|
+
fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
|
504
494
|
end
|
505
495
|
|
506
|
-
@
|
496
|
+
@ca_cert = ca_cert
|
497
|
+
end
|
498
|
+
|
499
|
+
# Custom attribute writer method with validation
|
500
|
+
# @param [Object] password Value to be assigned
|
501
|
+
def password=(password)
|
502
|
+
if !password.nil? && password.to_s.length < 1
|
503
|
+
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
|
504
|
+
end
|
505
|
+
|
506
|
+
@password = password
|
507
507
|
end
|
508
508
|
|
509
509
|
# Custom attribute writer method with validation
|
@@ -521,26 +521,26 @@ module PulpAnsibleClient
|
|
521
521
|
def ==(o)
|
522
522
|
return true if self.equal?(o)
|
523
523
|
self.class == o.class &&
|
524
|
-
|
525
|
-
pulp_labels == o.pulp_labels &&
|
526
|
-
client_cert == o.client_cert &&
|
527
|
-
rate_limit == o.rate_limit &&
|
528
|
-
username == o.username &&
|
529
|
-
total_timeout == o.total_timeout &&
|
530
|
-
password == o.password &&
|
531
|
-
client_key == o.client_key &&
|
524
|
+
proxy_username == o.proxy_username &&
|
532
525
|
proxy_url == o.proxy_url &&
|
533
|
-
tls_validation == o.tls_validation &&
|
534
526
|
max_retries == o.max_retries &&
|
535
|
-
name == o.name &&
|
536
|
-
ca_cert == o.ca_cert &&
|
537
|
-
proxy_password == o.proxy_password &&
|
538
527
|
connect_timeout == o.connect_timeout &&
|
539
|
-
|
528
|
+
tls_validation == o.tls_validation &&
|
529
|
+
username == o.username &&
|
530
|
+
rate_limit == o.rate_limit &&
|
531
|
+
client_key == o.client_key &&
|
532
|
+
client_cert == o.client_cert &&
|
540
533
|
sock_connect_timeout == o.sock_connect_timeout &&
|
541
|
-
url == o.url &&
|
542
|
-
proxy_username == o.proxy_username &&
|
543
534
|
download_concurrency == o.download_concurrency &&
|
535
|
+
pulp_labels == o.pulp_labels &&
|
536
|
+
proxy_password == o.proxy_password &&
|
537
|
+
headers == o.headers &&
|
538
|
+
sock_read_timeout == o.sock_read_timeout &&
|
539
|
+
name == o.name &&
|
540
|
+
url == o.url &&
|
541
|
+
total_timeout == o.total_timeout &&
|
542
|
+
ca_cert == o.ca_cert &&
|
543
|
+
password == o.password &&
|
544
544
|
metadata_only == o.metadata_only &&
|
545
545
|
git_ref == o.git_ref
|
546
546
|
end
|
@@ -554,7 +554,7 @@ module PulpAnsibleClient
|
|
554
554
|
# Calculates hash code according to all attributes.
|
555
555
|
# @return [Integer] Hash code
|
556
556
|
def hash
|
557
|
-
[
|
557
|
+
[proxy_username, proxy_url, max_retries, connect_timeout, tls_validation, username, rate_limit, client_key, client_cert, sock_connect_timeout, download_concurrency, pulp_labels, proxy_password, headers, sock_read_timeout, name, url, total_timeout, ca_cert, password, metadata_only, git_ref].hash
|
558
558
|
end
|
559
559
|
|
560
560
|
# Builds the object from hash
|