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