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