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