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