pulp_ansible_client 0.29.8 → 0.29.10
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/AnsibleAnsibleCollectionDeprecated.md +2 -0
- data/docs/AnsibleCollectionVersionResponse.md +6 -6
- data/docs/AnsibleGitRemote.md +30 -30
- data/docs/AnsibleGitRemoteResponse.md +30 -30
- data/docs/AnsibleRole.md +4 -2
- data/docs/AnsibleRoleResponse.md +6 -6
- data/docs/ContentCollectionSignaturesApi.md +2 -0
- data/docs/ContentCollectionVersionsApi.md +10 -8
- data/docs/PatchedansibleGitRemote.md +30 -30
- data/docs/RepositoryAddRemoveContent.md +3 -1
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +3 -0
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +15 -12
- 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_collection_deprecated.rb +11 -1
- 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 +257 -257
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +163 -163
- data/lib/pulp_ansible_client/models/ansible_role.rb +18 -8
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +26 -26
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +248 -248
- data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +16 -4
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_signatures_api_spec.rb +1 -0
- data/spec/api/content_collection_versions_api_spec.rb +5 -4
- data/spec/models/ansible_ansible_collection_deprecated_spec.rb +6 -0
- 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 +19 -19
- data/spec/models/ansible_role_response_spec.rb +5 -5
- data/spec/models/ansible_role_spec.rb +7 -1
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- data/spec/models/repository_add_remove_content_spec.rb +6 -0
- metadata +120 -120
|
@@ -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
|
-
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
23
|
-
attr_accessor :download_concurrency
|
|
24
|
-
|
|
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
|
|
19
|
+
# List of hidden (write only) fields
|
|
20
|
+
attr_accessor :hidden_fields
|
|
27
21
|
|
|
28
|
-
#
|
|
29
|
-
attr_accessor :
|
|
22
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
23
|
+
attr_accessor :max_retries
|
|
30
24
|
|
|
31
25
|
# If True, TLS peer validation must be performed.
|
|
32
26
|
attr_accessor :tls_validation
|
|
33
27
|
|
|
34
|
-
|
|
35
|
-
attr_accessor :total_timeout
|
|
28
|
+
attr_accessor :pulp_href
|
|
36
29
|
|
|
37
|
-
#
|
|
38
|
-
attr_accessor :
|
|
30
|
+
# 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.
|
|
31
|
+
attr_accessor :sock_read_timeout
|
|
32
|
+
|
|
33
|
+
# The proxy URL. Format: scheme://host:port
|
|
34
|
+
attr_accessor :proxy_url
|
|
39
35
|
|
|
40
36
|
# Timestamp of the most recent update of the remote.
|
|
41
37
|
attr_accessor :pulp_last_updated
|
|
42
38
|
|
|
43
|
-
attr_accessor :
|
|
39
|
+
attr_accessor :pulp_labels
|
|
44
40
|
|
|
45
|
-
#
|
|
46
|
-
attr_accessor :
|
|
41
|
+
# 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.
|
|
42
|
+
attr_accessor :sock_connect_timeout
|
|
47
43
|
|
|
48
|
-
#
|
|
49
|
-
attr_accessor :
|
|
44
|
+
# The URL of an external content source.
|
|
45
|
+
attr_accessor :url
|
|
50
46
|
|
|
51
|
-
# aiohttp.ClientTimeout.
|
|
52
|
-
attr_accessor :
|
|
47
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
48
|
+
attr_accessor :total_timeout
|
|
53
49
|
|
|
54
|
-
#
|
|
55
|
-
attr_accessor :
|
|
50
|
+
# Timestamp of creation.
|
|
51
|
+
attr_accessor :pulp_created
|
|
56
52
|
|
|
57
|
-
#
|
|
58
|
-
attr_accessor :
|
|
53
|
+
# A unique name for this remote.
|
|
54
|
+
attr_accessor :name
|
|
59
55
|
|
|
60
|
-
#
|
|
61
|
-
attr_accessor :
|
|
56
|
+
# A PEM encoded client certificate used for authentication.
|
|
57
|
+
attr_accessor :client_cert
|
|
62
58
|
|
|
63
59
|
# The Pulp Resource Name (PRN).
|
|
64
60
|
attr_accessor :prn
|
|
65
61
|
|
|
66
|
-
|
|
62
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
63
|
+
attr_accessor :connect_timeout
|
|
67
64
|
|
|
68
|
-
#
|
|
69
|
-
attr_accessor :
|
|
65
|
+
# Headers for aiohttp.Clientsession
|
|
66
|
+
attr_accessor :headers
|
|
70
67
|
|
|
71
|
-
#
|
|
72
|
-
attr_accessor :
|
|
68
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
69
|
+
attr_accessor :download_concurrency
|
|
73
70
|
|
|
74
|
-
#
|
|
75
|
-
attr_accessor :
|
|
71
|
+
# Limits requests per second for each concurrent downloader
|
|
72
|
+
attr_accessor :rate_limit
|
|
73
|
+
|
|
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
|
-
:'
|
|
88
|
-
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
89
|
-
:'pulp_created' => :'pulp_created',
|
|
86
|
+
:'hidden_fields' => :'hidden_fields',
|
|
87
|
+
:'max_retries' => :'max_retries',
|
|
90
88
|
:'tls_validation' => :'tls_validation',
|
|
91
|
-
:'total_timeout' => :'total_timeout',
|
|
92
|
-
:'ca_cert' => :'ca_cert',
|
|
93
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
94
89
|
:'pulp_href' => :'pulp_href',
|
|
95
|
-
:'rate_limit' => :'rate_limit',
|
|
96
|
-
:'hidden_fields' => :'hidden_fields',
|
|
97
90
|
:'sock_read_timeout' => :'sock_read_timeout',
|
|
98
|
-
:'headers' => :'headers',
|
|
99
|
-
:'max_retries' => :'max_retries',
|
|
100
|
-
:'connect_timeout' => :'connect_timeout',
|
|
101
|
-
:'prn' => :'prn',
|
|
102
|
-
:'pulp_labels' => :'pulp_labels',
|
|
103
|
-
:'client_cert' => :'client_cert',
|
|
104
91
|
:'proxy_url' => :'proxy_url',
|
|
92
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
93
|
+
:'pulp_labels' => :'pulp_labels',
|
|
94
|
+
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
95
|
+
:'url' => :'url',
|
|
96
|
+
:'total_timeout' => :'total_timeout',
|
|
97
|
+
:'pulp_created' => :'pulp_created',
|
|
105
98
|
:'name' => :'name',
|
|
99
|
+
:'client_cert' => :'client_cert',
|
|
100
|
+
:'prn' => :'prn',
|
|
101
|
+
:'connect_timeout' => :'connect_timeout',
|
|
102
|
+
:'headers' => :'headers',
|
|
103
|
+
:'download_concurrency' => :'download_concurrency',
|
|
104
|
+
:'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
|
-
:'
|
|
121
|
-
:'sock_connect_timeout' => :'Float',
|
|
122
|
-
:'pulp_created' => :'Time',
|
|
119
|
+
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
|
120
|
+
:'max_retries' => :'Integer',
|
|
123
121
|
:'tls_validation' => :'Boolean',
|
|
124
|
-
:'total_timeout' => :'Float',
|
|
125
|
-
:'ca_cert' => :'String',
|
|
126
|
-
:'pulp_last_updated' => :'Time',
|
|
127
122
|
:'pulp_href' => :'String',
|
|
128
|
-
:'rate_limit' => :'Integer',
|
|
129
|
-
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
|
130
123
|
:'sock_read_timeout' => :'Float',
|
|
131
|
-
:'headers' => :'Array<Object>',
|
|
132
|
-
:'max_retries' => :'Integer',
|
|
133
|
-
:'connect_timeout' => :'Float',
|
|
134
|
-
:'prn' => :'String',
|
|
135
|
-
:'pulp_labels' => :'Hash<String, String>',
|
|
136
|
-
:'client_cert' => :'String',
|
|
137
124
|
:'proxy_url' => :'String',
|
|
125
|
+
:'pulp_last_updated' => :'Time',
|
|
126
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
127
|
+
:'sock_connect_timeout' => :'Float',
|
|
128
|
+
:'url' => :'String',
|
|
129
|
+
:'total_timeout' => :'Float',
|
|
130
|
+
:'pulp_created' => :'Time',
|
|
138
131
|
:'name' => :'String',
|
|
132
|
+
:'client_cert' => :'String',
|
|
133
|
+
:'prn' => :'String',
|
|
134
|
+
:'connect_timeout' => :'Float',
|
|
135
|
+
:'headers' => :'Array<Object>',
|
|
136
|
+
:'download_concurrency' => :'Integer',
|
|
137
|
+
:'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
|
+
:'max_retries',
|
|
148
|
+
:'sock_read_timeout',
|
|
149
|
+
:'proxy_url',
|
|
148
150
|
:'sock_connect_timeout',
|
|
149
151
|
:'total_timeout',
|
|
150
|
-
:'ca_cert',
|
|
151
|
-
:'rate_limit',
|
|
152
|
-
:'sock_read_timeout',
|
|
153
|
-
:'max_retries',
|
|
154
|
-
:'connect_timeout',
|
|
155
152
|
:'client_cert',
|
|
156
|
-
:'
|
|
153
|
+
:'connect_timeout',
|
|
154
|
+
:'download_concurrency',
|
|
155
|
+
:'rate_limit',
|
|
156
|
+
:'ca_cert',
|
|
157
157
|
])
|
|
158
158
|
end
|
|
159
159
|
|
|
@@ -172,94 +172,94 @@ module PulpAnsibleClient
|
|
|
172
172
|
h[k.to_sym] = v
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
if attributes.key?(:'
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
end
|
|
180
|
-
|
|
181
|
-
if attributes.key?(:'download_concurrency')
|
|
182
|
-
self.download_concurrency = attributes[:'download_concurrency']
|
|
183
|
-
end
|
|
184
|
-
|
|
185
|
-
if attributes.key?(:'sock_connect_timeout')
|
|
186
|
-
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
|
175
|
+
if attributes.key?(:'hidden_fields')
|
|
176
|
+
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
|
177
|
+
self.hidden_fields = value
|
|
178
|
+
end
|
|
187
179
|
end
|
|
188
180
|
|
|
189
|
-
if attributes.key?(:'
|
|
190
|
-
self.
|
|
181
|
+
if attributes.key?(:'max_retries')
|
|
182
|
+
self.max_retries = attributes[:'max_retries']
|
|
191
183
|
end
|
|
192
184
|
|
|
193
185
|
if attributes.key?(:'tls_validation')
|
|
194
186
|
self.tls_validation = attributes[:'tls_validation']
|
|
195
187
|
end
|
|
196
188
|
|
|
197
|
-
if attributes.key?(:'
|
|
198
|
-
self.
|
|
189
|
+
if attributes.key?(:'pulp_href')
|
|
190
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
199
191
|
end
|
|
200
192
|
|
|
201
|
-
if attributes.key?(:'
|
|
202
|
-
self.
|
|
193
|
+
if attributes.key?(:'sock_read_timeout')
|
|
194
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
|
195
|
+
end
|
|
196
|
+
|
|
197
|
+
if attributes.key?(:'proxy_url')
|
|
198
|
+
self.proxy_url = attributes[:'proxy_url']
|
|
203
199
|
end
|
|
204
200
|
|
|
205
201
|
if attributes.key?(:'pulp_last_updated')
|
|
206
202
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
207
203
|
end
|
|
208
204
|
|
|
209
|
-
if attributes.key?(:'
|
|
210
|
-
|
|
205
|
+
if attributes.key?(:'pulp_labels')
|
|
206
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
|
207
|
+
self.pulp_labels = value
|
|
208
|
+
end
|
|
211
209
|
end
|
|
212
210
|
|
|
213
|
-
if attributes.key?(:'
|
|
214
|
-
self.
|
|
211
|
+
if attributes.key?(:'sock_connect_timeout')
|
|
212
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
|
215
213
|
end
|
|
216
214
|
|
|
217
|
-
if attributes.key?(:'
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
215
|
+
if attributes.key?(:'url')
|
|
216
|
+
self.url = attributes[:'url']
|
|
217
|
+
else
|
|
218
|
+
self.url = nil
|
|
221
219
|
end
|
|
222
220
|
|
|
223
|
-
if attributes.key?(:'
|
|
224
|
-
self.
|
|
221
|
+
if attributes.key?(:'total_timeout')
|
|
222
|
+
self.total_timeout = attributes[:'total_timeout']
|
|
225
223
|
end
|
|
226
224
|
|
|
227
|
-
if attributes.key?(:'
|
|
228
|
-
|
|
229
|
-
self.headers = value
|
|
230
|
-
end
|
|
225
|
+
if attributes.key?(:'pulp_created')
|
|
226
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
231
227
|
end
|
|
232
228
|
|
|
233
|
-
if attributes.key?(:'
|
|
234
|
-
self.
|
|
229
|
+
if attributes.key?(:'name')
|
|
230
|
+
self.name = attributes[:'name']
|
|
231
|
+
else
|
|
232
|
+
self.name = nil
|
|
235
233
|
end
|
|
236
234
|
|
|
237
|
-
if attributes.key?(:'
|
|
238
|
-
self.
|
|
235
|
+
if attributes.key?(:'client_cert')
|
|
236
|
+
self.client_cert = attributes[:'client_cert']
|
|
239
237
|
end
|
|
240
238
|
|
|
241
239
|
if attributes.key?(:'prn')
|
|
242
240
|
self.prn = attributes[:'prn']
|
|
243
241
|
end
|
|
244
242
|
|
|
245
|
-
if attributes.key?(:'
|
|
246
|
-
|
|
247
|
-
|
|
243
|
+
if attributes.key?(:'connect_timeout')
|
|
244
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
|
245
|
+
end
|
|
246
|
+
|
|
247
|
+
if attributes.key?(:'headers')
|
|
248
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
|
249
|
+
self.headers = value
|
|
248
250
|
end
|
|
249
251
|
end
|
|
250
252
|
|
|
251
|
-
if attributes.key?(:'
|
|
252
|
-
self.
|
|
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
|
+
if attributes.key?(:'rate_limit')
|
|
258
|
+
self.rate_limit = attributes[:'rate_limit']
|
|
257
259
|
end
|
|
258
260
|
|
|
259
|
-
if attributes.key?(:'
|
|
260
|
-
self.
|
|
261
|
-
else
|
|
262
|
-
self.name = nil
|
|
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,32 +276,32 @@ 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 !@download_concurrency.nil? && @download_concurrency < 1
|
|
284
|
-
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
279
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
280
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
285
281
|
end
|
|
286
282
|
|
|
287
283
|
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
288
284
|
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
|
289
285
|
end
|
|
290
286
|
|
|
287
|
+
if @url.nil?
|
|
288
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
289
|
+
end
|
|
290
|
+
|
|
291
291
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
|
292
292
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
|
293
293
|
end
|
|
294
294
|
|
|
295
|
-
if
|
|
296
|
-
invalid_properties.push('invalid value for "
|
|
295
|
+
if @name.nil?
|
|
296
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
297
297
|
end
|
|
298
298
|
|
|
299
299
|
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
300
300
|
invalid_properties.push('invalid value for "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 !@download_concurrency.nil? && @download_concurrency < 1
|
|
304
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
305
305
|
end
|
|
306
306
|
|
|
307
307
|
invalid_properties
|
|
@@ -311,24 +311,24 @@ 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
|
|
315
|
-
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
314
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
316
315
|
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
316
|
+
return false if @url.nil?
|
|
317
317
|
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
318
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
319
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
320
318
|
return false if @name.nil?
|
|
319
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
320
|
+
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
321
321
|
true
|
|
322
322
|
end
|
|
323
323
|
|
|
324
324
|
# Custom attribute writer method with validation
|
|
325
|
-
# @param [Object]
|
|
326
|
-
def
|
|
327
|
-
if !
|
|
328
|
-
fail ArgumentError, 'invalid value for "
|
|
325
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
|
326
|
+
def sock_read_timeout=(sock_read_timeout)
|
|
327
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
|
328
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
|
329
329
|
end
|
|
330
330
|
|
|
331
|
-
@
|
|
331
|
+
@sock_read_timeout = sock_read_timeout
|
|
332
332
|
end
|
|
333
333
|
|
|
334
334
|
# Custom attribute writer method with validation
|
|
@@ -351,16 +351,6 @@ module PulpAnsibleClient
|
|
|
351
351
|
@total_timeout = total_timeout
|
|
352
352
|
end
|
|
353
353
|
|
|
354
|
-
# Custom attribute writer method with validation
|
|
355
|
-
# @param [Object] sock_read_timeout Value to be assigned
|
|
356
|
-
def sock_read_timeout=(sock_read_timeout)
|
|
357
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
|
358
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
|
359
|
-
end
|
|
360
|
-
|
|
361
|
-
@sock_read_timeout = sock_read_timeout
|
|
362
|
-
end
|
|
363
|
-
|
|
364
354
|
# Custom attribute writer method with validation
|
|
365
355
|
# @param [Object] connect_timeout Value to be assigned
|
|
366
356
|
def connect_timeout=(connect_timeout)
|
|
@@ -371,31 +361,41 @@ module PulpAnsibleClient
|
|
|
371
361
|
@connect_timeout = connect_timeout
|
|
372
362
|
end
|
|
373
363
|
|
|
364
|
+
# Custom attribute writer method with validation
|
|
365
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
366
|
+
def download_concurrency=(download_concurrency)
|
|
367
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
368
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
@download_concurrency = download_concurrency
|
|
372
|
+
end
|
|
373
|
+
|
|
374
374
|
# Checks equality by comparing each attribute.
|
|
375
375
|
# @param [Object] Object to be compared
|
|
376
376
|
def ==(o)
|
|
377
377
|
return true if self.equal?(o)
|
|
378
378
|
self.class == o.class &&
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
sock_connect_timeout == o.sock_connect_timeout &&
|
|
382
|
-
pulp_created == o.pulp_created &&
|
|
379
|
+
hidden_fields == o.hidden_fields &&
|
|
380
|
+
max_retries == o.max_retries &&
|
|
383
381
|
tls_validation == o.tls_validation &&
|
|
384
|
-
total_timeout == o.total_timeout &&
|
|
385
|
-
ca_cert == o.ca_cert &&
|
|
386
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
387
382
|
pulp_href == o.pulp_href &&
|
|
388
|
-
rate_limit == o.rate_limit &&
|
|
389
|
-
hidden_fields == o.hidden_fields &&
|
|
390
383
|
sock_read_timeout == o.sock_read_timeout &&
|
|
391
|
-
headers == o.headers &&
|
|
392
|
-
max_retries == o.max_retries &&
|
|
393
|
-
connect_timeout == o.connect_timeout &&
|
|
394
|
-
prn == o.prn &&
|
|
395
|
-
pulp_labels == o.pulp_labels &&
|
|
396
|
-
client_cert == o.client_cert &&
|
|
397
384
|
proxy_url == o.proxy_url &&
|
|
385
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
386
|
+
pulp_labels == o.pulp_labels &&
|
|
387
|
+
sock_connect_timeout == o.sock_connect_timeout &&
|
|
388
|
+
url == o.url &&
|
|
389
|
+
total_timeout == o.total_timeout &&
|
|
390
|
+
pulp_created == o.pulp_created &&
|
|
398
391
|
name == o.name &&
|
|
392
|
+
client_cert == o.client_cert &&
|
|
393
|
+
prn == o.prn &&
|
|
394
|
+
connect_timeout == o.connect_timeout &&
|
|
395
|
+
headers == o.headers &&
|
|
396
|
+
download_concurrency == o.download_concurrency &&
|
|
397
|
+
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
|
+
[hidden_fields, max_retries, tls_validation, pulp_href, sock_read_timeout, proxy_url, pulp_last_updated, pulp_labels, sock_connect_timeout, url, total_timeout, pulp_created, name, client_cert, prn, connect_timeout, headers, download_concurrency, rate_limit, ca_cert, metadata_only, git_ref].hash
|
|
413
413
|
end
|
|
414
414
|
|
|
415
415
|
# Builds the object from hash
|
|
@@ -16,8 +16,8 @@ require 'time'
|
|
|
16
16
|
module PulpAnsibleClient
|
|
17
17
|
# A serializer for Role versions.
|
|
18
18
|
class AnsibleRole
|
|
19
|
-
#
|
|
20
|
-
attr_accessor :
|
|
19
|
+
# When set to true, existing content in the repository with the same unique key will be silently overwritten. When set to false, the task will fail if content would be overwritten. Only used when 'repository' is specified. Defaults to true.
|
|
20
|
+
attr_accessor :overwrite
|
|
21
21
|
|
|
22
22
|
# Artifact file representing the physical content
|
|
23
23
|
attr_accessor :artifact
|
|
@@ -25,6 +25,9 @@ module PulpAnsibleClient
|
|
|
25
25
|
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
26
26
|
attr_accessor :pulp_labels
|
|
27
27
|
|
|
28
|
+
# A URI of a repository the new content unit should be associated with.
|
|
29
|
+
attr_accessor :repository
|
|
30
|
+
|
|
28
31
|
attr_accessor :version
|
|
29
32
|
|
|
30
33
|
attr_accessor :name
|
|
@@ -34,9 +37,10 @@ module PulpAnsibleClient
|
|
|
34
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
35
38
|
def self.attribute_map
|
|
36
39
|
{
|
|
37
|
-
:'
|
|
40
|
+
:'overwrite' => :'overwrite',
|
|
38
41
|
:'artifact' => :'artifact',
|
|
39
42
|
:'pulp_labels' => :'pulp_labels',
|
|
43
|
+
:'repository' => :'repository',
|
|
40
44
|
:'version' => :'version',
|
|
41
45
|
:'name' => :'name',
|
|
42
46
|
:'namespace' => :'namespace'
|
|
@@ -51,9 +55,10 @@ module PulpAnsibleClient
|
|
|
51
55
|
# Attribute type mapping.
|
|
52
56
|
def self.openapi_types
|
|
53
57
|
{
|
|
54
|
-
:'
|
|
58
|
+
:'overwrite' => :'Boolean',
|
|
55
59
|
:'artifact' => :'String',
|
|
56
60
|
:'pulp_labels' => :'Hash<String, String>',
|
|
61
|
+
:'repository' => :'String',
|
|
57
62
|
:'version' => :'String',
|
|
58
63
|
:'name' => :'String',
|
|
59
64
|
:'namespace' => :'String'
|
|
@@ -81,8 +86,8 @@ module PulpAnsibleClient
|
|
|
81
86
|
h[k.to_sym] = v
|
|
82
87
|
}
|
|
83
88
|
|
|
84
|
-
if attributes.key?(:'
|
|
85
|
-
self.
|
|
89
|
+
if attributes.key?(:'overwrite')
|
|
90
|
+
self.overwrite = attributes[:'overwrite']
|
|
86
91
|
end
|
|
87
92
|
|
|
88
93
|
if attributes.key?(:'artifact')
|
|
@@ -97,6 +102,10 @@ module PulpAnsibleClient
|
|
|
97
102
|
end
|
|
98
103
|
end
|
|
99
104
|
|
|
105
|
+
if attributes.key?(:'repository')
|
|
106
|
+
self.repository = attributes[:'repository']
|
|
107
|
+
end
|
|
108
|
+
|
|
100
109
|
if attributes.key?(:'version')
|
|
101
110
|
self.version = attributes[:'version']
|
|
102
111
|
else
|
|
@@ -213,9 +222,10 @@ module PulpAnsibleClient
|
|
|
213
222
|
def ==(o)
|
|
214
223
|
return true if self.equal?(o)
|
|
215
224
|
self.class == o.class &&
|
|
216
|
-
|
|
225
|
+
overwrite == o.overwrite &&
|
|
217
226
|
artifact == o.artifact &&
|
|
218
227
|
pulp_labels == o.pulp_labels &&
|
|
228
|
+
repository == o.repository &&
|
|
219
229
|
version == o.version &&
|
|
220
230
|
name == o.name &&
|
|
221
231
|
namespace == o.namespace
|
|
@@ -230,7 +240,7 @@ module PulpAnsibleClient
|
|
|
230
240
|
# Calculates hash code according to all attributes.
|
|
231
241
|
# @return [Integer] Hash code
|
|
232
242
|
def hash
|
|
233
|
-
[
|
|
243
|
+
[overwrite, artifact, pulp_labels, repository, version, name, namespace].hash
|
|
234
244
|
end
|
|
235
245
|
|
|
236
246
|
# Builds the object from hash
|