pulp_ansible_client 0.28.0 → 0.28.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -4
- data/docs/AnsibleCollectionVersionResponse.md +6 -6
- data/docs/AnsibleGitRemote.md +26 -26
- data/docs/AnsibleGitRemoteResponse.md +26 -26
- data/docs/AnsibleRole.md +4 -4
- data/docs/AnsibleRoleResponse.md +6 -6
- data/docs/ContentCollectionVersionsApi.md +8 -8
- data/docs/DistributionsAnsibleApi.md +10 -10
- data/docs/PatchedansibleGitRemote.md +26 -26
- data/docs/RemotesCollectionApi.md +10 -10
- data/docs/RemotesGitApi.md +12 -12
- data/docs/RemotesRoleApi.md +10 -10
- data/docs/RepositoriesAnsibleApi.md +10 -10
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +12 -12
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +10 -10
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +10 -10
- data/lib/pulp_ansible_client/api/remotes_git_api.rb +10 -10
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +10 -10
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +10 -10
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +29 -29
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +231 -231
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +149 -149
- data/lib/pulp_ansible_client/models/ansible_role.rb +17 -17
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +31 -31
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +226 -226
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_versions_api_spec.rb +4 -4
- data/spec/api/distributions_ansible_api_spec.rb +4 -4
- data/spec/api/remotes_collection_api_spec.rb +4 -4
- data/spec/api/remotes_git_api_spec.rb +4 -4
- data/spec/api/remotes_role_api_spec.rb +4 -4
- data/spec/api/repositories_ansible_api_spec.rb +4 -4
- data/spec/models/ansible_collection_version_response_spec.rb +6 -6
- data/spec/models/ansible_git_remote_response_spec.rb +17 -17
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- 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 +19 -19
- metadata +125 -125
|
@@ -16,60 +16,60 @@ require 'time'
|
|
|
16
16
|
module PulpAnsibleClient
|
|
17
17
|
# A serializer for Git Collection Remotes.
|
|
18
18
|
class AnsibleGitRemoteResponse
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
19
|
+
# List of hidden (write only) fields
|
|
20
|
+
attr_accessor :hidden_fields
|
|
21
21
|
|
|
22
|
-
#
|
|
23
|
-
attr_accessor :
|
|
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
|
|
24
24
|
|
|
25
|
-
# aiohttp.ClientTimeout.
|
|
26
|
-
attr_accessor :
|
|
25
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
26
|
+
attr_accessor :connect_timeout
|
|
27
27
|
|
|
28
|
-
#
|
|
29
|
-
attr_accessor :
|
|
28
|
+
# Limits requests per second for each concurrent downloader
|
|
29
|
+
attr_accessor :rate_limit
|
|
30
|
+
|
|
31
|
+
# If True, TLS peer validation must be performed.
|
|
32
|
+
attr_accessor :tls_validation
|
|
30
33
|
|
|
31
34
|
# The proxy URL. Format: scheme://host:port
|
|
32
35
|
attr_accessor :proxy_url
|
|
33
36
|
|
|
34
|
-
# A PEM encoded client certificate used for authentication.
|
|
35
|
-
attr_accessor :client_cert
|
|
36
|
-
|
|
37
37
|
# 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.
|
|
38
38
|
attr_accessor :sock_connect_timeout
|
|
39
39
|
|
|
40
|
-
# Timestamp of
|
|
41
|
-
attr_accessor :
|
|
40
|
+
# Timestamp of the most recent update of the remote.
|
|
41
|
+
attr_accessor :pulp_last_updated
|
|
42
42
|
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
attr_accessor :pulp_labels
|
|
44
|
+
|
|
45
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
46
|
+
attr_accessor :download_concurrency
|
|
47
|
+
|
|
48
|
+
# A PEM encoded client certificate used for authentication.
|
|
49
|
+
attr_accessor :client_cert
|
|
45
50
|
|
|
46
51
|
# Headers for aiohttp.Clientsession
|
|
47
52
|
attr_accessor :headers
|
|
48
53
|
|
|
49
|
-
#
|
|
50
|
-
attr_accessor :
|
|
51
|
-
|
|
52
|
-
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
53
|
-
attr_accessor :max_retries
|
|
54
|
+
# The Pulp Resource Name (PRN).
|
|
55
|
+
attr_accessor :prn
|
|
54
56
|
|
|
55
57
|
attr_accessor :pulp_href
|
|
56
58
|
|
|
57
|
-
#
|
|
58
|
-
attr_accessor :
|
|
59
|
-
|
|
60
|
-
attr_accessor :pulp_labels
|
|
59
|
+
# The URL of an external content source.
|
|
60
|
+
attr_accessor :url
|
|
61
61
|
|
|
62
|
-
#
|
|
63
|
-
attr_accessor :
|
|
62
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
63
|
+
attr_accessor :max_retries
|
|
64
64
|
|
|
65
|
-
# aiohttp.ClientTimeout.
|
|
66
|
-
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
|
|
67
67
|
|
|
68
68
|
# A unique name for this remote.
|
|
69
69
|
attr_accessor :name
|
|
70
70
|
|
|
71
|
-
#
|
|
72
|
-
attr_accessor :
|
|
71
|
+
# Timestamp of creation.
|
|
72
|
+
attr_accessor :pulp_created
|
|
73
73
|
|
|
74
74
|
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
|
75
75
|
attr_accessor :ca_cert
|
|
@@ -83,25 +83,25 @@ module PulpAnsibleClient
|
|
|
83
83
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
84
84
|
def self.attribute_map
|
|
85
85
|
{
|
|
86
|
-
:'
|
|
86
|
+
:'hidden_fields' => :'hidden_fields',
|
|
87
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
|
88
|
+
:'connect_timeout' => :'connect_timeout',
|
|
89
|
+
:'rate_limit' => :'rate_limit',
|
|
87
90
|
:'tls_validation' => :'tls_validation',
|
|
88
|
-
:'total_timeout' => :'total_timeout',
|
|
89
|
-
:'download_concurrency' => :'download_concurrency',
|
|
90
91
|
:'proxy_url' => :'proxy_url',
|
|
91
|
-
:'client_cert' => :'client_cert',
|
|
92
92
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
93
|
-
:'pulp_created' => :'pulp_created',
|
|
94
|
-
:'hidden_fields' => :'hidden_fields',
|
|
95
|
-
:'headers' => :'headers',
|
|
96
93
|
:'pulp_last_updated' => :'pulp_last_updated',
|
|
97
|
-
:'max_retries' => :'max_retries',
|
|
98
|
-
:'pulp_href' => :'pulp_href',
|
|
99
|
-
:'rate_limit' => :'rate_limit',
|
|
100
94
|
:'pulp_labels' => :'pulp_labels',
|
|
101
|
-
:'
|
|
102
|
-
:'
|
|
103
|
-
:'
|
|
95
|
+
:'download_concurrency' => :'download_concurrency',
|
|
96
|
+
:'client_cert' => :'client_cert',
|
|
97
|
+
:'headers' => :'headers',
|
|
98
|
+
:'prn' => :'prn',
|
|
99
|
+
:'pulp_href' => :'pulp_href',
|
|
104
100
|
:'url' => :'url',
|
|
101
|
+
:'max_retries' => :'max_retries',
|
|
102
|
+
:'total_timeout' => :'total_timeout',
|
|
103
|
+
:'name' => :'name',
|
|
104
|
+
:'pulp_created' => :'pulp_created',
|
|
105
105
|
:'ca_cert' => :'ca_cert',
|
|
106
106
|
:'metadata_only' => :'metadata_only',
|
|
107
107
|
:'git_ref' => :'git_ref'
|
|
@@ -116,25 +116,25 @@ module PulpAnsibleClient
|
|
|
116
116
|
# Attribute type mapping.
|
|
117
117
|
def self.openapi_types
|
|
118
118
|
{
|
|
119
|
-
:'
|
|
119
|
+
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
|
120
|
+
:'sock_read_timeout' => :'Float',
|
|
121
|
+
:'connect_timeout' => :'Float',
|
|
122
|
+
:'rate_limit' => :'Integer',
|
|
120
123
|
:'tls_validation' => :'Boolean',
|
|
121
|
-
:'total_timeout' => :'Float',
|
|
122
|
-
:'download_concurrency' => :'Integer',
|
|
123
124
|
:'proxy_url' => :'String',
|
|
124
|
-
:'client_cert' => :'String',
|
|
125
125
|
:'sock_connect_timeout' => :'Float',
|
|
126
|
-
:'pulp_created' => :'Time',
|
|
127
|
-
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
|
128
|
-
:'headers' => :'Array<Object>',
|
|
129
126
|
:'pulp_last_updated' => :'Time',
|
|
130
|
-
:'max_retries' => :'Integer',
|
|
131
|
-
:'pulp_href' => :'String',
|
|
132
|
-
:'rate_limit' => :'Integer',
|
|
133
127
|
:'pulp_labels' => :'Hash<String, String>',
|
|
134
|
-
:'
|
|
135
|
-
:'
|
|
136
|
-
:'
|
|
128
|
+
:'download_concurrency' => :'Integer',
|
|
129
|
+
:'client_cert' => :'String',
|
|
130
|
+
:'headers' => :'Array<Object>',
|
|
131
|
+
:'prn' => :'String',
|
|
132
|
+
:'pulp_href' => :'String',
|
|
137
133
|
:'url' => :'String',
|
|
134
|
+
:'max_retries' => :'Integer',
|
|
135
|
+
:'total_timeout' => :'Float',
|
|
136
|
+
:'name' => :'String',
|
|
137
|
+
:'pulp_created' => :'Time',
|
|
138
138
|
:'ca_cert' => :'String',
|
|
139
139
|
:'metadata_only' => :'Boolean',
|
|
140
140
|
:'git_ref' => :'String'
|
|
@@ -144,15 +144,15 @@ module PulpAnsibleClient
|
|
|
144
144
|
# List of attributes with nullable: true
|
|
145
145
|
def self.openapi_nullable
|
|
146
146
|
Set.new([
|
|
147
|
-
:'
|
|
148
|
-
:'
|
|
147
|
+
:'sock_read_timeout',
|
|
148
|
+
:'connect_timeout',
|
|
149
|
+
:'rate_limit',
|
|
149
150
|
:'proxy_url',
|
|
150
|
-
:'client_cert',
|
|
151
151
|
:'sock_connect_timeout',
|
|
152
|
+
:'download_concurrency',
|
|
153
|
+
:'client_cert',
|
|
152
154
|
:'max_retries',
|
|
153
|
-
:'
|
|
154
|
-
:'connect_timeout',
|
|
155
|
-
:'sock_read_timeout',
|
|
155
|
+
:'total_timeout',
|
|
156
156
|
:'ca_cert',
|
|
157
157
|
])
|
|
158
158
|
end
|
|
@@ -172,78 +172,80 @@ module PulpAnsibleClient
|
|
|
172
172
|
h[k.to_sym] = v
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
if attributes.key?(:'
|
|
176
|
-
|
|
175
|
+
if attributes.key?(:'hidden_fields')
|
|
176
|
+
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
|
177
|
+
self.hidden_fields = value
|
|
178
|
+
end
|
|
177
179
|
end
|
|
178
180
|
|
|
179
|
-
if attributes.key?(:'
|
|
180
|
-
self.
|
|
181
|
+
if attributes.key?(:'sock_read_timeout')
|
|
182
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
|
181
183
|
end
|
|
182
184
|
|
|
183
|
-
if attributes.key?(:'
|
|
184
|
-
self.
|
|
185
|
+
if attributes.key?(:'connect_timeout')
|
|
186
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
|
185
187
|
end
|
|
186
188
|
|
|
187
|
-
if attributes.key?(:'
|
|
188
|
-
self.
|
|
189
|
+
if attributes.key?(:'rate_limit')
|
|
190
|
+
self.rate_limit = attributes[:'rate_limit']
|
|
189
191
|
end
|
|
190
192
|
|
|
191
|
-
if attributes.key?(:'
|
|
192
|
-
self.
|
|
193
|
+
if attributes.key?(:'tls_validation')
|
|
194
|
+
self.tls_validation = attributes[:'tls_validation']
|
|
193
195
|
end
|
|
194
196
|
|
|
195
|
-
if attributes.key?(:'
|
|
196
|
-
self.
|
|
197
|
+
if attributes.key?(:'proxy_url')
|
|
198
|
+
self.proxy_url = attributes[:'proxy_url']
|
|
197
199
|
end
|
|
198
200
|
|
|
199
201
|
if attributes.key?(:'sock_connect_timeout')
|
|
200
202
|
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
|
201
203
|
end
|
|
202
204
|
|
|
203
|
-
if attributes.key?(:'
|
|
204
|
-
self.
|
|
205
|
+
if attributes.key?(:'pulp_last_updated')
|
|
206
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
205
207
|
end
|
|
206
208
|
|
|
207
|
-
if attributes.key?(:'
|
|
208
|
-
if (value = attributes[:'
|
|
209
|
-
self.
|
|
209
|
+
if attributes.key?(:'pulp_labels')
|
|
210
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
211
|
+
self.pulp_labels = value
|
|
210
212
|
end
|
|
211
213
|
end
|
|
212
214
|
|
|
215
|
+
if attributes.key?(:'download_concurrency')
|
|
216
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
|
217
|
+
end
|
|
218
|
+
|
|
219
|
+
if attributes.key?(:'client_cert')
|
|
220
|
+
self.client_cert = attributes[:'client_cert']
|
|
221
|
+
end
|
|
222
|
+
|
|
213
223
|
if attributes.key?(:'headers')
|
|
214
224
|
if (value = attributes[:'headers']).is_a?(Array)
|
|
215
225
|
self.headers = value
|
|
216
226
|
end
|
|
217
227
|
end
|
|
218
228
|
|
|
219
|
-
if attributes.key?(:'
|
|
220
|
-
self.
|
|
221
|
-
end
|
|
222
|
-
|
|
223
|
-
if attributes.key?(:'max_retries')
|
|
224
|
-
self.max_retries = attributes[:'max_retries']
|
|
229
|
+
if attributes.key?(:'prn')
|
|
230
|
+
self.prn = attributes[:'prn']
|
|
225
231
|
end
|
|
226
232
|
|
|
227
233
|
if attributes.key?(:'pulp_href')
|
|
228
234
|
self.pulp_href = attributes[:'pulp_href']
|
|
229
235
|
end
|
|
230
236
|
|
|
231
|
-
if attributes.key?(:'
|
|
232
|
-
self.
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
if attributes.key?(:'pulp_labels')
|
|
236
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
237
|
-
self.pulp_labels = value
|
|
238
|
-
end
|
|
237
|
+
if attributes.key?(:'url')
|
|
238
|
+
self.url = attributes[:'url']
|
|
239
|
+
else
|
|
240
|
+
self.url = nil
|
|
239
241
|
end
|
|
240
242
|
|
|
241
|
-
if attributes.key?(:'
|
|
242
|
-
self.
|
|
243
|
+
if attributes.key?(:'max_retries')
|
|
244
|
+
self.max_retries = attributes[:'max_retries']
|
|
243
245
|
end
|
|
244
246
|
|
|
245
|
-
if attributes.key?(:'
|
|
246
|
-
self.
|
|
247
|
+
if attributes.key?(:'total_timeout')
|
|
248
|
+
self.total_timeout = attributes[:'total_timeout']
|
|
247
249
|
end
|
|
248
250
|
|
|
249
251
|
if attributes.key?(:'name')
|
|
@@ -252,10 +254,8 @@ module PulpAnsibleClient
|
|
|
252
254
|
self.name = nil
|
|
253
255
|
end
|
|
254
256
|
|
|
255
|
-
if attributes.key?(:'
|
|
256
|
-
self.
|
|
257
|
-
else
|
|
258
|
-
self.url = nil
|
|
257
|
+
if attributes.key?(:'pulp_created')
|
|
258
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
259
259
|
end
|
|
260
260
|
|
|
261
261
|
if attributes.key?(:'ca_cert')
|
|
@@ -276,30 +276,30 @@ 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_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 !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
284
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
|
281
285
|
end
|
|
282
286
|
|
|
283
287
|
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
284
288
|
invalid_properties.push('invalid value for "sock_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 @url.nil?
|
|
292
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
289
293
|
end
|
|
290
294
|
|
|
291
|
-
if !@
|
|
292
|
-
invalid_properties.push('invalid value for "
|
|
295
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
|
296
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
|
293
297
|
end
|
|
294
298
|
|
|
295
299
|
if @name.nil?
|
|
296
300
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
297
301
|
end
|
|
298
302
|
|
|
299
|
-
if @url.nil?
|
|
300
|
-
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
301
|
-
end
|
|
302
|
-
|
|
303
303
|
invalid_properties
|
|
304
304
|
end
|
|
305
305
|
|
|
@@ -307,33 +307,23 @@ module PulpAnsibleClient
|
|
|
307
307
|
# @return true if the model is valid
|
|
308
308
|
def valid?
|
|
309
309
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
310
|
-
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
311
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
312
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
313
310
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
314
|
-
return false if
|
|
311
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
312
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
315
313
|
return false if @url.nil?
|
|
314
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
315
|
+
return false if @name.nil?
|
|
316
316
|
true
|
|
317
317
|
end
|
|
318
318
|
|
|
319
319
|
# Custom attribute writer method with validation
|
|
320
|
-
# @param [Object]
|
|
321
|
-
def
|
|
322
|
-
if !
|
|
323
|
-
fail ArgumentError, 'invalid value for "
|
|
324
|
-
end
|
|
325
|
-
|
|
326
|
-
@total_timeout = total_timeout
|
|
327
|
-
end
|
|
328
|
-
|
|
329
|
-
# Custom attribute writer method with validation
|
|
330
|
-
# @param [Object] sock_connect_timeout Value to be assigned
|
|
331
|
-
def sock_connect_timeout=(sock_connect_timeout)
|
|
332
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
|
333
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
|
320
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
|
321
|
+
def sock_read_timeout=(sock_read_timeout)
|
|
322
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
|
323
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
|
334
324
|
end
|
|
335
325
|
|
|
336
|
-
@
|
|
326
|
+
@sock_read_timeout = sock_read_timeout
|
|
337
327
|
end
|
|
338
328
|
|
|
339
329
|
# Custom attribute writer method with validation
|
|
@@ -347,13 +337,23 @@ module PulpAnsibleClient
|
|
|
347
337
|
end
|
|
348
338
|
|
|
349
339
|
# Custom attribute writer method with validation
|
|
350
|
-
# @param [Object]
|
|
351
|
-
def
|
|
352
|
-
if !
|
|
353
|
-
fail ArgumentError, 'invalid value for "
|
|
340
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
|
341
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
|
342
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
|
343
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
|
354
344
|
end
|
|
355
345
|
|
|
356
|
-
@
|
|
346
|
+
@sock_connect_timeout = sock_connect_timeout
|
|
347
|
+
end
|
|
348
|
+
|
|
349
|
+
# Custom attribute writer method with validation
|
|
350
|
+
# @param [Object] total_timeout Value to be assigned
|
|
351
|
+
def total_timeout=(total_timeout)
|
|
352
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
|
353
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
|
354
|
+
end
|
|
355
|
+
|
|
356
|
+
@total_timeout = total_timeout
|
|
357
357
|
end
|
|
358
358
|
|
|
359
359
|
# Checks equality by comparing each attribute.
|
|
@@ -361,25 +361,25 @@ module PulpAnsibleClient
|
|
|
361
361
|
def ==(o)
|
|
362
362
|
return true if self.equal?(o)
|
|
363
363
|
self.class == o.class &&
|
|
364
|
-
|
|
364
|
+
hidden_fields == o.hidden_fields &&
|
|
365
|
+
sock_read_timeout == o.sock_read_timeout &&
|
|
366
|
+
connect_timeout == o.connect_timeout &&
|
|
367
|
+
rate_limit == o.rate_limit &&
|
|
365
368
|
tls_validation == o.tls_validation &&
|
|
366
|
-
total_timeout == o.total_timeout &&
|
|
367
|
-
download_concurrency == o.download_concurrency &&
|
|
368
369
|
proxy_url == o.proxy_url &&
|
|
369
|
-
client_cert == o.client_cert &&
|
|
370
370
|
sock_connect_timeout == o.sock_connect_timeout &&
|
|
371
|
-
pulp_created == o.pulp_created &&
|
|
372
|
-
hidden_fields == o.hidden_fields &&
|
|
373
|
-
headers == o.headers &&
|
|
374
371
|
pulp_last_updated == o.pulp_last_updated &&
|
|
375
|
-
max_retries == o.max_retries &&
|
|
376
|
-
pulp_href == o.pulp_href &&
|
|
377
|
-
rate_limit == o.rate_limit &&
|
|
378
372
|
pulp_labels == o.pulp_labels &&
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
373
|
+
download_concurrency == o.download_concurrency &&
|
|
374
|
+
client_cert == o.client_cert &&
|
|
375
|
+
headers == o.headers &&
|
|
376
|
+
prn == o.prn &&
|
|
377
|
+
pulp_href == o.pulp_href &&
|
|
382
378
|
url == o.url &&
|
|
379
|
+
max_retries == o.max_retries &&
|
|
380
|
+
total_timeout == o.total_timeout &&
|
|
381
|
+
name == o.name &&
|
|
382
|
+
pulp_created == o.pulp_created &&
|
|
383
383
|
ca_cert == o.ca_cert &&
|
|
384
384
|
metadata_only == o.metadata_only &&
|
|
385
385
|
git_ref == o.git_ref
|
|
@@ -394,7 +394,7 @@ module PulpAnsibleClient
|
|
|
394
394
|
# Calculates hash code according to all attributes.
|
|
395
395
|
# @return [Integer] Hash code
|
|
396
396
|
def hash
|
|
397
|
-
[
|
|
397
|
+
[hidden_fields, sock_read_timeout, connect_timeout, rate_limit, tls_validation, proxy_url, sock_connect_timeout, pulp_last_updated, pulp_labels, download_concurrency, client_cert, headers, prn, pulp_href, url, max_retries, total_timeout, name, pulp_created, ca_cert, metadata_only, git_ref].hash
|
|
398
398
|
end
|
|
399
399
|
|
|
400
400
|
# Builds the object from hash
|
|
@@ -16,14 +16,14 @@ require 'time'
|
|
|
16
16
|
module PulpAnsibleClient
|
|
17
17
|
# A serializer for Role versions.
|
|
18
18
|
class AnsibleRole
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
19
|
+
# Artifact file representing the physical content
|
|
20
|
+
attr_accessor :artifact
|
|
21
21
|
|
|
22
22
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
23
23
|
attr_accessor :pulp_labels
|
|
24
24
|
|
|
25
|
-
#
|
|
26
|
-
attr_accessor :
|
|
25
|
+
# A URI of a repository the new content unit should be associated with.
|
|
26
|
+
attr_accessor :repository
|
|
27
27
|
|
|
28
28
|
attr_accessor :version
|
|
29
29
|
|
|
@@ -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
|
-
:'repository' => :'repository',
|
|
38
|
-
:'pulp_labels' => :'pulp_labels',
|
|
39
37
|
:'artifact' => :'artifact',
|
|
38
|
+
:'pulp_labels' => :'pulp_labels',
|
|
39
|
+
:'repository' => :'repository',
|
|
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
|
-
:'repository' => :'String',
|
|
55
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
56
54
|
:'artifact' => :'String',
|
|
55
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
56
|
+
:'repository' => :'String',
|
|
57
57
|
:'version' => :'String',
|
|
58
58
|
:'name' => :'String',
|
|
59
59
|
:'namespace' => :'String'
|
|
@@ -81,8 +81,10 @@ module PulpAnsibleClient
|
|
|
81
81
|
h[k.to_sym] = v
|
|
82
82
|
}
|
|
83
83
|
|
|
84
|
-
if attributes.key?(:'
|
|
85
|
-
self.
|
|
84
|
+
if attributes.key?(:'artifact')
|
|
85
|
+
self.artifact = attributes[:'artifact']
|
|
86
|
+
else
|
|
87
|
+
self.artifact = nil
|
|
86
88
|
end
|
|
87
89
|
|
|
88
90
|
if attributes.key?(:'pulp_labels')
|
|
@@ -91,10 +93,8 @@ module PulpAnsibleClient
|
|
|
91
93
|
end
|
|
92
94
|
end
|
|
93
95
|
|
|
94
|
-
if attributes.key?(:'
|
|
95
|
-
self.
|
|
96
|
-
else
|
|
97
|
-
self.artifact = nil
|
|
96
|
+
if attributes.key?(:'repository')
|
|
97
|
+
self.repository = attributes[:'repository']
|
|
98
98
|
end
|
|
99
99
|
|
|
100
100
|
if attributes.key?(:'version')
|
|
@@ -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
|
-
repository == o.repository &&
|
|
217
|
-
pulp_labels == o.pulp_labels &&
|
|
218
216
|
artifact == o.artifact &&
|
|
217
|
+
pulp_labels == o.pulp_labels &&
|
|
218
|
+
repository == o.repository &&
|
|
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
|
+
[artifact, pulp_labels, repository, version, name, namespace].hash
|
|
234
234
|
end
|
|
235
235
|
|
|
236
236
|
# Builds the object from hash
|