pulp_ansible_client 0.22.8 → 0.23.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/AnsibleAnsibleDistribution.md +3 -5
- data/docs/AnsibleAnsibleDistributionResponse.md +4 -12
- data/docs/AnsibleCollectionVersion.md +5 -5
- data/docs/AnsibleCollectionVersionResponse.md +3 -3
- data/docs/AnsibleGitRemote.md +27 -27
- data/docs/AnsibleGitRemoteResponse.md +25 -25
- data/docs/AnsibleRoleResponse.md +4 -4
- data/docs/ContentCollectionVersionsApi.md +6 -8
- data/docs/PatchedansibleAnsibleDistribution.md +3 -5
- data/docs/PatchedansibleGitRemote.md +27 -27
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +2 -4
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -4
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +2 -4
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -4
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +3 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +3 -6
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -6
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution.rb +16 -28
- data/lib/pulp_ansible_client/models/ansible_ansible_distribution_response.rb +20 -62
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +21 -21
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +233 -233
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +156 -156
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +15 -15
- data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +16 -28
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +219 -219
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +3 -4
- data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -2
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -2
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -2
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -2
- data/spec/models/ansible_ansible_distribution_response_spec.rb +4 -28
- data/spec/models/ansible_ansible_distribution_spec.rb +4 -10
- data/spec/models/ansible_collection_version_response_spec.rb +5 -5
- data/spec/models/ansible_collection_version_spec.rb +4 -4
- data/spec/models/ansible_git_remote_response_spec.rb +19 -19
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/ansible_role_response_spec.rb +2 -2
- data/spec/models/patchedansible_ansible_distribution_spec.rb +4 -10
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- metadata +131 -131
|
@@ -15,64 +15,64 @@ require 'date'
|
|
|
15
15
|
module PulpAnsibleClient
|
|
16
16
|
# A serializer for Git Collection Remotes.
|
|
17
17
|
class AnsibleGitRemoteResponse
|
|
18
|
-
# Timestamp of the most recent update of the remote.
|
|
19
|
-
attr_accessor :pulp_last_updated
|
|
20
|
-
|
|
21
|
-
attr_accessor :pulp_labels
|
|
22
|
-
|
|
23
18
|
# 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.
|
|
24
19
|
attr_accessor :sock_read_timeout
|
|
25
20
|
|
|
26
|
-
#
|
|
27
|
-
attr_accessor :
|
|
21
|
+
# The Pulp Resource Name (PRN).
|
|
22
|
+
attr_accessor :prn
|
|
23
|
+
|
|
24
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
25
|
+
attr_accessor :total_timeout
|
|
28
26
|
|
|
29
27
|
# The URL of an external content source.
|
|
30
28
|
attr_accessor :url
|
|
31
29
|
|
|
32
|
-
# A PEM encoded client certificate used for authentication.
|
|
33
|
-
attr_accessor :client_cert
|
|
34
|
-
|
|
35
|
-
# If True, TLS peer validation must be performed.
|
|
36
|
-
attr_accessor :tls_validation
|
|
37
|
-
|
|
38
30
|
# 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.
|
|
39
31
|
attr_accessor :sock_connect_timeout
|
|
40
32
|
|
|
41
|
-
# The Pulp Resource Name (PRN).
|
|
42
|
-
attr_accessor :prn
|
|
43
|
-
|
|
44
|
-
# Timestamp of creation.
|
|
45
|
-
attr_accessor :pulp_created
|
|
46
|
-
|
|
47
|
-
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
|
48
|
-
attr_accessor :ca_cert
|
|
49
|
-
|
|
50
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
51
|
-
attr_accessor :connect_timeout
|
|
52
|
-
|
|
53
33
|
# A unique name for this remote.
|
|
54
34
|
attr_accessor :name
|
|
55
35
|
|
|
56
|
-
|
|
57
|
-
attr_accessor :proxy_url
|
|
36
|
+
attr_accessor :pulp_labels
|
|
58
37
|
|
|
59
38
|
attr_accessor :pulp_href
|
|
60
39
|
|
|
61
|
-
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
62
|
-
attr_accessor :total_timeout
|
|
63
|
-
|
|
64
40
|
# Limits requests per second for each concurrent downloader
|
|
65
41
|
attr_accessor :rate_limit
|
|
66
42
|
|
|
67
|
-
#
|
|
68
|
-
attr_accessor :
|
|
43
|
+
# Timestamp of creation.
|
|
44
|
+
attr_accessor :pulp_created
|
|
45
|
+
|
|
46
|
+
# Headers for aiohttp.Clientsession
|
|
47
|
+
attr_accessor :headers
|
|
69
48
|
|
|
70
49
|
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
71
50
|
attr_accessor :download_concurrency
|
|
72
51
|
|
|
52
|
+
# List of hidden (write only) fields
|
|
53
|
+
attr_accessor :hidden_fields
|
|
54
|
+
|
|
55
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
56
|
+
attr_accessor :connect_timeout
|
|
57
|
+
|
|
58
|
+
# The proxy URL. Format: scheme://host:port
|
|
59
|
+
attr_accessor :proxy_url
|
|
60
|
+
|
|
61
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
|
62
|
+
attr_accessor :ca_cert
|
|
63
|
+
|
|
64
|
+
# If True, TLS peer validation must be performed.
|
|
65
|
+
attr_accessor :tls_validation
|
|
66
|
+
|
|
73
67
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
74
68
|
attr_accessor :max_retries
|
|
75
69
|
|
|
70
|
+
# A PEM encoded client certificate used for authentication.
|
|
71
|
+
attr_accessor :client_cert
|
|
72
|
+
|
|
73
|
+
# Timestamp of the most recent update of the remote.
|
|
74
|
+
attr_accessor :pulp_last_updated
|
|
75
|
+
|
|
76
76
|
# If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
|
|
77
77
|
attr_accessor :metadata_only
|
|
78
78
|
|
|
@@ -82,26 +82,26 @@ module PulpAnsibleClient
|
|
|
82
82
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
83
83
|
def self.attribute_map
|
|
84
84
|
{
|
|
85
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
86
|
-
:'pulp_labels' => :'pulp_labels',
|
|
87
85
|
:'sock_read_timeout' => :'sock_read_timeout',
|
|
88
|
-
:'
|
|
86
|
+
:'prn' => :'prn',
|
|
87
|
+
:'total_timeout' => :'total_timeout',
|
|
89
88
|
:'url' => :'url',
|
|
90
|
-
:'client_cert' => :'client_cert',
|
|
91
|
-
:'tls_validation' => :'tls_validation',
|
|
92
89
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
93
|
-
:'prn' => :'prn',
|
|
94
|
-
:'pulp_created' => :'pulp_created',
|
|
95
|
-
:'ca_cert' => :'ca_cert',
|
|
96
|
-
:'connect_timeout' => :'connect_timeout',
|
|
97
90
|
:'name' => :'name',
|
|
98
|
-
:'
|
|
91
|
+
:'pulp_labels' => :'pulp_labels',
|
|
99
92
|
:'pulp_href' => :'pulp_href',
|
|
100
|
-
:'total_timeout' => :'total_timeout',
|
|
101
93
|
:'rate_limit' => :'rate_limit',
|
|
102
|
-
:'
|
|
94
|
+
:'pulp_created' => :'pulp_created',
|
|
95
|
+
:'headers' => :'headers',
|
|
103
96
|
:'download_concurrency' => :'download_concurrency',
|
|
97
|
+
:'hidden_fields' => :'hidden_fields',
|
|
98
|
+
:'connect_timeout' => :'connect_timeout',
|
|
99
|
+
:'proxy_url' => :'proxy_url',
|
|
100
|
+
:'ca_cert' => :'ca_cert',
|
|
101
|
+
:'tls_validation' => :'tls_validation',
|
|
104
102
|
:'max_retries' => :'max_retries',
|
|
103
|
+
:'client_cert' => :'client_cert',
|
|
104
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
105
105
|
:'metadata_only' => :'metadata_only',
|
|
106
106
|
:'git_ref' => :'git_ref'
|
|
107
107
|
}
|
|
@@ -110,26 +110,26 @@ module PulpAnsibleClient
|
|
|
110
110
|
# Attribute type mapping.
|
|
111
111
|
def self.openapi_types
|
|
112
112
|
{
|
|
113
|
-
:'pulp_last_updated' => :'DateTime',
|
|
114
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
115
113
|
:'sock_read_timeout' => :'Float',
|
|
116
|
-
:'
|
|
114
|
+
:'prn' => :'String',
|
|
115
|
+
:'total_timeout' => :'Float',
|
|
117
116
|
:'url' => :'String',
|
|
118
|
-
:'client_cert' => :'String',
|
|
119
|
-
:'tls_validation' => :'Boolean',
|
|
120
117
|
:'sock_connect_timeout' => :'Float',
|
|
121
|
-
:'prn' => :'String',
|
|
122
|
-
:'pulp_created' => :'DateTime',
|
|
123
|
-
:'ca_cert' => :'String',
|
|
124
|
-
:'connect_timeout' => :'Float',
|
|
125
118
|
:'name' => :'String',
|
|
126
|
-
:'
|
|
119
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
127
120
|
:'pulp_href' => :'String',
|
|
128
|
-
:'total_timeout' => :'Float',
|
|
129
121
|
:'rate_limit' => :'Integer',
|
|
130
|
-
:'
|
|
122
|
+
:'pulp_created' => :'DateTime',
|
|
123
|
+
:'headers' => :'Array<Object>',
|
|
131
124
|
:'download_concurrency' => :'Integer',
|
|
125
|
+
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
|
|
126
|
+
:'connect_timeout' => :'Float',
|
|
127
|
+
:'proxy_url' => :'String',
|
|
128
|
+
:'ca_cert' => :'String',
|
|
129
|
+
:'tls_validation' => :'Boolean',
|
|
132
130
|
:'max_retries' => :'Integer',
|
|
131
|
+
:'client_cert' => :'String',
|
|
132
|
+
:'pulp_last_updated' => :'DateTime',
|
|
133
133
|
:'metadata_only' => :'Boolean',
|
|
134
134
|
:'git_ref' => :'String'
|
|
135
135
|
}
|
|
@@ -139,15 +139,15 @@ module PulpAnsibleClient
|
|
|
139
139
|
def self.openapi_nullable
|
|
140
140
|
Set.new([
|
|
141
141
|
:'sock_read_timeout',
|
|
142
|
-
:'client_cert',
|
|
143
|
-
:'sock_connect_timeout',
|
|
144
|
-
:'ca_cert',
|
|
145
|
-
:'connect_timeout',
|
|
146
|
-
:'proxy_url',
|
|
147
142
|
:'total_timeout',
|
|
143
|
+
:'sock_connect_timeout',
|
|
148
144
|
:'rate_limit',
|
|
149
145
|
:'download_concurrency',
|
|
146
|
+
:'connect_timeout',
|
|
147
|
+
:'proxy_url',
|
|
148
|
+
:'ca_cert',
|
|
150
149
|
:'max_retries',
|
|
150
|
+
:'client_cert',
|
|
151
151
|
])
|
|
152
152
|
end
|
|
153
153
|
|
|
@@ -166,90 +166,90 @@ module PulpAnsibleClient
|
|
|
166
166
|
h[k.to_sym] = v
|
|
167
167
|
}
|
|
168
168
|
|
|
169
|
-
if attributes.key?(:'pulp_last_updated')
|
|
170
|
-
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
171
|
-
end
|
|
172
|
-
|
|
173
|
-
if attributes.key?(:'pulp_labels')
|
|
174
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
175
|
-
self.pulp_labels = value
|
|
176
|
-
end
|
|
177
|
-
end
|
|
178
|
-
|
|
179
169
|
if attributes.key?(:'sock_read_timeout')
|
|
180
170
|
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
|
181
171
|
end
|
|
182
172
|
|
|
183
|
-
if attributes.key?(:'
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
173
|
+
if attributes.key?(:'prn')
|
|
174
|
+
self.prn = attributes[:'prn']
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
if attributes.key?(:'total_timeout')
|
|
178
|
+
self.total_timeout = attributes[:'total_timeout']
|
|
187
179
|
end
|
|
188
180
|
|
|
189
181
|
if attributes.key?(:'url')
|
|
190
182
|
self.url = attributes[:'url']
|
|
191
183
|
end
|
|
192
184
|
|
|
193
|
-
if attributes.key?(:'
|
|
194
|
-
self.
|
|
185
|
+
if attributes.key?(:'sock_connect_timeout')
|
|
186
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
|
195
187
|
end
|
|
196
188
|
|
|
197
|
-
if attributes.key?(:'
|
|
198
|
-
self.
|
|
189
|
+
if attributes.key?(:'name')
|
|
190
|
+
self.name = attributes[:'name']
|
|
199
191
|
end
|
|
200
192
|
|
|
201
|
-
if attributes.key?(:'
|
|
202
|
-
|
|
193
|
+
if attributes.key?(:'pulp_labels')
|
|
194
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
195
|
+
self.pulp_labels = value
|
|
196
|
+
end
|
|
203
197
|
end
|
|
204
198
|
|
|
205
|
-
if attributes.key?(:'
|
|
206
|
-
self.
|
|
199
|
+
if attributes.key?(:'pulp_href')
|
|
200
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
201
|
+
end
|
|
202
|
+
|
|
203
|
+
if attributes.key?(:'rate_limit')
|
|
204
|
+
self.rate_limit = attributes[:'rate_limit']
|
|
207
205
|
end
|
|
208
206
|
|
|
209
207
|
if attributes.key?(:'pulp_created')
|
|
210
208
|
self.pulp_created = attributes[:'pulp_created']
|
|
211
209
|
end
|
|
212
210
|
|
|
213
|
-
if attributes.key?(:'
|
|
214
|
-
|
|
211
|
+
if attributes.key?(:'headers')
|
|
212
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
|
213
|
+
self.headers = value
|
|
214
|
+
end
|
|
215
215
|
end
|
|
216
216
|
|
|
217
|
-
if attributes.key?(:'
|
|
218
|
-
self.
|
|
217
|
+
if attributes.key?(:'download_concurrency')
|
|
218
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
|
219
219
|
end
|
|
220
220
|
|
|
221
|
-
if attributes.key?(:'
|
|
222
|
-
|
|
221
|
+
if attributes.key?(:'hidden_fields')
|
|
222
|
+
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
|
223
|
+
self.hidden_fields = value
|
|
224
|
+
end
|
|
223
225
|
end
|
|
224
226
|
|
|
225
|
-
if attributes.key?(:'
|
|
226
|
-
self.
|
|
227
|
+
if attributes.key?(:'connect_timeout')
|
|
228
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
|
227
229
|
end
|
|
228
230
|
|
|
229
|
-
if attributes.key?(:'
|
|
230
|
-
self.
|
|
231
|
+
if attributes.key?(:'proxy_url')
|
|
232
|
+
self.proxy_url = attributes[:'proxy_url']
|
|
231
233
|
end
|
|
232
234
|
|
|
233
|
-
if attributes.key?(:'
|
|
234
|
-
self.
|
|
235
|
+
if attributes.key?(:'ca_cert')
|
|
236
|
+
self.ca_cert = attributes[:'ca_cert']
|
|
235
237
|
end
|
|
236
238
|
|
|
237
|
-
if attributes.key?(:'
|
|
238
|
-
self.
|
|
239
|
+
if attributes.key?(:'tls_validation')
|
|
240
|
+
self.tls_validation = attributes[:'tls_validation']
|
|
239
241
|
end
|
|
240
242
|
|
|
241
|
-
if attributes.key?(:'
|
|
242
|
-
|
|
243
|
-
self.hidden_fields = value
|
|
244
|
-
end
|
|
243
|
+
if attributes.key?(:'max_retries')
|
|
244
|
+
self.max_retries = attributes[:'max_retries']
|
|
245
245
|
end
|
|
246
246
|
|
|
247
|
-
if attributes.key?(:'
|
|
248
|
-
self.
|
|
247
|
+
if attributes.key?(:'client_cert')
|
|
248
|
+
self.client_cert = attributes[:'client_cert']
|
|
249
249
|
end
|
|
250
250
|
|
|
251
|
-
if attributes.key?(:'
|
|
252
|
-
self.
|
|
251
|
+
if attributes.key?(:'pulp_last_updated')
|
|
252
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
253
253
|
end
|
|
254
254
|
|
|
255
255
|
if attributes.key?(:'metadata_only')
|
|
@@ -265,88 +265,78 @@ module PulpAnsibleClient
|
|
|
265
265
|
# @return Array for valid properties with the reasons
|
|
266
266
|
def list_invalid_properties
|
|
267
267
|
invalid_properties = Array.new
|
|
268
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
|
269
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
|
268
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
|
269
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
|
270
270
|
end
|
|
271
271
|
|
|
272
|
-
if
|
|
273
|
-
invalid_properties.push('invalid value for "
|
|
272
|
+
if !@total_timeout.nil? && @total_timeout < 0
|
|
273
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
|
274
274
|
end
|
|
275
275
|
|
|
276
|
-
if
|
|
277
|
-
invalid_properties.push('invalid value for "
|
|
276
|
+
if @url.nil?
|
|
277
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
278
278
|
end
|
|
279
279
|
|
|
280
|
-
if !@
|
|
281
|
-
invalid_properties.push('invalid value for "
|
|
280
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
|
281
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
|
282
282
|
end
|
|
283
283
|
|
|
284
284
|
if @name.nil?
|
|
285
285
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
286
286
|
end
|
|
287
287
|
|
|
288
|
-
if !@total_timeout.nil? && @total_timeout < 0.0
|
|
289
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
|
290
|
-
end
|
|
291
|
-
|
|
292
288
|
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
293
289
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
294
290
|
end
|
|
295
291
|
|
|
292
|
+
if !@connect_timeout.nil? && @connect_timeout < 0
|
|
293
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
|
294
|
+
end
|
|
295
|
+
|
|
296
296
|
invalid_properties
|
|
297
297
|
end
|
|
298
298
|
|
|
299
299
|
# Check to see if the all the properties in the model are valid
|
|
300
300
|
# @return true if the model is valid
|
|
301
301
|
def valid?
|
|
302
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
|
302
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
|
303
|
+
return false if !@total_timeout.nil? && @total_timeout < 0
|
|
303
304
|
return false if @url.nil?
|
|
304
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
|
305
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
305
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
|
306
306
|
return false if @name.nil?
|
|
307
|
-
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
308
307
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
308
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
|
309
309
|
true
|
|
310
310
|
end
|
|
311
311
|
|
|
312
312
|
# Custom attribute writer method with validation
|
|
313
313
|
# @param [Object] sock_read_timeout Value to be assigned
|
|
314
314
|
def sock_read_timeout=(sock_read_timeout)
|
|
315
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
|
316
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
|
315
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
|
316
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
|
317
317
|
end
|
|
318
318
|
|
|
319
319
|
@sock_read_timeout = sock_read_timeout
|
|
320
320
|
end
|
|
321
321
|
|
|
322
322
|
# Custom attribute writer method with validation
|
|
323
|
-
# @param [Object]
|
|
324
|
-
def
|
|
325
|
-
if !
|
|
326
|
-
fail ArgumentError, 'invalid value for "
|
|
327
|
-
end
|
|
328
|
-
|
|
329
|
-
@sock_connect_timeout = sock_connect_timeout
|
|
330
|
-
end
|
|
331
|
-
|
|
332
|
-
# Custom attribute writer method with validation
|
|
333
|
-
# @param [Object] connect_timeout Value to be assigned
|
|
334
|
-
def connect_timeout=(connect_timeout)
|
|
335
|
-
if !connect_timeout.nil? && connect_timeout < 0.0
|
|
336
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
|
323
|
+
# @param [Object] total_timeout Value to be assigned
|
|
324
|
+
def total_timeout=(total_timeout)
|
|
325
|
+
if !total_timeout.nil? && total_timeout < 0
|
|
326
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
|
337
327
|
end
|
|
338
328
|
|
|
339
|
-
@
|
|
329
|
+
@total_timeout = total_timeout
|
|
340
330
|
end
|
|
341
331
|
|
|
342
332
|
# Custom attribute writer method with validation
|
|
343
|
-
# @param [Object]
|
|
344
|
-
def
|
|
345
|
-
if !
|
|
346
|
-
fail ArgumentError, 'invalid value for "
|
|
333
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
|
334
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
|
335
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
|
336
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
|
347
337
|
end
|
|
348
338
|
|
|
349
|
-
@
|
|
339
|
+
@sock_connect_timeout = sock_connect_timeout
|
|
350
340
|
end
|
|
351
341
|
|
|
352
342
|
# Custom attribute writer method with validation
|
|
@@ -359,31 +349,41 @@ module PulpAnsibleClient
|
|
|
359
349
|
@download_concurrency = download_concurrency
|
|
360
350
|
end
|
|
361
351
|
|
|
352
|
+
# Custom attribute writer method with validation
|
|
353
|
+
# @param [Object] connect_timeout Value to be assigned
|
|
354
|
+
def connect_timeout=(connect_timeout)
|
|
355
|
+
if !connect_timeout.nil? && connect_timeout < 0
|
|
356
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
|
357
|
+
end
|
|
358
|
+
|
|
359
|
+
@connect_timeout = connect_timeout
|
|
360
|
+
end
|
|
361
|
+
|
|
362
362
|
# Checks equality by comparing each attribute.
|
|
363
363
|
# @param [Object] Object to be compared
|
|
364
364
|
def ==(o)
|
|
365
365
|
return true if self.equal?(o)
|
|
366
366
|
self.class == o.class &&
|
|
367
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
368
|
-
pulp_labels == o.pulp_labels &&
|
|
369
367
|
sock_read_timeout == o.sock_read_timeout &&
|
|
370
|
-
|
|
368
|
+
prn == o.prn &&
|
|
369
|
+
total_timeout == o.total_timeout &&
|
|
371
370
|
url == o.url &&
|
|
372
|
-
client_cert == o.client_cert &&
|
|
373
|
-
tls_validation == o.tls_validation &&
|
|
374
371
|
sock_connect_timeout == o.sock_connect_timeout &&
|
|
375
|
-
prn == o.prn &&
|
|
376
|
-
pulp_created == o.pulp_created &&
|
|
377
|
-
ca_cert == o.ca_cert &&
|
|
378
|
-
connect_timeout == o.connect_timeout &&
|
|
379
372
|
name == o.name &&
|
|
380
|
-
|
|
373
|
+
pulp_labels == o.pulp_labels &&
|
|
381
374
|
pulp_href == o.pulp_href &&
|
|
382
|
-
total_timeout == o.total_timeout &&
|
|
383
375
|
rate_limit == o.rate_limit &&
|
|
384
|
-
|
|
376
|
+
pulp_created == o.pulp_created &&
|
|
377
|
+
headers == o.headers &&
|
|
385
378
|
download_concurrency == o.download_concurrency &&
|
|
379
|
+
hidden_fields == o.hidden_fields &&
|
|
380
|
+
connect_timeout == o.connect_timeout &&
|
|
381
|
+
proxy_url == o.proxy_url &&
|
|
382
|
+
ca_cert == o.ca_cert &&
|
|
383
|
+
tls_validation == o.tls_validation &&
|
|
386
384
|
max_retries == o.max_retries &&
|
|
385
|
+
client_cert == o.client_cert &&
|
|
386
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
387
387
|
metadata_only == o.metadata_only &&
|
|
388
388
|
git_ref == o.git_ref
|
|
389
389
|
end
|
|
@@ -397,7 +397,7 @@ module PulpAnsibleClient
|
|
|
397
397
|
# Calculates hash code according to all attributes.
|
|
398
398
|
# @return [Integer] Hash code
|
|
399
399
|
def hash
|
|
400
|
-
[
|
|
400
|
+
[sock_read_timeout, prn, total_timeout, url, sock_connect_timeout, name, pulp_labels, pulp_href, rate_limit, pulp_created, headers, download_concurrency, hidden_fields, connect_timeout, proxy_url, ca_cert, tls_validation, max_retries, client_cert, pulp_last_updated, metadata_only, git_ref].hash
|
|
401
401
|
end
|
|
402
402
|
|
|
403
403
|
# Builds the object from hash
|
|
@@ -312,20 +312,20 @@ module PulpAnsibleClient
|
|
|
312
312
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
313
313
|
end
|
|
314
314
|
|
|
315
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
|
316
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.
|
|
315
|
+
if !@total_timeout.nil? && @total_timeout < 0
|
|
316
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
|
317
317
|
end
|
|
318
318
|
|
|
319
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
|
320
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.
|
|
319
|
+
if !@connect_timeout.nil? && @connect_timeout < 0
|
|
320
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
|
321
321
|
end
|
|
322
322
|
|
|
323
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
|
324
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
|
323
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
|
324
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
|
325
325
|
end
|
|
326
326
|
|
|
327
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
|
328
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
|
327
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
|
328
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
|
329
329
|
end
|
|
330
330
|
|
|
331
331
|
invalid_properties
|
|
@@ -347,10 +347,10 @@ module PulpAnsibleClient
|
|
|
347
347
|
return false if !@username.nil? && @username.to_s.length < 1
|
|
348
348
|
return false if !@password.nil? && @password.to_s.length < 1
|
|
349
349
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
350
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
|
351
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
|
352
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
|
353
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
|
350
|
+
return false if !@total_timeout.nil? && @total_timeout < 0
|
|
351
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
|
352
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
|
353
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
|
354
354
|
true
|
|
355
355
|
end
|
|
356
356
|
|
|
@@ -475,8 +475,8 @@ module PulpAnsibleClient
|
|
|
475
475
|
# Custom attribute writer method with validation
|
|
476
476
|
# @param [Object] total_timeout Value to be assigned
|
|
477
477
|
def total_timeout=(total_timeout)
|
|
478
|
-
if !total_timeout.nil? && total_timeout < 0
|
|
479
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.
|
|
478
|
+
if !total_timeout.nil? && total_timeout < 0
|
|
479
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
|
480
480
|
end
|
|
481
481
|
|
|
482
482
|
@total_timeout = total_timeout
|
|
@@ -485,8 +485,8 @@ module PulpAnsibleClient
|
|
|
485
485
|
# Custom attribute writer method with validation
|
|
486
486
|
# @param [Object] connect_timeout Value to be assigned
|
|
487
487
|
def connect_timeout=(connect_timeout)
|
|
488
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
|
489
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.
|
|
488
|
+
if !connect_timeout.nil? && connect_timeout < 0
|
|
489
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
|
490
490
|
end
|
|
491
491
|
|
|
492
492
|
@connect_timeout = connect_timeout
|
|
@@ -495,8 +495,8 @@ module PulpAnsibleClient
|
|
|
495
495
|
# Custom attribute writer method with validation
|
|
496
496
|
# @param [Object] sock_connect_timeout Value to be assigned
|
|
497
497
|
def sock_connect_timeout=(sock_connect_timeout)
|
|
498
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
|
499
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.
|
|
498
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
|
499
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
|
500
500
|
end
|
|
501
501
|
|
|
502
502
|
@sock_connect_timeout = sock_connect_timeout
|
|
@@ -505,8 +505,8 @@ module PulpAnsibleClient
|
|
|
505
505
|
# Custom attribute writer method with validation
|
|
506
506
|
# @param [Object] sock_read_timeout Value to be assigned
|
|
507
507
|
def sock_read_timeout=(sock_read_timeout)
|
|
508
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
|
509
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.
|
|
508
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
|
509
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
|
510
510
|
end
|
|
511
511
|
|
|
512
512
|
@sock_read_timeout = sock_read_timeout
|