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