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