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