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