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 PatchedansibleGitRemote
|
|
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,88 +178,88 @@ 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
183
|
end
|
|
184
184
|
|
|
185
|
-
if attributes.key?(:'
|
|
186
|
-
self.
|
|
185
|
+
if attributes.key?(:'max_retries')
|
|
186
|
+
self.max_retries = attributes[:'max_retries']
|
|
187
187
|
end
|
|
188
188
|
|
|
189
|
-
if attributes.key?(:'
|
|
190
|
-
self.
|
|
189
|
+
if attributes.key?(:'proxy_url')
|
|
190
|
+
self.proxy_url = attributes[:'proxy_url']
|
|
191
191
|
end
|
|
192
192
|
|
|
193
|
-
if attributes.key?(:'
|
|
194
|
-
|
|
193
|
+
if attributes.key?(:'headers')
|
|
194
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
|
195
|
+
self.headers = value
|
|
196
|
+
end
|
|
195
197
|
end
|
|
196
198
|
|
|
197
|
-
if attributes.key?(:'
|
|
198
|
-
self.
|
|
199
|
+
if attributes.key?(:'client_key')
|
|
200
|
+
self.client_key = attributes[:'client_key']
|
|
199
201
|
end
|
|
200
202
|
|
|
201
|
-
if attributes.key?(:'
|
|
202
|
-
self.
|
|
203
|
+
if attributes.key?(:'name')
|
|
204
|
+
self.name = attributes[:'name']
|
|
203
205
|
end
|
|
204
206
|
|
|
205
|
-
if attributes.key?(:'
|
|
206
|
-
self.
|
|
207
|
+
if attributes.key?(:'download_concurrency')
|
|
208
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
|
207
209
|
end
|
|
208
210
|
|
|
209
|
-
if attributes.key?(:'
|
|
210
|
-
self.
|
|
211
|
+
if attributes.key?(:'client_cert')
|
|
212
|
+
self.client_cert = attributes[:'client_cert']
|
|
211
213
|
end
|
|
212
214
|
|
|
213
|
-
if attributes.key?(:'
|
|
214
|
-
|
|
215
|
-
self.pulp_labels = value
|
|
216
|
-
end
|
|
215
|
+
if attributes.key?(:'total_timeout')
|
|
216
|
+
self.total_timeout = attributes[:'total_timeout']
|
|
217
217
|
end
|
|
218
218
|
|
|
219
|
-
if attributes.key?(:'
|
|
220
|
-
self.
|
|
219
|
+
if attributes.key?(:'tls_validation')
|
|
220
|
+
self.tls_validation = attributes[:'tls_validation']
|
|
221
221
|
end
|
|
222
222
|
|
|
223
|
-
if attributes.key?(:'
|
|
224
|
-
self.
|
|
223
|
+
if attributes.key?(:'password')
|
|
224
|
+
self.password = attributes[:'password']
|
|
225
225
|
end
|
|
226
226
|
|
|
227
|
-
if attributes.key?(:'
|
|
228
|
-
self.
|
|
227
|
+
if attributes.key?(:'sock_read_timeout')
|
|
228
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
|
229
229
|
end
|
|
230
230
|
|
|
231
|
-
if attributes.key?(:'
|
|
232
|
-
self.
|
|
231
|
+
if attributes.key?(:'rate_limit')
|
|
232
|
+
self.rate_limit = attributes[:'rate_limit']
|
|
233
233
|
end
|
|
234
234
|
|
|
235
235
|
if attributes.key?(:'proxy_username')
|
|
236
236
|
self.proxy_username = attributes[:'proxy_username']
|
|
237
237
|
end
|
|
238
238
|
|
|
239
|
-
if attributes.key?(:'
|
|
240
|
-
self.
|
|
239
|
+
if attributes.key?(:'username')
|
|
240
|
+
self.username = attributes[:'username']
|
|
241
241
|
end
|
|
242
242
|
|
|
243
|
-
if attributes.key?(:'
|
|
244
|
-
|
|
245
|
-
self.headers = value
|
|
246
|
-
end
|
|
243
|
+
if attributes.key?(:'sock_connect_timeout')
|
|
244
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
|
247
245
|
end
|
|
248
246
|
|
|
249
|
-
if attributes.key?(:'
|
|
250
|
-
self.
|
|
247
|
+
if attributes.key?(:'proxy_password')
|
|
248
|
+
self.proxy_password = attributes[:'proxy_password']
|
|
251
249
|
end
|
|
252
250
|
|
|
253
|
-
if attributes.key?(:'
|
|
254
|
-
self.
|
|
251
|
+
if attributes.key?(:'ca_cert')
|
|
252
|
+
self.ca_cert = attributes[:'ca_cert']
|
|
255
253
|
end
|
|
256
254
|
|
|
257
|
-
if attributes.key?(:'
|
|
258
|
-
|
|
255
|
+
if attributes.key?(:'pulp_labels')
|
|
256
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
257
|
+
self.pulp_labels = value
|
|
258
|
+
end
|
|
259
259
|
end
|
|
260
260
|
|
|
261
|
-
if attributes.key?(:'
|
|
262
|
-
self.
|
|
261
|
+
if attributes.key?(:'connect_timeout')
|
|
262
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
|
263
263
|
end
|
|
264
264
|
|
|
265
265
|
if attributes.key?(:'metadata_only')
|
|
@@ -276,60 +276,60 @@ module PulpAnsibleClient
|
|
|
276
276
|
def list_invalid_properties
|
|
277
277
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
278
278
|
invalid_properties = Array.new
|
|
279
|
-
if !@
|
|
280
|
-
invalid_properties.push('invalid value for "
|
|
281
|
-
end
|
|
282
|
-
|
|
283
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
284
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
279
|
+
if !@url.nil? && @url.to_s.length < 1
|
|
280
|
+
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
|
|
285
281
|
end
|
|
286
282
|
|
|
287
|
-
if !@
|
|
288
|
-
invalid_properties.push('invalid value for "
|
|
283
|
+
if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
|
284
|
+
invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
|
|
289
285
|
end
|
|
290
286
|
|
|
291
|
-
if !@
|
|
292
|
-
invalid_properties.push('invalid value for "
|
|
287
|
+
if !@client_key.nil? && @client_key.to_s.length < 1
|
|
288
|
+
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
|
293
289
|
end
|
|
294
290
|
|
|
295
|
-
if !@
|
|
296
|
-
invalid_properties.push('invalid value for "
|
|
291
|
+
if !@name.nil? && @name.to_s.length < 1
|
|
292
|
+
invalid_properties.push('invalid value for "name", 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_cert.nil? && @client_cert.to_s.length < 1
|
|
296
|
+
invalid_properties.push('invalid value for "client_cert", 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 !@total_timeout.nil? && @total_timeout < 0.0
|
|
300
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
|
305
301
|
end
|
|
306
302
|
|
|
307
|
-
if !@
|
|
308
|
-
invalid_properties.push('invalid value for "
|
|
303
|
+
if !@password.nil? && @password.to_s.length < 1
|
|
304
|
+
invalid_properties.push('invalid value for "password", 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 !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
308
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
313
309
|
end
|
|
314
310
|
|
|
315
311
|
if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
|
316
312
|
invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
|
|
317
313
|
end
|
|
318
314
|
|
|
319
|
-
if !@
|
|
320
|
-
invalid_properties.push('invalid value for "
|
|
321
|
-
end
|
|
322
|
-
|
|
323
|
-
if !@client_key.nil? && @client_key.to_s.length < 1
|
|
324
|
-
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
|
315
|
+
if !@username.nil? && @username.to_s.length < 1
|
|
316
|
+
invalid_properties.push('invalid value for "username", the character length must be great than or equal to 1.')
|
|
325
317
|
end
|
|
326
318
|
|
|
327
319
|
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
328
320
|
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
|
329
321
|
end
|
|
330
322
|
|
|
331
|
-
if !@
|
|
332
|
-
invalid_properties.push('invalid value for "
|
|
323
|
+
if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
|
324
|
+
invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
|
|
325
|
+
end
|
|
326
|
+
|
|
327
|
+
if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
|
328
|
+
invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
|
|
329
|
+
end
|
|
330
|
+
|
|
331
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
332
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
|
333
333
|
end
|
|
334
334
|
|
|
335
335
|
if !@git_ref.nil? && @git_ref.to_s.length < 1
|
|
@@ -343,112 +343,110 @@ module PulpAnsibleClient
|
|
|
343
343
|
# @return true if the model is valid
|
|
344
344
|
def valid?
|
|
345
345
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
346
|
+
return false if !@url.nil? && @url.to_s.length < 1
|
|
347
|
+
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
|
348
|
+
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
|
349
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
|
350
|
+
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
|
346
351
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
347
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
348
352
|
return false if !@password.nil? && @password.to_s.length < 1
|
|
349
|
-
return false if !@
|
|
350
|
-
return false if !@username.nil? && @username.to_s.length < 1
|
|
351
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
352
|
-
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
|
353
|
-
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
|
354
|
-
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
|
353
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
355
354
|
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
|
356
|
-
return false if !@
|
|
357
|
-
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
|
355
|
+
return false if !@username.nil? && @username.to_s.length < 1
|
|
358
356
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
359
|
-
return false if !@
|
|
357
|
+
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
|
358
|
+
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
|
359
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
360
360
|
return false if !@git_ref.nil? && @git_ref.to_s.length < 1
|
|
361
361
|
true
|
|
362
362
|
end
|
|
363
363
|
|
|
364
364
|
# Custom attribute writer method with validation
|
|
365
|
-
# @param [Object]
|
|
366
|
-
def
|
|
367
|
-
if
|
|
368
|
-
fail ArgumentError, '
|
|
365
|
+
# @param [Object] url Value to be assigned
|
|
366
|
+
def url=(url)
|
|
367
|
+
if url.nil?
|
|
368
|
+
fail ArgumentError, 'url cannot be nil'
|
|
369
369
|
end
|
|
370
370
|
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
# Custom attribute writer method with validation
|
|
375
|
-
# @param [Object] sock_read_timeout Value to be assigned
|
|
376
|
-
def sock_read_timeout=(sock_read_timeout)
|
|
377
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
|
378
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
|
371
|
+
if url.to_s.length < 1
|
|
372
|
+
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
|
|
379
373
|
end
|
|
380
374
|
|
|
381
|
-
@
|
|
375
|
+
@url = url
|
|
382
376
|
end
|
|
383
377
|
|
|
384
378
|
# Custom attribute writer method with validation
|
|
385
|
-
# @param [Object]
|
|
386
|
-
def
|
|
387
|
-
if !
|
|
388
|
-
fail ArgumentError, 'invalid value for "
|
|
379
|
+
# @param [Object] proxy_url Value to be assigned
|
|
380
|
+
def proxy_url=(proxy_url)
|
|
381
|
+
if !proxy_url.nil? && proxy_url.to_s.length < 1
|
|
382
|
+
fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
|
|
389
383
|
end
|
|
390
384
|
|
|
391
|
-
@
|
|
385
|
+
@proxy_url = proxy_url
|
|
392
386
|
end
|
|
393
387
|
|
|
394
388
|
# Custom attribute writer method with validation
|
|
395
|
-
# @param [Object]
|
|
396
|
-
def
|
|
397
|
-
if !
|
|
398
|
-
fail ArgumentError, 'invalid value for "
|
|
389
|
+
# @param [Object] client_key Value to be assigned
|
|
390
|
+
def client_key=(client_key)
|
|
391
|
+
if !client_key.nil? && client_key.to_s.length < 1
|
|
392
|
+
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
|
399
393
|
end
|
|
400
394
|
|
|
401
|
-
@
|
|
395
|
+
@client_key = client_key
|
|
402
396
|
end
|
|
403
397
|
|
|
404
398
|
# Custom attribute writer method with validation
|
|
405
|
-
# @param [Object]
|
|
406
|
-
def
|
|
407
|
-
if
|
|
408
|
-
fail ArgumentError, '
|
|
399
|
+
# @param [Object] name Value to be assigned
|
|
400
|
+
def name=(name)
|
|
401
|
+
if name.nil?
|
|
402
|
+
fail ArgumentError, 'name cannot be nil'
|
|
409
403
|
end
|
|
410
404
|
|
|
411
|
-
|
|
405
|
+
if name.to_s.length < 1
|
|
406
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
|
407
|
+
end
|
|
408
|
+
|
|
409
|
+
@name = name
|
|
412
410
|
end
|
|
413
411
|
|
|
414
412
|
# Custom attribute writer method with validation
|
|
415
|
-
# @param [Object]
|
|
416
|
-
def
|
|
417
|
-
if !
|
|
418
|
-
fail ArgumentError, 'invalid value for "
|
|
413
|
+
# @param [Object] client_cert Value to be assigned
|
|
414
|
+
def client_cert=(client_cert)
|
|
415
|
+
if !client_cert.nil? && client_cert.to_s.length < 1
|
|
416
|
+
fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
|
|
419
417
|
end
|
|
420
418
|
|
|
421
|
-
@
|
|
419
|
+
@client_cert = client_cert
|
|
422
420
|
end
|
|
423
421
|
|
|
424
422
|
# Custom attribute writer method with validation
|
|
425
|
-
# @param [Object]
|
|
426
|
-
def
|
|
427
|
-
if !
|
|
428
|
-
fail ArgumentError, 'invalid value for "
|
|
423
|
+
# @param [Object] total_timeout Value to be assigned
|
|
424
|
+
def total_timeout=(total_timeout)
|
|
425
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
|
426
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
|
429
427
|
end
|
|
430
428
|
|
|
431
|
-
@
|
|
429
|
+
@total_timeout = total_timeout
|
|
432
430
|
end
|
|
433
431
|
|
|
434
432
|
# Custom attribute writer method with validation
|
|
435
|
-
# @param [Object]
|
|
436
|
-
def
|
|
437
|
-
if !
|
|
438
|
-
fail ArgumentError, 'invalid value for "
|
|
433
|
+
# @param [Object] password Value to be assigned
|
|
434
|
+
def password=(password)
|
|
435
|
+
if !password.nil? && password.to_s.length < 1
|
|
436
|
+
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
|
|
439
437
|
end
|
|
440
438
|
|
|
441
|
-
@
|
|
439
|
+
@password = password
|
|
442
440
|
end
|
|
443
441
|
|
|
444
442
|
# Custom attribute writer method with validation
|
|
445
|
-
# @param [Object]
|
|
446
|
-
def
|
|
447
|
-
if !
|
|
448
|
-
fail ArgumentError, 'invalid value for "
|
|
443
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
|
444
|
+
def sock_read_timeout=(sock_read_timeout)
|
|
445
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
|
446
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
|
449
447
|
end
|
|
450
448
|
|
|
451
|
-
@
|
|
449
|
+
@sock_read_timeout = sock_read_timeout
|
|
452
450
|
end
|
|
453
451
|
|
|
454
452
|
# Custom attribute writer method with validation
|
|
@@ -462,27 +460,13 @@ module PulpAnsibleClient
|
|
|
462
460
|
end
|
|
463
461
|
|
|
464
462
|
# Custom attribute writer method with validation
|
|
465
|
-
# @param [Object]
|
|
466
|
-
def
|
|
467
|
-
if
|
|
468
|
-
fail ArgumentError, '
|
|
469
|
-
end
|
|
470
|
-
|
|
471
|
-
if url.to_s.length < 1
|
|
472
|
-
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
|
|
473
|
-
end
|
|
474
|
-
|
|
475
|
-
@url = url
|
|
476
|
-
end
|
|
477
|
-
|
|
478
|
-
# Custom attribute writer method with validation
|
|
479
|
-
# @param [Object] client_key Value to be assigned
|
|
480
|
-
def client_key=(client_key)
|
|
481
|
-
if !client_key.nil? && client_key.to_s.length < 1
|
|
482
|
-
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
|
463
|
+
# @param [Object] username Value to be assigned
|
|
464
|
+
def username=(username)
|
|
465
|
+
if !username.nil? && username.to_s.length < 1
|
|
466
|
+
fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
|
|
483
467
|
end
|
|
484
468
|
|
|
485
|
-
@
|
|
469
|
+
@username = username
|
|
486
470
|
end
|
|
487
471
|
|
|
488
472
|
# Custom attribute writer method with validation
|
|
@@ -496,17 +480,33 @@ module PulpAnsibleClient
|
|
|
496
480
|
end
|
|
497
481
|
|
|
498
482
|
# Custom attribute writer method with validation
|
|
499
|
-
# @param [Object]
|
|
500
|
-
def
|
|
501
|
-
if
|
|
502
|
-
fail ArgumentError, '
|
|
483
|
+
# @param [Object] proxy_password Value to be assigned
|
|
484
|
+
def proxy_password=(proxy_password)
|
|
485
|
+
if !proxy_password.nil? && proxy_password.to_s.length < 1
|
|
486
|
+
fail ArgumentError, 'invalid value for "proxy_password", the character length must be great than or equal to 1.'
|
|
503
487
|
end
|
|
504
488
|
|
|
505
|
-
|
|
506
|
-
|
|
489
|
+
@proxy_password = proxy_password
|
|
490
|
+
end
|
|
491
|
+
|
|
492
|
+
# Custom attribute writer method with validation
|
|
493
|
+
# @param [Object] ca_cert Value to be assigned
|
|
494
|
+
def ca_cert=(ca_cert)
|
|
495
|
+
if !ca_cert.nil? && ca_cert.to_s.length < 1
|
|
496
|
+
fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
|
|
507
497
|
end
|
|
508
498
|
|
|
509
|
-
@
|
|
499
|
+
@ca_cert = ca_cert
|
|
500
|
+
end
|
|
501
|
+
|
|
502
|
+
# Custom attribute writer method with validation
|
|
503
|
+
# @param [Object] connect_timeout Value to be assigned
|
|
504
|
+
def connect_timeout=(connect_timeout)
|
|
505
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
|
506
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
|
507
|
+
end
|
|
508
|
+
|
|
509
|
+
@connect_timeout = connect_timeout
|
|
510
510
|
end
|
|
511
511
|
|
|
512
512
|
# Custom attribute writer method with validation
|
|
@@ -528,26 +528,26 @@ module PulpAnsibleClient
|
|
|
528
528
|
def ==(o)
|
|
529
529
|
return true if self.equal?(o)
|
|
530
530
|
self.class == o.class &&
|
|
531
|
-
|
|
532
|
-
sock_read_timeout == o.sock_read_timeout &&
|
|
533
|
-
download_concurrency == o.download_concurrency &&
|
|
531
|
+
url == o.url &&
|
|
534
532
|
max_retries == o.max_retries &&
|
|
535
|
-
|
|
533
|
+
proxy_url == o.proxy_url &&
|
|
534
|
+
headers == o.headers &&
|
|
535
|
+
client_key == o.client_key &&
|
|
536
|
+
name == o.name &&
|
|
537
|
+
download_concurrency == o.download_concurrency &&
|
|
536
538
|
client_cert == o.client_cert &&
|
|
539
|
+
total_timeout == o.total_timeout &&
|
|
537
540
|
tls_validation == o.tls_validation &&
|
|
541
|
+
password == o.password &&
|
|
542
|
+
sock_read_timeout == o.sock_read_timeout &&
|
|
543
|
+
rate_limit == o.rate_limit &&
|
|
544
|
+
proxy_username == o.proxy_username &&
|
|
538
545
|
username == o.username &&
|
|
546
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
|
547
|
+
proxy_password == o.proxy_password &&
|
|
548
|
+
ca_cert == o.ca_cert &&
|
|
539
549
|
pulp_labels == o.pulp_labels &&
|
|
540
550
|
connect_timeout == o.connect_timeout &&
|
|
541
|
-
ca_cert == o.ca_cert &&
|
|
542
|
-
proxy_password == o.proxy_password &&
|
|
543
|
-
proxy_url == o.proxy_url &&
|
|
544
|
-
proxy_username == o.proxy_username &&
|
|
545
|
-
rate_limit == o.rate_limit &&
|
|
546
|
-
headers == o.headers &&
|
|
547
|
-
url == o.url &&
|
|
548
|
-
client_key == o.client_key &&
|
|
549
|
-
sock_connect_timeout == o.sock_connect_timeout &&
|
|
550
|
-
name == o.name &&
|
|
551
551
|
metadata_only == o.metadata_only &&
|
|
552
552
|
git_ref == o.git_ref
|
|
553
553
|
end
|
|
@@ -561,7 +561,7 @@ module PulpAnsibleClient
|
|
|
561
561
|
# Calculates hash code according to all attributes.
|
|
562
562
|
# @return [Integer] Hash code
|
|
563
563
|
def hash
|
|
564
|
-
[
|
|
564
|
+
[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
|
|
565
565
|
end
|
|
566
566
|
|
|
567
567
|
# Builds the object from hash
|