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 AnsibleGitRemote
|
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,30 +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.
|
199
|
-
else
|
200
|
-
self.url = nil
|
197
|
+
if attributes.key?(:'download_concurrency')
|
198
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
201
199
|
end
|
202
200
|
|
203
|
-
if attributes.key?(:'
|
204
|
-
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']
|
205
207
|
end
|
206
208
|
|
207
209
|
if attributes.key?(:'client_cert')
|
@@ -212,18 +214,22 @@ module PulpAnsibleClient
|
|
212
214
|
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
213
215
|
end
|
214
216
|
|
215
|
-
if attributes.key?(:'
|
216
|
-
|
217
|
-
|
218
|
-
|
217
|
+
if attributes.key?(:'headers')
|
218
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
219
|
+
self.headers = value
|
220
|
+
end
|
219
221
|
end
|
220
222
|
|
221
|
-
if attributes.key?(:'
|
222
|
-
self.
|
223
|
+
if attributes.key?(:'max_retries')
|
224
|
+
self.max_retries = attributes[:'max_retries']
|
223
225
|
end
|
224
226
|
|
225
|
-
if attributes.key?(:'
|
226
|
-
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']
|
227
233
|
end
|
228
234
|
|
229
235
|
if attributes.key?(:'pulp_labels')
|
@@ -232,38 +238,32 @@ module PulpAnsibleClient
|
|
232
238
|
end
|
233
239
|
end
|
234
240
|
|
235
|
-
if attributes.key?(:'
|
236
|
-
self.
|
237
|
-
end
|
238
|
-
|
239
|
-
if attributes.key?(:'headers')
|
240
|
-
if (value = attributes[:'headers']).is_a?(Array)
|
241
|
-
self.headers = value
|
242
|
-
end
|
243
|
-
end
|
244
|
-
|
245
|
-
if attributes.key?(:'total_timeout')
|
246
|
-
self.total_timeout = attributes[:'total_timeout']
|
241
|
+
if attributes.key?(:'connect_timeout')
|
242
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
247
243
|
end
|
248
244
|
|
249
|
-
if attributes.key?(:'
|
250
|
-
self.
|
245
|
+
if attributes.key?(:'client_key')
|
246
|
+
self.client_key = attributes[:'client_key']
|
251
247
|
end
|
252
248
|
|
253
249
|
if attributes.key?(:'sock_read_timeout')
|
254
250
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
255
251
|
end
|
256
252
|
|
257
|
-
if attributes.key?(:'
|
258
|
-
self.
|
253
|
+
if attributes.key?(:'name')
|
254
|
+
self.name = attributes[:'name']
|
255
|
+
else
|
256
|
+
self.name = nil
|
259
257
|
end
|
260
258
|
|
261
|
-
if attributes.key?(:'
|
262
|
-
self.
|
259
|
+
if attributes.key?(:'url')
|
260
|
+
self.url = attributes[:'url']
|
261
|
+
else
|
262
|
+
self.url = nil
|
263
263
|
end
|
264
264
|
|
265
|
-
if attributes.key?(:'
|
266
|
-
self.
|
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,24 +280,24 @@ 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 "
|
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.')
|
285
285
|
end
|
286
286
|
|
287
|
-
if !@
|
288
|
-
invalid_properties.push('invalid value for "
|
287
|
+
if !@password.nil? && @password.to_s.length < 1
|
288
|
+
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
289
289
|
end
|
290
290
|
|
291
|
-
if !@
|
292
|
-
invalid_properties.push('invalid value for "
|
291
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
292
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
293
293
|
end
|
294
294
|
|
295
|
-
if
|
296
|
-
invalid_properties.push('invalid value for "
|
295
|
+
if !@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
297
|
end
|
298
298
|
|
299
|
-
if @
|
300
|
-
invalid_properties.push('invalid value for "
|
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
|
@@ -308,12 +308,8 @@ module PulpAnsibleClient
|
|
308
308
|
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
309
309
|
end
|
310
310
|
|
311
|
-
if
|
312
|
-
invalid_properties.push('invalid value for "
|
313
|
-
end
|
314
|
-
|
315
|
-
if @name.to_s.length < 1
|
316
|
-
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
311
|
+
if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
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
315
|
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
@@ -324,28 +320,28 @@ module PulpAnsibleClient
|
|
324
320
|
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
325
321
|
end
|
326
322
|
|
327
|
-
if !@
|
328
|
-
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.')
|
329
325
|
end
|
330
326
|
|
331
|
-
if
|
332
|
-
invalid_properties.push('invalid value for "
|
327
|
+
if @name.nil?
|
328
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
333
329
|
end
|
334
330
|
|
335
|
-
if
|
336
|
-
invalid_properties.push('invalid value for "
|
331
|
+
if @name.to_s.length < 1
|
332
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
337
333
|
end
|
338
334
|
|
339
|
-
if
|
340
|
-
invalid_properties.push('invalid value for "
|
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,27 +355,36 @@ module PulpAnsibleClient
|
|
359
355
|
# @return true if the model is valid
|
360
356
|
def valid?
|
361
357
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
362
|
-
return false if !@password.nil? && @password.to_s.length < 1
|
363
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
364
358
|
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
365
|
-
return false if
|
366
|
-
return false if
|
359
|
+
return false if !@password.nil? && @password.to_s.length < 1
|
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
|
367
363
|
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
368
364
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
369
|
-
return false if
|
370
|
-
return false if @name.to_s.length < 1
|
365
|
+
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
371
366
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
372
367
|
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
373
|
-
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
374
|
-
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
375
368
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
376
|
-
return false if
|
377
|
-
return false if
|
378
|
-
return false if
|
369
|
+
return false if @name.nil?
|
370
|
+
return false if @name.to_s.length < 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
|
|
378
|
+
# Custom attribute writer method with validation
|
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.'
|
383
|
+
end
|
384
|
+
|
385
|
+
@proxy_password = proxy_password
|
386
|
+
end
|
387
|
+
|
383
388
|
# Custom attribute writer method with validation
|
384
389
|
# @param [Object] password Value to be assigned
|
385
390
|
def password=(password)
|
@@ -391,37 +396,33 @@ module PulpAnsibleClient
|
|
391
396
|
end
|
392
397
|
|
393
398
|
# Custom attribute writer method with validation
|
394
|
-
# @param [Object]
|
395
|
-
def
|
396
|
-
if !
|
397
|
-
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.'
|
398
403
|
end
|
399
404
|
|
400
|
-
@
|
405
|
+
@total_timeout = total_timeout
|
401
406
|
end
|
402
407
|
|
403
408
|
# Custom attribute writer method with validation
|
404
|
-
# @param [Object]
|
405
|
-
def
|
406
|
-
if !
|
407
|
-
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.'
|
408
413
|
end
|
409
414
|
|
410
|
-
@
|
415
|
+
@username = username
|
411
416
|
end
|
412
417
|
|
413
418
|
# Custom attribute writer method with validation
|
414
|
-
# @param [Object]
|
415
|
-
def
|
416
|
-
if
|
417
|
-
fail ArgumentError, '
|
418
|
-
end
|
419
|
-
|
420
|
-
if url.to_s.length < 1
|
421
|
-
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
|
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.'
|
422
423
|
end
|
423
424
|
|
424
|
-
@
|
425
|
+
@proxy_url = proxy_url
|
425
426
|
end
|
426
427
|
|
427
428
|
# Custom attribute writer method with validation
|
@@ -445,17 +446,13 @@ module PulpAnsibleClient
|
|
445
446
|
end
|
446
447
|
|
447
448
|
# Custom attribute writer method with validation
|
448
|
-
# @param [Object]
|
449
|
-
def
|
450
|
-
if
|
451
|
-
fail ArgumentError, '
|
452
|
-
end
|
453
|
-
|
454
|
-
if name.to_s.length < 1
|
455
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
449
|
+
# @param [Object] proxy_username Value to be assigned
|
450
|
+
def proxy_username=(proxy_username)
|
451
|
+
if !proxy_username.nil? && proxy_username.to_s.length < 1
|
452
|
+
fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
|
456
453
|
end
|
457
454
|
|
458
|
-
@
|
455
|
+
@proxy_username = proxy_username
|
459
456
|
end
|
460
457
|
|
461
458
|
# Custom attribute writer method with validation
|
@@ -478,26 +475,6 @@ module PulpAnsibleClient
|
|
478
475
|
@client_key = client_key
|
479
476
|
end
|
480
477
|
|
481
|
-
# Custom attribute writer method with validation
|
482
|
-
# @param [Object] ca_cert Value to be assigned
|
483
|
-
def ca_cert=(ca_cert)
|
484
|
-
if !ca_cert.nil? && ca_cert.to_s.length < 1
|
485
|
-
fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
|
486
|
-
end
|
487
|
-
|
488
|
-
@ca_cert = ca_cert
|
489
|
-
end
|
490
|
-
|
491
|
-
# Custom attribute writer method with validation
|
492
|
-
# @param [Object] total_timeout Value to be assigned
|
493
|
-
def total_timeout=(total_timeout)
|
494
|
-
if !total_timeout.nil? && total_timeout < 0.0
|
495
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
496
|
-
end
|
497
|
-
|
498
|
-
@total_timeout = total_timeout
|
499
|
-
end
|
500
|
-
|
501
478
|
# Custom attribute writer method with validation
|
502
479
|
# @param [Object] sock_read_timeout Value to be assigned
|
503
480
|
def sock_read_timeout=(sock_read_timeout)
|
@@ -509,33 +486,41 @@ module PulpAnsibleClient
|
|
509
486
|
end
|
510
487
|
|
511
488
|
# Custom attribute writer method with validation
|
512
|
-
# @param [Object]
|
513
|
-
def
|
514
|
-
if
|
515
|
-
fail ArgumentError, '
|
489
|
+
# @param [Object] name Value to be assigned
|
490
|
+
def name=(name)
|
491
|
+
if name.nil?
|
492
|
+
fail ArgumentError, 'name cannot be nil'
|
516
493
|
end
|
517
494
|
|
518
|
-
|
495
|
+
if name.to_s.length < 1
|
496
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
497
|
+
end
|
498
|
+
|
499
|
+
@name = name
|
519
500
|
end
|
520
501
|
|
521
502
|
# Custom attribute writer method with validation
|
522
|
-
# @param [Object]
|
523
|
-
def
|
524
|
-
if
|
525
|
-
fail ArgumentError, '
|
503
|
+
# @param [Object] url Value to be assigned
|
504
|
+
def url=(url)
|
505
|
+
if url.nil?
|
506
|
+
fail ArgumentError, 'url cannot be nil'
|
526
507
|
end
|
527
508
|
|
528
|
-
|
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.'
|
511
|
+
end
|
512
|
+
|
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
|
-
password == o.password &&
|
561
|
-
download_concurrency == o.download_concurrency &&
|
562
|
-
rate_limit == o.rate_limit &&
|
563
545
|
proxy_password == o.proxy_password &&
|
564
|
-
url == o.url &&
|
565
546
|
tls_validation == o.tls_validation &&
|
547
|
+
password == o.password &&
|
548
|
+
total_timeout == o.total_timeout &&
|
549
|
+
download_concurrency == o.download_concurrency &&
|
550
|
+
username == o.username &&
|
551
|
+
proxy_url == o.proxy_url &&
|
566
552
|
client_cert == o.client_cert &&
|
567
553
|
sock_connect_timeout == o.sock_connect_timeout &&
|
568
|
-
name == o.name &&
|
569
|
-
connect_timeout == o.connect_timeout &&
|
570
|
-
client_key == o.client_key &&
|
571
|
-
pulp_labels == o.pulp_labels &&
|
572
|
-
ca_cert == o.ca_cert &&
|
573
554
|
headers == o.headers &&
|
574
|
-
total_timeout == o.total_timeout &&
|
575
555
|
max_retries == o.max_retries &&
|
576
|
-
sock_read_timeout == o.sock_read_timeout &&
|
577
|
-
proxy_url == o.proxy_url &&
|
578
556
|
proxy_username == o.proxy_username &&
|
579
|
-
|
557
|
+
rate_limit == o.rate_limit &&
|
558
|
+
pulp_labels == o.pulp_labels &&
|
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
|