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