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