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