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