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