pulp_ansible_client 0.16.7 → 0.17.0.dev1676517190
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 +3 -3
- data/docs/AnsibleCollectionVersionResponse.md +3 -3
- data/docs/AnsibleCollectionsApi.md +1 -1
- data/docs/AnsibleCopyApi.md +1 -1
- data/docs/AnsibleGitRemote.md +26 -26
- data/docs/AnsibleGitRemoteResponse.md +26 -26
- 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 +3 -3
- data/docs/ContentRolesApi.md +1 -1
- data/docs/DistributionsAnsibleApi.md +5 -1
- data/docs/GalaxyDetailApi.md +1 -1
- data/docs/PatchedansibleGitRemote.md +26 -26
- 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 +3 -3
- 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 +11 -11
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +235 -235
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +153 -153
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +221 -221
- 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 +1 -1
- 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 +18 -18
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- 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,60 +15,60 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Git Collection Remotes.
|
17
17
|
class AnsibleGitRemoteResponse
|
18
|
-
|
18
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
19
|
+
attr_accessor :total_timeout
|
19
20
|
|
20
|
-
#
|
21
|
-
attr_accessor :
|
21
|
+
# A unique name for this remote.
|
22
|
+
attr_accessor :name
|
22
23
|
|
23
|
-
#
|
24
|
-
attr_accessor :
|
24
|
+
# The proxy URL. Format: scheme://host:port
|
25
|
+
attr_accessor :proxy_url
|
25
26
|
|
26
|
-
#
|
27
|
-
attr_accessor :
|
27
|
+
# Timestamp of the most recent update of the remote.
|
28
|
+
attr_accessor :pulp_last_updated
|
28
29
|
|
29
|
-
#
|
30
|
-
attr_accessor :
|
30
|
+
# The URL of an external content source.
|
31
|
+
attr_accessor :url
|
31
32
|
|
32
33
|
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
33
34
|
attr_accessor :ca_cert
|
34
35
|
|
35
|
-
# If
|
36
|
-
attr_accessor :
|
36
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
37
|
+
attr_accessor :download_concurrency
|
38
|
+
|
39
|
+
# A PEM encoded client certificate used for authentication.
|
40
|
+
attr_accessor :client_cert
|
37
41
|
|
38
42
|
# Limits requests per second for each concurrent downloader
|
39
43
|
attr_accessor :rate_limit
|
40
44
|
|
41
|
-
#
|
42
|
-
attr_accessor :
|
45
|
+
# If True, TLS peer validation must be performed.
|
46
|
+
attr_accessor :tls_validation
|
47
|
+
|
48
|
+
# Headers for aiohttp.Clientsession
|
49
|
+
attr_accessor :headers
|
43
50
|
|
44
51
|
# 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.
|
45
52
|
attr_accessor :sock_connect_timeout
|
46
53
|
|
47
|
-
|
48
|
-
attr_accessor :hidden_fields
|
49
|
-
|
50
|
-
# Timestamp of creation.
|
51
|
-
attr_accessor :pulp_created
|
52
|
-
|
53
|
-
# A unique name for this remote.
|
54
|
-
attr_accessor :name
|
55
|
-
|
56
|
-
# The URL of an external content source.
|
57
|
-
attr_accessor :url
|
58
|
-
|
59
|
-
# The proxy URL. Format: scheme://host:port
|
60
|
-
attr_accessor :proxy_url
|
54
|
+
attr_accessor :pulp_labels
|
61
55
|
|
62
56
|
# 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
57
|
attr_accessor :sock_read_timeout
|
64
58
|
|
65
|
-
|
66
|
-
attr_accessor :headers
|
59
|
+
attr_accessor :pulp_href
|
67
60
|
|
68
|
-
|
61
|
+
# List of hidden (write only) fields
|
62
|
+
attr_accessor :hidden_fields
|
69
63
|
|
70
|
-
#
|
71
|
-
attr_accessor :
|
64
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
65
|
+
attr_accessor :connect_timeout
|
66
|
+
|
67
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
68
|
+
attr_accessor :max_retries
|
69
|
+
|
70
|
+
# Timestamp of creation.
|
71
|
+
attr_accessor :pulp_created
|
72
72
|
|
73
73
|
# If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
|
74
74
|
attr_accessor :metadata_only
|
@@ -79,25 +79,25 @@ module PulpAnsibleClient
|
|
79
79
|
# Attribute mapping from ruby-style variable name to JSON key.
|
80
80
|
def self.attribute_map
|
81
81
|
{
|
82
|
-
:'
|
83
|
-
:'
|
82
|
+
:'total_timeout' => :'total_timeout',
|
83
|
+
:'name' => :'name',
|
84
|
+
:'proxy_url' => :'proxy_url',
|
85
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
86
|
+
:'url' => :'url',
|
87
|
+
:'ca_cert' => :'ca_cert',
|
84
88
|
:'download_concurrency' => :'download_concurrency',
|
85
|
-
:'connect_timeout' => :'connect_timeout',
|
86
89
|
:'client_cert' => :'client_cert',
|
87
|
-
:'ca_cert' => :'ca_cert',
|
88
|
-
:'tls_validation' => :'tls_validation',
|
89
90
|
:'rate_limit' => :'rate_limit',
|
90
|
-
:'
|
91
|
+
:'tls_validation' => :'tls_validation',
|
92
|
+
:'headers' => :'headers',
|
91
93
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
94
|
+
:'pulp_labels' => :'pulp_labels',
|
95
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
96
|
+
:'pulp_href' => :'pulp_href',
|
92
97
|
:'hidden_fields' => :'hidden_fields',
|
98
|
+
:'connect_timeout' => :'connect_timeout',
|
99
|
+
:'max_retries' => :'max_retries',
|
93
100
|
:'pulp_created' => :'pulp_created',
|
94
|
-
:'name' => :'name',
|
95
|
-
:'url' => :'url',
|
96
|
-
:'proxy_url' => :'proxy_url',
|
97
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
98
|
-
:'headers' => :'headers',
|
99
|
-
:'pulp_labels' => :'pulp_labels',
|
100
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
101
101
|
:'metadata_only' => :'metadata_only',
|
102
102
|
:'git_ref' => :'git_ref'
|
103
103
|
}
|
@@ -106,25 +106,25 @@ module PulpAnsibleClient
|
|
106
106
|
# Attribute type mapping.
|
107
107
|
def self.openapi_types
|
108
108
|
{
|
109
|
-
:'
|
110
|
-
:'
|
109
|
+
:'total_timeout' => :'Float',
|
110
|
+
:'name' => :'String',
|
111
|
+
:'proxy_url' => :'String',
|
112
|
+
:'pulp_last_updated' => :'DateTime',
|
113
|
+
:'url' => :'String',
|
114
|
+
:'ca_cert' => :'String',
|
111
115
|
:'download_concurrency' => :'Integer',
|
112
|
-
:'connect_timeout' => :'Float',
|
113
116
|
:'client_cert' => :'String',
|
114
|
-
:'ca_cert' => :'String',
|
115
|
-
:'tls_validation' => :'Boolean',
|
116
117
|
:'rate_limit' => :'Integer',
|
117
|
-
:'
|
118
|
+
:'tls_validation' => :'Boolean',
|
119
|
+
:'headers' => :'Array<Object>',
|
118
120
|
:'sock_connect_timeout' => :'Float',
|
121
|
+
:'pulp_labels' => :'Hash<String, String>',
|
122
|
+
:'sock_read_timeout' => :'Float',
|
123
|
+
:'pulp_href' => :'String',
|
119
124
|
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFields>',
|
125
|
+
:'connect_timeout' => :'Float',
|
126
|
+
:'max_retries' => :'Integer',
|
120
127
|
:'pulp_created' => :'DateTime',
|
121
|
-
:'name' => :'String',
|
122
|
-
:'url' => :'String',
|
123
|
-
:'proxy_url' => :'String',
|
124
|
-
:'sock_read_timeout' => :'Float',
|
125
|
-
:'headers' => :'Array<Object>',
|
126
|
-
:'pulp_labels' => :'Hash<String, String>',
|
127
|
-
:'pulp_last_updated' => :'DateTime',
|
128
128
|
:'metadata_only' => :'Boolean',
|
129
129
|
:'git_ref' => :'String'
|
130
130
|
}
|
@@ -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
|
+
:'total_timeout',
|
137
|
+
:'proxy_url',
|
138
|
+
:'ca_cert',
|
137
139
|
:'download_concurrency',
|
138
|
-
:'connect_timeout',
|
139
140
|
:'client_cert',
|
140
|
-
:'ca_cert',
|
141
141
|
:'rate_limit',
|
142
|
-
:'total_timeout',
|
143
142
|
:'sock_connect_timeout',
|
144
|
-
:'proxy_url',
|
145
143
|
:'sock_read_timeout',
|
144
|
+
:'connect_timeout',
|
145
|
+
:'max_retries',
|
146
146
|
])
|
147
147
|
end
|
148
148
|
|
@@ -161,86 +161,86 @@ module PulpAnsibleClient
|
|
161
161
|
h[k.to_sym] = v
|
162
162
|
}
|
163
163
|
|
164
|
-
if attributes.key?(:'
|
165
|
-
self.
|
164
|
+
if attributes.key?(:'total_timeout')
|
165
|
+
self.total_timeout = attributes[:'total_timeout']
|
166
166
|
end
|
167
167
|
|
168
|
-
if attributes.key?(:'
|
169
|
-
self.
|
168
|
+
if attributes.key?(:'name')
|
169
|
+
self.name = attributes[:'name']
|
170
170
|
end
|
171
171
|
|
172
|
-
if attributes.key?(:'
|
173
|
-
self.
|
172
|
+
if attributes.key?(:'proxy_url')
|
173
|
+
self.proxy_url = attributes[:'proxy_url']
|
174
174
|
end
|
175
175
|
|
176
|
-
if attributes.key?(:'
|
177
|
-
self.
|
176
|
+
if attributes.key?(:'pulp_last_updated')
|
177
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
178
178
|
end
|
179
179
|
|
180
|
-
if attributes.key?(:'
|
181
|
-
self.
|
180
|
+
if attributes.key?(:'url')
|
181
|
+
self.url = attributes[:'url']
|
182
182
|
end
|
183
183
|
|
184
184
|
if attributes.key?(:'ca_cert')
|
185
185
|
self.ca_cert = attributes[:'ca_cert']
|
186
186
|
end
|
187
187
|
|
188
|
-
if attributes.key?(:'
|
189
|
-
self.
|
188
|
+
if attributes.key?(:'download_concurrency')
|
189
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
190
190
|
end
|
191
191
|
|
192
|
-
if attributes.key?(:'
|
193
|
-
self.
|
192
|
+
if attributes.key?(:'client_cert')
|
193
|
+
self.client_cert = attributes[:'client_cert']
|
194
194
|
end
|
195
195
|
|
196
|
-
if attributes.key?(:'
|
197
|
-
self.
|
196
|
+
if attributes.key?(:'rate_limit')
|
197
|
+
self.rate_limit = attributes[:'rate_limit']
|
198
198
|
end
|
199
199
|
|
200
|
-
if attributes.key?(:'
|
201
|
-
self.
|
200
|
+
if attributes.key?(:'tls_validation')
|
201
|
+
self.tls_validation = attributes[:'tls_validation']
|
202
202
|
end
|
203
203
|
|
204
|
-
if attributes.key?(:'
|
205
|
-
if (value = attributes[:'
|
206
|
-
self.
|
204
|
+
if attributes.key?(:'headers')
|
205
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
206
|
+
self.headers = value
|
207
207
|
end
|
208
208
|
end
|
209
209
|
|
210
|
-
if attributes.key?(:'
|
211
|
-
self.
|
210
|
+
if attributes.key?(:'sock_connect_timeout')
|
211
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
212
212
|
end
|
213
213
|
|
214
|
-
if attributes.key?(:'
|
215
|
-
|
214
|
+
if attributes.key?(:'pulp_labels')
|
215
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
216
|
+
self.pulp_labels = value
|
217
|
+
end
|
216
218
|
end
|
217
219
|
|
218
|
-
if attributes.key?(:'
|
219
|
-
self.
|
220
|
+
if attributes.key?(:'sock_read_timeout')
|
221
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
220
222
|
end
|
221
223
|
|
222
|
-
if attributes.key?(:'
|
223
|
-
self.
|
224
|
+
if attributes.key?(:'pulp_href')
|
225
|
+
self.pulp_href = attributes[:'pulp_href']
|
224
226
|
end
|
225
227
|
|
226
|
-
if attributes.key?(:'
|
227
|
-
|
228
|
+
if attributes.key?(:'hidden_fields')
|
229
|
+
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
230
|
+
self.hidden_fields = value
|
231
|
+
end
|
228
232
|
end
|
229
233
|
|
230
|
-
if attributes.key?(:'
|
231
|
-
|
232
|
-
self.headers = value
|
233
|
-
end
|
234
|
+
if attributes.key?(:'connect_timeout')
|
235
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
234
236
|
end
|
235
237
|
|
236
|
-
if attributes.key?(:'
|
237
|
-
|
238
|
-
self.pulp_labels = value
|
239
|
-
end
|
238
|
+
if attributes.key?(:'max_retries')
|
239
|
+
self.max_retries = attributes[:'max_retries']
|
240
240
|
end
|
241
241
|
|
242
|
-
if attributes.key?(:'
|
243
|
-
self.
|
242
|
+
if attributes.key?(:'pulp_created')
|
243
|
+
self.pulp_created = attributes[:'pulp_created']
|
244
244
|
end
|
245
245
|
|
246
246
|
if attributes.key?(:'metadata_only')
|
@@ -256,22 +256,10 @@ 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 !@download_concurrency.nil? && @download_concurrency < 1
|
260
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
261
|
-
end
|
262
|
-
|
263
|
-
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
264
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
265
|
-
end
|
266
|
-
|
267
259
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
268
260
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
269
261
|
end
|
270
262
|
|
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
263
|
if @name.nil?
|
276
264
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
277
265
|
end
|
@@ -280,46 +268,38 @@ module PulpAnsibleClient
|
|
280
268
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
281
269
|
end
|
282
270
|
|
271
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
272
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
273
|
+
end
|
274
|
+
|
275
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
276
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
277
|
+
end
|
278
|
+
|
283
279
|
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
284
280
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
285
281
|
end
|
286
282
|
|
283
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
284
|
+
invalid_properties.push('invalid value for "connect_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 !@download_concurrency.nil? && @download_concurrency < 1
|
294
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
295
293
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
296
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
297
294
|
return false if @name.nil?
|
298
295
|
return false if @url.nil?
|
296
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
297
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
299
298
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
299
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
300
300
|
true
|
301
301
|
end
|
302
302
|
|
303
|
-
# Custom attribute writer method with validation
|
304
|
-
# @param [Object] download_concurrency Value to be assigned
|
305
|
-
def download_concurrency=(download_concurrency)
|
306
|
-
if !download_concurrency.nil? && download_concurrency < 1
|
307
|
-
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
308
|
-
end
|
309
|
-
|
310
|
-
@download_concurrency = download_concurrency
|
311
|
-
end
|
312
|
-
|
313
|
-
# Custom attribute writer method with validation
|
314
|
-
# @param [Object] connect_timeout Value to be assigned
|
315
|
-
def connect_timeout=(connect_timeout)
|
316
|
-
if !connect_timeout.nil? && connect_timeout < 0.0
|
317
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
318
|
-
end
|
319
|
-
|
320
|
-
@connect_timeout = connect_timeout
|
321
|
-
end
|
322
|
-
|
323
303
|
# Custom attribute writer method with validation
|
324
304
|
# @param [Object] total_timeout Value to be assigned
|
325
305
|
def total_timeout=(total_timeout)
|
@@ -330,6 +310,16 @@ module PulpAnsibleClient
|
|
330
310
|
@total_timeout = total_timeout
|
331
311
|
end
|
332
312
|
|
313
|
+
# Custom attribute writer method with validation
|
314
|
+
# @param [Object] download_concurrency Value to be assigned
|
315
|
+
def download_concurrency=(download_concurrency)
|
316
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
317
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
318
|
+
end
|
319
|
+
|
320
|
+
@download_concurrency = download_concurrency
|
321
|
+
end
|
322
|
+
|
333
323
|
# Custom attribute writer method with validation
|
334
324
|
# @param [Object] sock_connect_timeout Value to be assigned
|
335
325
|
def sock_connect_timeout=(sock_connect_timeout)
|
@@ -350,30 +340,40 @@ module PulpAnsibleClient
|
|
350
340
|
@sock_read_timeout = sock_read_timeout
|
351
341
|
end
|
352
342
|
|
343
|
+
# Custom attribute writer method with validation
|
344
|
+
# @param [Object] connect_timeout Value to be assigned
|
345
|
+
def connect_timeout=(connect_timeout)
|
346
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
347
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
348
|
+
end
|
349
|
+
|
350
|
+
@connect_timeout = connect_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
|
-
|
359
|
-
|
358
|
+
total_timeout == o.total_timeout &&
|
359
|
+
name == o.name &&
|
360
|
+
proxy_url == o.proxy_url &&
|
361
|
+
pulp_last_updated == o.pulp_last_updated &&
|
362
|
+
url == o.url &&
|
363
|
+
ca_cert == o.ca_cert &&
|
360
364
|
download_concurrency == o.download_concurrency &&
|
361
|
-
connect_timeout == o.connect_timeout &&
|
362
365
|
client_cert == o.client_cert &&
|
363
|
-
ca_cert == o.ca_cert &&
|
364
|
-
tls_validation == o.tls_validation &&
|
365
366
|
rate_limit == o.rate_limit &&
|
366
|
-
|
367
|
+
tls_validation == o.tls_validation &&
|
368
|
+
headers == o.headers &&
|
367
369
|
sock_connect_timeout == o.sock_connect_timeout &&
|
370
|
+
pulp_labels == o.pulp_labels &&
|
371
|
+
sock_read_timeout == o.sock_read_timeout &&
|
372
|
+
pulp_href == o.pulp_href &&
|
368
373
|
hidden_fields == o.hidden_fields &&
|
374
|
+
connect_timeout == o.connect_timeout &&
|
375
|
+
max_retries == o.max_retries &&
|
369
376
|
pulp_created == o.pulp_created &&
|
370
|
-
name == o.name &&
|
371
|
-
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
|
-
pulp_last_updated == o.pulp_last_updated &&
|
377
377
|
metadata_only == o.metadata_only &&
|
378
378
|
git_ref == o.git_ref
|
379
379
|
end
|
@@ -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
|
+
[total_timeout, name, proxy_url, pulp_last_updated, url, ca_cert, download_concurrency, client_cert, rate_limit, tls_validation, headers, sock_connect_timeout, pulp_labels, sock_read_timeout, pulp_href, hidden_fields, connect_timeout, max_retries, pulp_created, metadata_only, git_ref].hash
|
391
391
|
end
|
392
392
|
|
393
393
|
# Builds the object from hash
|