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