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 AnsibleGitRemote
|
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,58 +267,62 @@ 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 "
|
278
|
+
if @name.nil?
|
279
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
280
280
|
end
|
281
281
|
|
282
|
-
if
|
283
|
-
invalid_properties.push('invalid value for "
|
282
|
+
if @name.to_s.length < 1
|
283
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
284
284
|
end
|
285
285
|
|
286
|
-
if !@
|
287
|
-
invalid_properties.push('invalid value for "
|
286
|
+
if !@client_cert.nil? && @client_cert.to_s.length < 1
|
287
|
+
invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
|
288
288
|
end
|
289
289
|
|
290
290
|
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
291
291
|
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
292
292
|
end
|
293
293
|
|
294
|
-
if !@
|
295
|
-
invalid_properties.push('invalid value for "
|
294
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
295
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
296
296
|
end
|
297
297
|
|
298
|
-
if !@
|
299
|
-
invalid_properties.push('invalid value for "
|
298
|
+
if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
299
|
+
invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
|
300
300
|
end
|
301
301
|
|
302
|
-
if !@
|
303
|
-
invalid_properties.push('invalid value for "
|
302
|
+
if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
303
|
+
invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
|
304
304
|
end
|
305
305
|
|
306
|
-
if !@
|
307
|
-
invalid_properties.push('invalid value for "
|
306
|
+
if !@client_key.nil? && @client_key.to_s.length < 1
|
307
|
+
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
308
308
|
end
|
309
309
|
|
310
|
-
if !@
|
311
|
-
invalid_properties.push('invalid value for "
|
310
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
311
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
312
312
|
end
|
313
313
|
|
314
|
-
if !@
|
315
|
-
invalid_properties.push('invalid value for "
|
314
|
+
if !@username.nil? && @username.to_s.length < 1
|
315
|
+
invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
|
316
316
|
end
|
317
317
|
|
318
318
|
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
319
319
|
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
320
320
|
end
|
321
321
|
|
322
|
+
if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
323
|
+
invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
|
324
|
+
end
|
325
|
+
|
322
326
|
if @url.nil?
|
323
327
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
324
328
|
end
|
@@ -327,12 +331,8 @@ module PulpAnsibleClient
|
|
327
331
|
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
|
328
332
|
end
|
329
333
|
|
330
|
-
if
|
331
|
-
invalid_properties.push('invalid value for "
|
332
|
-
end
|
333
|
-
|
334
|
-
if @name.to_s.length < 1
|
335
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
334
|
+
if !@password.nil? && @password.to_s.length < 1
|
335
|
+
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
336
336
|
end
|
337
337
|
|
338
338
|
if !@git_ref.nil? && @git_ref.to_s.length < 1
|
@@ -345,35 +345,35 @@ module PulpAnsibleClient
|
|
345
345
|
# Check to see if the all the properties in the model are valid
|
346
346
|
# @return true if the model is valid
|
347
347
|
def valid?
|
348
|
-
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
349
|
-
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
350
348
|
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
349
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
350
|
+
return false if @name.nil?
|
351
|
+
return false if @name.to_s.length < 1
|
352
|
+
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
353
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
354
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
355
|
+
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
351
356
|
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
352
357
|
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
353
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
354
|
-
return false if !@username.nil? && @username.to_s.length < 1
|
355
358
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
356
|
-
return false if !@
|
357
|
-
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
358
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
359
|
-
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
359
|
+
return false if !@username.nil? && @username.to_s.length < 1
|
360
360
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
361
|
+
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
361
362
|
return false if @url.nil?
|
362
363
|
return false if @url.to_s.length < 1
|
363
|
-
return false if
|
364
|
-
return false if @name.to_s.length < 1
|
364
|
+
return false if !@password.nil? && @password.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
369
|
# Custom attribute writer method with validation
|
370
|
-
# @param [Object]
|
371
|
-
def
|
372
|
-
if !
|
373
|
-
fail ArgumentError, 'invalid value for "
|
370
|
+
# @param [Object] proxy_url Value to be assigned
|
371
|
+
def proxy_url=(proxy_url)
|
372
|
+
if !proxy_url.nil? && proxy_url.to_s.length < 1
|
373
|
+
fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
|
374
374
|
end
|
375
375
|
|
376
|
-
@
|
376
|
+
@proxy_url = proxy_url
|
377
377
|
end
|
378
378
|
|
379
379
|
# Custom attribute writer method with validation
|
@@ -387,33 +387,27 @@ module PulpAnsibleClient
|
|
387
387
|
end
|
388
388
|
|
389
389
|
# Custom attribute writer method with validation
|
390
|
-
# @param [Object]
|
391
|
-
def
|
392
|
-
if
|
393
|
-
fail ArgumentError, '
|
390
|
+
# @param [Object] name Value to be assigned
|
391
|
+
def name=(name)
|
392
|
+
if name.nil?
|
393
|
+
fail ArgumentError, 'name cannot be nil'
|
394
394
|
end
|
395
395
|
|
396
|
-
|
397
|
-
|
398
|
-
|
399
|
-
# Custom attribute writer method with validation
|
400
|
-
# @param [Object] ca_cert Value to be assigned
|
401
|
-
def ca_cert=(ca_cert)
|
402
|
-
if !ca_cert.nil? && ca_cert.to_s.length < 1
|
403
|
-
fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
|
396
|
+
if name.to_s.length < 1
|
397
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
404
398
|
end
|
405
399
|
|
406
|
-
@
|
400
|
+
@name = name
|
407
401
|
end
|
408
402
|
|
409
403
|
# Custom attribute writer method with validation
|
410
|
-
# @param [Object]
|
411
|
-
def
|
412
|
-
if !
|
413
|
-
fail ArgumentError, 'invalid value for "
|
404
|
+
# @param [Object] client_cert Value to be assigned
|
405
|
+
def client_cert=(client_cert)
|
406
|
+
if !client_cert.nil? && client_cert.to_s.length < 1
|
407
|
+
fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
|
414
408
|
end
|
415
409
|
|
416
|
-
@
|
410
|
+
@client_cert = client_cert
|
417
411
|
end
|
418
412
|
|
419
413
|
# Custom attribute writer method with validation
|
@@ -427,63 +421,63 @@ module PulpAnsibleClient
|
|
427
421
|
end
|
428
422
|
|
429
423
|
# Custom attribute writer method with validation
|
430
|
-
# @param [Object]
|
431
|
-
def
|
432
|
-
if !
|
433
|
-
fail ArgumentError, 'invalid value for "
|
424
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
425
|
+
def sock_read_timeout=(sock_read_timeout)
|
426
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
427
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
434
428
|
end
|
435
429
|
|
436
|
-
@
|
430
|
+
@sock_read_timeout = sock_read_timeout
|
437
431
|
end
|
438
432
|
|
439
433
|
# Custom attribute writer method with validation
|
440
|
-
# @param [Object]
|
441
|
-
def
|
442
|
-
if !
|
443
|
-
fail ArgumentError, 'invalid value for "
|
434
|
+
# @param [Object] proxy_password Value to be assigned
|
435
|
+
def proxy_password=(proxy_password)
|
436
|
+
if !proxy_password.nil? && proxy_password.to_s.length < 1
|
437
|
+
fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
|
444
438
|
end
|
445
439
|
|
446
|
-
@
|
440
|
+
@proxy_password = proxy_password
|
447
441
|
end
|
448
442
|
|
449
443
|
# Custom attribute writer method with validation
|
450
|
-
# @param [Object]
|
451
|
-
def
|
452
|
-
if !
|
453
|
-
fail ArgumentError, 'invalid value for "
|
444
|
+
# @param [Object] ca_cert Value to be assigned
|
445
|
+
def ca_cert=(ca_cert)
|
446
|
+
if !ca_cert.nil? && ca_cert.to_s.length < 1
|
447
|
+
fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
|
454
448
|
end
|
455
449
|
|
456
|
-
@
|
450
|
+
@ca_cert = ca_cert
|
457
451
|
end
|
458
452
|
|
459
453
|
# Custom attribute writer method with validation
|
460
|
-
# @param [Object]
|
461
|
-
def
|
462
|
-
if !
|
463
|
-
fail ArgumentError, 'invalid value for "
|
454
|
+
# @param [Object] client_key Value to be assigned
|
455
|
+
def client_key=(client_key)
|
456
|
+
if !client_key.nil? && client_key.to_s.length < 1
|
457
|
+
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
464
458
|
end
|
465
459
|
|
466
|
-
@
|
460
|
+
@client_key = client_key
|
467
461
|
end
|
468
462
|
|
469
463
|
# Custom attribute writer method with validation
|
470
|
-
# @param [Object]
|
471
|
-
def
|
472
|
-
if !
|
473
|
-
fail ArgumentError, 'invalid value for "
|
464
|
+
# @param [Object] download_concurrency Value to be assigned
|
465
|
+
def download_concurrency=(download_concurrency)
|
466
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
467
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
474
468
|
end
|
475
469
|
|
476
|
-
@
|
470
|
+
@download_concurrency = download_concurrency
|
477
471
|
end
|
478
472
|
|
479
473
|
# Custom attribute writer method with validation
|
480
|
-
# @param [Object]
|
481
|
-
def
|
482
|
-
if !
|
483
|
-
fail ArgumentError, 'invalid value for "
|
474
|
+
# @param [Object] username Value to be assigned
|
475
|
+
def username=(username)
|
476
|
+
if !username.nil? && username.to_s.length < 1
|
477
|
+
fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
|
484
478
|
end
|
485
479
|
|
486
|
-
@
|
480
|
+
@username = username
|
487
481
|
end
|
488
482
|
|
489
483
|
# Custom attribute writer method with validation
|
@@ -496,6 +490,16 @@ module PulpAnsibleClient
|
|
496
490
|
@connect_timeout = connect_timeout
|
497
491
|
end
|
498
492
|
|
493
|
+
# Custom attribute writer method with validation
|
494
|
+
# @param [Object] proxy_username Value to be assigned
|
495
|
+
def proxy_username=(proxy_username)
|
496
|
+
if !proxy_username.nil? && proxy_username.to_s.length < 1
|
497
|
+
fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
|
498
|
+
end
|
499
|
+
|
500
|
+
@proxy_username = proxy_username
|
501
|
+
end
|
502
|
+
|
499
503
|
# Custom attribute writer method with validation
|
500
504
|
# @param [Object] url Value to be assigned
|
501
505
|
def url=(url)
|
@@ -511,17 +515,13 @@ module PulpAnsibleClient
|
|
511
515
|
end
|
512
516
|
|
513
517
|
# Custom attribute writer method with validation
|
514
|
-
# @param [Object]
|
515
|
-
def
|
516
|
-
if
|
517
|
-
fail ArgumentError, '
|
518
|
-
end
|
519
|
-
|
520
|
-
if name.to_s.length < 1
|
521
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
518
|
+
# @param [Object] password Value to be assigned
|
519
|
+
def password=(password)
|
520
|
+
if !password.nil? && password.to_s.length < 1
|
521
|
+
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
|
522
522
|
end
|
523
523
|
|
524
|
-
@
|
524
|
+
@password = password
|
525
525
|
end
|
526
526
|
|
527
527
|
# Custom attribute writer method with validation
|
@@ -539,26 +539,26 @@ module PulpAnsibleClient
|
|
539
539
|
def ==(o)
|
540
540
|
return true if self.equal?(o)
|
541
541
|
self.class == o.class &&
|
542
|
-
|
543
|
-
|
542
|
+
proxy_url == o.proxy_url &&
|
543
|
+
total_timeout == o.total_timeout &&
|
544
|
+
name == o.name &&
|
545
|
+
headers == o.headers &&
|
544
546
|
pulp_labels == o.pulp_labels &&
|
547
|
+
client_cert == o.client_cert &&
|
548
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
549
|
+
sock_read_timeout == o.sock_read_timeout &&
|
550
|
+
proxy_password == o.proxy_password &&
|
545
551
|
max_retries == o.max_retries &&
|
546
|
-
total_timeout == o.total_timeout &&
|
547
|
-
proxy_url == o.proxy_url &&
|
548
552
|
ca_cert == o.ca_cert &&
|
553
|
+
tls_validation == o.tls_validation &&
|
549
554
|
client_key == o.client_key &&
|
550
|
-
rate_limit == o.rate_limit &&
|
551
|
-
sock_connect_timeout == o.sock_connect_timeout &&
|
552
|
-
headers == o.headers &&
|
553
|
-
username == o.username &&
|
554
555
|
download_concurrency == o.download_concurrency &&
|
555
|
-
|
556
|
-
|
557
|
-
sock_read_timeout == o.sock_read_timeout &&
|
558
|
-
client_cert == o.client_cert &&
|
556
|
+
username == o.username &&
|
557
|
+
rate_limit == o.rate_limit &&
|
559
558
|
connect_timeout == o.connect_timeout &&
|
559
|
+
proxy_username == o.proxy_username &&
|
560
560
|
url == o.url &&
|
561
|
-
|
561
|
+
password == o.password &&
|
562
562
|
metadata_only == o.metadata_only &&
|
563
563
|
git_ref == o.git_ref
|
564
564
|
end
|
@@ -572,7 +572,7 @@ module PulpAnsibleClient
|
|
572
572
|
# Calculates hash code according to all attributes.
|
573
573
|
# @return [Integer] Hash code
|
574
574
|
def hash
|
575
|
-
[
|
575
|
+
[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
|
576
576
|
end
|
577
577
|
|
578
578
|
# Builds the object from hash
|