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