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