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