pulp_ansible_client 0.29.1 → 0.29.2
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/AnsibleCollectionVersionResponse.md +8 -16
- data/docs/AnsibleGitRemote.md +26 -26
- data/docs/AnsibleGitRemoteResponse.md +26 -26
- data/docs/AnsibleRole.md +2 -2
- data/docs/AnsibleRoleResponse.md +8 -8
- data/docs/ContentCollectionVersionsApi.md +6 -6
- data/docs/PatchedansibleGitRemote.md +26 -26
- data/docs/RemotesGitApi.md +2 -2
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -9
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +33 -75
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +228 -228
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +146 -146
- data/lib/pulp_ansible_client/models/ansible_role.rb +13 -13
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +35 -35
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +218 -218
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +3 -3
- data/spec/models/ansible_collection_version_response_spec.rb +5 -29
- data/spec/models/ansible_git_remote_response_spec.rb +20 -20
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/ansible_role_response_spec.rb +5 -5
- data/spec/models/ansible_role_spec.rb +2 -2
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- metadata +2 -2
|
@@ -16,64 +16,64 @@ require 'time'
|
|
|
16
16
|
module PulpAnsibleClient
|
|
17
17
|
# A serializer for Git Collection Remotes.
|
|
18
18
|
class AnsibleGitRemoteResponse
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
21
|
-
|
|
22
|
-
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
23
|
-
attr_accessor :download_concurrency
|
|
19
|
+
# List of hidden (write only) fields
|
|
20
|
+
attr_accessor :hidden_fields
|
|
24
21
|
|
|
25
|
-
# aiohttp.ClientTimeout.
|
|
26
|
-
attr_accessor :
|
|
22
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
23
|
+
attr_accessor :total_timeout
|
|
27
24
|
|
|
28
|
-
#
|
|
29
|
-
attr_accessor :
|
|
25
|
+
# 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.
|
|
26
|
+
attr_accessor :sock_read_timeout
|
|
30
27
|
|
|
31
|
-
#
|
|
32
|
-
attr_accessor :
|
|
28
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
29
|
+
attr_accessor :download_concurrency
|
|
33
30
|
|
|
34
|
-
#
|
|
35
|
-
attr_accessor :
|
|
31
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
32
|
+
attr_accessor :max_retries
|
|
36
33
|
|
|
37
|
-
#
|
|
38
|
-
attr_accessor :
|
|
34
|
+
# A PEM encoded client certificate used for authentication.
|
|
35
|
+
attr_accessor :client_cert
|
|
39
36
|
|
|
40
37
|
# If True, TLS peer validation must be performed.
|
|
41
38
|
attr_accessor :tls_validation
|
|
42
39
|
|
|
43
|
-
|
|
44
|
-
attr_accessor :url
|
|
40
|
+
attr_accessor :pulp_labels
|
|
45
41
|
|
|
46
|
-
#
|
|
47
|
-
attr_accessor :
|
|
42
|
+
# 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
|
+
attr_accessor :connect_timeout
|
|
48
44
|
|
|
49
45
|
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
|
50
46
|
attr_accessor :ca_cert
|
|
51
47
|
|
|
52
|
-
#
|
|
53
|
-
attr_accessor :
|
|
48
|
+
# The proxy URL. Format: scheme://host:port
|
|
49
|
+
attr_accessor :proxy_url
|
|
54
50
|
|
|
55
51
|
# The Pulp Resource Name (PRN).
|
|
56
52
|
attr_accessor :prn
|
|
57
53
|
|
|
58
|
-
#
|
|
59
|
-
attr_accessor :
|
|
54
|
+
# Limits requests per second for each concurrent downloader
|
|
55
|
+
attr_accessor :rate_limit
|
|
60
56
|
|
|
61
|
-
|
|
57
|
+
# Headers for aiohttp.Clientsession
|
|
58
|
+
attr_accessor :headers
|
|
62
59
|
|
|
63
|
-
|
|
60
|
+
# Timestamp of creation.
|
|
61
|
+
attr_accessor :pulp_created
|
|
64
62
|
|
|
65
|
-
#
|
|
66
|
-
attr_accessor :
|
|
63
|
+
# Timestamp of the most recent update of the remote.
|
|
64
|
+
attr_accessor :pulp_last_updated
|
|
67
65
|
|
|
68
|
-
#
|
|
69
|
-
attr_accessor :
|
|
66
|
+
# The URL of an external content source.
|
|
67
|
+
attr_accessor :url
|
|
70
68
|
|
|
71
|
-
|
|
72
|
-
attr_accessor :client_cert
|
|
69
|
+
attr_accessor :pulp_href
|
|
73
70
|
|
|
74
71
|
# 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.
|
|
75
72
|
attr_accessor :sock_connect_timeout
|
|
76
73
|
|
|
74
|
+
# A unique name for this remote.
|
|
75
|
+
attr_accessor :name
|
|
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
|
|
79
79
|
|
|
@@ -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
|
-
:'proxy_url' => :'proxy_url',
|
|
87
|
-
:'download_concurrency' => :'download_concurrency',
|
|
88
|
-
:'connect_timeout' => :'connect_timeout',
|
|
89
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
90
86
|
:'hidden_fields' => :'hidden_fields',
|
|
91
|
-
:'
|
|
92
|
-
:'
|
|
87
|
+
:'total_timeout' => :'total_timeout',
|
|
88
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
|
89
|
+
:'download_concurrency' => :'download_concurrency',
|
|
90
|
+
:'max_retries' => :'max_retries',
|
|
91
|
+
:'client_cert' => :'client_cert',
|
|
93
92
|
:'tls_validation' => :'tls_validation',
|
|
94
|
-
:'
|
|
95
|
-
:'
|
|
93
|
+
:'pulp_labels' => :'pulp_labels',
|
|
94
|
+
:'connect_timeout' => :'connect_timeout',
|
|
96
95
|
:'ca_cert' => :'ca_cert',
|
|
97
|
-
:'
|
|
96
|
+
:'proxy_url' => :'proxy_url',
|
|
98
97
|
:'prn' => :'prn',
|
|
98
|
+
:'rate_limit' => :'rate_limit',
|
|
99
|
+
:'headers' => :'headers',
|
|
99
100
|
:'pulp_created' => :'pulp_created',
|
|
101
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
102
|
+
:'url' => :'url',
|
|
100
103
|
:'pulp_href' => :'pulp_href',
|
|
101
|
-
:'pulp_labels' => :'pulp_labels',
|
|
102
|
-
:'max_retries' => :'max_retries',
|
|
103
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
|
104
|
-
:'client_cert' => :'client_cert',
|
|
105
104
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
105
|
+
:'name' => :'name',
|
|
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
|
-
:'proxy_url' => :'String',
|
|
120
|
-
:'download_concurrency' => :'Integer',
|
|
121
|
-
:'connect_timeout' => :'Float',
|
|
122
|
-
:'pulp_last_updated' => :'Time',
|
|
123
119
|
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
|
124
|
-
:'
|
|
125
|
-
:'
|
|
120
|
+
:'total_timeout' => :'Float',
|
|
121
|
+
:'sock_read_timeout' => :'Float',
|
|
122
|
+
:'download_concurrency' => :'Integer',
|
|
123
|
+
:'max_retries' => :'Integer',
|
|
124
|
+
:'client_cert' => :'String',
|
|
126
125
|
:'tls_validation' => :'Boolean',
|
|
127
|
-
:'
|
|
128
|
-
:'
|
|
126
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
127
|
+
:'connect_timeout' => :'Float',
|
|
129
128
|
:'ca_cert' => :'String',
|
|
130
|
-
:'
|
|
129
|
+
:'proxy_url' => :'String',
|
|
131
130
|
:'prn' => :'String',
|
|
131
|
+
:'rate_limit' => :'Integer',
|
|
132
|
+
:'headers' => :'Array<Object>',
|
|
132
133
|
:'pulp_created' => :'Time',
|
|
134
|
+
:'pulp_last_updated' => :'Time',
|
|
135
|
+
:'url' => :'String',
|
|
133
136
|
:'pulp_href' => :'String',
|
|
134
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
135
|
-
:'max_retries' => :'Integer',
|
|
136
|
-
:'sock_read_timeout' => :'Float',
|
|
137
|
-
:'client_cert' => :'String',
|
|
138
137
|
:'sock_connect_timeout' => :'Float',
|
|
138
|
+
:'name' => :'String',
|
|
139
139
|
:'metadata_only' => :'Boolean',
|
|
140
140
|
:'git_ref' => :'String'
|
|
141
141
|
}
|
|
@@ -144,15 +144,15 @@ module PulpAnsibleClient
|
|
|
144
144
|
# List of attributes with nullable: true
|
|
145
145
|
def self.openapi_nullable
|
|
146
146
|
Set.new([
|
|
147
|
-
:'proxy_url',
|
|
148
|
-
:'download_concurrency',
|
|
149
|
-
:'connect_timeout',
|
|
150
|
-
:'rate_limit',
|
|
151
|
-
:'ca_cert',
|
|
152
147
|
:'total_timeout',
|
|
153
|
-
:'max_retries',
|
|
154
148
|
:'sock_read_timeout',
|
|
149
|
+
:'download_concurrency',
|
|
150
|
+
:'max_retries',
|
|
155
151
|
:'client_cert',
|
|
152
|
+
:'connect_timeout',
|
|
153
|
+
:'ca_cert',
|
|
154
|
+
:'proxy_url',
|
|
155
|
+
:'rate_limit',
|
|
156
156
|
:'sock_connect_timeout',
|
|
157
157
|
])
|
|
158
158
|
end
|
|
@@ -172,96 +172,96 @@ module PulpAnsibleClient
|
|
|
172
172
|
h[k.to_sym] = v
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
if attributes.key?(:'
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
if attributes.key?(:'download_concurrency')
|
|
180
|
-
self.download_concurrency = attributes[:'download_concurrency']
|
|
175
|
+
if attributes.key?(:'hidden_fields')
|
|
176
|
+
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
|
177
|
+
self.hidden_fields = value
|
|
178
|
+
end
|
|
181
179
|
end
|
|
182
180
|
|
|
183
|
-
if attributes.key?(:'
|
|
184
|
-
self.
|
|
181
|
+
if attributes.key?(:'total_timeout')
|
|
182
|
+
self.total_timeout = attributes[:'total_timeout']
|
|
185
183
|
end
|
|
186
184
|
|
|
187
|
-
if attributes.key?(:'
|
|
188
|
-
self.
|
|
185
|
+
if attributes.key?(:'sock_read_timeout')
|
|
186
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
|
189
187
|
end
|
|
190
188
|
|
|
191
|
-
if attributes.key?(:'
|
|
192
|
-
|
|
193
|
-
self.hidden_fields = value
|
|
194
|
-
end
|
|
189
|
+
if attributes.key?(:'download_concurrency')
|
|
190
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
|
195
191
|
end
|
|
196
192
|
|
|
197
|
-
if attributes.key?(:'
|
|
198
|
-
self.
|
|
199
|
-
else
|
|
200
|
-
self.name = nil
|
|
193
|
+
if attributes.key?(:'max_retries')
|
|
194
|
+
self.max_retries = attributes[:'max_retries']
|
|
201
195
|
end
|
|
202
196
|
|
|
203
|
-
if attributes.key?(:'
|
|
204
|
-
|
|
205
|
-
self.headers = value
|
|
206
|
-
end
|
|
197
|
+
if attributes.key?(:'client_cert')
|
|
198
|
+
self.client_cert = attributes[:'client_cert']
|
|
207
199
|
end
|
|
208
200
|
|
|
209
201
|
if attributes.key?(:'tls_validation')
|
|
210
202
|
self.tls_validation = attributes[:'tls_validation']
|
|
211
203
|
end
|
|
212
204
|
|
|
213
|
-
if attributes.key?(:'
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
205
|
+
if attributes.key?(:'pulp_labels')
|
|
206
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
207
|
+
self.pulp_labels = value
|
|
208
|
+
end
|
|
217
209
|
end
|
|
218
210
|
|
|
219
|
-
if attributes.key?(:'
|
|
220
|
-
self.
|
|
211
|
+
if attributes.key?(:'connect_timeout')
|
|
212
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
|
221
213
|
end
|
|
222
214
|
|
|
223
215
|
if attributes.key?(:'ca_cert')
|
|
224
216
|
self.ca_cert = attributes[:'ca_cert']
|
|
225
217
|
end
|
|
226
218
|
|
|
227
|
-
if attributes.key?(:'
|
|
228
|
-
self.
|
|
219
|
+
if attributes.key?(:'proxy_url')
|
|
220
|
+
self.proxy_url = attributes[:'proxy_url']
|
|
229
221
|
end
|
|
230
222
|
|
|
231
223
|
if attributes.key?(:'prn')
|
|
232
224
|
self.prn = attributes[:'prn']
|
|
233
225
|
end
|
|
234
226
|
|
|
235
|
-
if attributes.key?(:'
|
|
236
|
-
self.
|
|
227
|
+
if attributes.key?(:'rate_limit')
|
|
228
|
+
self.rate_limit = attributes[:'rate_limit']
|
|
237
229
|
end
|
|
238
230
|
|
|
239
|
-
if attributes.key?(:'
|
|
240
|
-
|
|
231
|
+
if attributes.key?(:'headers')
|
|
232
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
|
233
|
+
self.headers = value
|
|
234
|
+
end
|
|
241
235
|
end
|
|
242
236
|
|
|
243
|
-
if attributes.key?(:'
|
|
244
|
-
|
|
245
|
-
self.pulp_labels = value
|
|
246
|
-
end
|
|
237
|
+
if attributes.key?(:'pulp_created')
|
|
238
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
247
239
|
end
|
|
248
240
|
|
|
249
|
-
if attributes.key?(:'
|
|
250
|
-
self.
|
|
241
|
+
if attributes.key?(:'pulp_last_updated')
|
|
242
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
251
243
|
end
|
|
252
244
|
|
|
253
|
-
if attributes.key?(:'
|
|
254
|
-
self.
|
|
245
|
+
if attributes.key?(:'url')
|
|
246
|
+
self.url = attributes[:'url']
|
|
247
|
+
else
|
|
248
|
+
self.url = nil
|
|
255
249
|
end
|
|
256
250
|
|
|
257
|
-
if attributes.key?(:'
|
|
258
|
-
self.
|
|
251
|
+
if attributes.key?(:'pulp_href')
|
|
252
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
259
253
|
end
|
|
260
254
|
|
|
261
255
|
if attributes.key?(:'sock_connect_timeout')
|
|
262
256
|
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
|
263
257
|
end
|
|
264
258
|
|
|
259
|
+
if attributes.key?(:'name')
|
|
260
|
+
self.name = attributes[:'name']
|
|
261
|
+
else
|
|
262
|
+
self.name = nil
|
|
263
|
+
end
|
|
264
|
+
|
|
265
265
|
if attributes.key?(:'metadata_only')
|
|
266
266
|
self.metadata_only = attributes[:'metadata_only']
|
|
267
267
|
end
|
|
@@ -276,18 +276,6 @@ 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 !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
280
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
|
281
|
-
end
|
|
282
|
-
|
|
283
|
-
if @name.nil?
|
|
284
|
-
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
285
|
-
end
|
|
286
|
-
|
|
287
|
-
if @url.nil?
|
|
288
|
-
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
289
|
-
end
|
|
290
|
-
|
|
291
279
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
|
292
280
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
|
293
281
|
end
|
|
@@ -296,10 +284,22 @@ module PulpAnsibleClient
|
|
|
296
284
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
297
285
|
end
|
|
298
286
|
|
|
287
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
288
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
|
289
|
+
end
|
|
290
|
+
|
|
291
|
+
if @url.nil?
|
|
292
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
293
|
+
end
|
|
294
|
+
|
|
299
295
|
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
300
296
|
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
|
301
297
|
end
|
|
302
298
|
|
|
299
|
+
if @name.nil?
|
|
300
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
301
|
+
end
|
|
302
|
+
|
|
303
303
|
invalid_properties
|
|
304
304
|
end
|
|
305
305
|
|
|
@@ -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 !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
311
|
-
return false if @name.nil?
|
|
312
|
-
return false if @url.nil?
|
|
313
310
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
314
311
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
312
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
313
|
+
return false if @url.nil?
|
|
315
314
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
315
|
+
return false if @name.nil?
|
|
316
316
|
true
|
|
317
317
|
end
|
|
318
318
|
|
|
319
|
-
# Custom attribute writer method with validation
|
|
320
|
-
# @param [Object] connect_timeout Value to be assigned
|
|
321
|
-
def connect_timeout=(connect_timeout)
|
|
322
|
-
if !connect_timeout.nil? && connect_timeout < 0.0
|
|
323
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
|
324
|
-
end
|
|
325
|
-
|
|
326
|
-
@connect_timeout = connect_timeout
|
|
327
|
-
end
|
|
328
|
-
|
|
329
319
|
# Custom attribute writer method with validation
|
|
330
320
|
# @param [Object] total_timeout Value to be assigned
|
|
331
321
|
def total_timeout=(total_timeout)
|
|
@@ -346,6 +336,16 @@ module PulpAnsibleClient
|
|
|
346
336
|
@sock_read_timeout = sock_read_timeout
|
|
347
337
|
end
|
|
348
338
|
|
|
339
|
+
# Custom attribute writer method with validation
|
|
340
|
+
# @param [Object] connect_timeout Value to be assigned
|
|
341
|
+
def connect_timeout=(connect_timeout)
|
|
342
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
|
343
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
@connect_timeout = connect_timeout
|
|
347
|
+
end
|
|
348
|
+
|
|
349
349
|
# Custom attribute writer method with validation
|
|
350
350
|
# @param [Object] sock_connect_timeout Value to be assigned
|
|
351
351
|
def sock_connect_timeout=(sock_connect_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
|
-
proxy_url == o.proxy_url &&
|
|
365
|
-
download_concurrency == o.download_concurrency &&
|
|
366
|
-
connect_timeout == o.connect_timeout &&
|
|
367
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
368
364
|
hidden_fields == o.hidden_fields &&
|
|
369
|
-
|
|
370
|
-
|
|
365
|
+
total_timeout == o.total_timeout &&
|
|
366
|
+
sock_read_timeout == o.sock_read_timeout &&
|
|
367
|
+
download_concurrency == o.download_concurrency &&
|
|
368
|
+
max_retries == o.max_retries &&
|
|
369
|
+
client_cert == o.client_cert &&
|
|
371
370
|
tls_validation == o.tls_validation &&
|
|
372
|
-
|
|
373
|
-
|
|
371
|
+
pulp_labels == o.pulp_labels &&
|
|
372
|
+
connect_timeout == o.connect_timeout &&
|
|
374
373
|
ca_cert == o.ca_cert &&
|
|
375
|
-
|
|
374
|
+
proxy_url == o.proxy_url &&
|
|
376
375
|
prn == o.prn &&
|
|
376
|
+
rate_limit == o.rate_limit &&
|
|
377
|
+
headers == o.headers &&
|
|
377
378
|
pulp_created == o.pulp_created &&
|
|
379
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
380
|
+
url == o.url &&
|
|
378
381
|
pulp_href == o.pulp_href &&
|
|
379
|
-
pulp_labels == o.pulp_labels &&
|
|
380
|
-
max_retries == o.max_retries &&
|
|
381
|
-
sock_read_timeout == o.sock_read_timeout &&
|
|
382
|
-
client_cert == o.client_cert &&
|
|
383
382
|
sock_connect_timeout == o.sock_connect_timeout &&
|
|
383
|
+
name == o.name &&
|
|
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
|
+
[hidden_fields, total_timeout, sock_read_timeout, download_concurrency, max_retries, client_cert, tls_validation, pulp_labels, connect_timeout, ca_cert, proxy_url, prn, rate_limit, headers, pulp_created, pulp_last_updated, url, pulp_href, sock_connect_timeout, name, 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
|