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