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