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