pulp_ansible_client 0.13.0 → 0.13.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +5 -7
- data/docs/AnsibleAnsibleRepository.md +1 -1
- data/docs/AnsibleAnsibleRepositoryResponse.md +1 -1
- data/docs/AnsibleCollectionVersion.md +3 -3
- data/docs/AnsibleGitRemote.md +26 -26
- data/docs/AnsibleGitRemoteResponse.md +24 -24
- data/docs/ContentCollectionVersionsApi.md +3 -3
- data/docs/PatchedansibleAnsibleRepository.md +1 -1
- data/docs/PatchedansibleGitRemote.md +26 -26
- data/docs/Repair.md +17 -0
- data/docs/RepositoriesAnsibleVersionsApi.md +4 -4
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -3
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +9 -9
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +3 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +3 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +220 -220
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +128 -128
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +3 -1
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +215 -215
- data/lib/pulp_ansible_client/models/{repository_version.rb → repair.rb} +13 -12
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +1 -3
- data/spec/api/content_collection_versions_api_spec.rb +1 -1
- data/spec/api/repositories_ansible_versions_api_spec.rb +1 -1
- data/spec/models/ansible_collection_version_spec.rb +2 -2
- data/spec/models/ansible_git_remote_response_spec.rb +17 -17
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- data/spec/models/{repository_version_spec.rb → repair_spec.rb} +7 -7
- metadata +102 -110
- data/docs/ContentSummary.md +0 -21
- data/docs/KeyringEnum.md +0 -16
- data/docs/RepositoryVersion.md +0 -17
- data/lib/pulp_ansible_client/models/content_summary.rb +0 -246
- data/lib/pulp_ansible_client/models/keyring_enum.rb +0 -40
- data/spec/models/content_summary_spec.rb +0 -53
- data/spec/models/keyring_enum_spec.rb +0 -35
@@ -15,64 +15,64 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Git Collection Remotes.
|
17
17
|
class PatchedansibleGitRemote
|
18
|
-
#
|
19
|
-
attr_accessor :
|
18
|
+
# The proxy URL. Format: scheme://host:port
|
19
|
+
attr_accessor :proxy_url
|
20
20
|
|
21
|
-
# The
|
22
|
-
attr_accessor :
|
21
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
22
|
+
attr_accessor :total_timeout
|
23
|
+
|
24
|
+
# A unique name for this remote.
|
25
|
+
attr_accessor :name
|
26
|
+
|
27
|
+
# Headers for aiohttp.Clientsession
|
28
|
+
attr_accessor :headers
|
23
29
|
|
24
30
|
attr_accessor :pulp_labels
|
25
31
|
|
26
|
-
#
|
27
|
-
attr_accessor :
|
32
|
+
# A PEM encoded client certificate used for authentication.
|
33
|
+
attr_accessor :client_cert
|
28
34
|
|
29
|
-
# aiohttp.ClientTimeout.
|
30
|
-
attr_accessor :
|
35
|
+
# 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.
|
36
|
+
attr_accessor :sock_connect_timeout
|
31
37
|
|
32
|
-
#
|
33
|
-
attr_accessor :
|
38
|
+
# 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.
|
39
|
+
attr_accessor :sock_read_timeout
|
40
|
+
|
41
|
+
# The password to authenticte to the proxy.
|
42
|
+
attr_accessor :proxy_password
|
43
|
+
|
44
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
45
|
+
attr_accessor :max_retries
|
34
46
|
|
35
47
|
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
36
48
|
attr_accessor :ca_cert
|
37
49
|
|
50
|
+
# If True, TLS peer validation must be performed.
|
51
|
+
attr_accessor :tls_validation
|
52
|
+
|
38
53
|
# A PEM encoded private key used for authentication.
|
39
54
|
attr_accessor :client_key
|
40
55
|
|
41
|
-
#
|
42
|
-
attr_accessor :
|
43
|
-
|
44
|
-
# 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.
|
45
|
-
attr_accessor :sock_connect_timeout
|
46
|
-
|
47
|
-
# Headers for aiohttp.Clientsession
|
48
|
-
attr_accessor :headers
|
56
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
57
|
+
attr_accessor :download_concurrency
|
49
58
|
|
50
59
|
# The username to be used for authentication when syncing.
|
51
60
|
attr_accessor :username
|
52
61
|
|
53
|
-
#
|
54
|
-
attr_accessor :
|
62
|
+
# Limits requests per second for each concurrent downloader
|
63
|
+
attr_accessor :rate_limit
|
55
64
|
|
56
|
-
# The
|
57
|
-
attr_accessor :
|
65
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
66
|
+
attr_accessor :connect_timeout
|
58
67
|
|
59
68
|
# The username to authenticte to the proxy.
|
60
69
|
attr_accessor :proxy_username
|
61
70
|
|
62
|
-
# 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.
|
63
|
-
attr_accessor :sock_read_timeout
|
64
|
-
|
65
|
-
# A PEM encoded client certificate used for authentication.
|
66
|
-
attr_accessor :client_cert
|
67
|
-
|
68
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
69
|
-
attr_accessor :connect_timeout
|
70
|
-
|
71
71
|
# The URL of an external content source.
|
72
72
|
attr_accessor :url
|
73
73
|
|
74
|
-
#
|
75
|
-
attr_accessor :
|
74
|
+
# The password to be used for authentication when syncing.
|
75
|
+
attr_accessor :password
|
76
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
|
@@ -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
|
-
:'
|
87
|
-
:'
|
86
|
+
:'proxy_url' => :'proxy_url',
|
87
|
+
:'total_timeout' => :'total_timeout',
|
88
|
+
:'name' => :'name',
|
89
|
+
:'headers' => :'headers',
|
88
90
|
:'pulp_labels' => :'pulp_labels',
|
91
|
+
:'client_cert' => :'client_cert',
|
92
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
93
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
94
|
+
:'proxy_password' => :'proxy_password',
|
89
95
|
:'max_retries' => :'max_retries',
|
90
|
-
:'total_timeout' => :'total_timeout',
|
91
|
-
:'proxy_url' => :'proxy_url',
|
92
96
|
:'ca_cert' => :'ca_cert',
|
97
|
+
:'tls_validation' => :'tls_validation',
|
93
98
|
:'client_key' => :'client_key',
|
94
|
-
:'rate_limit' => :'rate_limit',
|
95
|
-
:'sock_connect_timeout' => :'sock_connect_timeout',
|
96
|
-
:'headers' => :'headers',
|
97
|
-
:'username' => :'username',
|
98
99
|
:'download_concurrency' => :'download_concurrency',
|
99
|
-
:'
|
100
|
-
:'
|
101
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
102
|
-
:'client_cert' => :'client_cert',
|
100
|
+
:'username' => :'username',
|
101
|
+
:'rate_limit' => :'rate_limit',
|
103
102
|
:'connect_timeout' => :'connect_timeout',
|
103
|
+
:'proxy_username' => :'proxy_username',
|
104
104
|
:'url' => :'url',
|
105
|
-
:'
|
105
|
+
:'password' => :'password',
|
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
|
-
:'
|
115
|
-
:'
|
114
|
+
:'proxy_url' => :'String',
|
115
|
+
:'total_timeout' => :'Float',
|
116
|
+
:'name' => :'String',
|
117
|
+
:'headers' => :'Array<Object>',
|
116
118
|
:'pulp_labels' => :'Object',
|
119
|
+
:'client_cert' => :'String',
|
120
|
+
:'sock_connect_timeout' => :'Float',
|
121
|
+
:'sock_read_timeout' => :'Float',
|
122
|
+
:'proxy_password' => :'String',
|
117
123
|
:'max_retries' => :'Integer',
|
118
|
-
:'total_timeout' => :'Float',
|
119
|
-
:'proxy_url' => :'String',
|
120
124
|
:'ca_cert' => :'String',
|
125
|
+
:'tls_validation' => :'Boolean',
|
121
126
|
:'client_key' => :'String',
|
122
|
-
:'rate_limit' => :'Integer',
|
123
|
-
:'sock_connect_timeout' => :'Float',
|
124
|
-
:'headers' => :'Array<Object>',
|
125
|
-
:'username' => :'String',
|
126
127
|
:'download_concurrency' => :'Integer',
|
127
|
-
:'
|
128
|
-
:'
|
129
|
-
:'sock_read_timeout' => :'Float',
|
130
|
-
:'client_cert' => :'String',
|
128
|
+
:'username' => :'String',
|
129
|
+
:'rate_limit' => :'Integer',
|
131
130
|
:'connect_timeout' => :'Float',
|
131
|
+
:'proxy_username' => :'String',
|
132
132
|
:'url' => :'String',
|
133
|
-
:'
|
133
|
+
:'password' => :'String',
|
134
134
|
:'metadata_only' => :'Boolean',
|
135
135
|
:'git_ref' => :'String'
|
136
136
|
}
|
@@ -139,21 +139,21 @@ module PulpAnsibleClient
|
|
139
139
|
# List of attributes with nullable: true
|
140
140
|
def self.openapi_nullable
|
141
141
|
Set.new([
|
142
|
+
:'proxy_url',
|
143
|
+
:'total_timeout',
|
144
|
+
:'client_cert',
|
145
|
+
:'sock_connect_timeout',
|
146
|
+
:'sock_read_timeout',
|
142
147
|
:'proxy_password',
|
143
148
|
:'max_retries',
|
144
|
-
:'total_timeout',
|
145
|
-
:'proxy_url',
|
146
149
|
:'ca_cert',
|
147
150
|
:'client_key',
|
148
|
-
:'rate_limit',
|
149
|
-
:'sock_connect_timeout',
|
150
|
-
:'username',
|
151
151
|
:'download_concurrency',
|
152
|
-
:'
|
153
|
-
:'
|
154
|
-
:'sock_read_timeout',
|
155
|
-
:'client_cert',
|
152
|
+
:'username',
|
153
|
+
:'rate_limit',
|
156
154
|
:'connect_timeout',
|
155
|
+
:'proxy_username',
|
156
|
+
:'password',
|
157
157
|
])
|
158
158
|
end
|
159
159
|
|
@@ -172,86 +172,86 @@ module PulpAnsibleClient
|
|
172
172
|
h[k.to_sym] = v
|
173
173
|
}
|
174
174
|
|
175
|
-
if attributes.key?(:'
|
176
|
-
self.
|
177
|
-
end
|
178
|
-
|
179
|
-
if attributes.key?(:'proxy_password')
|
180
|
-
self.proxy_password = attributes[:'proxy_password']
|
181
|
-
end
|
182
|
-
|
183
|
-
if attributes.key?(:'pulp_labels')
|
184
|
-
self.pulp_labels = attributes[:'pulp_labels']
|
185
|
-
end
|
186
|
-
|
187
|
-
if attributes.key?(:'max_retries')
|
188
|
-
self.max_retries = attributes[:'max_retries']
|
175
|
+
if attributes.key?(:'proxy_url')
|
176
|
+
self.proxy_url = attributes[:'proxy_url']
|
189
177
|
end
|
190
178
|
|
191
179
|
if attributes.key?(:'total_timeout')
|
192
180
|
self.total_timeout = attributes[:'total_timeout']
|
193
181
|
end
|
194
182
|
|
195
|
-
if attributes.key?(:'
|
196
|
-
self.
|
183
|
+
if attributes.key?(:'name')
|
184
|
+
self.name = attributes[:'name']
|
197
185
|
end
|
198
186
|
|
199
|
-
if attributes.key?(:'
|
200
|
-
|
187
|
+
if attributes.key?(:'headers')
|
188
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
189
|
+
self.headers = value
|
190
|
+
end
|
201
191
|
end
|
202
192
|
|
203
|
-
if attributes.key?(:'
|
204
|
-
self.
|
193
|
+
if attributes.key?(:'pulp_labels')
|
194
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
205
195
|
end
|
206
196
|
|
207
|
-
if attributes.key?(:'
|
208
|
-
self.
|
197
|
+
if attributes.key?(:'client_cert')
|
198
|
+
self.client_cert = attributes[:'client_cert']
|
209
199
|
end
|
210
200
|
|
211
201
|
if attributes.key?(:'sock_connect_timeout')
|
212
202
|
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
213
203
|
end
|
214
204
|
|
215
|
-
if attributes.key?(:'
|
216
|
-
|
217
|
-
self.headers = value
|
218
|
-
end
|
205
|
+
if attributes.key?(:'sock_read_timeout')
|
206
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
219
207
|
end
|
220
208
|
|
221
|
-
if attributes.key?(:'
|
222
|
-
self.
|
209
|
+
if attributes.key?(:'proxy_password')
|
210
|
+
self.proxy_password = attributes[:'proxy_password']
|
223
211
|
end
|
224
212
|
|
225
|
-
if attributes.key?(:'
|
226
|
-
self.
|
213
|
+
if attributes.key?(:'max_retries')
|
214
|
+
self.max_retries = attributes[:'max_retries']
|
227
215
|
end
|
228
216
|
|
229
|
-
if attributes.key?(:'
|
230
|
-
self.
|
217
|
+
if attributes.key?(:'ca_cert')
|
218
|
+
self.ca_cert = attributes[:'ca_cert']
|
231
219
|
end
|
232
220
|
|
233
|
-
if attributes.key?(:'
|
234
|
-
self.
|
221
|
+
if attributes.key?(:'tls_validation')
|
222
|
+
self.tls_validation = attributes[:'tls_validation']
|
235
223
|
end
|
236
224
|
|
237
|
-
if attributes.key?(:'
|
238
|
-
self.
|
225
|
+
if attributes.key?(:'client_key')
|
226
|
+
self.client_key = attributes[:'client_key']
|
239
227
|
end
|
240
228
|
|
241
|
-
if attributes.key?(:'
|
242
|
-
self.
|
229
|
+
if attributes.key?(:'download_concurrency')
|
230
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
231
|
+
end
|
232
|
+
|
233
|
+
if attributes.key?(:'username')
|
234
|
+
self.username = attributes[:'username']
|
235
|
+
end
|
236
|
+
|
237
|
+
if attributes.key?(:'rate_limit')
|
238
|
+
self.rate_limit = attributes[:'rate_limit']
|
243
239
|
end
|
244
240
|
|
245
241
|
if attributes.key?(:'connect_timeout')
|
246
242
|
self.connect_timeout = attributes[:'connect_timeout']
|
247
243
|
end
|
248
244
|
|
245
|
+
if attributes.key?(:'proxy_username')
|
246
|
+
self.proxy_username = attributes[:'proxy_username']
|
247
|
+
end
|
248
|
+
|
249
249
|
if attributes.key?(:'url')
|
250
250
|
self.url = attributes[:'url']
|
251
251
|
end
|
252
252
|
|
253
|
-
if attributes.key?(:'
|
254
|
-
self.
|
253
|
+
if attributes.key?(:'password')
|
254
|
+
self.password = attributes[:'password']
|
255
255
|
end
|
256
256
|
|
257
257
|
if attributes.key?(:'metadata_only')
|
@@ -267,64 +267,64 @@ 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_url.nil? && @proxy_url.to_s.length < 1
|
271
|
+
invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
|
272
272
|
end
|
273
273
|
|
274
274
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
275
275
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
276
276
|
end
|
277
277
|
|
278
|
-
if !@
|
279
|
-
invalid_properties.push('invalid value for "
|
280
|
-
end
|
281
|
-
|
282
|
-
if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
283
|
-
invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
|
278
|
+
if !@name.nil? && @name.to_s.length < 1
|
279
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
284
280
|
end
|
285
281
|
|
286
|
-
if !@
|
287
|
-
invalid_properties.push('invalid value for "
|
282
|
+
if !@client_cert.nil? && @client_cert.to_s.length < 1
|
283
|
+
invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
|
288
284
|
end
|
289
285
|
|
290
286
|
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
291
287
|
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
292
288
|
end
|
293
289
|
|
294
|
-
if !@
|
295
|
-
invalid_properties.push('invalid value for "
|
290
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
291
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
296
292
|
end
|
297
293
|
|
298
|
-
if !@
|
299
|
-
invalid_properties.push('invalid value for "
|
294
|
+
if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
295
|
+
invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
|
300
296
|
end
|
301
297
|
|
302
|
-
if !@
|
303
|
-
invalid_properties.push('invalid value for "
|
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.')
|
304
300
|
end
|
305
301
|
|
306
|
-
if !@
|
307
|
-
invalid_properties.push('invalid value for "
|
302
|
+
if !@client_key.nil? && @client_key.to_s.length < 1
|
303
|
+
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
308
304
|
end
|
309
305
|
|
310
|
-
if !@
|
311
|
-
invalid_properties.push('invalid value for "
|
306
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
307
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
312
308
|
end
|
313
309
|
|
314
|
-
if !@
|
315
|
-
invalid_properties.push('invalid value for "
|
310
|
+
if !@username.nil? && @username.to_s.length < 1
|
311
|
+
invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
|
316
312
|
end
|
317
313
|
|
318
314
|
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
319
315
|
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
320
316
|
end
|
321
317
|
|
318
|
+
if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
319
|
+
invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
|
320
|
+
end
|
321
|
+
|
322
322
|
if !@url.nil? && @url.to_s.length < 1
|
323
323
|
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
|
324
324
|
end
|
325
325
|
|
326
|
-
if !@
|
327
|
-
invalid_properties.push('invalid value for "
|
326
|
+
if !@password.nil? && @password.to_s.length < 1
|
327
|
+
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
328
328
|
end
|
329
329
|
|
330
330
|
if !@git_ref.nil? && @git_ref.to_s.length < 1
|
@@ -337,33 +337,33 @@ module PulpAnsibleClient
|
|
337
337
|
# Check to see if the all the properties in the model are valid
|
338
338
|
# @return true if the model is valid
|
339
339
|
def valid?
|
340
|
-
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
341
|
-
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
342
340
|
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
341
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
342
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
343
|
+
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
344
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
345
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
346
|
+
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
343
347
|
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
344
348
|
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
345
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
346
|
-
return false if !@username.nil? && @username.to_s.length < 1
|
347
349
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
348
|
-
return false if !@
|
349
|
-
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
350
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
351
|
-
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
350
|
+
return false if !@username.nil? && @username.to_s.length < 1
|
352
351
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
352
|
+
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
353
353
|
return false if !@url.nil? && @url.to_s.length < 1
|
354
|
-
return false if !@
|
354
|
+
return false if !@password.nil? && @password.to_s.length < 1
|
355
355
|
return false if !@git_ref.nil? && @git_ref.to_s.length < 1
|
356
356
|
true
|
357
357
|
end
|
358
358
|
|
359
359
|
# Custom attribute writer method with validation
|
360
|
-
# @param [Object]
|
361
|
-
def
|
362
|
-
if !
|
363
|
-
fail ArgumentError, 'invalid value for "
|
360
|
+
# @param [Object] proxy_url Value to be assigned
|
361
|
+
def proxy_url=(proxy_url)
|
362
|
+
if !proxy_url.nil? && proxy_url.to_s.length < 1
|
363
|
+
fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
|
364
364
|
end
|
365
365
|
|
366
|
-
@
|
366
|
+
@proxy_url = proxy_url
|
367
367
|
end
|
368
368
|
|
369
369
|
# Custom attribute writer method with validation
|
@@ -377,33 +377,23 @@ module PulpAnsibleClient
|
|
377
377
|
end
|
378
378
|
|
379
379
|
# Custom attribute writer method with validation
|
380
|
-
# @param [Object]
|
381
|
-
def
|
382
|
-
if !
|
383
|
-
fail ArgumentError, 'invalid value for "
|
384
|
-
end
|
385
|
-
|
386
|
-
@proxy_url = proxy_url
|
387
|
-
end
|
388
|
-
|
389
|
-
# Custom attribute writer method with validation
|
390
|
-
# @param [Object] ca_cert Value to be assigned
|
391
|
-
def ca_cert=(ca_cert)
|
392
|
-
if !ca_cert.nil? && ca_cert.to_s.length < 1
|
393
|
-
fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
|
380
|
+
# @param [Object] name Value to be assigned
|
381
|
+
def name=(name)
|
382
|
+
if !name.nil? && name.to_s.length < 1
|
383
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
394
384
|
end
|
395
385
|
|
396
|
-
@
|
386
|
+
@name = name
|
397
387
|
end
|
398
388
|
|
399
389
|
# Custom attribute writer method with validation
|
400
|
-
# @param [Object]
|
401
|
-
def
|
402
|
-
if !
|
403
|
-
fail ArgumentError, 'invalid value for "
|
390
|
+
# @param [Object] client_cert Value to be assigned
|
391
|
+
def client_cert=(client_cert)
|
392
|
+
if !client_cert.nil? && client_cert.to_s.length < 1
|
393
|
+
fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
|
404
394
|
end
|
405
395
|
|
406
|
-
@
|
396
|
+
@client_cert = client_cert
|
407
397
|
end
|
408
398
|
|
409
399
|
# Custom attribute writer method with validation
|
@@ -417,63 +407,63 @@ module PulpAnsibleClient
|
|
417
407
|
end
|
418
408
|
|
419
409
|
# Custom attribute writer method with validation
|
420
|
-
# @param [Object]
|
421
|
-
def
|
422
|
-
if !
|
423
|
-
fail ArgumentError, 'invalid value for "
|
410
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
411
|
+
def sock_read_timeout=(sock_read_timeout)
|
412
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
413
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
424
414
|
end
|
425
415
|
|
426
|
-
@
|
416
|
+
@sock_read_timeout = sock_read_timeout
|
427
417
|
end
|
428
418
|
|
429
419
|
# Custom attribute writer method with validation
|
430
|
-
# @param [Object]
|
431
|
-
def
|
432
|
-
if !
|
433
|
-
fail ArgumentError, 'invalid value for "
|
420
|
+
# @param [Object] proxy_password Value to be assigned
|
421
|
+
def proxy_password=(proxy_password)
|
422
|
+
if !proxy_password.nil? && proxy_password.to_s.length < 1
|
423
|
+
fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
|
434
424
|
end
|
435
425
|
|
436
|
-
@
|
426
|
+
@proxy_password = proxy_password
|
437
427
|
end
|
438
428
|
|
439
429
|
# Custom attribute writer method with validation
|
440
|
-
# @param [Object]
|
441
|
-
def
|
442
|
-
if !
|
443
|
-
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.'
|
444
434
|
end
|
445
435
|
|
446
|
-
@
|
436
|
+
@ca_cert = ca_cert
|
447
437
|
end
|
448
438
|
|
449
439
|
# Custom attribute writer method with validation
|
450
|
-
# @param [Object]
|
451
|
-
def
|
452
|
-
if !
|
453
|
-
fail ArgumentError, 'invalid value for "
|
440
|
+
# @param [Object] client_key Value to be assigned
|
441
|
+
def client_key=(client_key)
|
442
|
+
if !client_key.nil? && client_key.to_s.length < 1
|
443
|
+
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
454
444
|
end
|
455
445
|
|
456
|
-
@
|
446
|
+
@client_key = client_key
|
457
447
|
end
|
458
448
|
|
459
449
|
# Custom attribute writer method with validation
|
460
|
-
# @param [Object]
|
461
|
-
def
|
462
|
-
if !
|
463
|
-
fail ArgumentError, 'invalid value for "
|
450
|
+
# @param [Object] download_concurrency Value to be assigned
|
451
|
+
def download_concurrency=(download_concurrency)
|
452
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
453
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
464
454
|
end
|
465
455
|
|
466
|
-
@
|
456
|
+
@download_concurrency = download_concurrency
|
467
457
|
end
|
468
458
|
|
469
459
|
# Custom attribute writer method with validation
|
470
|
-
# @param [Object]
|
471
|
-
def
|
472
|
-
if !
|
473
|
-
fail ArgumentError, 'invalid value for "
|
460
|
+
# @param [Object] username Value to be assigned
|
461
|
+
def username=(username)
|
462
|
+
if !username.nil? && username.to_s.length < 1
|
463
|
+
fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
|
474
464
|
end
|
475
465
|
|
476
|
-
@
|
466
|
+
@username = username
|
477
467
|
end
|
478
468
|
|
479
469
|
# Custom attribute writer method with validation
|
@@ -486,6 +476,16 @@ module PulpAnsibleClient
|
|
486
476
|
@connect_timeout = connect_timeout
|
487
477
|
end
|
488
478
|
|
479
|
+
# Custom attribute writer method with validation
|
480
|
+
# @param [Object] proxy_username Value to be assigned
|
481
|
+
def proxy_username=(proxy_username)
|
482
|
+
if !proxy_username.nil? && proxy_username.to_s.length < 1
|
483
|
+
fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
|
484
|
+
end
|
485
|
+
|
486
|
+
@proxy_username = proxy_username
|
487
|
+
end
|
488
|
+
|
489
489
|
# Custom attribute writer method with validation
|
490
490
|
# @param [Object] url Value to be assigned
|
491
491
|
def url=(url)
|
@@ -497,13 +497,13 @@ module PulpAnsibleClient
|
|
497
497
|
end
|
498
498
|
|
499
499
|
# Custom attribute writer method with validation
|
500
|
-
# @param [Object]
|
501
|
-
def
|
502
|
-
if !
|
503
|
-
fail ArgumentError, 'invalid value for "
|
500
|
+
# @param [Object] password Value to be assigned
|
501
|
+
def password=(password)
|
502
|
+
if !password.nil? && password.to_s.length < 1
|
503
|
+
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
|
504
504
|
end
|
505
505
|
|
506
|
-
@
|
506
|
+
@password = password
|
507
507
|
end
|
508
508
|
|
509
509
|
# Custom attribute writer method with validation
|
@@ -521,26 +521,26 @@ module PulpAnsibleClient
|
|
521
521
|
def ==(o)
|
522
522
|
return true if self.equal?(o)
|
523
523
|
self.class == o.class &&
|
524
|
-
|
525
|
-
|
524
|
+
proxy_url == o.proxy_url &&
|
525
|
+
total_timeout == o.total_timeout &&
|
526
|
+
name == o.name &&
|
527
|
+
headers == o.headers &&
|
526
528
|
pulp_labels == o.pulp_labels &&
|
529
|
+
client_cert == o.client_cert &&
|
530
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
531
|
+
sock_read_timeout == o.sock_read_timeout &&
|
532
|
+
proxy_password == o.proxy_password &&
|
527
533
|
max_retries == o.max_retries &&
|
528
|
-
total_timeout == o.total_timeout &&
|
529
|
-
proxy_url == o.proxy_url &&
|
530
534
|
ca_cert == o.ca_cert &&
|
535
|
+
tls_validation == o.tls_validation &&
|
531
536
|
client_key == o.client_key &&
|
532
|
-
rate_limit == o.rate_limit &&
|
533
|
-
sock_connect_timeout == o.sock_connect_timeout &&
|
534
|
-
headers == o.headers &&
|
535
|
-
username == o.username &&
|
536
537
|
download_concurrency == o.download_concurrency &&
|
537
|
-
|
538
|
-
|
539
|
-
sock_read_timeout == o.sock_read_timeout &&
|
540
|
-
client_cert == o.client_cert &&
|
538
|
+
username == o.username &&
|
539
|
+
rate_limit == o.rate_limit &&
|
541
540
|
connect_timeout == o.connect_timeout &&
|
541
|
+
proxy_username == o.proxy_username &&
|
542
542
|
url == o.url &&
|
543
|
-
|
543
|
+
password == o.password &&
|
544
544
|
metadata_only == o.metadata_only &&
|
545
545
|
git_ref == o.git_ref
|
546
546
|
end
|
@@ -554,7 +554,7 @@ module PulpAnsibleClient
|
|
554
554
|
# Calculates hash code according to all attributes.
|
555
555
|
# @return [Integer] Hash code
|
556
556
|
def hash
|
557
|
-
[
|
557
|
+
[proxy_url, total_timeout, name, headers, pulp_labels, client_cert, sock_connect_timeout, sock_read_timeout, proxy_password, max_retries, ca_cert, tls_validation, client_key, download_concurrency, username, rate_limit, connect_timeout, proxy_username, url, password, metadata_only, git_ref].hash
|
558
558
|
end
|
559
559
|
|
560
560
|
# Builds the object from hash
|