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