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 PatchedansibleGitRemote
|
|
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,50 @@ 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
|
+
end
|
|
200
|
+
|
|
191
201
|
if attributes.key?(:'client_key')
|
|
192
202
|
self.client_key = attributes[:'client_key']
|
|
193
203
|
end
|
|
194
204
|
|
|
205
|
+
if attributes.key?(:'ca_cert')
|
|
206
|
+
self.ca_cert = attributes[:'ca_cert']
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
if attributes.key?(:'download_concurrency')
|
|
210
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
|
211
|
+
end
|
|
212
|
+
|
|
213
|
+
if attributes.key?(:'proxy_password')
|
|
214
|
+
self.proxy_password = attributes[:'proxy_password']
|
|
215
|
+
end
|
|
216
|
+
|
|
217
|
+
if attributes.key?(:'url')
|
|
218
|
+
self.url = attributes[:'url']
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
if attributes.key?(:'password')
|
|
222
|
+
self.password = attributes[:'password']
|
|
223
|
+
end
|
|
224
|
+
|
|
195
225
|
if attributes.key?(:'username')
|
|
196
226
|
self.username = attributes[:'username']
|
|
197
227
|
end
|
|
@@ -200,10 +230,6 @@ module PulpAnsibleClient
|
|
|
200
230
|
self.client_cert = attributes[:'client_cert']
|
|
201
231
|
end
|
|
202
232
|
|
|
203
|
-
if attributes.key?(:'connect_timeout')
|
|
204
|
-
self.connect_timeout = attributes[:'connect_timeout']
|
|
205
|
-
end
|
|
206
|
-
|
|
207
233
|
if attributes.key?(:'tls_validation')
|
|
208
234
|
self.tls_validation = attributes[:'tls_validation']
|
|
209
235
|
end
|
|
@@ -214,52 +240,26 @@ module PulpAnsibleClient
|
|
|
214
240
|
end
|
|
215
241
|
end
|
|
216
242
|
|
|
217
|
-
if attributes.key?(:'
|
|
218
|
-
self.
|
|
243
|
+
if attributes.key?(:'proxy_url')
|
|
244
|
+
self.proxy_url = attributes[:'proxy_url']
|
|
219
245
|
end
|
|
220
246
|
|
|
221
247
|
if attributes.key?(:'sock_connect_timeout')
|
|
222
248
|
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
|
223
249
|
end
|
|
224
250
|
|
|
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
251
|
if attributes.key?(:'sock_read_timeout')
|
|
234
252
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
|
235
253
|
end
|
|
236
254
|
|
|
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
|
-
end
|
|
248
|
-
|
|
249
|
-
if attributes.key?(:'rate_limit')
|
|
250
|
-
self.rate_limit = attributes[:'rate_limit']
|
|
251
|
-
end
|
|
252
|
-
|
|
253
|
-
if attributes.key?(:'proxy_username')
|
|
254
|
-
self.proxy_username = attributes[:'proxy_username']
|
|
255
|
-
end
|
|
256
|
-
|
|
257
|
-
if attributes.key?(:'url')
|
|
258
|
-
self.url = attributes[:'url']
|
|
255
|
+
if attributes.key?(:'pulp_labels')
|
|
256
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
257
|
+
self.pulp_labels = value
|
|
258
|
+
end
|
|
259
259
|
end
|
|
260
260
|
|
|
261
|
-
if attributes.key?(:'
|
|
262
|
-
self.
|
|
261
|
+
if attributes.key?(:'connect_timeout')
|
|
262
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
|
263
263
|
end
|
|
264
264
|
|
|
265
265
|
if attributes.key?(:'metadata_only')
|
|
@@ -276,64 +276,64 @@ module PulpAnsibleClient
|
|
|
276
276
|
def list_invalid_properties
|
|
277
277
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
278
278
|
invalid_properties = Array.new
|
|
279
|
-
if !@
|
|
280
|
-
invalid_properties.push('invalid value for "
|
|
279
|
+
if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
|
280
|
+
invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
|
|
281
281
|
end
|
|
282
282
|
|
|
283
|
-
if !@
|
|
284
|
-
invalid_properties.push('invalid value for "
|
|
283
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
|
284
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
|
285
285
|
end
|
|
286
286
|
|
|
287
|
-
if !@
|
|
288
|
-
invalid_properties.push('invalid value for "
|
|
287
|
+
if !@name.nil? && @name.to_s.length < 1
|
|
288
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
|
289
289
|
end
|
|
290
290
|
|
|
291
|
-
if !@
|
|
292
|
-
invalid_properties.push('invalid value for "
|
|
291
|
+
if !@client_key.nil? && @client_key.to_s.length < 1
|
|
292
|
+
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
|
293
293
|
end
|
|
294
294
|
|
|
295
|
-
if !@
|
|
296
|
-
invalid_properties.push('invalid value for "
|
|
295
|
+
if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
|
296
|
+
invalid_properties.push('invalid value for "ca_cert", 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 !@download_concurrency.nil? && @download_concurrency < 1
|
|
300
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
301
301
|
end
|
|
302
302
|
|
|
303
303
|
if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
|
304
304
|
invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
|
|
305
305
|
end
|
|
306
306
|
|
|
307
|
-
if !@
|
|
308
|
-
invalid_properties.push('invalid value for "
|
|
309
|
-
end
|
|
310
|
-
|
|
311
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
312
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
307
|
+
if !@url.nil? && @url.to_s.length < 1
|
|
308
|
+
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
|
|
313
309
|
end
|
|
314
310
|
|
|
315
311
|
if !@password.nil? && @password.to_s.length < 1
|
|
316
312
|
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
|
317
313
|
end
|
|
318
314
|
|
|
319
|
-
if !@
|
|
320
|
-
invalid_properties.push('invalid value for "
|
|
315
|
+
if !@username.nil? && @username.to_s.length < 1
|
|
316
|
+
invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
|
|
321
317
|
end
|
|
322
318
|
|
|
323
|
-
if !@
|
|
324
|
-
invalid_properties.push('invalid value for "
|
|
319
|
+
if !@client_cert.nil? && @client_cert.to_s.length < 1
|
|
320
|
+
invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
|
|
325
321
|
end
|
|
326
322
|
|
|
327
|
-
if !@
|
|
328
|
-
invalid_properties.push('invalid value for "
|
|
323
|
+
if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
|
324
|
+
invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
|
|
329
325
|
end
|
|
330
326
|
|
|
331
|
-
if !@
|
|
332
|
-
invalid_properties.push('invalid value for "
|
|
327
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
328
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
|
333
329
|
end
|
|
334
330
|
|
|
335
|
-
if !@
|
|
336
|
-
invalid_properties.push('invalid value for "
|
|
331
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
332
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
333
|
+
end
|
|
334
|
+
|
|
335
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
336
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
|
337
337
|
end
|
|
338
338
|
|
|
339
339
|
if !@git_ref.nil? && @git_ref.to_s.length < 1
|
|
@@ -347,83 +347,87 @@ 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 !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
|
351
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
352
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
|
350
353
|
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
|
354
|
+
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
|
355
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
356
|
+
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
|
357
|
+
return false if !@url.nil? && @url.to_s.length < 1
|
|
358
|
+
return false if !@password.nil? && @password.to_s.length < 1
|
|
351
359
|
return false if !@username.nil? && @username.to_s.length < 1
|
|
352
360
|
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
|
353
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
354
|
-
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
355
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
356
|
-
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
|
357
361
|
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
|
362
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
358
363
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
359
|
-
return false if !@
|
|
360
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
361
|
-
return false if !@name.nil? && @name.to_s.length < 1
|
|
362
|
-
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
|
363
|
-
return false if !@url.nil? && @url.to_s.length < 1
|
|
364
|
-
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
|
364
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
365
365
|
return false if !@git_ref.nil? && @git_ref.to_s.length < 1
|
|
366
366
|
true
|
|
367
367
|
end
|
|
368
368
|
|
|
369
369
|
# Custom attribute writer method with validation
|
|
370
|
-
# @param [Object]
|
|
371
|
-
def
|
|
372
|
-
if !
|
|
373
|
-
fail ArgumentError, 'invalid value for "
|
|
370
|
+
# @param [Object] proxy_username Value to be assigned
|
|
371
|
+
def proxy_username=(proxy_username)
|
|
372
|
+
if !proxy_username.nil? && proxy_username.to_s.length < 1
|
|
373
|
+
fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
|
|
374
374
|
end
|
|
375
375
|
|
|
376
|
-
@
|
|
376
|
+
@proxy_username = proxy_username
|
|
377
377
|
end
|
|
378
378
|
|
|
379
379
|
# Custom attribute writer method with validation
|
|
380
|
-
# @param [Object]
|
|
381
|
-
def
|
|
382
|
-
if !
|
|
383
|
-
fail ArgumentError, 'invalid value for "
|
|
380
|
+
# @param [Object] total_timeout Value to be assigned
|
|
381
|
+
def total_timeout=(total_timeout)
|
|
382
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
|
383
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
|
384
384
|
end
|
|
385
385
|
|
|
386
|
-
@
|
|
386
|
+
@total_timeout = total_timeout
|
|
387
387
|
end
|
|
388
388
|
|
|
389
389
|
# Custom attribute writer method with validation
|
|
390
|
-
# @param [Object]
|
|
391
|
-
def
|
|
392
|
-
if
|
|
393
|
-
fail ArgumentError, '
|
|
390
|
+
# @param [Object] name Value to be assigned
|
|
391
|
+
def name=(name)
|
|
392
|
+
if name.nil?
|
|
393
|
+
fail ArgumentError, 'name cannot be nil'
|
|
394
394
|
end
|
|
395
395
|
|
|
396
|
-
|
|
396
|
+
if name.to_s.length < 1
|
|
397
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
398
|
+
end
|
|
399
|
+
|
|
400
|
+
@name = name
|
|
397
401
|
end
|
|
398
402
|
|
|
399
403
|
# Custom attribute writer method with validation
|
|
400
|
-
# @param [Object]
|
|
401
|
-
def
|
|
402
|
-
if !
|
|
403
|
-
fail ArgumentError, 'invalid value for "
|
|
404
|
+
# @param [Object] client_key Value to be assigned
|
|
405
|
+
def client_key=(client_key)
|
|
406
|
+
if !client_key.nil? && client_key.to_s.length < 1
|
|
407
|
+
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
|
404
408
|
end
|
|
405
409
|
|
|
406
|
-
@
|
|
410
|
+
@client_key = client_key
|
|
407
411
|
end
|
|
408
412
|
|
|
409
413
|
# Custom attribute writer method with validation
|
|
410
|
-
# @param [Object]
|
|
411
|
-
def
|
|
412
|
-
if !
|
|
413
|
-
fail ArgumentError, 'invalid value for "
|
|
414
|
+
# @param [Object] ca_cert Value to be assigned
|
|
415
|
+
def ca_cert=(ca_cert)
|
|
416
|
+
if !ca_cert.nil? && ca_cert.to_s.length < 1
|
|
417
|
+
fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
|
|
414
418
|
end
|
|
415
419
|
|
|
416
|
-
@
|
|
420
|
+
@ca_cert = ca_cert
|
|
417
421
|
end
|
|
418
422
|
|
|
419
423
|
# Custom attribute writer method with validation
|
|
420
|
-
# @param [Object]
|
|
421
|
-
def
|
|
422
|
-
if !
|
|
423
|
-
fail ArgumentError, 'invalid value for "
|
|
424
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
425
|
+
def download_concurrency=(download_concurrency)
|
|
426
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
427
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
424
428
|
end
|
|
425
429
|
|
|
426
|
-
@
|
|
430
|
+
@download_concurrency = download_concurrency
|
|
427
431
|
end
|
|
428
432
|
|
|
429
433
|
# Custom attribute writer method with validation
|
|
@@ -437,23 +441,17 @@ module PulpAnsibleClient
|
|
|
437
441
|
end
|
|
438
442
|
|
|
439
443
|
# Custom attribute writer method with validation
|
|
440
|
-
# @param [Object]
|
|
441
|
-
def
|
|
442
|
-
if
|
|
443
|
-
fail ArgumentError, '
|
|
444
|
+
# @param [Object] url Value to be assigned
|
|
445
|
+
def url=(url)
|
|
446
|
+
if url.nil?
|
|
447
|
+
fail ArgumentError, 'url cannot be nil'
|
|
444
448
|
end
|
|
445
449
|
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
# Custom attribute writer method with validation
|
|
450
|
-
# @param [Object] sock_read_timeout Value to be assigned
|
|
451
|
-
def sock_read_timeout=(sock_read_timeout)
|
|
452
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
|
453
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
|
450
|
+
if url.to_s.length < 1
|
|
451
|
+
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
|
|
454
452
|
end
|
|
455
453
|
|
|
456
|
-
@
|
|
454
|
+
@url = url
|
|
457
455
|
end
|
|
458
456
|
|
|
459
457
|
# Custom attribute writer method with validation
|
|
@@ -467,61 +465,63 @@ module PulpAnsibleClient
|
|
|
467
465
|
end
|
|
468
466
|
|
|
469
467
|
# Custom attribute writer method with validation
|
|
470
|
-
# @param [Object]
|
|
471
|
-
def
|
|
472
|
-
if !
|
|
473
|
-
fail ArgumentError, 'invalid value for "
|
|
468
|
+
# @param [Object] username Value to be assigned
|
|
469
|
+
def username=(username)
|
|
470
|
+
if !username.nil? && username.to_s.length < 1
|
|
471
|
+
fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
|
|
474
472
|
end
|
|
475
473
|
|
|
476
|
-
@
|
|
474
|
+
@username = username
|
|
477
475
|
end
|
|
478
476
|
|
|
479
477
|
# Custom attribute writer method with validation
|
|
480
|
-
# @param [Object]
|
|
481
|
-
def
|
|
482
|
-
if
|
|
483
|
-
fail ArgumentError, '
|
|
484
|
-
end
|
|
485
|
-
|
|
486
|
-
if name.to_s.length < 1
|
|
487
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
478
|
+
# @param [Object] client_cert Value to be assigned
|
|
479
|
+
def client_cert=(client_cert)
|
|
480
|
+
if !client_cert.nil? && client_cert.to_s.length < 1
|
|
481
|
+
fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
|
|
488
482
|
end
|
|
489
483
|
|
|
490
|
-
@
|
|
484
|
+
@client_cert = client_cert
|
|
491
485
|
end
|
|
492
486
|
|
|
493
487
|
# Custom attribute writer method with validation
|
|
494
|
-
# @param [Object]
|
|
495
|
-
def
|
|
496
|
-
if !
|
|
497
|
-
fail ArgumentError, 'invalid value for "
|
|
488
|
+
# @param [Object] proxy_url Value to be assigned
|
|
489
|
+
def proxy_url=(proxy_url)
|
|
490
|
+
if !proxy_url.nil? && proxy_url.to_s.length < 1
|
|
491
|
+
fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
|
|
498
492
|
end
|
|
499
493
|
|
|
500
|
-
@
|
|
494
|
+
@proxy_url = proxy_url
|
|
501
495
|
end
|
|
502
496
|
|
|
503
497
|
# Custom attribute writer method with validation
|
|
504
|
-
# @param [Object]
|
|
505
|
-
def
|
|
506
|
-
if
|
|
507
|
-
fail ArgumentError, '
|
|
498
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
|
499
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
|
500
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
|
501
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
|
508
502
|
end
|
|
509
503
|
|
|
510
|
-
|
|
511
|
-
|
|
504
|
+
@sock_connect_timeout = sock_connect_timeout
|
|
505
|
+
end
|
|
506
|
+
|
|
507
|
+
# Custom attribute writer method with validation
|
|
508
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
|
509
|
+
def sock_read_timeout=(sock_read_timeout)
|
|
510
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
|
511
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
|
512
512
|
end
|
|
513
513
|
|
|
514
|
-
@
|
|
514
|
+
@sock_read_timeout = sock_read_timeout
|
|
515
515
|
end
|
|
516
516
|
|
|
517
517
|
# Custom attribute writer method with validation
|
|
518
|
-
# @param [Object]
|
|
519
|
-
def
|
|
520
|
-
if !
|
|
521
|
-
fail ArgumentError, 'invalid value for "
|
|
518
|
+
# @param [Object] connect_timeout Value to be assigned
|
|
519
|
+
def connect_timeout=(connect_timeout)
|
|
520
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
|
521
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
|
522
522
|
end
|
|
523
523
|
|
|
524
|
-
@
|
|
524
|
+
@connect_timeout = connect_timeout
|
|
525
525
|
end
|
|
526
526
|
|
|
527
527
|
# Custom attribute writer method with validation
|
|
@@ -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
|
-
|
|
546
|
+
proxy_username == o.proxy_username &&
|
|
547
|
+
rate_limit == o.rate_limit &&
|
|
547
548
|
max_retries == o.max_retries &&
|
|
549
|
+
total_timeout == o.total_timeout &&
|
|
550
|
+
name == o.name &&
|
|
548
551
|
client_key == o.client_key &&
|
|
552
|
+
ca_cert == o.ca_cert &&
|
|
553
|
+
download_concurrency == o.download_concurrency &&
|
|
554
|
+
proxy_password == o.proxy_password &&
|
|
555
|
+
url == o.url &&
|
|
556
|
+
password == o.password &&
|
|
549
557
|
username == o.username &&
|
|
550
558
|
client_cert == o.client_cert &&
|
|
551
|
-
connect_timeout == o.connect_timeout &&
|
|
552
559
|
tls_validation == o.tls_validation &&
|
|
553
560
|
headers == o.headers &&
|
|
554
|
-
total_timeout == o.total_timeout &&
|
|
555
|
-
sock_connect_timeout == o.sock_connect_timeout &&
|
|
556
|
-
proxy_password == o.proxy_password &&
|
|
557
561
|
proxy_url == o.proxy_url &&
|
|
562
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
|
558
563
|
sock_read_timeout == o.sock_read_timeout &&
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
name == o.name &&
|
|
562
|
-
rate_limit == o.rate_limit &&
|
|
563
|
-
proxy_username == o.proxy_username &&
|
|
564
|
-
url == o.url &&
|
|
565
|
-
ca_cert == o.ca_cert &&
|
|
564
|
+
pulp_labels == o.pulp_labels &&
|
|
565
|
+
connect_timeout == o.connect_timeout &&
|
|
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
|
+
[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
|
|
580
580
|
end
|
|
581
581
|
|
|
582
582
|
# Builds the object from hash
|