pulp_ansible_client 0.16.7 → 0.17.0.dev1676257982
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.
Potentially problematic release.
This version of pulp_ansible_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +8 -5
- data/docs/AnsibleAnsibleRepositoryResponse.md +3 -1
- data/docs/AnsibleCollectionRemoteResponse.md +3 -1
- data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +2 -2
- data/docs/AnsibleCollectionVersion.md +4 -4
- data/docs/AnsibleCollectionVersionResponse.md +3 -3
- data/docs/AnsibleCollectionsApi.md +1 -1
- data/docs/AnsibleCopyApi.md +1 -1
- data/docs/AnsibleGitRemote.md +28 -28
- data/docs/AnsibleGitRemoteResponse.md +23 -23
- data/docs/ApiCollectionsApi.md +1 -1
- data/docs/ApiRolesApi.md +1 -1
- data/docs/CollectionImportApi.md +1 -1
- data/docs/ContentCollectionDeprecationsApi.md +1 -1
- data/docs/ContentCollectionSignaturesApi.md +1 -1
- data/docs/ContentCollectionVersionsApi.md +5 -5
- data/docs/ContentRolesApi.md +1 -1
- data/docs/DistributionsAnsibleApi.md +5 -1
- data/docs/GalaxyDetailApi.md +1 -1
- data/docs/PatchedansibleGitRemote.md +28 -28
- data/docs/ProgressReportResponse.md +27 -0
- data/docs/PulpAnsibleApiApi.md +1 -1
- data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3Api.md +1 -1
- data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleTagsApi.md +1 -1
- data/docs/RemotesCollectionApi.md +9 -1
- data/docs/RemotesGitApi.md +1 -1
- data/docs/RemotesRoleApi.md +1 -1
- data/docs/RepositoriesAnsibleApi.md +17 -1
- data/docs/RepositoriesAnsibleVersionsApi.md +1 -1
- data/docs/Task.md +19 -0
- data/docs/TaskResponse.md +45 -0
- data/docs/VersionsApi.md +1 -1
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +6 -0
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +13 -1
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +24 -0
- data/lib/pulp_ansible_client/configuration.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +14 -5
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +13 -4
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +0 -10
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +15 -15
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +10 -10
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +241 -241
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +144 -144
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +226 -226
- data/lib/pulp_ansible_client/models/progress_report_response.rb +259 -0
- data/lib/pulp_ansible_client/models/task.rb +266 -0
- data/lib/pulp_ansible_client/models/task_response.rb +366 -0
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +3 -0
- data/spec/api/content_collection_versions_api_spec.rb +2 -2
- data/spec/api/distributions_ansible_api_spec.rb +2 -0
- data/spec/api/remotes_collection_api_spec.rb +4 -0
- data/spec/api/repositories_ansible_api_spec.rb +8 -0
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/ansible_ansible_repository_response_spec.rb +6 -0
- data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
- data/spec/models/ansible_collection_version_response_spec.rb +3 -3
- data/spec/models/ansible_collection_version_spec.rb +2 -2
- data/spec/models/ansible_git_remote_response_spec.rb +17 -17
- data/spec/models/ansible_git_remote_spec.rb +18 -18
- data/spec/models/patchedansible_git_remote_spec.rb +18 -18
- data/spec/models/progress_report_response_spec.rb +71 -0
- data/spec/models/task_response_spec.rb +125 -0
- data/spec/models/task_spec.rb +47 -0
- metadata +130 -118
@@ -15,34 +15,42 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Git Collection Remotes.
|
17
17
|
class AnsibleGitRemoteResponse
|
18
|
-
|
18
|
+
# The proxy URL. Format: scheme://host:port
|
19
|
+
attr_accessor :proxy_url
|
19
20
|
|
20
|
-
#
|
21
|
-
attr_accessor :
|
21
|
+
# Limits requests per second for each concurrent downloader
|
22
|
+
attr_accessor :rate_limit
|
22
23
|
|
23
|
-
#
|
24
|
-
attr_accessor :
|
24
|
+
# 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.
|
25
|
+
attr_accessor :sock_read_timeout
|
25
26
|
|
26
|
-
# aiohttp.ClientTimeout.
|
27
|
-
attr_accessor :
|
27
|
+
# 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.
|
28
|
+
attr_accessor :sock_connect_timeout
|
29
|
+
|
30
|
+
# Headers for aiohttp.Clientsession
|
31
|
+
attr_accessor :headers
|
28
32
|
|
29
33
|
# A PEM encoded client certificate used for authentication.
|
30
34
|
attr_accessor :client_cert
|
31
35
|
|
32
|
-
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
33
|
-
attr_accessor :ca_cert
|
34
|
-
|
35
36
|
# If True, TLS peer validation must be performed.
|
36
37
|
attr_accessor :tls_validation
|
37
38
|
|
38
|
-
#
|
39
|
-
attr_accessor :
|
39
|
+
# A unique name for this remote.
|
40
|
+
attr_accessor :name
|
40
41
|
|
41
|
-
|
42
|
-
attr_accessor :total_timeout
|
42
|
+
attr_accessor :pulp_href
|
43
43
|
|
44
|
-
|
45
|
-
|
44
|
+
attr_accessor :pulp_labels
|
45
|
+
|
46
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
47
|
+
attr_accessor :download_concurrency
|
48
|
+
|
49
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
50
|
+
attr_accessor :connect_timeout
|
51
|
+
|
52
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
53
|
+
attr_accessor :ca_cert
|
46
54
|
|
47
55
|
# List of hidden (write only) fields
|
48
56
|
attr_accessor :hidden_fields
|
@@ -50,23 +58,15 @@ module PulpAnsibleClient
|
|
50
58
|
# Timestamp of creation.
|
51
59
|
attr_accessor :pulp_created
|
52
60
|
|
53
|
-
#
|
54
|
-
attr_accessor :
|
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
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
65
|
+
attr_accessor :max_retries
|
55
66
|
|
56
67
|
# The URL of an external content source.
|
57
68
|
attr_accessor :url
|
58
69
|
|
59
|
-
# The proxy URL. Format: scheme://host:port
|
60
|
-
attr_accessor :proxy_url
|
61
|
-
|
62
|
-
# 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.
|
63
|
-
attr_accessor :sock_read_timeout
|
64
|
-
|
65
|
-
# Headers for aiohttp.Clientsession
|
66
|
-
attr_accessor :headers
|
67
|
-
|
68
|
-
attr_accessor :pulp_labels
|
69
|
-
|
70
70
|
# Timestamp of the most recent update of the remote.
|
71
71
|
attr_accessor :pulp_last_updated
|
72
72
|
|
@@ -79,24 +79,24 @@ module PulpAnsibleClient
|
|
79
79
|
# Attribute mapping from ruby-style variable name to JSON key.
|
80
80
|
def self.attribute_map
|
81
81
|
{
|
82
|
+
:'proxy_url' => :'proxy_url',
|
83
|
+
:'rate_limit' => :'rate_limit',
|
84
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
85
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
86
|
+
:'headers' => :'headers',
|
87
|
+
:'client_cert' => :'client_cert',
|
88
|
+
:'tls_validation' => :'tls_validation',
|
89
|
+
:'name' => :'name',
|
82
90
|
:'pulp_href' => :'pulp_href',
|
83
|
-
:'
|
91
|
+
:'pulp_labels' => :'pulp_labels',
|
84
92
|
:'download_concurrency' => :'download_concurrency',
|
85
93
|
:'connect_timeout' => :'connect_timeout',
|
86
|
-
:'client_cert' => :'client_cert',
|
87
94
|
:'ca_cert' => :'ca_cert',
|
88
|
-
:'tls_validation' => :'tls_validation',
|
89
|
-
:'rate_limit' => :'rate_limit',
|
90
|
-
:'total_timeout' => :'total_timeout',
|
91
|
-
:'sock_connect_timeout' => :'sock_connect_timeout',
|
92
95
|
:'hidden_fields' => :'hidden_fields',
|
93
96
|
:'pulp_created' => :'pulp_created',
|
94
|
-
:'
|
97
|
+
:'total_timeout' => :'total_timeout',
|
98
|
+
:'max_retries' => :'max_retries',
|
95
99
|
:'url' => :'url',
|
96
|
-
:'proxy_url' => :'proxy_url',
|
97
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
98
|
-
:'headers' => :'headers',
|
99
|
-
:'pulp_labels' => :'pulp_labels',
|
100
100
|
:'pulp_last_updated' => :'pulp_last_updated',
|
101
101
|
:'metadata_only' => :'metadata_only',
|
102
102
|
:'git_ref' => :'git_ref'
|
@@ -106,24 +106,24 @@ module PulpAnsibleClient
|
|
106
106
|
# Attribute type mapping.
|
107
107
|
def self.openapi_types
|
108
108
|
{
|
109
|
+
:'proxy_url' => :'String',
|
110
|
+
:'rate_limit' => :'Integer',
|
111
|
+
:'sock_read_timeout' => :'Float',
|
112
|
+
:'sock_connect_timeout' => :'Float',
|
113
|
+
:'headers' => :'Array<Object>',
|
114
|
+
:'client_cert' => :'String',
|
115
|
+
:'tls_validation' => :'Boolean',
|
116
|
+
:'name' => :'String',
|
109
117
|
:'pulp_href' => :'String',
|
110
|
-
:'
|
118
|
+
:'pulp_labels' => :'Hash<String, String>',
|
111
119
|
:'download_concurrency' => :'Integer',
|
112
120
|
:'connect_timeout' => :'Float',
|
113
|
-
:'client_cert' => :'String',
|
114
121
|
:'ca_cert' => :'String',
|
115
|
-
:'tls_validation' => :'Boolean',
|
116
|
-
:'rate_limit' => :'Integer',
|
117
|
-
:'total_timeout' => :'Float',
|
118
|
-
:'sock_connect_timeout' => :'Float',
|
119
122
|
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
|
120
123
|
:'pulp_created' => :'DateTime',
|
121
|
-
:'
|
124
|
+
:'total_timeout' => :'Float',
|
125
|
+
:'max_retries' => :'Integer',
|
122
126
|
:'url' => :'String',
|
123
|
-
:'proxy_url' => :'String',
|
124
|
-
:'sock_read_timeout' => :'Float',
|
125
|
-
:'headers' => :'Array<Object>',
|
126
|
-
:'pulp_labels' => :'Hash<String, String>',
|
127
127
|
:'pulp_last_updated' => :'DateTime',
|
128
128
|
:'metadata_only' => :'Boolean',
|
129
129
|
:'git_ref' => :'String'
|
@@ -133,16 +133,16 @@ module PulpAnsibleClient
|
|
133
133
|
# List of attributes with nullable: true
|
134
134
|
def self.openapi_nullable
|
135
135
|
Set.new([
|
136
|
-
:'
|
136
|
+
:'proxy_url',
|
137
|
+
:'rate_limit',
|
138
|
+
:'sock_read_timeout',
|
139
|
+
:'sock_connect_timeout',
|
140
|
+
:'client_cert',
|
137
141
|
:'download_concurrency',
|
138
142
|
:'connect_timeout',
|
139
|
-
:'client_cert',
|
140
143
|
:'ca_cert',
|
141
|
-
:'rate_limit',
|
142
144
|
:'total_timeout',
|
143
|
-
:'
|
144
|
-
:'proxy_url',
|
145
|
-
:'sock_read_timeout',
|
145
|
+
:'max_retries',
|
146
146
|
])
|
147
147
|
end
|
148
148
|
|
@@ -161,82 +161,82 @@ module PulpAnsibleClient
|
|
161
161
|
h[k.to_sym] = v
|
162
162
|
}
|
163
163
|
|
164
|
-
if attributes.key?(:'
|
165
|
-
self.
|
164
|
+
if attributes.key?(:'proxy_url')
|
165
|
+
self.proxy_url = attributes[:'proxy_url']
|
166
166
|
end
|
167
167
|
|
168
|
-
if attributes.key?(:'
|
169
|
-
self.
|
168
|
+
if attributes.key?(:'rate_limit')
|
169
|
+
self.rate_limit = attributes[:'rate_limit']
|
170
170
|
end
|
171
171
|
|
172
|
-
if attributes.key?(:'
|
173
|
-
self.
|
172
|
+
if attributes.key?(:'sock_read_timeout')
|
173
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
174
174
|
end
|
175
175
|
|
176
|
-
if attributes.key?(:'
|
177
|
-
self.
|
176
|
+
if attributes.key?(:'sock_connect_timeout')
|
177
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
178
178
|
end
|
179
179
|
|
180
|
-
if attributes.key?(:'
|
181
|
-
|
180
|
+
if attributes.key?(:'headers')
|
181
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
182
|
+
self.headers = value
|
183
|
+
end
|
182
184
|
end
|
183
185
|
|
184
|
-
if attributes.key?(:'
|
185
|
-
self.
|
186
|
+
if attributes.key?(:'client_cert')
|
187
|
+
self.client_cert = attributes[:'client_cert']
|
186
188
|
end
|
187
189
|
|
188
190
|
if attributes.key?(:'tls_validation')
|
189
191
|
self.tls_validation = attributes[:'tls_validation']
|
190
192
|
end
|
191
193
|
|
192
|
-
if attributes.key?(:'
|
193
|
-
self.
|
194
|
+
if attributes.key?(:'name')
|
195
|
+
self.name = attributes[:'name']
|
194
196
|
end
|
195
197
|
|
196
|
-
if attributes.key?(:'
|
197
|
-
self.
|
198
|
+
if attributes.key?(:'pulp_href')
|
199
|
+
self.pulp_href = attributes[:'pulp_href']
|
198
200
|
end
|
199
201
|
|
200
|
-
if attributes.key?(:'
|
201
|
-
|
202
|
+
if attributes.key?(:'pulp_labels')
|
203
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
204
|
+
self.pulp_labels = value
|
205
|
+
end
|
202
206
|
end
|
203
207
|
|
204
|
-
if attributes.key?(:'
|
205
|
-
|
206
|
-
self.hidden_fields = value
|
207
|
-
end
|
208
|
+
if attributes.key?(:'download_concurrency')
|
209
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
208
210
|
end
|
209
211
|
|
210
|
-
if attributes.key?(:'
|
211
|
-
self.
|
212
|
+
if attributes.key?(:'connect_timeout')
|
213
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
212
214
|
end
|
213
215
|
|
214
|
-
if attributes.key?(:'
|
215
|
-
self.
|
216
|
+
if attributes.key?(:'ca_cert')
|
217
|
+
self.ca_cert = attributes[:'ca_cert']
|
216
218
|
end
|
217
219
|
|
218
|
-
if attributes.key?(:'
|
219
|
-
|
220
|
+
if attributes.key?(:'hidden_fields')
|
221
|
+
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
222
|
+
self.hidden_fields = value
|
223
|
+
end
|
220
224
|
end
|
221
225
|
|
222
|
-
if attributes.key?(:'
|
223
|
-
self.
|
226
|
+
if attributes.key?(:'pulp_created')
|
227
|
+
self.pulp_created = attributes[:'pulp_created']
|
224
228
|
end
|
225
229
|
|
226
|
-
if attributes.key?(:'
|
227
|
-
self.
|
230
|
+
if attributes.key?(:'total_timeout')
|
231
|
+
self.total_timeout = attributes[:'total_timeout']
|
228
232
|
end
|
229
233
|
|
230
|
-
if attributes.key?(:'
|
231
|
-
|
232
|
-
self.headers = value
|
233
|
-
end
|
234
|
+
if attributes.key?(:'max_retries')
|
235
|
+
self.max_retries = attributes[:'max_retries']
|
234
236
|
end
|
235
237
|
|
236
|
-
if attributes.key?(:'
|
237
|
-
|
238
|
-
self.pulp_labels = value
|
239
|
-
end
|
238
|
+
if attributes.key?(:'url')
|
239
|
+
self.url = attributes[:'url']
|
240
240
|
end
|
241
241
|
|
242
242
|
if attributes.key?(:'pulp_last_updated')
|
@@ -256,6 +256,18 @@ module PulpAnsibleClient
|
|
256
256
|
# @return Array for valid properties with the reasons
|
257
257
|
def list_invalid_properties
|
258
258
|
invalid_properties = Array.new
|
259
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
260
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
261
|
+
end
|
262
|
+
|
263
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
264
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
265
|
+
end
|
266
|
+
|
267
|
+
if @name.nil?
|
268
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
269
|
+
end
|
270
|
+
|
259
271
|
if !@download_concurrency.nil? && @download_concurrency < 1
|
260
272
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
261
273
|
end
|
@@ -268,38 +280,46 @@ module PulpAnsibleClient
|
|
268
280
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
269
281
|
end
|
270
282
|
|
271
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
272
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
273
|
-
end
|
274
|
-
|
275
|
-
if @name.nil?
|
276
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
277
|
-
end
|
278
|
-
|
279
283
|
if @url.nil?
|
280
284
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
281
285
|
end
|
282
286
|
|
283
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
284
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
285
|
-
end
|
286
|
-
|
287
287
|
invalid_properties
|
288
288
|
end
|
289
289
|
|
290
290
|
# Check to see if the all the properties in the model are valid
|
291
291
|
# @return true if the model is valid
|
292
292
|
def valid?
|
293
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
294
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
295
|
+
return false if @name.nil?
|
293
296
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
294
297
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
295
298
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
296
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
297
|
-
return false if @name.nil?
|
298
299
|
return false if @url.nil?
|
299
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
300
300
|
true
|
301
301
|
end
|
302
302
|
|
303
|
+
# Custom attribute writer method with validation
|
304
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
305
|
+
def sock_read_timeout=(sock_read_timeout)
|
306
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
307
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
308
|
+
end
|
309
|
+
|
310
|
+
@sock_read_timeout = sock_read_timeout
|
311
|
+
end
|
312
|
+
|
313
|
+
# Custom attribute writer method with validation
|
314
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
315
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
316
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
317
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
318
|
+
end
|
319
|
+
|
320
|
+
@sock_connect_timeout = sock_connect_timeout
|
321
|
+
end
|
322
|
+
|
303
323
|
# Custom attribute writer method with validation
|
304
324
|
# @param [Object] download_concurrency Value to be assigned
|
305
325
|
def download_concurrency=(download_concurrency)
|
@@ -330,49 +350,29 @@ module PulpAnsibleClient
|
|
330
350
|
@total_timeout = total_timeout
|
331
351
|
end
|
332
352
|
|
333
|
-
# Custom attribute writer method with validation
|
334
|
-
# @param [Object] sock_connect_timeout Value to be assigned
|
335
|
-
def sock_connect_timeout=(sock_connect_timeout)
|
336
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
337
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
338
|
-
end
|
339
|
-
|
340
|
-
@sock_connect_timeout = sock_connect_timeout
|
341
|
-
end
|
342
|
-
|
343
|
-
# Custom attribute writer method with validation
|
344
|
-
# @param [Object] sock_read_timeout Value to be assigned
|
345
|
-
def sock_read_timeout=(sock_read_timeout)
|
346
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
347
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
348
|
-
end
|
349
|
-
|
350
|
-
@sock_read_timeout = sock_read_timeout
|
351
|
-
end
|
352
|
-
|
353
353
|
# Checks equality by comparing each attribute.
|
354
354
|
# @param [Object] Object to be compared
|
355
355
|
def ==(o)
|
356
356
|
return true if self.equal?(o)
|
357
357
|
self.class == o.class &&
|
358
|
+
proxy_url == o.proxy_url &&
|
359
|
+
rate_limit == o.rate_limit &&
|
360
|
+
sock_read_timeout == o.sock_read_timeout &&
|
361
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
362
|
+
headers == o.headers &&
|
363
|
+
client_cert == o.client_cert &&
|
364
|
+
tls_validation == o.tls_validation &&
|
365
|
+
name == o.name &&
|
358
366
|
pulp_href == o.pulp_href &&
|
359
|
-
|
367
|
+
pulp_labels == o.pulp_labels &&
|
360
368
|
download_concurrency == o.download_concurrency &&
|
361
369
|
connect_timeout == o.connect_timeout &&
|
362
|
-
client_cert == o.client_cert &&
|
363
370
|
ca_cert == o.ca_cert &&
|
364
|
-
tls_validation == o.tls_validation &&
|
365
|
-
rate_limit == o.rate_limit &&
|
366
|
-
total_timeout == o.total_timeout &&
|
367
|
-
sock_connect_timeout == o.sock_connect_timeout &&
|
368
371
|
hidden_fields == o.hidden_fields &&
|
369
372
|
pulp_created == o.pulp_created &&
|
370
|
-
|
373
|
+
total_timeout == o.total_timeout &&
|
374
|
+
max_retries == o.max_retries &&
|
371
375
|
url == o.url &&
|
372
|
-
proxy_url == o.proxy_url &&
|
373
|
-
sock_read_timeout == o.sock_read_timeout &&
|
374
|
-
headers == o.headers &&
|
375
|
-
pulp_labels == o.pulp_labels &&
|
376
376
|
pulp_last_updated == o.pulp_last_updated &&
|
377
377
|
metadata_only == o.metadata_only &&
|
378
378
|
git_ref == o.git_ref
|
@@ -387,7 +387,7 @@ module PulpAnsibleClient
|
|
387
387
|
# Calculates hash code according to all attributes.
|
388
388
|
# @return [Integer] Hash code
|
389
389
|
def hash
|
390
|
-
[
|
390
|
+
[proxy_url, rate_limit, sock_read_timeout, sock_connect_timeout, headers, client_cert, tls_validation, name, pulp_href, pulp_labels, download_concurrency, connect_timeout, ca_cert, hidden_fields, pulp_created, total_timeout, max_retries, url, pulp_last_updated, metadata_only, git_ref].hash
|
391
391
|
end
|
392
392
|
|
393
393
|
# Builds the object from hash
|