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