pulp_ansible_client 0.24.1 → 0.24.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +16 -4
- data/docs/AnsibleAnsibleCollectionDeprecated.md +2 -0
- data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +2 -0
- data/docs/AnsibleCollectionVersionResponse.md +6 -4
- data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -0
- data/docs/AnsibleGitRemote.md +30 -30
- data/docs/AnsibleGitRemoteResponse.md +28 -28
- data/docs/AnsibleRole.md +2 -0
- data/docs/AnsibleRoleResponse.md +6 -4
- 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 +150 -2
- data/docs/ContentRolesApi.md +150 -2
- data/docs/DistributionsAnsibleApi.md +4 -2
- data/docs/PatchedansibleGitRemote.md +30 -30
- 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 +154 -3
- data/lib/pulp_ansible_client/api/content_roles_api.rb +154 -3
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +6 -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 +33 -21
- data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +13 -1
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +248 -248
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +165 -165
- data/lib/pulp_ansible_client/models/ansible_role.rb +13 -1
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +29 -17
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +239 -239
- data/lib/pulp_ansible_client/models/unset_label.rb +1 -1
- data/lib/pulp_ansible_client/models/unset_label_response.rb +1 -1
- 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 +28 -1
- data/spec/api/content_roles_api_spec.rb +28 -1
- data/spec/api/distributions_ansible_api_spec.rb +2 -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 +20 -20
- data/spec/models/ansible_git_remote_spec.rb +20 -20
- data/spec/models/ansible_role_response_spec.rb +9 -3
- data/spec/models/ansible_role_spec.rb +6 -0
- data/spec/models/patchedansible_git_remote_spec.rb +20 -20
- metadata +123 -123
@@ -16,64 +16,64 @@ require 'time'
|
|
16
16
|
module PulpAnsibleClient
|
17
17
|
# A serializer for Git Collection Remotes.
|
18
18
|
class PatchedansibleGitRemote
|
19
|
-
#
|
20
|
-
attr_accessor :
|
21
|
-
|
22
|
-
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
23
|
-
attr_accessor :max_retries
|
24
|
-
|
25
|
-
# A unique name for this remote.
|
26
|
-
attr_accessor :name
|
27
|
-
|
28
|
-
attr_accessor :pulp_labels
|
29
|
-
|
30
|
-
# The username to authenticte to the proxy.
|
31
|
-
attr_accessor :proxy_username
|
19
|
+
# Limits requests per second for each concurrent downloader
|
20
|
+
attr_accessor :rate_limit
|
32
21
|
|
33
|
-
#
|
34
|
-
attr_accessor :
|
22
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
23
|
+
attr_accessor :download_concurrency
|
35
24
|
|
36
|
-
# aiohttp.ClientTimeout.
|
37
|
-
attr_accessor :
|
25
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
26
|
+
attr_accessor :total_timeout
|
38
27
|
|
39
|
-
#
|
40
|
-
attr_accessor :
|
28
|
+
# A PEM encoded private key used for authentication.
|
29
|
+
attr_accessor :client_key
|
41
30
|
|
42
31
|
# Headers for aiohttp.Clientsession
|
43
32
|
attr_accessor :headers
|
44
33
|
|
45
|
-
#
|
46
|
-
attr_accessor :
|
34
|
+
# If True, TLS peer validation must be performed.
|
35
|
+
attr_accessor :tls_validation
|
47
36
|
|
48
|
-
|
49
|
-
attr_accessor :client_key
|
37
|
+
attr_accessor :pulp_labels
|
50
38
|
|
51
|
-
#
|
52
|
-
attr_accessor :
|
39
|
+
# 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.
|
40
|
+
attr_accessor :sock_connect_timeout
|
53
41
|
|
54
|
-
#
|
55
|
-
attr_accessor :
|
42
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
43
|
+
attr_accessor :ca_cert
|
56
44
|
|
57
|
-
#
|
58
|
-
attr_accessor :
|
45
|
+
# The password to be used for authentication when syncing. Extra leading and trailing whitespace characters are not trimmed.
|
46
|
+
attr_accessor :password
|
59
47
|
|
60
48
|
# The URL of an external content source.
|
61
49
|
attr_accessor :url
|
62
50
|
|
63
|
-
#
|
64
|
-
attr_accessor :
|
51
|
+
# The username to authenticte to the proxy.
|
52
|
+
attr_accessor :proxy_username
|
53
|
+
|
54
|
+
# 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.
|
55
|
+
attr_accessor :sock_read_timeout
|
65
56
|
|
66
57
|
# The proxy URL. Format: scheme://host:port
|
67
58
|
attr_accessor :proxy_url
|
68
59
|
|
69
|
-
# The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
|
70
|
-
attr_accessor :proxy_password
|
71
|
-
|
72
60
|
# The username to be used for authentication when syncing.
|
73
61
|
attr_accessor :username
|
74
62
|
|
75
|
-
#
|
76
|
-
attr_accessor :
|
63
|
+
# A PEM encoded client certificate used for authentication.
|
64
|
+
attr_accessor :client_cert
|
65
|
+
|
66
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
67
|
+
attr_accessor :max_retries
|
68
|
+
|
69
|
+
# A unique name for this remote.
|
70
|
+
attr_accessor :name
|
71
|
+
|
72
|
+
# The password to authenticate to the proxy. Extra leading and trailing whitespace characters are not trimmed.
|
73
|
+
attr_accessor :proxy_password
|
74
|
+
|
75
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
76
|
+
attr_accessor :connect_timeout
|
77
77
|
|
78
78
|
# If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
|
79
79
|
attr_accessor :metadata_only
|
@@ -84,26 +84,26 @@ module PulpAnsibleClient
|
|
84
84
|
# Attribute mapping from ruby-style variable name to JSON key.
|
85
85
|
def self.attribute_map
|
86
86
|
{
|
87
|
-
:'
|
88
|
-
:'
|
89
|
-
:'name' => :'name',
|
90
|
-
:'pulp_labels' => :'pulp_labels',
|
91
|
-
:'proxy_username' => :'proxy_username',
|
92
|
-
:'sock_connect_timeout' => :'sock_connect_timeout',
|
93
|
-
:'connect_timeout' => :'connect_timeout',
|
94
|
-
:'tls_validation' => :'tls_validation',
|
95
|
-
:'headers' => :'headers',
|
87
|
+
:'rate_limit' => :'rate_limit',
|
88
|
+
:'download_concurrency' => :'download_concurrency',
|
96
89
|
:'total_timeout' => :'total_timeout',
|
97
90
|
:'client_key' => :'client_key',
|
98
|
-
:'
|
99
|
-
:'
|
100
|
-
:'
|
101
|
-
:'
|
91
|
+
:'headers' => :'headers',
|
92
|
+
:'tls_validation' => :'tls_validation',
|
93
|
+
:'pulp_labels' => :'pulp_labels',
|
94
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
102
95
|
:'ca_cert' => :'ca_cert',
|
96
|
+
:'password' => :'password',
|
97
|
+
:'url' => :'url',
|
98
|
+
:'proxy_username' => :'proxy_username',
|
99
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
103
100
|
:'proxy_url' => :'proxy_url',
|
104
|
-
:'proxy_password' => :'proxy_password',
|
105
101
|
:'username' => :'username',
|
106
|
-
:'
|
102
|
+
:'client_cert' => :'client_cert',
|
103
|
+
:'max_retries' => :'max_retries',
|
104
|
+
:'name' => :'name',
|
105
|
+
:'proxy_password' => :'proxy_password',
|
106
|
+
:'connect_timeout' => :'connect_timeout',
|
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
|
-
:'
|
122
|
-
:'name' => :'String',
|
123
|
-
:'pulp_labels' => :'Hash<String, String>',
|
124
|
-
:'proxy_username' => :'String',
|
125
|
-
:'sock_connect_timeout' => :'Float',
|
126
|
-
:'connect_timeout' => :'Float',
|
127
|
-
:'tls_validation' => :'Boolean',
|
128
|
-
:'headers' => :'Array<Object>',
|
120
|
+
:'rate_limit' => :'Integer',
|
121
|
+
:'download_concurrency' => :'Integer',
|
129
122
|
:'total_timeout' => :'Float',
|
130
123
|
:'client_key' => :'String',
|
131
|
-
:'
|
132
|
-
:'
|
133
|
-
:'
|
134
|
-
:'
|
124
|
+
:'headers' => :'Array<Object>',
|
125
|
+
:'tls_validation' => :'Boolean',
|
126
|
+
:'pulp_labels' => :'Hash<String, String>',
|
127
|
+
:'sock_connect_timeout' => :'Float',
|
135
128
|
:'ca_cert' => :'String',
|
129
|
+
:'password' => :'String',
|
130
|
+
:'url' => :'String',
|
131
|
+
:'proxy_username' => :'String',
|
132
|
+
:'sock_read_timeout' => :'Float',
|
136
133
|
:'proxy_url' => :'String',
|
137
|
-
:'proxy_password' => :'String',
|
138
134
|
:'username' => :'String',
|
139
|
-
:'
|
135
|
+
:'client_cert' => :'String',
|
136
|
+
:'max_retries' => :'Integer',
|
137
|
+
:'name' => :'String',
|
138
|
+
:'proxy_password' => :'String',
|
139
|
+
:'connect_timeout' => :'Float',
|
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
|
-
:'
|
149
|
-
:'
|
150
|
-
:'proxy_username',
|
151
|
-
:'sock_connect_timeout',
|
152
|
-
:'connect_timeout',
|
148
|
+
:'rate_limit',
|
149
|
+
:'download_concurrency',
|
153
150
|
:'total_timeout',
|
154
151
|
:'client_key',
|
155
|
-
:'
|
156
|
-
:'download_concurrency',
|
157
|
-
:'sock_read_timeout',
|
152
|
+
:'sock_connect_timeout',
|
158
153
|
:'ca_cert',
|
154
|
+
:'password',
|
155
|
+
:'proxy_username',
|
156
|
+
:'sock_read_timeout',
|
159
157
|
:'proxy_url',
|
160
|
-
:'proxy_password',
|
161
158
|
:'username',
|
162
|
-
:'
|
159
|
+
:'client_cert',
|
160
|
+
:'max_retries',
|
161
|
+
:'proxy_password',
|
162
|
+
:'connect_timeout',
|
163
163
|
])
|
164
164
|
end
|
165
165
|
|
@@ -178,16 +178,30 @@ module PulpAnsibleClient
|
|
178
178
|
h[k.to_sym] = v
|
179
179
|
}
|
180
180
|
|
181
|
-
if attributes.key?(:'
|
182
|
-
self.
|
181
|
+
if attributes.key?(:'rate_limit')
|
182
|
+
self.rate_limit = attributes[:'rate_limit']
|
183
183
|
end
|
184
184
|
|
185
|
-
if attributes.key?(:'
|
186
|
-
self.
|
185
|
+
if attributes.key?(:'download_concurrency')
|
186
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
187
187
|
end
|
188
188
|
|
189
|
-
if attributes.key?(:'
|
190
|
-
self.
|
189
|
+
if attributes.key?(:'total_timeout')
|
190
|
+
self.total_timeout = attributes[:'total_timeout']
|
191
|
+
end
|
192
|
+
|
193
|
+
if attributes.key?(:'client_key')
|
194
|
+
self.client_key = attributes[:'client_key']
|
195
|
+
end
|
196
|
+
|
197
|
+
if attributes.key?(:'headers')
|
198
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
199
|
+
self.headers = value
|
200
|
+
end
|
201
|
+
end
|
202
|
+
|
203
|
+
if attributes.key?(:'tls_validation')
|
204
|
+
self.tls_validation = attributes[:'tls_validation']
|
191
205
|
end
|
192
206
|
|
193
207
|
if attributes.key?(:'pulp_labels')
|
@@ -196,70 +210,56 @@ module PulpAnsibleClient
|
|
196
210
|
end
|
197
211
|
end
|
198
212
|
|
199
|
-
if attributes.key?(:'proxy_username')
|
200
|
-
self.proxy_username = attributes[:'proxy_username']
|
201
|
-
end
|
202
|
-
|
203
213
|
if attributes.key?(:'sock_connect_timeout')
|
204
214
|
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
205
215
|
end
|
206
216
|
|
207
|
-
if attributes.key?(:'
|
208
|
-
self.
|
209
|
-
end
|
210
|
-
|
211
|
-
if attributes.key?(:'tls_validation')
|
212
|
-
self.tls_validation = attributes[:'tls_validation']
|
217
|
+
if attributes.key?(:'ca_cert')
|
218
|
+
self.ca_cert = attributes[:'ca_cert']
|
213
219
|
end
|
214
220
|
|
215
|
-
if attributes.key?(:'
|
216
|
-
|
217
|
-
self.headers = value
|
218
|
-
end
|
221
|
+
if attributes.key?(:'password')
|
222
|
+
self.password = attributes[:'password']
|
219
223
|
end
|
220
224
|
|
221
|
-
if attributes.key?(:'
|
222
|
-
self.
|
225
|
+
if attributes.key?(:'url')
|
226
|
+
self.url = attributes[:'url']
|
223
227
|
end
|
224
228
|
|
225
|
-
if attributes.key?(:'
|
226
|
-
self.
|
229
|
+
if attributes.key?(:'proxy_username')
|
230
|
+
self.proxy_username = attributes[:'proxy_username']
|
227
231
|
end
|
228
232
|
|
229
|
-
if attributes.key?(:'
|
230
|
-
self.
|
233
|
+
if attributes.key?(:'sock_read_timeout')
|
234
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
231
235
|
end
|
232
236
|
|
233
|
-
if attributes.key?(:'
|
234
|
-
self.
|
237
|
+
if attributes.key?(:'proxy_url')
|
238
|
+
self.proxy_url = attributes[:'proxy_url']
|
235
239
|
end
|
236
240
|
|
237
|
-
if attributes.key?(:'
|
238
|
-
self.
|
241
|
+
if attributes.key?(:'username')
|
242
|
+
self.username = attributes[:'username']
|
239
243
|
end
|
240
244
|
|
241
|
-
if attributes.key?(:'
|
242
|
-
self.
|
245
|
+
if attributes.key?(:'client_cert')
|
246
|
+
self.client_cert = attributes[:'client_cert']
|
243
247
|
end
|
244
248
|
|
245
|
-
if attributes.key?(:'
|
246
|
-
self.
|
249
|
+
if attributes.key?(:'max_retries')
|
250
|
+
self.max_retries = attributes[:'max_retries']
|
247
251
|
end
|
248
252
|
|
249
|
-
if attributes.key?(:'
|
250
|
-
self.
|
253
|
+
if attributes.key?(:'name')
|
254
|
+
self.name = attributes[:'name']
|
251
255
|
end
|
252
256
|
|
253
257
|
if attributes.key?(:'proxy_password')
|
254
258
|
self.proxy_password = attributes[:'proxy_password']
|
255
259
|
end
|
256
260
|
|
257
|
-
if attributes.key?(:'
|
258
|
-
self.
|
259
|
-
end
|
260
|
-
|
261
|
-
if attributes.key?(:'rate_limit')
|
262
|
-
self.rate_limit = attributes[:'rate_limit']
|
261
|
+
if attributes.key?(:'connect_timeout')
|
262
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
263
263
|
end
|
264
264
|
|
265
265
|
if attributes.key?(:'metadata_only')
|
@@ -276,64 +276,64 @@ 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 !@download_concurrency.nil? && @download_concurrency < 1
|
280
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
281
281
|
end
|
282
282
|
|
283
|
-
if !@
|
284
|
-
invalid_properties.push('invalid value for "
|
283
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
284
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
285
285
|
end
|
286
286
|
|
287
|
-
if !@
|
288
|
-
invalid_properties.push('invalid value for "
|
287
|
+
if !@client_key.nil? && @client_key.to_s.length < 1
|
288
|
+
invalid_properties.push('invalid value for "client_key", the character length must be great than or equal to 1.')
|
289
289
|
end
|
290
290
|
|
291
291
|
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
292
292
|
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
293
293
|
end
|
294
294
|
|
295
|
-
if !@
|
296
|
-
invalid_properties.push('invalid value for "
|
297
|
-
end
|
298
|
-
|
299
|
-
if !@total_timeout.nil? && @total_timeout < 0.0
|
300
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
295
|
+
if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
296
|
+
invalid_properties.push('invalid value for "ca_cert", the character length must be great than or equal to 1.')
|
301
297
|
end
|
302
298
|
|
303
|
-
if !@
|
304
|
-
invalid_properties.push('invalid value for "
|
299
|
+
if !@password.nil? && @password.to_s.length < 1
|
300
|
+
invalid_properties.push('invalid value for "password", the character length must be great than or equal to 1.')
|
305
301
|
end
|
306
302
|
|
307
|
-
if !@
|
308
|
-
invalid_properties.push('invalid value for "
|
303
|
+
if !@url.nil? && @url.to_s.length < 1
|
304
|
+
invalid_properties.push('invalid value for "url", the character length must be great than or equal to 1.')
|
309
305
|
end
|
310
306
|
|
311
|
-
if !@
|
312
|
-
invalid_properties.push('invalid value for "
|
307
|
+
if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
308
|
+
invalid_properties.push('invalid value for "proxy_username", the character length must be great than or equal to 1.')
|
313
309
|
end
|
314
310
|
|
315
311
|
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
316
312
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
317
313
|
end
|
318
314
|
|
319
|
-
if !@
|
320
|
-
invalid_properties.push('invalid value for "
|
315
|
+
if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
316
|
+
invalid_properties.push('invalid value for "proxy_url", the character length must be great than or equal to 1.')
|
321
317
|
end
|
322
318
|
|
323
|
-
if !@
|
324
|
-
invalid_properties.push('invalid value for "
|
319
|
+
if !@username.nil? && @username.to_s.length < 1
|
320
|
+
invalid_properties.push('invalid value for "username", 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 !@client_cert.nil? && @client_cert.to_s.length < 1
|
324
|
+
invalid_properties.push('invalid value for "client_cert", the character length must be great than or equal to 1.')
|
325
|
+
end
|
326
|
+
|
327
|
+
if !@name.nil? && @name.to_s.length < 1
|
328
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 1.')
|
329
329
|
end
|
330
330
|
|
331
331
|
if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
332
332
|
invalid_properties.push('invalid value for "proxy_password", the character length must be great than or equal to 1.')
|
333
333
|
end
|
334
334
|
|
335
|
-
if !@
|
336
|
-
invalid_properties.push('invalid value for "
|
335
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
336
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
337
337
|
end
|
338
338
|
|
339
339
|
if !@git_ref.nil? && @git_ref.to_s.length < 1
|
@@ -347,57 +347,53 @@ 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 !@
|
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
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
354
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
350
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
355
351
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
356
352
|
return false if !@client_key.nil? && @client_key.to_s.length < 1
|
357
|
-
return false if !@
|
358
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
359
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
360
|
-
return false if !@url.nil? && @url.to_s.length < 1
|
353
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
361
354
|
return false if !@ca_cert.nil? && @ca_cert.to_s.length < 1
|
355
|
+
return false if !@password.nil? && @password.to_s.length < 1
|
356
|
+
return false if !@url.nil? && @url.to_s.length < 1
|
357
|
+
return false if !@proxy_username.nil? && @proxy_username.to_s.length < 1
|
358
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
362
359
|
return false if !@proxy_url.nil? && @proxy_url.to_s.length < 1
|
363
|
-
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
364
360
|
return false if !@username.nil? && @username.to_s.length < 1
|
361
|
+
return false if !@client_cert.nil? && @client_cert.to_s.length < 1
|
362
|
+
return false if !@name.nil? && @name.to_s.length < 1
|
363
|
+
return false if !@proxy_password.nil? && @proxy_password.to_s.length < 1
|
364
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
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] download_concurrency Value to be assigned
|
371
|
+
def download_concurrency=(download_concurrency)
|
372
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
373
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
374
374
|
end
|
375
375
|
|
376
|
-
@
|
376
|
+
@download_concurrency = download_concurrency
|
377
377
|
end
|
378
378
|
|
379
379
|
# Custom attribute writer method with validation
|
380
|
-
# @param [Object]
|
381
|
-
def
|
382
|
-
if
|
383
|
-
fail ArgumentError, '
|
384
|
-
end
|
385
|
-
|
386
|
-
if name.to_s.length < 1
|
387
|
-
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
380
|
+
# @param [Object] total_timeout Value to be assigned
|
381
|
+
def total_timeout=(total_timeout)
|
382
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
383
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
388
384
|
end
|
389
385
|
|
390
|
-
@
|
386
|
+
@total_timeout = total_timeout
|
391
387
|
end
|
392
388
|
|
393
389
|
# Custom attribute writer method with validation
|
394
|
-
# @param [Object]
|
395
|
-
def
|
396
|
-
if !
|
397
|
-
fail ArgumentError, 'invalid value for "
|
390
|
+
# @param [Object] client_key Value to be assigned
|
391
|
+
def client_key=(client_key)
|
392
|
+
if !client_key.nil? && client_key.to_s.length < 1
|
393
|
+
fail ArgumentError, 'invalid value for "client_key", the character length must be great than or equal to 1.'
|
398
394
|
end
|
399
395
|
|
400
|
-
@
|
396
|
+
@client_key = client_key
|
401
397
|
end
|
402
398
|
|
403
399
|
# Custom attribute writer method with validation
|
@@ -411,53 +407,47 @@ module PulpAnsibleClient
|
|
411
407
|
end
|
412
408
|
|
413
409
|
# Custom attribute writer method with validation
|
414
|
-
# @param [Object]
|
415
|
-
def
|
416
|
-
if !
|
417
|
-
fail ArgumentError, 'invalid value for "
|
410
|
+
# @param [Object] ca_cert Value to be assigned
|
411
|
+
def ca_cert=(ca_cert)
|
412
|
+
if !ca_cert.nil? && ca_cert.to_s.length < 1
|
413
|
+
fail ArgumentError, 'invalid value for "ca_cert", the character length must be great than or equal to 1.'
|
418
414
|
end
|
419
415
|
|
420
|
-
@
|
416
|
+
@ca_cert = ca_cert
|
421
417
|
end
|
422
418
|
|
423
419
|
# Custom attribute writer method with validation
|
424
|
-
# @param [Object]
|
425
|
-
def
|
426
|
-
if !
|
427
|
-
fail ArgumentError, 'invalid value for "
|
420
|
+
# @param [Object] password Value to be assigned
|
421
|
+
def password=(password)
|
422
|
+
if !password.nil? && password.to_s.length < 1
|
423
|
+
fail ArgumentError, 'invalid value for "password", the character length must be great than or equal to 1.'
|
428
424
|
end
|
429
425
|
|
430
|
-
@
|
426
|
+
@password = password
|
431
427
|
end
|
432
428
|
|
433
429
|
# Custom attribute writer method with validation
|
434
|
-
# @param [Object]
|
435
|
-
def
|
436
|
-
if
|
437
|
-
fail ArgumentError, '
|
430
|
+
# @param [Object] url Value to be assigned
|
431
|
+
def url=(url)
|
432
|
+
if url.nil?
|
433
|
+
fail ArgumentError, 'url cannot be nil'
|
438
434
|
end
|
439
435
|
|
440
|
-
|
441
|
-
|
442
|
-
|
443
|
-
# Custom attribute writer method with validation
|
444
|
-
# @param [Object] client_cert Value to be assigned
|
445
|
-
def client_cert=(client_cert)
|
446
|
-
if !client_cert.nil? && client_cert.to_s.length < 1
|
447
|
-
fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
|
436
|
+
if url.to_s.length < 1
|
437
|
+
fail ArgumentError, 'invalid value for "url", the character length must be great than or equal to 1.'
|
448
438
|
end
|
449
439
|
|
450
|
-
@
|
440
|
+
@url = url
|
451
441
|
end
|
452
442
|
|
453
443
|
# Custom attribute writer method with validation
|
454
|
-
# @param [Object]
|
455
|
-
def
|
456
|
-
if !
|
457
|
-
fail ArgumentError, 'invalid value for "
|
444
|
+
# @param [Object] proxy_username Value to be assigned
|
445
|
+
def proxy_username=(proxy_username)
|
446
|
+
if !proxy_username.nil? && proxy_username.to_s.length < 1
|
447
|
+
fail ArgumentError, 'invalid value for "proxy_username", the character length must be great than or equal to 1.'
|
458
448
|
end
|
459
449
|
|
460
|
-
@
|
450
|
+
@proxy_username = proxy_username
|
461
451
|
end
|
462
452
|
|
463
453
|
# Custom attribute writer method with validation
|
@@ -471,37 +461,47 @@ module PulpAnsibleClient
|
|
471
461
|
end
|
472
462
|
|
473
463
|
# Custom attribute writer method with validation
|
474
|
-
# @param [Object]
|
475
|
-
def
|
476
|
-
if
|
477
|
-
fail ArgumentError, '
|
464
|
+
# @param [Object] proxy_url Value to be assigned
|
465
|
+
def proxy_url=(proxy_url)
|
466
|
+
if !proxy_url.nil? && proxy_url.to_s.length < 1
|
467
|
+
fail ArgumentError, 'invalid value for "proxy_url", the character length must be great than or equal to 1.'
|
478
468
|
end
|
479
469
|
|
480
|
-
|
481
|
-
|
470
|
+
@proxy_url = proxy_url
|
471
|
+
end
|
472
|
+
|
473
|
+
# Custom attribute writer method with validation
|
474
|
+
# @param [Object] username Value to be assigned
|
475
|
+
def username=(username)
|
476
|
+
if !username.nil? && username.to_s.length < 1
|
477
|
+
fail ArgumentError, 'invalid value for "username", the character length must be great than or equal to 1.'
|
482
478
|
end
|
483
479
|
|
484
|
-
@
|
480
|
+
@username = username
|
485
481
|
end
|
486
482
|
|
487
483
|
# Custom attribute writer method with validation
|
488
|
-
# @param [Object]
|
489
|
-
def
|
490
|
-
if !
|
491
|
-
fail ArgumentError, 'invalid value for "
|
484
|
+
# @param [Object] client_cert Value to be assigned
|
485
|
+
def client_cert=(client_cert)
|
486
|
+
if !client_cert.nil? && client_cert.to_s.length < 1
|
487
|
+
fail ArgumentError, 'invalid value for "client_cert", the character length must be great than or equal to 1.'
|
492
488
|
end
|
493
489
|
|
494
|
-
@
|
490
|
+
@client_cert = client_cert
|
495
491
|
end
|
496
492
|
|
497
493
|
# Custom attribute writer method with validation
|
498
|
-
# @param [Object]
|
499
|
-
def
|
500
|
-
if
|
501
|
-
fail ArgumentError, '
|
494
|
+
# @param [Object] name Value to be assigned
|
495
|
+
def name=(name)
|
496
|
+
if name.nil?
|
497
|
+
fail ArgumentError, 'name cannot be nil'
|
502
498
|
end
|
503
499
|
|
504
|
-
|
500
|
+
if name.to_s.length < 1
|
501
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 1.'
|
502
|
+
end
|
503
|
+
|
504
|
+
@name = name
|
505
505
|
end
|
506
506
|
|
507
507
|
# Custom attribute writer method with validation
|
@@ -515,13 +515,13 @@ module PulpAnsibleClient
|
|
515
515
|
end
|
516
516
|
|
517
517
|
# Custom attribute writer method with validation
|
518
|
-
# @param [Object]
|
519
|
-
def
|
520
|
-
if !
|
521
|
-
fail ArgumentError, 'invalid value for "
|
518
|
+
# @param [Object] connect_timeout Value to be assigned
|
519
|
+
def connect_timeout=(connect_timeout)
|
520
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
521
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
522
522
|
end
|
523
523
|
|
524
|
-
@
|
524
|
+
@connect_timeout = connect_timeout
|
525
525
|
end
|
526
526
|
|
527
527
|
# Custom attribute writer method with validation
|
@@ -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
|
-
|
547
|
-
|
548
|
-
name == o.name &&
|
549
|
-
pulp_labels == o.pulp_labels &&
|
550
|
-
proxy_username == o.proxy_username &&
|
551
|
-
sock_connect_timeout == o.sock_connect_timeout &&
|
552
|
-
connect_timeout == o.connect_timeout &&
|
553
|
-
tls_validation == o.tls_validation &&
|
554
|
-
headers == o.headers &&
|
546
|
+
rate_limit == o.rate_limit &&
|
547
|
+
download_concurrency == o.download_concurrency &&
|
555
548
|
total_timeout == o.total_timeout &&
|
556
549
|
client_key == o.client_key &&
|
557
|
-
|
558
|
-
|
559
|
-
|
560
|
-
|
550
|
+
headers == o.headers &&
|
551
|
+
tls_validation == o.tls_validation &&
|
552
|
+
pulp_labels == o.pulp_labels &&
|
553
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
561
554
|
ca_cert == o.ca_cert &&
|
555
|
+
password == o.password &&
|
556
|
+
url == o.url &&
|
557
|
+
proxy_username == o.proxy_username &&
|
558
|
+
sock_read_timeout == o.sock_read_timeout &&
|
562
559
|
proxy_url == o.proxy_url &&
|
563
|
-
proxy_password == o.proxy_password &&
|
564
560
|
username == o.username &&
|
565
|
-
|
561
|
+
client_cert == o.client_cert &&
|
562
|
+
max_retries == o.max_retries &&
|
563
|
+
name == o.name &&
|
564
|
+
proxy_password == o.proxy_password &&
|
565
|
+
connect_timeout == o.connect_timeout &&
|
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
|
+
[rate_limit, download_concurrency, total_timeout, client_key, headers, tls_validation, pulp_labels, sock_connect_timeout, ca_cert, password, url, proxy_username, sock_read_timeout, proxy_url, username, client_cert, max_retries, name, proxy_password, connect_timeout, metadata_only, git_ref].hash
|
580
580
|
end
|
581
581
|
|
582
582
|
# Builds the object from hash
|