pulp_ansible_client 0.28.8 → 0.29.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/AnsibleCollectionVersionResponse.md +12 -4
- data/docs/AnsibleGitRemote.md +22 -22
- data/docs/AnsibleGitRemoteResponse.md +24 -24
- data/docs/AnsibleRole.md +2 -2
- data/docs/AnsibleRoleResponse.md +4 -4
- data/docs/ContentCollectionVersionsApi.md +8 -8
- data/docs/PatchedansibleAnsibleDistribution.md +3 -5
- data/docs/PatchedansibleGitRemote.md +22 -22
- data/docs/RemotesGitApi.md +2 -2
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +12 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +2 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +2 -2
- 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_ansible_namespace_metadata.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +62 -20
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +189 -189
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +131 -131
- data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +20 -20
- data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +16 -28
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +184 -184
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +4 -4
- 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 +30 -6
- data/spec/models/ansible_git_remote_response_spec.rb +19 -19
- data/spec/models/ansible_git_remote_spec.rb +18 -18
- data/spec/models/ansible_role_response_spec.rb +6 -6
- data/spec/models/ansible_role_spec.rb +2 -2
- data/spec/models/patchedansible_ansible_distribution_spec.rb +4 -10
- data/spec/models/patchedansible_git_remote_spec.rb +18 -18
- metadata +122 -122
|
@@ -16,63 +16,63 @@ require 'time'
|
|
|
16
16
|
module PulpAnsibleClient
|
|
17
17
|
# A serializer for Git Collection Remotes.
|
|
18
18
|
class AnsibleGitRemoteResponse
|
|
19
|
+
# A unique name for this remote.
|
|
20
|
+
attr_accessor :name
|
|
21
|
+
|
|
19
22
|
attr_accessor :pulp_href
|
|
20
23
|
|
|
21
24
|
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
|
22
25
|
attr_accessor :ca_cert
|
|
23
26
|
|
|
24
|
-
# If True, TLS peer validation must be performed.
|
|
25
|
-
attr_accessor :tls_validation
|
|
26
|
-
|
|
27
|
-
attr_accessor :pulp_labels
|
|
28
|
-
|
|
29
27
|
# The URL of an external content source.
|
|
30
28
|
attr_accessor :url
|
|
31
29
|
|
|
32
|
-
#
|
|
33
|
-
attr_accessor :
|
|
30
|
+
# Limits requests per second for each concurrent downloader
|
|
31
|
+
attr_accessor :rate_limit
|
|
34
32
|
|
|
35
33
|
# 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.
|
|
36
34
|
attr_accessor :sock_connect_timeout
|
|
37
35
|
|
|
38
|
-
#
|
|
39
|
-
attr_accessor :
|
|
36
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
37
|
+
attr_accessor :connect_timeout
|
|
40
38
|
|
|
41
|
-
#
|
|
42
|
-
attr_accessor :
|
|
39
|
+
# 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.
|
|
40
|
+
attr_accessor :sock_read_timeout
|
|
43
41
|
|
|
44
|
-
|
|
45
|
-
attr_accessor :pulp_last_updated
|
|
42
|
+
attr_accessor :pulp_labels
|
|
46
43
|
|
|
47
|
-
#
|
|
48
|
-
attr_accessor :
|
|
44
|
+
# List of hidden (write only) fields
|
|
45
|
+
attr_accessor :hidden_fields
|
|
46
|
+
|
|
47
|
+
# The proxy URL. Format: scheme://host:port
|
|
48
|
+
attr_accessor :proxy_url
|
|
49
49
|
|
|
50
50
|
# Headers for aiohttp.Clientsession
|
|
51
51
|
attr_accessor :headers
|
|
52
52
|
|
|
53
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
54
|
+
attr_accessor :total_timeout
|
|
55
|
+
|
|
53
56
|
# A PEM encoded client certificate used for authentication.
|
|
54
57
|
attr_accessor :client_cert
|
|
55
58
|
|
|
56
|
-
#
|
|
57
|
-
attr_accessor :
|
|
58
|
-
|
|
59
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
60
|
-
attr_accessor :connect_timeout
|
|
61
|
-
|
|
62
|
-
# Limits requests per second for each concurrent downloader
|
|
63
|
-
attr_accessor :rate_limit
|
|
59
|
+
# Timestamp of creation.
|
|
60
|
+
attr_accessor :pulp_created
|
|
64
61
|
|
|
65
|
-
#
|
|
66
|
-
attr_accessor :
|
|
62
|
+
# Timestamp of the most recent update of the remote.
|
|
63
|
+
attr_accessor :pulp_last_updated
|
|
67
64
|
|
|
68
|
-
#
|
|
69
|
-
attr_accessor :
|
|
65
|
+
# If True, TLS peer validation must be performed.
|
|
66
|
+
attr_accessor :tls_validation
|
|
70
67
|
|
|
71
68
|
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
72
69
|
attr_accessor :download_concurrency
|
|
73
70
|
|
|
74
|
-
#
|
|
75
|
-
attr_accessor :
|
|
71
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
72
|
+
attr_accessor :max_retries
|
|
73
|
+
|
|
74
|
+
# The Pulp Resource Name (PRN).
|
|
75
|
+
attr_accessor :prn
|
|
76
76
|
|
|
77
77
|
# If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
|
|
78
78
|
attr_accessor :metadata_only
|
|
@@ -83,26 +83,26 @@ module PulpAnsibleClient
|
|
|
83
83
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
84
84
|
def self.attribute_map
|
|
85
85
|
{
|
|
86
|
+
:'name' => :'name',
|
|
86
87
|
:'pulp_href' => :'pulp_href',
|
|
87
88
|
:'ca_cert' => :'ca_cert',
|
|
88
|
-
:'tls_validation' => :'tls_validation',
|
|
89
|
-
:'pulp_labels' => :'pulp_labels',
|
|
90
89
|
:'url' => :'url',
|
|
91
|
-
:'
|
|
90
|
+
:'rate_limit' => :'rate_limit',
|
|
92
91
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
93
|
-
:'
|
|
92
|
+
:'connect_timeout' => :'connect_timeout',
|
|
93
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
|
94
|
+
:'pulp_labels' => :'pulp_labels',
|
|
95
|
+
:'hidden_fields' => :'hidden_fields',
|
|
94
96
|
:'proxy_url' => :'proxy_url',
|
|
95
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
96
|
-
:'pulp_created' => :'pulp_created',
|
|
97
97
|
:'headers' => :'headers',
|
|
98
|
-
:'client_cert' => :'client_cert',
|
|
99
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
|
100
|
-
:'connect_timeout' => :'connect_timeout',
|
|
101
|
-
:'rate_limit' => :'rate_limit',
|
|
102
|
-
:'prn' => :'prn',
|
|
103
98
|
:'total_timeout' => :'total_timeout',
|
|
99
|
+
:'client_cert' => :'client_cert',
|
|
100
|
+
:'pulp_created' => :'pulp_created',
|
|
101
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
102
|
+
:'tls_validation' => :'tls_validation',
|
|
104
103
|
:'download_concurrency' => :'download_concurrency',
|
|
105
|
-
:'
|
|
104
|
+
:'max_retries' => :'max_retries',
|
|
105
|
+
:'prn' => :'prn',
|
|
106
106
|
:'metadata_only' => :'metadata_only',
|
|
107
107
|
:'git_ref' => :'git_ref'
|
|
108
108
|
}
|
|
@@ -116,26 +116,26 @@ module PulpAnsibleClient
|
|
|
116
116
|
# Attribute type mapping.
|
|
117
117
|
def self.openapi_types
|
|
118
118
|
{
|
|
119
|
+
:'name' => :'String',
|
|
119
120
|
:'pulp_href' => :'String',
|
|
120
121
|
:'ca_cert' => :'String',
|
|
121
|
-
:'tls_validation' => :'Boolean',
|
|
122
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
123
122
|
:'url' => :'String',
|
|
124
|
-
:'
|
|
123
|
+
:'rate_limit' => :'Integer',
|
|
125
124
|
:'sock_connect_timeout' => :'Float',
|
|
126
|
-
:'
|
|
125
|
+
:'connect_timeout' => :'Float',
|
|
126
|
+
:'sock_read_timeout' => :'Float',
|
|
127
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
128
|
+
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
|
127
129
|
:'proxy_url' => :'String',
|
|
128
|
-
:'pulp_last_updated' => :'Time',
|
|
129
|
-
:'pulp_created' => :'Time',
|
|
130
130
|
:'headers' => :'Array<Object>',
|
|
131
|
-
:'client_cert' => :'String',
|
|
132
|
-
:'sock_read_timeout' => :'Float',
|
|
133
|
-
:'connect_timeout' => :'Float',
|
|
134
|
-
:'rate_limit' => :'Integer',
|
|
135
|
-
:'prn' => :'String',
|
|
136
131
|
:'total_timeout' => :'Float',
|
|
132
|
+
:'client_cert' => :'String',
|
|
133
|
+
:'pulp_created' => :'Time',
|
|
134
|
+
:'pulp_last_updated' => :'Time',
|
|
135
|
+
:'tls_validation' => :'Boolean',
|
|
137
136
|
:'download_concurrency' => :'Integer',
|
|
138
|
-
:'
|
|
137
|
+
:'max_retries' => :'Integer',
|
|
138
|
+
:'prn' => :'String',
|
|
139
139
|
:'metadata_only' => :'Boolean',
|
|
140
140
|
:'git_ref' => :'String'
|
|
141
141
|
}
|
|
@@ -145,15 +145,15 @@ module PulpAnsibleClient
|
|
|
145
145
|
def self.openapi_nullable
|
|
146
146
|
Set.new([
|
|
147
147
|
:'ca_cert',
|
|
148
|
+
:'rate_limit',
|
|
148
149
|
:'sock_connect_timeout',
|
|
149
|
-
:'max_retries',
|
|
150
|
-
:'proxy_url',
|
|
151
|
-
:'client_cert',
|
|
152
|
-
:'sock_read_timeout',
|
|
153
150
|
:'connect_timeout',
|
|
154
|
-
:'
|
|
151
|
+
:'sock_read_timeout',
|
|
152
|
+
:'proxy_url',
|
|
155
153
|
:'total_timeout',
|
|
154
|
+
:'client_cert',
|
|
156
155
|
:'download_concurrency',
|
|
156
|
+
:'max_retries',
|
|
157
157
|
])
|
|
158
158
|
end
|
|
159
159
|
|
|
@@ -172,6 +172,12 @@ module PulpAnsibleClient
|
|
|
172
172
|
h[k.to_sym] = v
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
+
if attributes.key?(:'name')
|
|
176
|
+
self.name = attributes[:'name']
|
|
177
|
+
else
|
|
178
|
+
self.name = nil
|
|
179
|
+
end
|
|
180
|
+
|
|
175
181
|
if attributes.key?(:'pulp_href')
|
|
176
182
|
self.pulp_href = attributes[:'pulp_href']
|
|
177
183
|
end
|
|
@@ -180,46 +186,42 @@ module PulpAnsibleClient
|
|
|
180
186
|
self.ca_cert = attributes[:'ca_cert']
|
|
181
187
|
end
|
|
182
188
|
|
|
183
|
-
if attributes.key?(:'tls_validation')
|
|
184
|
-
self.tls_validation = attributes[:'tls_validation']
|
|
185
|
-
end
|
|
186
|
-
|
|
187
|
-
if attributes.key?(:'pulp_labels')
|
|
188
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
189
|
-
self.pulp_labels = value
|
|
190
|
-
end
|
|
191
|
-
end
|
|
192
|
-
|
|
193
189
|
if attributes.key?(:'url')
|
|
194
190
|
self.url = attributes[:'url']
|
|
195
191
|
else
|
|
196
192
|
self.url = nil
|
|
197
193
|
end
|
|
198
194
|
|
|
199
|
-
if attributes.key?(:'
|
|
200
|
-
|
|
201
|
-
self.hidden_fields = value
|
|
202
|
-
end
|
|
195
|
+
if attributes.key?(:'rate_limit')
|
|
196
|
+
self.rate_limit = attributes[:'rate_limit']
|
|
203
197
|
end
|
|
204
198
|
|
|
205
199
|
if attributes.key?(:'sock_connect_timeout')
|
|
206
200
|
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
|
207
201
|
end
|
|
208
202
|
|
|
209
|
-
if attributes.key?(:'
|
|
210
|
-
self.
|
|
203
|
+
if attributes.key?(:'connect_timeout')
|
|
204
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
|
211
205
|
end
|
|
212
206
|
|
|
213
|
-
if attributes.key?(:'
|
|
214
|
-
self.
|
|
207
|
+
if attributes.key?(:'sock_read_timeout')
|
|
208
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
|
215
209
|
end
|
|
216
210
|
|
|
217
|
-
if attributes.key?(:'
|
|
218
|
-
|
|
211
|
+
if attributes.key?(:'pulp_labels')
|
|
212
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
213
|
+
self.pulp_labels = value
|
|
214
|
+
end
|
|
219
215
|
end
|
|
220
216
|
|
|
221
|
-
if attributes.key?(:'
|
|
222
|
-
|
|
217
|
+
if attributes.key?(:'hidden_fields')
|
|
218
|
+
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
|
219
|
+
self.hidden_fields = value
|
|
220
|
+
end
|
|
221
|
+
end
|
|
222
|
+
|
|
223
|
+
if attributes.key?(:'proxy_url')
|
|
224
|
+
self.proxy_url = attributes[:'proxy_url']
|
|
223
225
|
end
|
|
224
226
|
|
|
225
227
|
if attributes.key?(:'headers')
|
|
@@ -228,38 +230,36 @@ module PulpAnsibleClient
|
|
|
228
230
|
end
|
|
229
231
|
end
|
|
230
232
|
|
|
231
|
-
if attributes.key?(:'
|
|
232
|
-
self.
|
|
233
|
-
end
|
|
234
|
-
|
|
235
|
-
if attributes.key?(:'sock_read_timeout')
|
|
236
|
-
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
|
233
|
+
if attributes.key?(:'total_timeout')
|
|
234
|
+
self.total_timeout = attributes[:'total_timeout']
|
|
237
235
|
end
|
|
238
236
|
|
|
239
|
-
if attributes.key?(:'
|
|
240
|
-
self.
|
|
237
|
+
if attributes.key?(:'client_cert')
|
|
238
|
+
self.client_cert = attributes[:'client_cert']
|
|
241
239
|
end
|
|
242
240
|
|
|
243
|
-
if attributes.key?(:'
|
|
244
|
-
self.
|
|
241
|
+
if attributes.key?(:'pulp_created')
|
|
242
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
245
243
|
end
|
|
246
244
|
|
|
247
|
-
if attributes.key?(:'
|
|
248
|
-
self.
|
|
245
|
+
if attributes.key?(:'pulp_last_updated')
|
|
246
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
249
247
|
end
|
|
250
248
|
|
|
251
|
-
if attributes.key?(:'
|
|
252
|
-
self.
|
|
249
|
+
if attributes.key?(:'tls_validation')
|
|
250
|
+
self.tls_validation = attributes[:'tls_validation']
|
|
253
251
|
end
|
|
254
252
|
|
|
255
253
|
if attributes.key?(:'download_concurrency')
|
|
256
254
|
self.download_concurrency = attributes[:'download_concurrency']
|
|
257
255
|
end
|
|
258
256
|
|
|
259
|
-
if attributes.key?(:'
|
|
260
|
-
self.
|
|
261
|
-
|
|
262
|
-
|
|
257
|
+
if attributes.key?(:'max_retries')
|
|
258
|
+
self.max_retries = attributes[:'max_retries']
|
|
259
|
+
end
|
|
260
|
+
|
|
261
|
+
if attributes.key?(:'prn')
|
|
262
|
+
self.prn = attributes[:'prn']
|
|
263
263
|
end
|
|
264
264
|
|
|
265
265
|
if attributes.key?(:'metadata_only')
|
|
@@ -276,6 +276,10 @@ module PulpAnsibleClient
|
|
|
276
276
|
def list_invalid_properties
|
|
277
277
|
warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
|
|
278
278
|
invalid_properties = Array.new
|
|
279
|
+
if @name.nil?
|
|
280
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
281
|
+
end
|
|
282
|
+
|
|
279
283
|
if @url.nil?
|
|
280
284
|
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
281
285
|
end
|
|
@@ -284,20 +288,16 @@ module PulpAnsibleClient
|
|
|
284
288
|
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
|
285
289
|
end
|
|
286
290
|
|
|
287
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
288
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
289
|
-
end
|
|
290
|
-
|
|
291
291
|
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
292
292
|
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
|
293
293
|
end
|
|
294
294
|
|
|
295
|
-
if !@
|
|
296
|
-
invalid_properties.push('invalid value for "
|
|
295
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
296
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
297
297
|
end
|
|
298
298
|
|
|
299
|
-
if
|
|
300
|
-
invalid_properties.push('invalid value for "
|
|
299
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
|
300
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
|
301
301
|
end
|
|
302
302
|
|
|
303
303
|
invalid_properties
|
|
@@ -307,12 +307,12 @@ module PulpAnsibleClient
|
|
|
307
307
|
# @return true if the model is valid
|
|
308
308
|
def valid?
|
|
309
309
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
310
|
+
return false if @name.nil?
|
|
310
311
|
return false if @url.nil?
|
|
311
312
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
312
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
313
313
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
314
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
314
315
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
315
|
-
return false if @name.nil?
|
|
316
316
|
true
|
|
317
317
|
end
|
|
318
318
|
|
|
@@ -326,16 +326,6 @@ module PulpAnsibleClient
|
|
|
326
326
|
@sock_connect_timeout = sock_connect_timeout
|
|
327
327
|
end
|
|
328
328
|
|
|
329
|
-
# Custom attribute writer method with validation
|
|
330
|
-
# @param [Object] sock_read_timeout Value to be assigned
|
|
331
|
-
def sock_read_timeout=(sock_read_timeout)
|
|
332
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
|
333
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
|
334
|
-
end
|
|
335
|
-
|
|
336
|
-
@sock_read_timeout = sock_read_timeout
|
|
337
|
-
end
|
|
338
|
-
|
|
339
329
|
# Custom attribute writer method with validation
|
|
340
330
|
# @param [Object] connect_timeout Value to be assigned
|
|
341
331
|
def connect_timeout=(connect_timeout)
|
|
@@ -346,6 +336,16 @@ module PulpAnsibleClient
|
|
|
346
336
|
@connect_timeout = connect_timeout
|
|
347
337
|
end
|
|
348
338
|
|
|
339
|
+
# Custom attribute writer method with validation
|
|
340
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
|
341
|
+
def sock_read_timeout=(sock_read_timeout)
|
|
342
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
|
343
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
@sock_read_timeout = sock_read_timeout
|
|
347
|
+
end
|
|
348
|
+
|
|
349
349
|
# Custom attribute writer method with validation
|
|
350
350
|
# @param [Object] total_timeout Value to be assigned
|
|
351
351
|
def total_timeout=(total_timeout)
|
|
@@ -361,26 +361,26 @@ module PulpAnsibleClient
|
|
|
361
361
|
def ==(o)
|
|
362
362
|
return true if self.equal?(o)
|
|
363
363
|
self.class == o.class &&
|
|
364
|
+
name == o.name &&
|
|
364
365
|
pulp_href == o.pulp_href &&
|
|
365
366
|
ca_cert == o.ca_cert &&
|
|
366
|
-
tls_validation == o.tls_validation &&
|
|
367
|
-
pulp_labels == o.pulp_labels &&
|
|
368
367
|
url == o.url &&
|
|
369
|
-
|
|
368
|
+
rate_limit == o.rate_limit &&
|
|
370
369
|
sock_connect_timeout == o.sock_connect_timeout &&
|
|
371
|
-
|
|
370
|
+
connect_timeout == o.connect_timeout &&
|
|
371
|
+
sock_read_timeout == o.sock_read_timeout &&
|
|
372
|
+
pulp_labels == o.pulp_labels &&
|
|
373
|
+
hidden_fields == o.hidden_fields &&
|
|
372
374
|
proxy_url == o.proxy_url &&
|
|
373
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
374
|
-
pulp_created == o.pulp_created &&
|
|
375
375
|
headers == o.headers &&
|
|
376
|
-
client_cert == o.client_cert &&
|
|
377
|
-
sock_read_timeout == o.sock_read_timeout &&
|
|
378
|
-
connect_timeout == o.connect_timeout &&
|
|
379
|
-
rate_limit == o.rate_limit &&
|
|
380
|
-
prn == o.prn &&
|
|
381
376
|
total_timeout == o.total_timeout &&
|
|
377
|
+
client_cert == o.client_cert &&
|
|
378
|
+
pulp_created == o.pulp_created &&
|
|
379
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
380
|
+
tls_validation == o.tls_validation &&
|
|
382
381
|
download_concurrency == o.download_concurrency &&
|
|
383
|
-
|
|
382
|
+
max_retries == o.max_retries &&
|
|
383
|
+
prn == o.prn &&
|
|
384
384
|
metadata_only == o.metadata_only &&
|
|
385
385
|
git_ref == o.git_ref
|
|
386
386
|
end
|
|
@@ -394,7 +394,7 @@ module PulpAnsibleClient
|
|
|
394
394
|
# Calculates hash code according to all attributes.
|
|
395
395
|
# @return [Integer] Hash code
|
|
396
396
|
def hash
|
|
397
|
-
[pulp_href, ca_cert,
|
|
397
|
+
[name, pulp_href, ca_cert, url, rate_limit, sock_connect_timeout, connect_timeout, sock_read_timeout, pulp_labels, hidden_fields, proxy_url, headers, total_timeout, client_cert, pulp_created, pulp_last_updated, tls_validation, download_concurrency, max_retries, prn, metadata_only, git_ref].hash
|
|
398
398
|
end
|
|
399
399
|
|
|
400
400
|
# Builds the object from hash
|
|
@@ -19,12 +19,12 @@ module PulpAnsibleClient
|
|
|
19
19
|
# Artifact file representing the physical content
|
|
20
20
|
attr_accessor :artifact
|
|
21
21
|
|
|
22
|
-
# A URI of a repository the new content unit should be associated with.
|
|
23
|
-
attr_accessor :repository
|
|
24
|
-
|
|
25
22
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
26
23
|
attr_accessor :pulp_labels
|
|
27
24
|
|
|
25
|
+
# A URI of a repository the new content unit should be associated with.
|
|
26
|
+
attr_accessor :repository
|
|
27
|
+
|
|
28
28
|
attr_accessor :version
|
|
29
29
|
|
|
30
30
|
attr_accessor :name
|
|
@@ -35,8 +35,8 @@ module PulpAnsibleClient
|
|
|
35
35
|
def self.attribute_map
|
|
36
36
|
{
|
|
37
37
|
:'artifact' => :'artifact',
|
|
38
|
-
:'repository' => :'repository',
|
|
39
38
|
:'pulp_labels' => :'pulp_labels',
|
|
39
|
+
:'repository' => :'repository',
|
|
40
40
|
:'version' => :'version',
|
|
41
41
|
:'name' => :'name',
|
|
42
42
|
:'namespace' => :'namespace'
|
|
@@ -52,8 +52,8 @@ module PulpAnsibleClient
|
|
|
52
52
|
def self.openapi_types
|
|
53
53
|
{
|
|
54
54
|
:'artifact' => :'String',
|
|
55
|
-
:'repository' => :'String',
|
|
56
55
|
:'pulp_labels' => :'Hash<String, String>',
|
|
56
|
+
:'repository' => :'String',
|
|
57
57
|
:'version' => :'String',
|
|
58
58
|
:'name' => :'String',
|
|
59
59
|
:'namespace' => :'String'
|
|
@@ -87,16 +87,16 @@ module PulpAnsibleClient
|
|
|
87
87
|
self.artifact = nil
|
|
88
88
|
end
|
|
89
89
|
|
|
90
|
-
if attributes.key?(:'repository')
|
|
91
|
-
self.repository = attributes[:'repository']
|
|
92
|
-
end
|
|
93
|
-
|
|
94
90
|
if attributes.key?(:'pulp_labels')
|
|
95
91
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
96
92
|
self.pulp_labels = value
|
|
97
93
|
end
|
|
98
94
|
end
|
|
99
95
|
|
|
96
|
+
if attributes.key?(:'repository')
|
|
97
|
+
self.repository = attributes[:'repository']
|
|
98
|
+
end
|
|
99
|
+
|
|
100
100
|
if attributes.key?(:'version')
|
|
101
101
|
self.version = attributes[:'version']
|
|
102
102
|
else
|
|
@@ -214,8 +214,8 @@ module PulpAnsibleClient
|
|
|
214
214
|
return true if self.equal?(o)
|
|
215
215
|
self.class == o.class &&
|
|
216
216
|
artifact == o.artifact &&
|
|
217
|
-
repository == o.repository &&
|
|
218
217
|
pulp_labels == o.pulp_labels &&
|
|
218
|
+
repository == o.repository &&
|
|
219
219
|
version == o.version &&
|
|
220
220
|
name == o.name &&
|
|
221
221
|
namespace == o.namespace
|
|
@@ -230,7 +230,7 @@ module PulpAnsibleClient
|
|
|
230
230
|
# Calculates hash code according to all attributes.
|
|
231
231
|
# @return [Integer] Hash code
|
|
232
232
|
def hash
|
|
233
|
-
[artifact,
|
|
233
|
+
[artifact, pulp_labels, repository, version, name, namespace].hash
|
|
234
234
|
end
|
|
235
235
|
|
|
236
236
|
# Builds the object from hash
|
|
@@ -18,23 +18,23 @@ module PulpAnsibleClient
|
|
|
18
18
|
class AnsibleRoleResponse
|
|
19
19
|
attr_accessor :pulp_href
|
|
20
20
|
|
|
21
|
+
attr_accessor :vuln_report
|
|
22
|
+
|
|
23
|
+
# Timestamp of creation.
|
|
24
|
+
attr_accessor :pulp_created
|
|
25
|
+
|
|
21
26
|
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
|
22
27
|
attr_accessor :pulp_last_updated
|
|
23
28
|
|
|
24
29
|
# Artifact file representing the physical content
|
|
25
30
|
attr_accessor :artifact
|
|
26
31
|
|
|
27
|
-
# Timestamp of creation.
|
|
28
|
-
attr_accessor :pulp_created
|
|
29
|
-
|
|
30
32
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
31
33
|
attr_accessor :pulp_labels
|
|
32
34
|
|
|
33
35
|
# The Pulp Resource Name (PRN).
|
|
34
36
|
attr_accessor :prn
|
|
35
37
|
|
|
36
|
-
attr_accessor :vuln_report
|
|
37
|
-
|
|
38
38
|
attr_accessor :version
|
|
39
39
|
|
|
40
40
|
attr_accessor :name
|
|
@@ -45,12 +45,12 @@ module PulpAnsibleClient
|
|
|
45
45
|
def self.attribute_map
|
|
46
46
|
{
|
|
47
47
|
:'pulp_href' => :'pulp_href',
|
|
48
|
+
:'vuln_report' => :'vuln_report',
|
|
49
|
+
:'pulp_created' => :'pulp_created',
|
|
48
50
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
49
51
|
:'artifact' => :'artifact',
|
|
50
|
-
:'pulp_created' => :'pulp_created',
|
|
51
52
|
:'pulp_labels' => :'pulp_labels',
|
|
52
53
|
:'prn' => :'prn',
|
|
53
|
-
:'vuln_report' => :'vuln_report',
|
|
54
54
|
:'version' => :'version',
|
|
55
55
|
:'name' => :'name',
|
|
56
56
|
:'namespace' => :'namespace'
|
|
@@ -66,12 +66,12 @@ module PulpAnsibleClient
|
|
|
66
66
|
def self.openapi_types
|
|
67
67
|
{
|
|
68
68
|
:'pulp_href' => :'String',
|
|
69
|
+
:'vuln_report' => :'String',
|
|
70
|
+
:'pulp_created' => :'Time',
|
|
69
71
|
:'pulp_last_updated' => :'Time',
|
|
70
72
|
:'artifact' => :'String',
|
|
71
|
-
:'pulp_created' => :'Time',
|
|
72
73
|
:'pulp_labels' => :'Hash<String, String>',
|
|
73
74
|
:'prn' => :'String',
|
|
74
|
-
:'vuln_report' => :'String',
|
|
75
75
|
:'version' => :'String',
|
|
76
76
|
:'name' => :'String',
|
|
77
77
|
:'namespace' => :'String'
|
|
@@ -103,6 +103,14 @@ module PulpAnsibleClient
|
|
|
103
103
|
self.pulp_href = attributes[:'pulp_href']
|
|
104
104
|
end
|
|
105
105
|
|
|
106
|
+
if attributes.key?(:'vuln_report')
|
|
107
|
+
self.vuln_report = attributes[:'vuln_report']
|
|
108
|
+
end
|
|
109
|
+
|
|
110
|
+
if attributes.key?(:'pulp_created')
|
|
111
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
112
|
+
end
|
|
113
|
+
|
|
106
114
|
if attributes.key?(:'pulp_last_updated')
|
|
107
115
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
108
116
|
end
|
|
@@ -113,10 +121,6 @@ module PulpAnsibleClient
|
|
|
113
121
|
self.artifact = nil
|
|
114
122
|
end
|
|
115
123
|
|
|
116
|
-
if attributes.key?(:'pulp_created')
|
|
117
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
118
|
-
end
|
|
119
|
-
|
|
120
124
|
if attributes.key?(:'pulp_labels')
|
|
121
125
|
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
122
126
|
self.pulp_labels = value
|
|
@@ -127,10 +131,6 @@ module PulpAnsibleClient
|
|
|
127
131
|
self.prn = attributes[:'prn']
|
|
128
132
|
end
|
|
129
133
|
|
|
130
|
-
if attributes.key?(:'vuln_report')
|
|
131
|
-
self.vuln_report = attributes[:'vuln_report']
|
|
132
|
-
end
|
|
133
|
-
|
|
134
134
|
if attributes.key?(:'version')
|
|
135
135
|
self.version = attributes[:'version']
|
|
136
136
|
else
|
|
@@ -191,12 +191,12 @@ module PulpAnsibleClient
|
|
|
191
191
|
return true if self.equal?(o)
|
|
192
192
|
self.class == o.class &&
|
|
193
193
|
pulp_href == o.pulp_href &&
|
|
194
|
+
vuln_report == o.vuln_report &&
|
|
195
|
+
pulp_created == o.pulp_created &&
|
|
194
196
|
pulp_last_updated == o.pulp_last_updated &&
|
|
195
197
|
artifact == o.artifact &&
|
|
196
|
-
pulp_created == o.pulp_created &&
|
|
197
198
|
pulp_labels == o.pulp_labels &&
|
|
198
199
|
prn == o.prn &&
|
|
199
|
-
vuln_report == o.vuln_report &&
|
|
200
200
|
version == o.version &&
|
|
201
201
|
name == o.name &&
|
|
202
202
|
namespace == o.namespace
|
|
@@ -211,7 +211,7 @@ module PulpAnsibleClient
|
|
|
211
211
|
# Calculates hash code according to all attributes.
|
|
212
212
|
# @return [Integer] Hash code
|
|
213
213
|
def hash
|
|
214
|
-
[pulp_href, pulp_last_updated, artifact,
|
|
214
|
+
[pulp_href, vuln_report, pulp_created, pulp_last_updated, artifact, pulp_labels, prn, version, name, namespace].hash
|
|
215
215
|
end
|
|
216
216
|
|
|
217
217
|
# Builds the object from hash
|