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