pulp_ansible_client 0.28.9 → 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 +14 -6
- data/docs/AnsibleGitRemote.md +26 -26
- data/docs/AnsibleGitRemoteResponse.md +26 -26
- data/docs/AnsibleRole.md +2 -2
- data/docs/AnsibleRoleResponse.md +6 -6
- data/docs/ContentCollectionVersionsApi.md +6 -6
- data/docs/PatchedansibleAnsibleDistribution.md +3 -5
- data/docs/PatchedansibleGitRemote.md +26 -26
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -9
- 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 +75 -33
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +222 -222
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +138 -138
- data/lib/pulp_ansible_client/models/ansible_role.rb +13 -13
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +33 -33
- data/lib/pulp_ansible_client/models/patchedansible_ansible_distribution.rb +16 -28
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +213 -213
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +3 -3
- 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 +20 -20
- 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 +20 -20
- 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
|
-
#
|
|
20
|
-
attr_accessor :
|
|
21
|
-
|
|
22
|
-
# Limits requests per second for each concurrent downloader
|
|
23
|
-
attr_accessor :rate_limit
|
|
19
|
+
# A unique name for this remote.
|
|
20
|
+
attr_accessor :name
|
|
24
21
|
|
|
25
22
|
attr_accessor :pulp_href
|
|
26
23
|
|
|
27
|
-
#
|
|
28
|
-
attr_accessor :
|
|
24
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
|
25
|
+
attr_accessor :ca_cert
|
|
29
26
|
|
|
30
|
-
#
|
|
31
|
-
attr_accessor :
|
|
27
|
+
# The URL of an external content source.
|
|
28
|
+
attr_accessor :url
|
|
29
|
+
|
|
30
|
+
# Limits requests per second for each concurrent downloader
|
|
31
|
+
attr_accessor :rate_limit
|
|
32
32
|
|
|
33
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.
|
|
34
34
|
attr_accessor :sock_connect_timeout
|
|
35
35
|
|
|
36
|
-
# A unique name for this remote.
|
|
37
|
-
attr_accessor :name
|
|
38
|
-
|
|
39
|
-
# Timestamp of creation.
|
|
40
|
-
attr_accessor :pulp_created
|
|
41
|
-
|
|
42
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.
|
|
43
37
|
attr_accessor :connect_timeout
|
|
44
38
|
|
|
45
|
-
#
|
|
46
|
-
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
|
|
47
41
|
|
|
48
|
-
|
|
49
|
-
attr_accessor :ca_cert
|
|
42
|
+
attr_accessor :pulp_labels
|
|
50
43
|
|
|
51
44
|
# List of hidden (write only) fields
|
|
52
45
|
attr_accessor :hidden_fields
|
|
53
46
|
|
|
54
|
-
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
55
|
-
attr_accessor :download_concurrency
|
|
56
|
-
|
|
57
|
-
# 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.
|
|
58
|
-
attr_accessor :sock_read_timeout
|
|
59
|
-
|
|
60
47
|
# The proxy URL. Format: scheme://host:port
|
|
61
48
|
attr_accessor :proxy_url
|
|
62
49
|
|
|
63
50
|
# Headers for aiohttp.Clientsession
|
|
64
51
|
attr_accessor :headers
|
|
65
52
|
|
|
66
|
-
# The
|
|
67
|
-
attr_accessor :
|
|
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
|
|
68
55
|
|
|
69
|
-
#
|
|
70
|
-
attr_accessor :
|
|
56
|
+
# A PEM encoded client certificate used for authentication.
|
|
57
|
+
attr_accessor :client_cert
|
|
58
|
+
|
|
59
|
+
# Timestamp of creation.
|
|
60
|
+
attr_accessor :pulp_created
|
|
61
|
+
|
|
62
|
+
# Timestamp of the most recent update of the remote.
|
|
63
|
+
attr_accessor :pulp_last_updated
|
|
71
64
|
|
|
72
65
|
# If True, TLS peer validation must be performed.
|
|
73
66
|
attr_accessor :tls_validation
|
|
74
67
|
|
|
75
|
-
|
|
68
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
69
|
+
attr_accessor :download_concurrency
|
|
70
|
+
|
|
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
|
-
:'
|
|
87
|
-
:'rate_limit' => :'rate_limit',
|
|
86
|
+
:'name' => :'name',
|
|
88
87
|
:'pulp_href' => :'pulp_href',
|
|
89
|
-
:'
|
|
90
|
-
:'
|
|
88
|
+
:'ca_cert' => :'ca_cert',
|
|
89
|
+
:'url' => :'url',
|
|
90
|
+
:'rate_limit' => :'rate_limit',
|
|
91
91
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
92
|
-
:'name' => :'name',
|
|
93
|
-
:'pulp_created' => :'pulp_created',
|
|
94
92
|
:'connect_timeout' => :'connect_timeout',
|
|
95
|
-
:'client_cert' => :'client_cert',
|
|
96
|
-
:'ca_cert' => :'ca_cert',
|
|
97
|
-
:'hidden_fields' => :'hidden_fields',
|
|
98
|
-
:'download_concurrency' => :'download_concurrency',
|
|
99
93
|
:'sock_read_timeout' => :'sock_read_timeout',
|
|
94
|
+
:'pulp_labels' => :'pulp_labels',
|
|
95
|
+
:'hidden_fields' => :'hidden_fields',
|
|
100
96
|
:'proxy_url' => :'proxy_url',
|
|
101
97
|
:'headers' => :'headers',
|
|
102
|
-
:'
|
|
103
|
-
:'
|
|
98
|
+
:'total_timeout' => :'total_timeout',
|
|
99
|
+
:'client_cert' => :'client_cert',
|
|
100
|
+
:'pulp_created' => :'pulp_created',
|
|
101
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
104
102
|
:'tls_validation' => :'tls_validation',
|
|
105
|
-
:'
|
|
103
|
+
:'download_concurrency' => :'download_concurrency',
|
|
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
|
-
:'
|
|
120
|
-
:'rate_limit' => :'Integer',
|
|
119
|
+
:'name' => :'String',
|
|
121
120
|
:'pulp_href' => :'String',
|
|
122
|
-
:'
|
|
123
|
-
:'
|
|
121
|
+
:'ca_cert' => :'String',
|
|
122
|
+
:'url' => :'String',
|
|
123
|
+
:'rate_limit' => :'Integer',
|
|
124
124
|
:'sock_connect_timeout' => :'Float',
|
|
125
|
-
:'name' => :'String',
|
|
126
|
-
:'pulp_created' => :'Time',
|
|
127
125
|
:'connect_timeout' => :'Float',
|
|
128
|
-
:'client_cert' => :'String',
|
|
129
|
-
:'ca_cert' => :'String',
|
|
130
|
-
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
|
131
|
-
:'download_concurrency' => :'Integer',
|
|
132
126
|
:'sock_read_timeout' => :'Float',
|
|
127
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
128
|
+
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
|
133
129
|
:'proxy_url' => :'String',
|
|
134
130
|
:'headers' => :'Array<Object>',
|
|
135
|
-
:'
|
|
136
|
-
:'
|
|
131
|
+
:'total_timeout' => :'Float',
|
|
132
|
+
:'client_cert' => :'String',
|
|
133
|
+
:'pulp_created' => :'Time',
|
|
134
|
+
:'pulp_last_updated' => :'Time',
|
|
137
135
|
:'tls_validation' => :'Boolean',
|
|
138
|
-
:'
|
|
136
|
+
:'download_concurrency' => :'Integer',
|
|
137
|
+
:'max_retries' => :'Integer',
|
|
138
|
+
:'prn' => :'String',
|
|
139
139
|
:'metadata_only' => :'Boolean',
|
|
140
140
|
:'git_ref' => :'String'
|
|
141
141
|
}
|
|
@@ -144,16 +144,16 @@ module PulpAnsibleClient
|
|
|
144
144
|
# List of attributes with nullable: true
|
|
145
145
|
def self.openapi_nullable
|
|
146
146
|
Set.new([
|
|
147
|
+
:'ca_cert',
|
|
147
148
|
:'rate_limit',
|
|
148
|
-
:'total_timeout',
|
|
149
|
-
:'max_retries',
|
|
150
149
|
:'sock_connect_timeout',
|
|
151
150
|
:'connect_timeout',
|
|
152
|
-
:'client_cert',
|
|
153
|
-
:'ca_cert',
|
|
154
|
-
:'download_concurrency',
|
|
155
151
|
:'sock_read_timeout',
|
|
156
152
|
:'proxy_url',
|
|
153
|
+
:'total_timeout',
|
|
154
|
+
:'client_cert',
|
|
155
|
+
:'download_concurrency',
|
|
156
|
+
:'max_retries',
|
|
157
157
|
])
|
|
158
158
|
end
|
|
159
159
|
|
|
@@ -172,50 +172,46 @@ module PulpAnsibleClient
|
|
|
172
172
|
h[k.to_sym] = v
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
if attributes.key?(:'
|
|
176
|
-
self.
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
if attributes.key?(:'rate_limit')
|
|
180
|
-
self.rate_limit = attributes[:'rate_limit']
|
|
175
|
+
if attributes.key?(:'name')
|
|
176
|
+
self.name = attributes[:'name']
|
|
177
|
+
else
|
|
178
|
+
self.name = nil
|
|
181
179
|
end
|
|
182
180
|
|
|
183
181
|
if attributes.key?(:'pulp_href')
|
|
184
182
|
self.pulp_href = attributes[:'pulp_href']
|
|
185
183
|
end
|
|
186
184
|
|
|
187
|
-
if attributes.key?(:'
|
|
188
|
-
self.
|
|
189
|
-
end
|
|
190
|
-
|
|
191
|
-
if attributes.key?(:'max_retries')
|
|
192
|
-
self.max_retries = attributes[:'max_retries']
|
|
185
|
+
if attributes.key?(:'ca_cert')
|
|
186
|
+
self.ca_cert = attributes[:'ca_cert']
|
|
193
187
|
end
|
|
194
188
|
|
|
195
|
-
if attributes.key?(:'
|
|
196
|
-
self.
|
|
189
|
+
if attributes.key?(:'url')
|
|
190
|
+
self.url = attributes[:'url']
|
|
191
|
+
else
|
|
192
|
+
self.url = nil
|
|
197
193
|
end
|
|
198
194
|
|
|
199
|
-
if attributes.key?(:'
|
|
200
|
-
self.
|
|
201
|
-
else
|
|
202
|
-
self.name = nil
|
|
195
|
+
if attributes.key?(:'rate_limit')
|
|
196
|
+
self.rate_limit = attributes[:'rate_limit']
|
|
203
197
|
end
|
|
204
198
|
|
|
205
|
-
if attributes.key?(:'
|
|
206
|
-
self.
|
|
199
|
+
if attributes.key?(:'sock_connect_timeout')
|
|
200
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
|
207
201
|
end
|
|
208
202
|
|
|
209
203
|
if attributes.key?(:'connect_timeout')
|
|
210
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
217
|
if attributes.key?(:'hidden_fields')
|
|
@@ -224,14 +220,6 @@ module PulpAnsibleClient
|
|
|
224
220
|
end
|
|
225
221
|
end
|
|
226
222
|
|
|
227
|
-
if attributes.key?(:'download_concurrency')
|
|
228
|
-
self.download_concurrency = attributes[:'download_concurrency']
|
|
229
|
-
end
|
|
230
|
-
|
|
231
|
-
if attributes.key?(:'sock_read_timeout')
|
|
232
|
-
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
|
233
|
-
end
|
|
234
|
-
|
|
235
223
|
if attributes.key?(:'proxy_url')
|
|
236
224
|
self.proxy_url = attributes[:'proxy_url']
|
|
237
225
|
end
|
|
@@ -242,24 +230,36 @@ module PulpAnsibleClient
|
|
|
242
230
|
end
|
|
243
231
|
end
|
|
244
232
|
|
|
245
|
-
if attributes.key?(:'
|
|
246
|
-
self.
|
|
247
|
-
else
|
|
248
|
-
self.url = nil
|
|
233
|
+
if attributes.key?(:'total_timeout')
|
|
234
|
+
self.total_timeout = attributes[:'total_timeout']
|
|
249
235
|
end
|
|
250
236
|
|
|
251
|
-
if attributes.key?(:'
|
|
252
|
-
self.
|
|
237
|
+
if attributes.key?(:'client_cert')
|
|
238
|
+
self.client_cert = attributes[:'client_cert']
|
|
239
|
+
end
|
|
240
|
+
|
|
241
|
+
if attributes.key?(:'pulp_created')
|
|
242
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
if attributes.key?(:'pulp_last_updated')
|
|
246
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
253
247
|
end
|
|
254
248
|
|
|
255
249
|
if attributes.key?(:'tls_validation')
|
|
256
250
|
self.tls_validation = attributes[:'tls_validation']
|
|
257
251
|
end
|
|
258
252
|
|
|
259
|
-
if attributes.key?(:'
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
253
|
+
if attributes.key?(:'download_concurrency')
|
|
254
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
|
255
|
+
end
|
|
256
|
+
|
|
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,16 +276,16 @@ 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
|
|
280
|
-
invalid_properties.push('invalid value for "
|
|
279
|
+
if @name.nil?
|
|
280
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
281
281
|
end
|
|
282
282
|
|
|
283
|
-
if
|
|
284
|
-
invalid_properties.push('invalid value for "
|
|
283
|
+
if @url.nil?
|
|
284
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
285
285
|
end
|
|
286
286
|
|
|
287
|
-
if
|
|
288
|
-
invalid_properties.push('invalid value for "
|
|
287
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
288
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
|
289
289
|
end
|
|
290
290
|
|
|
291
291
|
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
@@ -296,8 +296,8 @@ module PulpAnsibleClient
|
|
|
296
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,25 +307,15 @@ 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 !@total_timeout.nil? && @total_timeout < 0.0
|
|
311
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
312
310
|
return false if @name.nil?
|
|
311
|
+
return false if @url.nil?
|
|
312
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
313
313
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
314
314
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
315
|
-
return false if
|
|
315
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
316
316
|
true
|
|
317
317
|
end
|
|
318
318
|
|
|
319
|
-
# Custom attribute writer method with validation
|
|
320
|
-
# @param [Object] total_timeout Value to be assigned
|
|
321
|
-
def total_timeout=(total_timeout)
|
|
322
|
-
if !total_timeout.nil? && total_timeout < 0.0
|
|
323
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
|
324
|
-
end
|
|
325
|
-
|
|
326
|
-
@total_timeout = total_timeout
|
|
327
|
-
end
|
|
328
|
-
|
|
329
319
|
# Custom attribute writer method with validation
|
|
330
320
|
# @param [Object] sock_connect_timeout Value to be assigned
|
|
331
321
|
def sock_connect_timeout=(sock_connect_timeout)
|
|
@@ -356,31 +346,41 @@ module PulpAnsibleClient
|
|
|
356
346
|
@sock_read_timeout = sock_read_timeout
|
|
357
347
|
end
|
|
358
348
|
|
|
349
|
+
# Custom attribute writer method with validation
|
|
350
|
+
# @param [Object] total_timeout Value to be assigned
|
|
351
|
+
def total_timeout=(total_timeout)
|
|
352
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
|
353
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
@total_timeout = total_timeout
|
|
357
|
+
end
|
|
358
|
+
|
|
359
359
|
# Checks equality by comparing each attribute.
|
|
360
360
|
# @param [Object] Object to be compared
|
|
361
361
|
def ==(o)
|
|
362
362
|
return true if self.equal?(o)
|
|
363
363
|
self.class == o.class &&
|
|
364
|
-
|
|
365
|
-
rate_limit == o.rate_limit &&
|
|
364
|
+
name == o.name &&
|
|
366
365
|
pulp_href == o.pulp_href &&
|
|
367
|
-
|
|
368
|
-
|
|
366
|
+
ca_cert == o.ca_cert &&
|
|
367
|
+
url == o.url &&
|
|
368
|
+
rate_limit == o.rate_limit &&
|
|
369
369
|
sock_connect_timeout == o.sock_connect_timeout &&
|
|
370
|
-
name == o.name &&
|
|
371
|
-
pulp_created == o.pulp_created &&
|
|
372
370
|
connect_timeout == o.connect_timeout &&
|
|
373
|
-
client_cert == o.client_cert &&
|
|
374
|
-
ca_cert == o.ca_cert &&
|
|
375
|
-
hidden_fields == o.hidden_fields &&
|
|
376
|
-
download_concurrency == o.download_concurrency &&
|
|
377
371
|
sock_read_timeout == o.sock_read_timeout &&
|
|
372
|
+
pulp_labels == o.pulp_labels &&
|
|
373
|
+
hidden_fields == o.hidden_fields &&
|
|
378
374
|
proxy_url == o.proxy_url &&
|
|
379
375
|
headers == o.headers &&
|
|
380
|
-
|
|
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 &&
|
|
382
380
|
tls_validation == o.tls_validation &&
|
|
383
|
-
|
|
381
|
+
download_concurrency == o.download_concurrency &&
|
|
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
|
-
[
|
|
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
|
|
@@ -16,12 +16,12 @@ require 'time'
|
|
|
16
16
|
module PulpAnsibleClient
|
|
17
17
|
# A serializer for Role versions.
|
|
18
18
|
class AnsibleRole
|
|
19
|
-
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
20
|
-
attr_accessor :pulp_labels
|
|
21
|
-
|
|
22
19
|
# Artifact file representing the physical content
|
|
23
20
|
attr_accessor :artifact
|
|
24
21
|
|
|
22
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
23
|
+
attr_accessor :pulp_labels
|
|
24
|
+
|
|
25
25
|
# A URI of a repository the new content unit should be associated with.
|
|
26
26
|
attr_accessor :repository
|
|
27
27
|
|
|
@@ -34,8 +34,8 @@ module PulpAnsibleClient
|
|
|
34
34
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
35
|
def self.attribute_map
|
|
36
36
|
{
|
|
37
|
-
:'pulp_labels' => :'pulp_labels',
|
|
38
37
|
:'artifact' => :'artifact',
|
|
38
|
+
:'pulp_labels' => :'pulp_labels',
|
|
39
39
|
:'repository' => :'repository',
|
|
40
40
|
:'version' => :'version',
|
|
41
41
|
:'name' => :'name',
|
|
@@ -51,8 +51,8 @@ module PulpAnsibleClient
|
|
|
51
51
|
# Attribute type mapping.
|
|
52
52
|
def self.openapi_types
|
|
53
53
|
{
|
|
54
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
55
54
|
:'artifact' => :'String',
|
|
55
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
56
56
|
:'repository' => :'String',
|
|
57
57
|
:'version' => :'String',
|
|
58
58
|
:'name' => :'String',
|
|
@@ -81,18 +81,18 @@ module PulpAnsibleClient
|
|
|
81
81
|
h[k.to_sym] = v
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
if attributes.key?(:'pulp_labels')
|
|
85
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
86
|
-
self.pulp_labels = value
|
|
87
|
-
end
|
|
88
|
-
end
|
|
89
|
-
|
|
90
84
|
if attributes.key?(:'artifact')
|
|
91
85
|
self.artifact = attributes[:'artifact']
|
|
92
86
|
else
|
|
93
87
|
self.artifact = nil
|
|
94
88
|
end
|
|
95
89
|
|
|
90
|
+
if attributes.key?(:'pulp_labels')
|
|
91
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
92
|
+
self.pulp_labels = value
|
|
93
|
+
end
|
|
94
|
+
end
|
|
95
|
+
|
|
96
96
|
if attributes.key?(:'repository')
|
|
97
97
|
self.repository = attributes[:'repository']
|
|
98
98
|
end
|
|
@@ -213,8 +213,8 @@ module PulpAnsibleClient
|
|
|
213
213
|
def ==(o)
|
|
214
214
|
return true if self.equal?(o)
|
|
215
215
|
self.class == o.class &&
|
|
216
|
-
pulp_labels == o.pulp_labels &&
|
|
217
216
|
artifact == o.artifact &&
|
|
217
|
+
pulp_labels == o.pulp_labels &&
|
|
218
218
|
repository == o.repository &&
|
|
219
219
|
version == o.version &&
|
|
220
220
|
name == o.name &&
|
|
@@ -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
|
-
[
|
|
233
|
+
[artifact, pulp_labels, repository, version, name, namespace].hash
|
|
234
234
|
end
|
|
235
235
|
|
|
236
236
|
# Builds the object from hash
|
|
@@ -16,22 +16,22 @@ require 'time'
|
|
|
16
16
|
module PulpAnsibleClient
|
|
17
17
|
# A serializer for Role versions.
|
|
18
18
|
class AnsibleRoleResponse
|
|
19
|
-
# 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.
|
|
20
|
-
attr_accessor :pulp_last_updated
|
|
21
|
-
|
|
22
19
|
attr_accessor :pulp_href
|
|
23
20
|
|
|
24
|
-
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
25
|
-
attr_accessor :pulp_labels
|
|
26
|
-
|
|
27
|
-
# Artifact file representing the physical content
|
|
28
|
-
attr_accessor :artifact
|
|
29
|
-
|
|
30
21
|
attr_accessor :vuln_report
|
|
31
22
|
|
|
32
23
|
# Timestamp of creation.
|
|
33
24
|
attr_accessor :pulp_created
|
|
34
25
|
|
|
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.
|
|
27
|
+
attr_accessor :pulp_last_updated
|
|
28
|
+
|
|
29
|
+
# Artifact file representing the physical content
|
|
30
|
+
attr_accessor :artifact
|
|
31
|
+
|
|
32
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
33
|
+
attr_accessor :pulp_labels
|
|
34
|
+
|
|
35
35
|
# The Pulp Resource Name (PRN).
|
|
36
36
|
attr_accessor :prn
|
|
37
37
|
|
|
@@ -44,12 +44,12 @@ module PulpAnsibleClient
|
|
|
44
44
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
45
45
|
def self.attribute_map
|
|
46
46
|
{
|
|
47
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
48
47
|
:'pulp_href' => :'pulp_href',
|
|
49
|
-
:'pulp_labels' => :'pulp_labels',
|
|
50
|
-
:'artifact' => :'artifact',
|
|
51
48
|
:'vuln_report' => :'vuln_report',
|
|
52
49
|
:'pulp_created' => :'pulp_created',
|
|
50
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
51
|
+
:'artifact' => :'artifact',
|
|
52
|
+
:'pulp_labels' => :'pulp_labels',
|
|
53
53
|
:'prn' => :'prn',
|
|
54
54
|
:'version' => :'version',
|
|
55
55
|
:'name' => :'name',
|
|
@@ -65,12 +65,12 @@ module PulpAnsibleClient
|
|
|
65
65
|
# Attribute type mapping.
|
|
66
66
|
def self.openapi_types
|
|
67
67
|
{
|
|
68
|
-
:'pulp_last_updated' => :'Time',
|
|
69
68
|
:'pulp_href' => :'String',
|
|
70
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
71
|
-
:'artifact' => :'String',
|
|
72
69
|
:'vuln_report' => :'String',
|
|
73
70
|
:'pulp_created' => :'Time',
|
|
71
|
+
:'pulp_last_updated' => :'Time',
|
|
72
|
+
:'artifact' => :'String',
|
|
73
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
74
74
|
:'prn' => :'String',
|
|
75
75
|
:'version' => :'String',
|
|
76
76
|
:'name' => :'String',
|
|
@@ -99,18 +99,20 @@ module PulpAnsibleClient
|
|
|
99
99
|
h[k.to_sym] = v
|
|
100
100
|
}
|
|
101
101
|
|
|
102
|
-
if attributes.key?(:'pulp_last_updated')
|
|
103
|
-
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
104
|
-
end
|
|
105
|
-
|
|
106
102
|
if attributes.key?(:'pulp_href')
|
|
107
103
|
self.pulp_href = attributes[:'pulp_href']
|
|
108
104
|
end
|
|
109
105
|
|
|
110
|
-
if attributes.key?(:'
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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
|
+
|
|
114
|
+
if attributes.key?(:'pulp_last_updated')
|
|
115
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
114
116
|
end
|
|
115
117
|
|
|
116
118
|
if attributes.key?(:'artifact')
|
|
@@ -119,12 +121,10 @@ module PulpAnsibleClient
|
|
|
119
121
|
self.artifact = nil
|
|
120
122
|
end
|
|
121
123
|
|
|
122
|
-
if attributes.key?(:'
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
if attributes.key?(:'pulp_created')
|
|
127
|
-
self.pulp_created = attributes[:'pulp_created']
|
|
124
|
+
if attributes.key?(:'pulp_labels')
|
|
125
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
126
|
+
self.pulp_labels = value
|
|
127
|
+
end
|
|
128
128
|
end
|
|
129
129
|
|
|
130
130
|
if attributes.key?(:'prn')
|
|
@@ -190,12 +190,12 @@ module PulpAnsibleClient
|
|
|
190
190
|
def ==(o)
|
|
191
191
|
return true if self.equal?(o)
|
|
192
192
|
self.class == o.class &&
|
|
193
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
194
193
|
pulp_href == o.pulp_href &&
|
|
195
|
-
pulp_labels == o.pulp_labels &&
|
|
196
|
-
artifact == o.artifact &&
|
|
197
194
|
vuln_report == o.vuln_report &&
|
|
198
195
|
pulp_created == o.pulp_created &&
|
|
196
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
197
|
+
artifact == o.artifact &&
|
|
198
|
+
pulp_labels == o.pulp_labels &&
|
|
199
199
|
prn == o.prn &&
|
|
200
200
|
version == o.version &&
|
|
201
201
|
name == o.name &&
|
|
@@ -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
|
-
[
|
|
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
|