pulp_ansible_client 0.25.6 → 0.25.7
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 +4 -4
- data/docs/AnsibleGitRemote.md +24 -24
- data/docs/AnsibleGitRemoteResponse.md +24 -24
- data/docs/AnsibleRole.md +2 -2
- data/docs/AnsibleRoleResponse.md +4 -4
- data/docs/ContentCollectionVersionsApi.md +6 -6
- data/docs/PatchedansibleGitRemote.md +24 -24
- data/docs/RemotesGitApi.md +2 -2
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +9 -9
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +2 -2
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +2 -2
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +21 -21
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +217 -217
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +149 -149
- data/lib/pulp_ansible_client/models/ansible_role.rb +13 -13
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +23 -23
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +210 -210
- 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 +120 -120
|
@@ -16,64 +16,64 @@ require 'time'
|
|
|
16
16
|
module PulpAnsibleClient
|
|
17
17
|
# A serializer for Git Collection Remotes.
|
|
18
18
|
class AnsibleGitRemoteResponse
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
# 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.
|
|
22
|
-
attr_accessor :sock_connect_timeout
|
|
19
|
+
# Timestamp of creation.
|
|
20
|
+
attr_accessor :pulp_created
|
|
23
21
|
|
|
24
22
|
# A PEM encoded client certificate used for authentication.
|
|
25
23
|
attr_accessor :client_cert
|
|
26
24
|
|
|
27
|
-
#
|
|
28
|
-
attr_accessor :
|
|
25
|
+
# Limits requests per second for each concurrent downloader
|
|
26
|
+
attr_accessor :rate_limit
|
|
29
27
|
|
|
30
|
-
#
|
|
31
|
-
attr_accessor :
|
|
28
|
+
# 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.
|
|
29
|
+
attr_accessor :sock_connect_timeout
|
|
32
30
|
|
|
33
|
-
#
|
|
34
|
-
attr_accessor :
|
|
31
|
+
# The Pulp Resource Name (PRN).
|
|
32
|
+
attr_accessor :prn
|
|
35
33
|
|
|
36
|
-
#
|
|
37
|
-
attr_accessor :
|
|
34
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
35
|
+
attr_accessor :download_concurrency
|
|
38
36
|
|
|
39
|
-
#
|
|
40
|
-
attr_accessor :
|
|
37
|
+
# The URL of an external content source.
|
|
38
|
+
attr_accessor :url
|
|
39
|
+
|
|
40
|
+
attr_accessor :pulp_labels
|
|
41
41
|
|
|
42
42
|
# 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
43
|
attr_accessor :total_timeout
|
|
44
44
|
|
|
45
|
-
#
|
|
46
|
-
attr_accessor :
|
|
45
|
+
# List of hidden (write only) fields
|
|
46
|
+
attr_accessor :hidden_fields
|
|
47
47
|
|
|
48
|
-
#
|
|
49
|
-
attr_accessor :
|
|
48
|
+
# Headers for aiohttp.Clientsession
|
|
49
|
+
attr_accessor :headers
|
|
50
50
|
|
|
51
|
-
#
|
|
52
|
-
attr_accessor :
|
|
51
|
+
# If True, TLS peer validation must be performed.
|
|
52
|
+
attr_accessor :tls_validation
|
|
53
53
|
|
|
54
|
-
#
|
|
55
|
-
attr_accessor :
|
|
54
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
55
|
+
attr_accessor :connect_timeout
|
|
56
56
|
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
attr_accessor :pulp_href
|
|
58
|
+
|
|
59
|
+
# Timestamp of the most recent update of the remote.
|
|
60
|
+
attr_accessor :pulp_last_updated
|
|
59
61
|
|
|
60
62
|
# A unique name for this remote.
|
|
61
63
|
attr_accessor :name
|
|
62
64
|
|
|
63
|
-
#
|
|
64
|
-
attr_accessor :
|
|
65
|
-
|
|
66
|
-
# The URL of an external content source.
|
|
67
|
-
attr_accessor :url
|
|
68
|
-
|
|
69
|
-
attr_accessor :pulp_labels
|
|
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
|
|
70
67
|
|
|
71
|
-
#
|
|
72
|
-
attr_accessor :
|
|
68
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
|
69
|
+
attr_accessor :ca_cert
|
|
73
70
|
|
|
74
71
|
# The proxy URL. Format: scheme://host:port
|
|
75
72
|
attr_accessor :proxy_url
|
|
76
73
|
|
|
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
|
-
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
86
|
+
:'pulp_created' => :'pulp_created',
|
|
88
87
|
:'client_cert' => :'client_cert',
|
|
89
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
90
|
-
:'max_retries' => :'max_retries',
|
|
91
|
-
:'tls_validation' => :'tls_validation',
|
|
92
|
-
:'connect_timeout' => :'connect_timeout',
|
|
93
|
-
:'hidden_fields' => :'hidden_fields',
|
|
94
|
-
:'total_timeout' => :'total_timeout',
|
|
95
|
-
:'ca_cert' => :'ca_cert',
|
|
96
88
|
:'rate_limit' => :'rate_limit',
|
|
89
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
97
90
|
:'prn' => :'prn',
|
|
98
|
-
:'pulp_created' => :'pulp_created',
|
|
99
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
|
100
|
-
:'name' => :'name',
|
|
101
91
|
:'download_concurrency' => :'download_concurrency',
|
|
102
92
|
:'url' => :'url',
|
|
103
93
|
:'pulp_labels' => :'pulp_labels',
|
|
94
|
+
:'total_timeout' => :'total_timeout',
|
|
95
|
+
:'hidden_fields' => :'hidden_fields',
|
|
104
96
|
:'headers' => :'headers',
|
|
97
|
+
:'tls_validation' => :'tls_validation',
|
|
98
|
+
:'connect_timeout' => :'connect_timeout',
|
|
99
|
+
:'pulp_href' => :'pulp_href',
|
|
100
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
101
|
+
:'name' => :'name',
|
|
102
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
|
103
|
+
:'ca_cert' => :'ca_cert',
|
|
105
104
|
:'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
|
-
:'sock_connect_timeout' => :'Float',
|
|
119
|
+
:'pulp_created' => :'Time',
|
|
121
120
|
:'client_cert' => :'String',
|
|
122
|
-
:'pulp_last_updated' => :'Time',
|
|
123
|
-
:'max_retries' => :'Integer',
|
|
124
|
-
:'tls_validation' => :'Boolean',
|
|
125
|
-
:'connect_timeout' => :'Float',
|
|
126
|
-
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
|
127
|
-
:'total_timeout' => :'Float',
|
|
128
|
-
:'ca_cert' => :'String',
|
|
129
121
|
:'rate_limit' => :'Integer',
|
|
122
|
+
:'sock_connect_timeout' => :'Float',
|
|
130
123
|
:'prn' => :'String',
|
|
131
|
-
:'pulp_created' => :'Time',
|
|
132
|
-
:'sock_read_timeout' => :'Float',
|
|
133
|
-
:'name' => :'String',
|
|
134
124
|
:'download_concurrency' => :'Integer',
|
|
135
125
|
:'url' => :'String',
|
|
136
126
|
:'pulp_labels' => :'Hash<String, String>',
|
|
127
|
+
:'total_timeout' => :'Float',
|
|
128
|
+
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
|
137
129
|
:'headers' => :'Array<Object>',
|
|
130
|
+
:'tls_validation' => :'Boolean',
|
|
131
|
+
:'connect_timeout' => :'Float',
|
|
132
|
+
:'pulp_href' => :'String',
|
|
133
|
+
:'pulp_last_updated' => :'Time',
|
|
134
|
+
:'name' => :'String',
|
|
135
|
+
:'sock_read_timeout' => :'Float',
|
|
136
|
+
:'ca_cert' => :'String',
|
|
138
137
|
:'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
|
-
:'sock_connect_timeout',
|
|
148
147
|
:'client_cert',
|
|
149
|
-
:'max_retries',
|
|
150
|
-
:'connect_timeout',
|
|
151
|
-
:'total_timeout',
|
|
152
|
-
:'ca_cert',
|
|
153
148
|
:'rate_limit',
|
|
154
|
-
:'
|
|
149
|
+
:'sock_connect_timeout',
|
|
155
150
|
:'download_concurrency',
|
|
151
|
+
:'total_timeout',
|
|
152
|
+
:'connect_timeout',
|
|
153
|
+
:'sock_read_timeout',
|
|
154
|
+
:'ca_cert',
|
|
156
155
|
:'proxy_url',
|
|
156
|
+
:'max_retries',
|
|
157
157
|
])
|
|
158
158
|
end
|
|
159
159
|
|
|
@@ -172,32 +172,44 @@ module PulpAnsibleClient
|
|
|
172
172
|
h[k.to_sym] = v
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
if attributes.key?(:'
|
|
176
|
-
self.
|
|
175
|
+
if attributes.key?(:'pulp_created')
|
|
176
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
177
|
+
end
|
|
178
|
+
|
|
179
|
+
if attributes.key?(:'client_cert')
|
|
180
|
+
self.client_cert = attributes[:'client_cert']
|
|
181
|
+
end
|
|
182
|
+
|
|
183
|
+
if attributes.key?(:'rate_limit')
|
|
184
|
+
self.rate_limit = attributes[:'rate_limit']
|
|
177
185
|
end
|
|
178
186
|
|
|
179
187
|
if attributes.key?(:'sock_connect_timeout')
|
|
180
188
|
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
|
181
189
|
end
|
|
182
190
|
|
|
183
|
-
if attributes.key?(:'
|
|
184
|
-
self.
|
|
191
|
+
if attributes.key?(:'prn')
|
|
192
|
+
self.prn = attributes[:'prn']
|
|
185
193
|
end
|
|
186
194
|
|
|
187
|
-
if attributes.key?(:'
|
|
188
|
-
self.
|
|
195
|
+
if attributes.key?(:'download_concurrency')
|
|
196
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
|
189
197
|
end
|
|
190
198
|
|
|
191
|
-
if attributes.key?(:'
|
|
192
|
-
self.
|
|
199
|
+
if attributes.key?(:'url')
|
|
200
|
+
self.url = attributes[:'url']
|
|
201
|
+
else
|
|
202
|
+
self.url = nil
|
|
193
203
|
end
|
|
194
204
|
|
|
195
|
-
if attributes.key?(:'
|
|
196
|
-
|
|
205
|
+
if attributes.key?(:'pulp_labels')
|
|
206
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
207
|
+
self.pulp_labels = value
|
|
208
|
+
end
|
|
197
209
|
end
|
|
198
210
|
|
|
199
|
-
if attributes.key?(:'
|
|
200
|
-
self.
|
|
211
|
+
if attributes.key?(:'total_timeout')
|
|
212
|
+
self.total_timeout = attributes[:'total_timeout']
|
|
201
213
|
end
|
|
202
214
|
|
|
203
215
|
if attributes.key?(:'hidden_fields')
|
|
@@ -206,28 +218,26 @@ module PulpAnsibleClient
|
|
|
206
218
|
end
|
|
207
219
|
end
|
|
208
220
|
|
|
209
|
-
if attributes.key?(:'
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
if attributes.key?(:'ca_cert')
|
|
214
|
-
self.ca_cert = attributes[:'ca_cert']
|
|
221
|
+
if attributes.key?(:'headers')
|
|
222
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
|
223
|
+
self.headers = value
|
|
224
|
+
end
|
|
215
225
|
end
|
|
216
226
|
|
|
217
|
-
if attributes.key?(:'
|
|
218
|
-
self.
|
|
227
|
+
if attributes.key?(:'tls_validation')
|
|
228
|
+
self.tls_validation = attributes[:'tls_validation']
|
|
219
229
|
end
|
|
220
230
|
|
|
221
|
-
if attributes.key?(:'
|
|
222
|
-
self.
|
|
231
|
+
if attributes.key?(:'connect_timeout')
|
|
232
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
|
223
233
|
end
|
|
224
234
|
|
|
225
|
-
if attributes.key?(:'
|
|
226
|
-
self.
|
|
235
|
+
if attributes.key?(:'pulp_href')
|
|
236
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
227
237
|
end
|
|
228
238
|
|
|
229
|
-
if attributes.key?(:'
|
|
230
|
-
self.
|
|
239
|
+
if attributes.key?(:'pulp_last_updated')
|
|
240
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
231
241
|
end
|
|
232
242
|
|
|
233
243
|
if attributes.key?(:'name')
|
|
@@ -236,32 +246,22 @@ module PulpAnsibleClient
|
|
|
236
246
|
self.name = nil
|
|
237
247
|
end
|
|
238
248
|
|
|
239
|
-
if attributes.key?(:'
|
|
240
|
-
self.
|
|
241
|
-
end
|
|
242
|
-
|
|
243
|
-
if attributes.key?(:'url')
|
|
244
|
-
self.url = attributes[:'url']
|
|
245
|
-
else
|
|
246
|
-
self.url = nil
|
|
247
|
-
end
|
|
248
|
-
|
|
249
|
-
if attributes.key?(:'pulp_labels')
|
|
250
|
-
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
251
|
-
self.pulp_labels = value
|
|
252
|
-
end
|
|
249
|
+
if attributes.key?(:'sock_read_timeout')
|
|
250
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
|
253
251
|
end
|
|
254
252
|
|
|
255
|
-
if attributes.key?(:'
|
|
256
|
-
|
|
257
|
-
self.headers = value
|
|
258
|
-
end
|
|
253
|
+
if attributes.key?(:'ca_cert')
|
|
254
|
+
self.ca_cert = attributes[:'ca_cert']
|
|
259
255
|
end
|
|
260
256
|
|
|
261
257
|
if attributes.key?(:'proxy_url')
|
|
262
258
|
self.proxy_url = attributes[:'proxy_url']
|
|
263
259
|
end
|
|
264
260
|
|
|
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
|
|
@@ -280,28 +280,28 @@ module PulpAnsibleClient
|
|
|
280
280
|
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
|
281
281
|
end
|
|
282
282
|
|
|
283
|
-
if !@
|
|
284
|
-
invalid_properties.push('invalid value for "
|
|
283
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
284
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
285
|
+
end
|
|
286
|
+
|
|
287
|
+
if @url.nil?
|
|
288
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
285
289
|
end
|
|
286
290
|
|
|
287
291
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
|
288
292
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
|
289
293
|
end
|
|
290
294
|
|
|
291
|
-
if !@
|
|
292
|
-
invalid_properties.push('invalid value for "
|
|
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.')
|
|
293
297
|
end
|
|
294
298
|
|
|
295
299
|
if @name.nil?
|
|
296
300
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
297
301
|
end
|
|
298
302
|
|
|
299
|
-
if !@
|
|
300
|
-
invalid_properties.push('invalid value for "
|
|
301
|
-
end
|
|
302
|
-
|
|
303
|
-
if @url.nil?
|
|
304
|
-
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
303
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
304
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
305
305
|
end
|
|
306
306
|
|
|
307
307
|
invalid_properties
|
|
@@ -312,12 +312,12 @@ module PulpAnsibleClient
|
|
|
312
312
|
def valid?
|
|
313
313
|
warn '[DEPRECATED] the `valid?` method is obsolete'
|
|
314
314
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
315
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
316
|
-
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
317
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
318
|
-
return false if @name.nil?
|
|
319
315
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
320
316
|
return false if @url.nil?
|
|
317
|
+
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
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
321
321
|
true
|
|
322
322
|
end
|
|
323
323
|
|
|
@@ -332,13 +332,13 @@ module PulpAnsibleClient
|
|
|
332
332
|
end
|
|
333
333
|
|
|
334
334
|
# Custom attribute writer method with validation
|
|
335
|
-
# @param [Object]
|
|
336
|
-
def
|
|
337
|
-
if !
|
|
338
|
-
fail ArgumentError, 'invalid value for "
|
|
335
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
336
|
+
def download_concurrency=(download_concurrency)
|
|
337
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
338
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
339
339
|
end
|
|
340
340
|
|
|
341
|
-
@
|
|
341
|
+
@download_concurrency = download_concurrency
|
|
342
342
|
end
|
|
343
343
|
|
|
344
344
|
# Custom attribute writer method with validation
|
|
@@ -352,23 +352,23 @@ module PulpAnsibleClient
|
|
|
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
|
|
365
|
-
# @param [Object]
|
|
366
|
-
def
|
|
367
|
-
if !
|
|
368
|
-
fail ArgumentError, 'invalid value for "
|
|
365
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
|
366
|
+
def sock_read_timeout=(sock_read_timeout)
|
|
367
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
|
368
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
|
369
369
|
end
|
|
370
370
|
|
|
371
|
-
@
|
|
371
|
+
@sock_read_timeout = sock_read_timeout
|
|
372
372
|
end
|
|
373
373
|
|
|
374
374
|
# Checks equality by comparing each attribute.
|
|
@@ -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
|
-
|
|
380
|
-
sock_connect_timeout == o.sock_connect_timeout &&
|
|
379
|
+
pulp_created == o.pulp_created &&
|
|
381
380
|
client_cert == o.client_cert &&
|
|
382
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
383
|
-
max_retries == o.max_retries &&
|
|
384
|
-
tls_validation == o.tls_validation &&
|
|
385
|
-
connect_timeout == o.connect_timeout &&
|
|
386
|
-
hidden_fields == o.hidden_fields &&
|
|
387
|
-
total_timeout == o.total_timeout &&
|
|
388
|
-
ca_cert == o.ca_cert &&
|
|
389
381
|
rate_limit == o.rate_limit &&
|
|
382
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
|
390
383
|
prn == o.prn &&
|
|
391
|
-
pulp_created == o.pulp_created &&
|
|
392
|
-
sock_read_timeout == o.sock_read_timeout &&
|
|
393
|
-
name == o.name &&
|
|
394
384
|
download_concurrency == o.download_concurrency &&
|
|
395
385
|
url == o.url &&
|
|
396
386
|
pulp_labels == o.pulp_labels &&
|
|
387
|
+
total_timeout == o.total_timeout &&
|
|
388
|
+
hidden_fields == o.hidden_fields &&
|
|
397
389
|
headers == o.headers &&
|
|
390
|
+
tls_validation == o.tls_validation &&
|
|
391
|
+
connect_timeout == o.connect_timeout &&
|
|
392
|
+
pulp_href == o.pulp_href &&
|
|
393
|
+
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 &&
|
|
398
397
|
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
|
+
[pulp_created, client_cert, rate_limit, sock_connect_timeout, prn, download_concurrency, url, pulp_labels, total_timeout, hidden_fields, headers, tls_validation, connect_timeout, pulp_href, pulp_last_updated, name, sock_read_timeout, ca_cert, proxy_url, max_retries, 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
|