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