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