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