pulp_ansible_client 0.11.0.dev1636859743 → 0.11.0.dev1637205359
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of pulp_ansible_client might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/AnsibleCollectionVersion.md +3 -3
- data/docs/AnsibleCollectionVersionResponse.md +4 -4
- data/docs/AnsibleGitRemote.md +23 -21
- data/docs/AnsibleGitRemoteResponse.md +23 -21
- data/docs/AnsibleRoleResponse.md +4 -4
- data/docs/CollectionVersionResponse.md +4 -0
- data/docs/ContentCollectionVersionsApi.md +3 -3
- data/docs/PatchedansibleGitRemote.md +23 -21
- data/docs/UnpaginatedCollectionVersionResponse.md +5 -1
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +14 -19
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +140 -130
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +139 -129
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +14 -14
- data/lib/pulp_ansible_client/models/collection_version_response.rb +19 -1
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +130 -120
- data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +22 -4
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +1 -1
- data/spec/models/ansible_collection_version_response_spec.rb +2 -2
- data/spec/models/ansible_collection_version_spec.rb +2 -2
- data/spec/models/ansible_git_remote_response_spec.rb +22 -16
- data/spec/models/ansible_git_remote_spec.rb +22 -16
- data/spec/models/ansible_role_response_spec.rb +2 -2
- data/spec/models/collection_version_response_spec.rb +12 -0
- data/spec/models/patchedansible_git_remote_spec.rb +22 -16
- data/spec/models/unpaginated_collection_version_response_spec.rb +12 -0
- metadata +2 -2
@@ -15,20 +15,19 @@ require 'date'
|
|
15
15
|
module PulpAnsibleClient
|
16
16
|
# A serializer for Git Collection Remotes.
|
17
17
|
class AnsibleGitRemoteResponse
|
18
|
-
|
19
|
-
|
18
|
+
attr_accessor :pulp_href
|
19
|
+
|
20
|
+
# Timestamp of creation.
|
21
|
+
attr_accessor :pulp_created
|
20
22
|
|
21
23
|
# Limits total download rate in requests per second
|
22
24
|
attr_accessor :rate_limit
|
23
25
|
|
24
|
-
#
|
25
|
-
attr_accessor :
|
26
|
-
|
27
|
-
# The proxy URL. Format: scheme://host:port
|
28
|
-
attr_accessor :proxy_url
|
26
|
+
# Timestamp of the most recent update of the remote.
|
27
|
+
attr_accessor :pulp_last_updated
|
29
28
|
|
30
|
-
#
|
31
|
-
attr_accessor :
|
29
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
30
|
+
attr_accessor :max_retries
|
32
31
|
|
33
32
|
# 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
33
|
attr_accessor :sock_connect_timeout
|
@@ -36,18 +35,30 @@ module PulpAnsibleClient
|
|
36
35
|
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
37
36
|
attr_accessor :ca_cert
|
38
37
|
|
39
|
-
#
|
40
|
-
attr_accessor :
|
38
|
+
# The proxy URL. Format: scheme://host:port
|
39
|
+
attr_accessor :proxy_url
|
40
|
+
|
41
|
+
# 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.
|
42
|
+
attr_accessor :sock_read_timeout
|
43
|
+
|
44
|
+
# A PEM encoded client certificate used for authentication.
|
45
|
+
attr_accessor :client_cert
|
41
46
|
|
42
47
|
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
43
48
|
attr_accessor :total_timeout
|
44
49
|
|
45
|
-
# Timestamp of the most recent update of the remote.
|
46
|
-
attr_accessor :pulp_last_updated
|
47
|
-
|
48
50
|
# Headers for aiohttp.Clientsession
|
49
51
|
attr_accessor :headers
|
50
52
|
|
53
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
54
|
+
attr_accessor :connect_timeout
|
55
|
+
|
56
|
+
# A unique name for this remote.
|
57
|
+
attr_accessor :name
|
58
|
+
|
59
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
60
|
+
attr_accessor :download_concurrency
|
61
|
+
|
51
62
|
attr_accessor :pulp_labels
|
52
63
|
|
53
64
|
# If True, TLS peer validation must be performed.
|
@@ -56,83 +67,77 @@ module PulpAnsibleClient
|
|
56
67
|
# The URL of an external content source.
|
57
68
|
attr_accessor :url
|
58
69
|
|
59
|
-
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
60
|
-
attr_accessor :max_retries
|
61
|
-
|
62
|
-
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
63
|
-
attr_accessor :connect_timeout
|
64
|
-
|
65
|
-
# A PEM encoded client certificate used for authentication.
|
66
|
-
attr_accessor :client_cert
|
67
|
-
|
68
|
-
attr_accessor :pulp_href
|
69
|
-
|
70
70
|
# If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
|
71
71
|
attr_accessor :metadata_only
|
72
72
|
|
73
|
+
# A git ref. e.g.: branch, tag, or commit sha.
|
74
|
+
attr_accessor :git_ref
|
75
|
+
|
73
76
|
# Attribute mapping from ruby-style variable name to JSON key.
|
74
77
|
def self.attribute_map
|
75
78
|
{
|
76
|
-
:'
|
79
|
+
:'pulp_href' => :'pulp_href',
|
80
|
+
:'pulp_created' => :'pulp_created',
|
77
81
|
:'rate_limit' => :'rate_limit',
|
78
|
-
:'
|
79
|
-
:'
|
80
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
82
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
83
|
+
:'max_retries' => :'max_retries',
|
81
84
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
82
85
|
:'ca_cert' => :'ca_cert',
|
83
|
-
:'
|
86
|
+
:'proxy_url' => :'proxy_url',
|
87
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
88
|
+
:'client_cert' => :'client_cert',
|
84
89
|
:'total_timeout' => :'total_timeout',
|
85
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
86
90
|
:'headers' => :'headers',
|
91
|
+
:'connect_timeout' => :'connect_timeout',
|
92
|
+
:'name' => :'name',
|
93
|
+
:'download_concurrency' => :'download_concurrency',
|
87
94
|
:'pulp_labels' => :'pulp_labels',
|
88
95
|
:'tls_validation' => :'tls_validation',
|
89
96
|
:'url' => :'url',
|
90
|
-
:'
|
91
|
-
:'
|
92
|
-
:'client_cert' => :'client_cert',
|
93
|
-
:'pulp_href' => :'pulp_href',
|
94
|
-
:'metadata_only' => :'metadata_only'
|
97
|
+
:'metadata_only' => :'metadata_only',
|
98
|
+
:'git_ref' => :'git_ref'
|
95
99
|
}
|
96
100
|
end
|
97
101
|
|
98
102
|
# Attribute type mapping.
|
99
103
|
def self.openapi_types
|
100
104
|
{
|
101
|
-
:'
|
105
|
+
:'pulp_href' => :'String',
|
106
|
+
:'pulp_created' => :'DateTime',
|
102
107
|
:'rate_limit' => :'Integer',
|
103
|
-
:'
|
104
|
-
:'
|
105
|
-
:'sock_read_timeout' => :'Float',
|
108
|
+
:'pulp_last_updated' => :'DateTime',
|
109
|
+
:'max_retries' => :'Integer',
|
106
110
|
:'sock_connect_timeout' => :'Float',
|
107
111
|
:'ca_cert' => :'String',
|
108
|
-
:'
|
112
|
+
:'proxy_url' => :'String',
|
113
|
+
:'sock_read_timeout' => :'Float',
|
114
|
+
:'client_cert' => :'String',
|
109
115
|
:'total_timeout' => :'Float',
|
110
|
-
:'pulp_last_updated' => :'DateTime',
|
111
116
|
:'headers' => :'Array<Object>',
|
117
|
+
:'connect_timeout' => :'Float',
|
118
|
+
:'name' => :'String',
|
119
|
+
:'download_concurrency' => :'Integer',
|
112
120
|
:'pulp_labels' => :'Object',
|
113
121
|
:'tls_validation' => :'Boolean',
|
114
122
|
:'url' => :'String',
|
115
|
-
:'
|
116
|
-
:'
|
117
|
-
:'client_cert' => :'String',
|
118
|
-
:'pulp_href' => :'String',
|
119
|
-
:'metadata_only' => :'Boolean'
|
123
|
+
:'metadata_only' => :'Boolean',
|
124
|
+
:'git_ref' => :'String'
|
120
125
|
}
|
121
126
|
end
|
122
127
|
|
123
128
|
# List of attributes with nullable: true
|
124
129
|
def self.openapi_nullable
|
125
130
|
Set.new([
|
126
|
-
:'download_concurrency',
|
127
131
|
:'rate_limit',
|
128
|
-
:'
|
129
|
-
:'sock_read_timeout',
|
132
|
+
:'max_retries',
|
130
133
|
:'sock_connect_timeout',
|
131
134
|
:'ca_cert',
|
135
|
+
:'proxy_url',
|
136
|
+
:'sock_read_timeout',
|
137
|
+
:'client_cert',
|
132
138
|
:'total_timeout',
|
133
|
-
:'max_retries',
|
134
139
|
:'connect_timeout',
|
135
|
-
:'
|
140
|
+
:'download_concurrency',
|
136
141
|
])
|
137
142
|
end
|
138
143
|
|
@@ -151,24 +156,24 @@ module PulpAnsibleClient
|
|
151
156
|
h[k.to_sym] = v
|
152
157
|
}
|
153
158
|
|
154
|
-
if attributes.key?(:'
|
155
|
-
self.
|
159
|
+
if attributes.key?(:'pulp_href')
|
160
|
+
self.pulp_href = attributes[:'pulp_href']
|
156
161
|
end
|
157
162
|
|
158
|
-
if attributes.key?(:'
|
159
|
-
self.
|
163
|
+
if attributes.key?(:'pulp_created')
|
164
|
+
self.pulp_created = attributes[:'pulp_created']
|
160
165
|
end
|
161
166
|
|
162
|
-
if attributes.key?(:'
|
163
|
-
self.
|
167
|
+
if attributes.key?(:'rate_limit')
|
168
|
+
self.rate_limit = attributes[:'rate_limit']
|
164
169
|
end
|
165
170
|
|
166
|
-
if attributes.key?(:'
|
167
|
-
self.
|
171
|
+
if attributes.key?(:'pulp_last_updated')
|
172
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
168
173
|
end
|
169
174
|
|
170
|
-
if attributes.key?(:'
|
171
|
-
self.
|
175
|
+
if attributes.key?(:'max_retries')
|
176
|
+
self.max_retries = attributes[:'max_retries']
|
172
177
|
end
|
173
178
|
|
174
179
|
if attributes.key?(:'sock_connect_timeout')
|
@@ -179,16 +184,20 @@ module PulpAnsibleClient
|
|
179
184
|
self.ca_cert = attributes[:'ca_cert']
|
180
185
|
end
|
181
186
|
|
182
|
-
if attributes.key?(:'
|
183
|
-
self.
|
187
|
+
if attributes.key?(:'proxy_url')
|
188
|
+
self.proxy_url = attributes[:'proxy_url']
|
184
189
|
end
|
185
190
|
|
186
|
-
if attributes.key?(:'
|
187
|
-
self.
|
191
|
+
if attributes.key?(:'sock_read_timeout')
|
192
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
188
193
|
end
|
189
194
|
|
190
|
-
if attributes.key?(:'
|
191
|
-
self.
|
195
|
+
if attributes.key?(:'client_cert')
|
196
|
+
self.client_cert = attributes[:'client_cert']
|
197
|
+
end
|
198
|
+
|
199
|
+
if attributes.key?(:'total_timeout')
|
200
|
+
self.total_timeout = attributes[:'total_timeout']
|
192
201
|
end
|
193
202
|
|
194
203
|
if attributes.key?(:'headers')
|
@@ -197,95 +206,95 @@ module PulpAnsibleClient
|
|
197
206
|
end
|
198
207
|
end
|
199
208
|
|
200
|
-
if attributes.key?(:'
|
201
|
-
self.
|
202
|
-
end
|
203
|
-
|
204
|
-
if attributes.key?(:'tls_validation')
|
205
|
-
self.tls_validation = attributes[:'tls_validation']
|
209
|
+
if attributes.key?(:'connect_timeout')
|
210
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
206
211
|
end
|
207
212
|
|
208
|
-
if attributes.key?(:'
|
209
|
-
self.
|
213
|
+
if attributes.key?(:'name')
|
214
|
+
self.name = attributes[:'name']
|
210
215
|
end
|
211
216
|
|
212
|
-
if attributes.key?(:'
|
213
|
-
self.
|
217
|
+
if attributes.key?(:'download_concurrency')
|
218
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
214
219
|
end
|
215
220
|
|
216
|
-
if attributes.key?(:'
|
217
|
-
self.
|
221
|
+
if attributes.key?(:'pulp_labels')
|
222
|
+
self.pulp_labels = attributes[:'pulp_labels']
|
218
223
|
end
|
219
224
|
|
220
|
-
if attributes.key?(:'
|
221
|
-
self.
|
225
|
+
if attributes.key?(:'tls_validation')
|
226
|
+
self.tls_validation = attributes[:'tls_validation']
|
222
227
|
end
|
223
228
|
|
224
|
-
if attributes.key?(:'
|
225
|
-
self.
|
229
|
+
if attributes.key?(:'url')
|
230
|
+
self.url = attributes[:'url']
|
226
231
|
end
|
227
232
|
|
228
233
|
if attributes.key?(:'metadata_only')
|
229
234
|
self.metadata_only = attributes[:'metadata_only']
|
230
235
|
end
|
236
|
+
|
237
|
+
if attributes.key?(:'git_ref')
|
238
|
+
self.git_ref = attributes[:'git_ref']
|
239
|
+
end
|
231
240
|
end
|
232
241
|
|
233
242
|
# Show invalid properties with the reasons. Usually used together with valid?
|
234
243
|
# @return Array for valid properties with the reasons
|
235
244
|
def list_invalid_properties
|
236
245
|
invalid_properties = Array.new
|
237
|
-
if !@
|
238
|
-
invalid_properties.push('invalid value for "
|
239
|
-
end
|
240
|
-
|
241
|
-
if @name.nil?
|
242
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
246
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
247
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
243
248
|
end
|
244
249
|
|
245
250
|
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
246
251
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
247
252
|
end
|
248
253
|
|
249
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
250
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
251
|
-
end
|
252
|
-
|
253
254
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
254
255
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
255
256
|
end
|
256
257
|
|
257
|
-
if @url.nil?
|
258
|
-
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
259
|
-
end
|
260
|
-
|
261
258
|
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
262
259
|
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
263
260
|
end
|
264
261
|
|
262
|
+
if @name.nil?
|
263
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
264
|
+
end
|
265
|
+
|
266
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
267
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
268
|
+
end
|
269
|
+
|
270
|
+
if @url.nil?
|
271
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
272
|
+
end
|
273
|
+
|
265
274
|
invalid_properties
|
266
275
|
end
|
267
276
|
|
268
277
|
# Check to see if the all the properties in the model are valid
|
269
278
|
# @return true if the model is valid
|
270
279
|
def valid?
|
271
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
272
|
-
return false if @name.nil?
|
273
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
274
280
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
281
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
275
282
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
276
|
-
return false if @url.nil?
|
277
283
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
284
|
+
return false if @name.nil?
|
285
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
286
|
+
return false if @url.nil?
|
278
287
|
true
|
279
288
|
end
|
280
289
|
|
281
290
|
# Custom attribute writer method with validation
|
282
|
-
# @param [Object]
|
283
|
-
def
|
284
|
-
if !
|
285
|
-
fail ArgumentError, 'invalid value for "
|
291
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
292
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
293
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
294
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
286
295
|
end
|
287
296
|
|
288
|
-
@
|
297
|
+
@sock_connect_timeout = sock_connect_timeout
|
289
298
|
end
|
290
299
|
|
291
300
|
# Custom attribute writer method with validation
|
@@ -298,16 +307,6 @@ module PulpAnsibleClient
|
|
298
307
|
@sock_read_timeout = sock_read_timeout
|
299
308
|
end
|
300
309
|
|
301
|
-
# Custom attribute writer method with validation
|
302
|
-
# @param [Object] sock_connect_timeout Value to be assigned
|
303
|
-
def sock_connect_timeout=(sock_connect_timeout)
|
304
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
305
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
306
|
-
end
|
307
|
-
|
308
|
-
@sock_connect_timeout = sock_connect_timeout
|
309
|
-
end
|
310
|
-
|
311
310
|
# Custom attribute writer method with validation
|
312
311
|
# @param [Object] total_timeout Value to be assigned
|
313
312
|
def total_timeout=(total_timeout)
|
@@ -328,30 +327,41 @@ module PulpAnsibleClient
|
|
328
327
|
@connect_timeout = connect_timeout
|
329
328
|
end
|
330
329
|
|
330
|
+
# Custom attribute writer method with validation
|
331
|
+
# @param [Object] download_concurrency Value to be assigned
|
332
|
+
def download_concurrency=(download_concurrency)
|
333
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
334
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
335
|
+
end
|
336
|
+
|
337
|
+
@download_concurrency = download_concurrency
|
338
|
+
end
|
339
|
+
|
331
340
|
# Checks equality by comparing each attribute.
|
332
341
|
# @param [Object] Object to be compared
|
333
342
|
def ==(o)
|
334
343
|
return true if self.equal?(o)
|
335
344
|
self.class == o.class &&
|
336
|
-
|
345
|
+
pulp_href == o.pulp_href &&
|
346
|
+
pulp_created == o.pulp_created &&
|
337
347
|
rate_limit == o.rate_limit &&
|
338
|
-
|
339
|
-
|
340
|
-
sock_read_timeout == o.sock_read_timeout &&
|
348
|
+
pulp_last_updated == o.pulp_last_updated &&
|
349
|
+
max_retries == o.max_retries &&
|
341
350
|
sock_connect_timeout == o.sock_connect_timeout &&
|
342
351
|
ca_cert == o.ca_cert &&
|
343
|
-
|
352
|
+
proxy_url == o.proxy_url &&
|
353
|
+
sock_read_timeout == o.sock_read_timeout &&
|
354
|
+
client_cert == o.client_cert &&
|
344
355
|
total_timeout == o.total_timeout &&
|
345
|
-
pulp_last_updated == o.pulp_last_updated &&
|
346
356
|
headers == o.headers &&
|
357
|
+
connect_timeout == o.connect_timeout &&
|
358
|
+
name == o.name &&
|
359
|
+
download_concurrency == o.download_concurrency &&
|
347
360
|
pulp_labels == o.pulp_labels &&
|
348
361
|
tls_validation == o.tls_validation &&
|
349
362
|
url == o.url &&
|
350
|
-
|
351
|
-
|
352
|
-
client_cert == o.client_cert &&
|
353
|
-
pulp_href == o.pulp_href &&
|
354
|
-
metadata_only == o.metadata_only
|
363
|
+
metadata_only == o.metadata_only &&
|
364
|
+
git_ref == o.git_ref
|
355
365
|
end
|
356
366
|
|
357
367
|
# @see the `==` method
|
@@ -363,7 +373,7 @@ module PulpAnsibleClient
|
|
363
373
|
# Calculates hash code according to all attributes.
|
364
374
|
# @return [Integer] Hash code
|
365
375
|
def hash
|
366
|
-
[
|
376
|
+
[pulp_href, pulp_created, rate_limit, pulp_last_updated, max_retries, sock_connect_timeout, ca_cert, proxy_url, sock_read_timeout, client_cert, total_timeout, headers, connect_timeout, name, download_concurrency, pulp_labels, tls_validation, url, metadata_only, git_ref].hash
|
367
377
|
end
|
368
378
|
|
369
379
|
# 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
|
-
|
19
|
-
attr_accessor :pulp_created
|
18
|
+
attr_accessor :pulp_href
|
20
19
|
|
21
20
|
# Artifact file representing the physical content
|
22
21
|
attr_accessor :artifact
|
23
22
|
|
24
|
-
|
23
|
+
# Timestamp of creation.
|
24
|
+
attr_accessor :pulp_created
|
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_created' => :'pulp_created',
|
36
|
-
:'artifact' => :'artifact',
|
37
35
|
:'pulp_href' => :'pulp_href',
|
36
|
+
:'artifact' => :'artifact',
|
37
|
+
:'pulp_created' => :'pulp_created',
|
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_created' => :'DateTime',
|
48
|
-
:'artifact' => :'String',
|
49
47
|
:'pulp_href' => :'String',
|
48
|
+
:'artifact' => :'String',
|
49
|
+
:'pulp_created' => :'DateTime',
|
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?(:'pulp_href')
|
78
|
+
self.pulp_href = attributes[:'pulp_href']
|
79
79
|
end
|
80
80
|
|
81
81
|
if attributes.key?(:'artifact')
|
82
82
|
self.artifact = attributes[:'artifact']
|
83
83
|
end
|
84
84
|
|
85
|
-
if attributes.key?(:'
|
86
|
-
self.
|
85
|
+
if attributes.key?(:'pulp_created')
|
86
|
+
self.pulp_created = attributes[:'pulp_created']
|
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_created == o.pulp_created &&
|
141
|
-
artifact == o.artifact &&
|
142
140
|
pulp_href == o.pulp_href &&
|
141
|
+
artifact == o.artifact &&
|
142
|
+
pulp_created == o.pulp_created &&
|
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
|
+
[pulp_href, artifact, pulp_created, version, name, namespace].hash
|
158
158
|
end
|
159
159
|
|
160
160
|
# Builds the object from hash
|
@@ -37,6 +37,10 @@ module PulpAnsibleClient
|
|
37
37
|
|
38
38
|
attr_accessor :metadata
|
39
39
|
|
40
|
+
attr_accessor :git_url
|
41
|
+
|
42
|
+
attr_accessor :git_commit_sha
|
43
|
+
|
40
44
|
# A JSON field holding MANIFEST.json data.
|
41
45
|
attr_accessor :manifest
|
42
46
|
|
@@ -57,6 +61,8 @@ module PulpAnsibleClient
|
|
57
61
|
:'name' => :'name',
|
58
62
|
:'namespace' => :'namespace',
|
59
63
|
:'metadata' => :'metadata',
|
64
|
+
:'git_url' => :'git_url',
|
65
|
+
:'git_commit_sha' => :'git_commit_sha',
|
60
66
|
:'manifest' => :'manifest',
|
61
67
|
:'files' => :'files'
|
62
68
|
}
|
@@ -76,6 +82,8 @@ module PulpAnsibleClient
|
|
76
82
|
:'name' => :'String',
|
77
83
|
:'namespace' => :'CollectionNamespaceResponse',
|
78
84
|
:'metadata' => :'CollectionMetadataResponse',
|
85
|
+
:'git_url' => :'String',
|
86
|
+
:'git_commit_sha' => :'String',
|
79
87
|
:'manifest' => :'Object',
|
80
88
|
:'files' => :'Object'
|
81
89
|
}
|
@@ -147,6 +155,14 @@ module PulpAnsibleClient
|
|
147
155
|
self.metadata = attributes[:'metadata']
|
148
156
|
end
|
149
157
|
|
158
|
+
if attributes.key?(:'git_url')
|
159
|
+
self.git_url = attributes[:'git_url']
|
160
|
+
end
|
161
|
+
|
162
|
+
if attributes.key?(:'git_commit_sha')
|
163
|
+
self.git_commit_sha = attributes[:'git_commit_sha']
|
164
|
+
end
|
165
|
+
|
150
166
|
if attributes.key?(:'manifest')
|
151
167
|
self.manifest = attributes[:'manifest']
|
152
168
|
end
|
@@ -210,6 +226,8 @@ module PulpAnsibleClient
|
|
210
226
|
name == o.name &&
|
211
227
|
namespace == o.namespace &&
|
212
228
|
metadata == o.metadata &&
|
229
|
+
git_url == o.git_url &&
|
230
|
+
git_commit_sha == o.git_commit_sha &&
|
213
231
|
manifest == o.manifest &&
|
214
232
|
files == o.files
|
215
233
|
end
|
@@ -223,7 +241,7 @@ module PulpAnsibleClient
|
|
223
241
|
# Calculates hash code according to all attributes.
|
224
242
|
# @return [Integer] Hash code
|
225
243
|
def hash
|
226
|
-
[version, href, created_at, updated_at, requires_ansible, artifact, collection, download_url, name, namespace, metadata, manifest, files].hash
|
244
|
+
[version, href, created_at, updated_at, requires_ansible, artifact, collection, download_url, name, namespace, metadata, git_url, git_commit_sha, manifest, files].hash
|
227
245
|
end
|
228
246
|
|
229
247
|
# Builds the object from hash
|