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