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