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