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