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