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