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