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