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