pulp_ansible_client 0.29.9 → 0.30.1
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/AnsibleCollectionRemote.md +3 -1
- data/docs/AnsibleCollectionRemoteResponse.md +2 -0
- data/docs/AnsibleCollectionVersionResponse.md +4 -4
- data/docs/AnsibleGitRemote.md +26 -26
- data/docs/AnsibleGitRemoteResponse.md +24 -24
- data/docs/AnsibleRepositorySyncURL.md +1 -1
- data/docs/AnsibleRole.md +4 -4
- data/docs/AnsibleRoleResponse.md +4 -4
- data/docs/CollectionSummaryResponse.md +1 -1
- data/docs/ContentCollectionDeprecationsApi.md +4 -0
- data/docs/ContentCollectionMarksApi.md +4 -0
- data/docs/ContentCollectionSignaturesApi.md +4 -0
- data/docs/ContentCollectionVersionsApi.md +12 -8
- data/docs/ContentNamespacesApi.md +4 -0
- data/docs/ContentRolesApi.md +4 -0
- data/docs/PatchedansibleCollectionRemote.md +3 -1
- data/docs/PatchedansibleGitRemote.md +26 -26
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +4 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +4 -0
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +4 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +4 -0
- data/docs/RemotesCollectionApi.md +2 -2
- data/docs/RemotesGitApi.md +2 -2
- data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +6 -0
- data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +6 -0
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +6 -0
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +18 -12
- data/lib/pulp_ansible_client/api/content_namespaces_api.rb +6 -0
- data/lib/pulp_ansible_client/api/content_roles_api.rb +6 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +6 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +6 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +6 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +6 -0
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +30 -4
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +27 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +227 -227
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +158 -158
- data/lib/pulp_ansible_client/models/ansible_repository_sync_url.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_role.rb +18 -18
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +20 -20
- data/lib/pulp_ansible_client/models/collection_summary_response.rb +1 -1
- data/lib/pulp_ansible_client/models/nested_role.rb +1 -1
- data/lib/pulp_ansible_client/models/nested_role_response.rb +1 -1
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +30 -4
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +222 -222
- data/lib/pulp_ansible_client/models/repository.rb +1 -1
- data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +1 -1
- data/lib/pulp_ansible_client/models/repository_response.rb +1 -1
- data/lib/pulp_ansible_client/models/repository_version_response.rb +1 -1
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_deprecations_api_spec.rb +2 -0
- data/spec/api/content_collection_marks_api_spec.rb +2 -0
- data/spec/api/content_collection_signatures_api_spec.rb +2 -0
- data/spec/api/content_collection_versions_api_spec.rb +6 -4
- data/spec/api/content_namespaces_api_spec.rb +2 -0
- data/spec/api/content_roles_api_spec.rb +2 -0
- data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +2 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +2 -0
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +2 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +2 -0
- data/spec/api/remotes_collection_api_spec.rb +1 -1
- data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
- data/spec/models/ansible_collection_remote_spec.rb +6 -0
- data/spec/models/ansible_collection_version_response_spec.rb +6 -6
- data/spec/models/ansible_git_remote_response_spec.rb +20 -20
- data/spec/models/ansible_git_remote_spec.rb +18 -18
- data/spec/models/ansible_role_response_spec.rb +6 -6
- data/spec/models/ansible_role_spec.rb +4 -4
- data/spec/models/patchedansible_collection_remote_spec.rb +6 -0
- data/spec/models/patchedansible_git_remote_spec.rb +18 -18
- metadata +125 -125
|
@@ -16,45 +16,48 @@ require 'time'
|
|
|
16
16
|
module PulpAnsibleClient
|
|
17
17
|
# A serializer for Git Collection Remotes.
|
|
18
18
|
class AnsibleGitRemoteResponse
|
|
19
|
-
# aiohttp.ClientTimeout.
|
|
20
|
-
attr_accessor :
|
|
21
|
-
|
|
22
|
-
# The proxy URL. Format: scheme://host:port
|
|
23
|
-
attr_accessor :proxy_url
|
|
19
|
+
# 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.
|
|
20
|
+
attr_accessor :sock_read_timeout
|
|
24
21
|
|
|
25
|
-
|
|
26
|
-
attr_accessor :prn
|
|
22
|
+
attr_accessor :pulp_href
|
|
27
23
|
|
|
28
|
-
#
|
|
29
|
-
attr_accessor :
|
|
24
|
+
# The URL of an external content source.
|
|
25
|
+
attr_accessor :url
|
|
30
26
|
|
|
31
|
-
#
|
|
32
|
-
attr_accessor :
|
|
27
|
+
# The proxy URL. Format: scheme://host:port
|
|
28
|
+
attr_accessor :proxy_url
|
|
33
29
|
|
|
34
30
|
attr_accessor :pulp_labels
|
|
35
31
|
|
|
36
|
-
attr_accessor :pulp_href
|
|
37
|
-
|
|
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.
|
|
39
|
-
attr_accessor :connect_timeout
|
|
40
|
-
|
|
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
|
|
43
|
-
|
|
44
32
|
# A unique name for this remote.
|
|
45
33
|
attr_accessor :name
|
|
46
34
|
|
|
47
|
-
#
|
|
48
|
-
attr_accessor :
|
|
35
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
|
36
|
+
attr_accessor :download_concurrency
|
|
37
|
+
|
|
38
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
|
39
|
+
attr_accessor :max_retries
|
|
49
40
|
|
|
50
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.
|
|
51
42
|
attr_accessor :sock_connect_timeout
|
|
52
43
|
|
|
44
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
45
|
+
attr_accessor :total_timeout
|
|
46
|
+
|
|
47
|
+
# Timestamp of the most recent update of the remote.
|
|
48
|
+
attr_accessor :pulp_last_updated
|
|
49
|
+
|
|
53
50
|
# A PEM encoded client certificate used for authentication.
|
|
54
51
|
attr_accessor :client_cert
|
|
55
52
|
|
|
56
|
-
#
|
|
57
|
-
attr_accessor :
|
|
53
|
+
# The Pulp Resource Name (PRN).
|
|
54
|
+
attr_accessor :prn
|
|
55
|
+
|
|
56
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
|
57
|
+
attr_accessor :connect_timeout
|
|
58
|
+
|
|
59
|
+
# Headers for aiohttp.Clientsession
|
|
60
|
+
attr_accessor :headers
|
|
58
61
|
|
|
59
62
|
# Limits requests per second for each concurrent downloader
|
|
60
63
|
attr_accessor :rate_limit
|
|
@@ -62,18 +65,15 @@ module PulpAnsibleClient
|
|
|
62
65
|
# Timestamp of creation.
|
|
63
66
|
attr_accessor :pulp_created
|
|
64
67
|
|
|
65
|
-
#
|
|
66
|
-
attr_accessor :
|
|
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
|
|
68
|
+
# If True, TLS peer validation must be performed.
|
|
69
|
+
attr_accessor :tls_validation
|
|
73
70
|
|
|
74
71
|
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
|
75
72
|
attr_accessor :ca_cert
|
|
76
73
|
|
|
74
|
+
# List of hidden (write only) fields
|
|
75
|
+
attr_accessor :hidden_fields
|
|
76
|
+
|
|
77
77
|
# If True, only metadata about the content will be stored in Pulp. Clients will retrieve content from the remote URL.
|
|
78
78
|
attr_accessor :metadata_only
|
|
79
79
|
|
|
@@ -83,26 +83,26 @@ module PulpAnsibleClient
|
|
|
83
83
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
84
84
|
def self.attribute_map
|
|
85
85
|
{
|
|
86
|
-
:'
|
|
86
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
|
87
|
+
:'pulp_href' => :'pulp_href',
|
|
88
|
+
:'url' => :'url',
|
|
87
89
|
:'proxy_url' => :'proxy_url',
|
|
88
|
-
:'prn' => :'prn',
|
|
89
|
-
:'headers' => :'headers',
|
|
90
|
-
:'hidden_fields' => :'hidden_fields',
|
|
91
90
|
:'pulp_labels' => :'pulp_labels',
|
|
92
|
-
:'pulp_href' => :'pulp_href',
|
|
93
|
-
:'connect_timeout' => :'connect_timeout',
|
|
94
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
|
95
91
|
:'name' => :'name',
|
|
96
|
-
:'
|
|
92
|
+
:'download_concurrency' => :'download_concurrency',
|
|
93
|
+
:'max_retries' => :'max_retries',
|
|
97
94
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
|
95
|
+
:'total_timeout' => :'total_timeout',
|
|
96
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
|
98
97
|
:'client_cert' => :'client_cert',
|
|
99
|
-
:'
|
|
98
|
+
:'prn' => :'prn',
|
|
99
|
+
:'connect_timeout' => :'connect_timeout',
|
|
100
|
+
:'headers' => :'headers',
|
|
100
101
|
:'rate_limit' => :'rate_limit',
|
|
101
102
|
:'pulp_created' => :'pulp_created',
|
|
102
|
-
:'
|
|
103
|
-
:'download_concurrency' => :'download_concurrency',
|
|
104
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
|
103
|
+
:'tls_validation' => :'tls_validation',
|
|
105
104
|
:'ca_cert' => :'ca_cert',
|
|
105
|
+
:'hidden_fields' => :'hidden_fields',
|
|
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
|
-
:'
|
|
119
|
+
:'sock_read_timeout' => :'Float',
|
|
120
|
+
:'pulp_href' => :'String',
|
|
121
|
+
:'url' => :'String',
|
|
120
122
|
:'proxy_url' => :'String',
|
|
121
|
-
:'prn' => :'String',
|
|
122
|
-
:'headers' => :'Array<Object>',
|
|
123
|
-
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
|
124
123
|
:'pulp_labels' => :'Hash<String, String>',
|
|
125
|
-
:'pulp_href' => :'String',
|
|
126
|
-
:'connect_timeout' => :'Float',
|
|
127
|
-
:'sock_read_timeout' => :'Float',
|
|
128
124
|
:'name' => :'String',
|
|
129
|
-
:'
|
|
125
|
+
:'download_concurrency' => :'Integer',
|
|
126
|
+
:'max_retries' => :'Integer',
|
|
130
127
|
:'sock_connect_timeout' => :'Float',
|
|
128
|
+
:'total_timeout' => :'Float',
|
|
129
|
+
:'pulp_last_updated' => :'Time',
|
|
131
130
|
:'client_cert' => :'String',
|
|
132
|
-
:'
|
|
131
|
+
:'prn' => :'String',
|
|
132
|
+
:'connect_timeout' => :'Float',
|
|
133
|
+
:'headers' => :'Array<Object>',
|
|
133
134
|
:'rate_limit' => :'Integer',
|
|
134
135
|
:'pulp_created' => :'Time',
|
|
135
|
-
:'
|
|
136
|
-
:'download_concurrency' => :'Integer',
|
|
137
|
-
:'pulp_last_updated' => :'Time',
|
|
136
|
+
:'tls_validation' => :'Boolean',
|
|
138
137
|
:'ca_cert' => :'String',
|
|
138
|
+
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
|
139
139
|
:'metadata_only' => :'Boolean',
|
|
140
140
|
:'git_ref' => :'String'
|
|
141
141
|
}
|
|
@@ -144,15 +144,15 @@ module PulpAnsibleClient
|
|
|
144
144
|
# List of attributes with nullable: true
|
|
145
145
|
def self.openapi_nullable
|
|
146
146
|
Set.new([
|
|
147
|
-
:'total_timeout',
|
|
148
|
-
:'proxy_url',
|
|
149
|
-
:'connect_timeout',
|
|
150
147
|
:'sock_read_timeout',
|
|
148
|
+
:'proxy_url',
|
|
149
|
+
:'download_concurrency',
|
|
150
|
+
:'max_retries',
|
|
151
151
|
:'sock_connect_timeout',
|
|
152
|
+
:'total_timeout',
|
|
152
153
|
:'client_cert',
|
|
154
|
+
:'connect_timeout',
|
|
153
155
|
:'rate_limit',
|
|
154
|
-
:'max_retries',
|
|
155
|
-
:'download_concurrency',
|
|
156
156
|
:'ca_cert',
|
|
157
157
|
])
|
|
158
158
|
end
|
|
@@ -172,28 +172,22 @@ module PulpAnsibleClient
|
|
|
172
172
|
h[k.to_sym] = v
|
|
173
173
|
}
|
|
174
174
|
|
|
175
|
-
if attributes.key?(:'
|
|
176
|
-
self.
|
|
177
|
-
end
|
|
178
|
-
|
|
179
|
-
if attributes.key?(:'proxy_url')
|
|
180
|
-
self.proxy_url = attributes[:'proxy_url']
|
|
175
|
+
if attributes.key?(:'sock_read_timeout')
|
|
176
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
|
181
177
|
end
|
|
182
178
|
|
|
183
|
-
if attributes.key?(:'
|
|
184
|
-
self.
|
|
179
|
+
if attributes.key?(:'pulp_href')
|
|
180
|
+
self.pulp_href = attributes[:'pulp_href']
|
|
185
181
|
end
|
|
186
182
|
|
|
187
|
-
if attributes.key?(:'
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
183
|
+
if attributes.key?(:'url')
|
|
184
|
+
self.url = attributes[:'url']
|
|
185
|
+
else
|
|
186
|
+
self.url = nil
|
|
191
187
|
end
|
|
192
188
|
|
|
193
|
-
if attributes.key?(:'
|
|
194
|
-
|
|
195
|
-
self.hidden_fields = value
|
|
196
|
-
end
|
|
189
|
+
if attributes.key?(:'proxy_url')
|
|
190
|
+
self.proxy_url = attributes[:'proxy_url']
|
|
197
191
|
end
|
|
198
192
|
|
|
199
193
|
if attributes.key?(:'pulp_labels')
|
|
@@ -202,66 +196,72 @@ module PulpAnsibleClient
|
|
|
202
196
|
end
|
|
203
197
|
end
|
|
204
198
|
|
|
205
|
-
if attributes.key?(:'pulp_href')
|
|
206
|
-
self.pulp_href = attributes[:'pulp_href']
|
|
207
|
-
end
|
|
208
|
-
|
|
209
|
-
if attributes.key?(:'connect_timeout')
|
|
210
|
-
self.connect_timeout = attributes[:'connect_timeout']
|
|
211
|
-
end
|
|
212
|
-
|
|
213
|
-
if attributes.key?(:'sock_read_timeout')
|
|
214
|
-
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
|
215
|
-
end
|
|
216
|
-
|
|
217
199
|
if attributes.key?(:'name')
|
|
218
200
|
self.name = attributes[:'name']
|
|
219
201
|
else
|
|
220
202
|
self.name = nil
|
|
221
203
|
end
|
|
222
204
|
|
|
223
|
-
if attributes.key?(:'
|
|
224
|
-
self.
|
|
225
|
-
|
|
226
|
-
|
|
205
|
+
if attributes.key?(:'download_concurrency')
|
|
206
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
|
207
|
+
end
|
|
208
|
+
|
|
209
|
+
if attributes.key?(:'max_retries')
|
|
210
|
+
self.max_retries = attributes[:'max_retries']
|
|
227
211
|
end
|
|
228
212
|
|
|
229
213
|
if attributes.key?(:'sock_connect_timeout')
|
|
230
214
|
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
|
231
215
|
end
|
|
232
216
|
|
|
217
|
+
if attributes.key?(:'total_timeout')
|
|
218
|
+
self.total_timeout = attributes[:'total_timeout']
|
|
219
|
+
end
|
|
220
|
+
|
|
221
|
+
if attributes.key?(:'pulp_last_updated')
|
|
222
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
|
223
|
+
end
|
|
224
|
+
|
|
233
225
|
if attributes.key?(:'client_cert')
|
|
234
226
|
self.client_cert = attributes[:'client_cert']
|
|
235
227
|
end
|
|
236
228
|
|
|
237
|
-
if attributes.key?(:'
|
|
238
|
-
self.
|
|
229
|
+
if attributes.key?(:'prn')
|
|
230
|
+
self.prn = attributes[:'prn']
|
|
239
231
|
end
|
|
240
232
|
|
|
241
|
-
if attributes.key?(:'
|
|
242
|
-
self.
|
|
233
|
+
if attributes.key?(:'connect_timeout')
|
|
234
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
|
243
235
|
end
|
|
244
236
|
|
|
245
|
-
if attributes.key?(:'
|
|
246
|
-
|
|
237
|
+
if attributes.key?(:'headers')
|
|
238
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
|
239
|
+
self.headers = value
|
|
240
|
+
end
|
|
247
241
|
end
|
|
248
242
|
|
|
249
|
-
if attributes.key?(:'
|
|
250
|
-
self.
|
|
243
|
+
if attributes.key?(:'rate_limit')
|
|
244
|
+
self.rate_limit = attributes[:'rate_limit']
|
|
251
245
|
end
|
|
252
246
|
|
|
253
|
-
if attributes.key?(:'
|
|
254
|
-
self.
|
|
247
|
+
if attributes.key?(:'pulp_created')
|
|
248
|
+
self.pulp_created = attributes[:'pulp_created']
|
|
255
249
|
end
|
|
256
250
|
|
|
257
|
-
if attributes.key?(:'
|
|
258
|
-
self.
|
|
251
|
+
if attributes.key?(:'tls_validation')
|
|
252
|
+
self.tls_validation = attributes[:'tls_validation']
|
|
259
253
|
end
|
|
260
254
|
|
|
261
255
|
if attributes.key?(:'ca_cert')
|
|
262
256
|
self.ca_cert = attributes[:'ca_cert']
|
|
263
257
|
end
|
|
264
258
|
|
|
259
|
+
if attributes.key?(:'hidden_fields')
|
|
260
|
+
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
|
261
|
+
self.hidden_fields = value
|
|
262
|
+
end
|
|
263
|
+
end
|
|
264
|
+
|
|
265
265
|
if attributes.key?(:'metadata_only')
|
|
266
266
|
self.metadata_only = attributes[:'metadata_only']
|
|
267
267
|
end
|
|
@@ -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 !@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
|
-
end
|
|
282
|
-
|
|
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
|
-
end
|
|
286
|
-
|
|
287
279
|
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
288
280
|
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
|
289
281
|
end
|
|
290
282
|
|
|
283
|
+
if @url.nil?
|
|
284
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
|
285
|
+
end
|
|
286
|
+
|
|
291
287
|
if @name.nil?
|
|
292
288
|
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
|
293
289
|
end
|
|
294
290
|
|
|
295
|
-
if
|
|
296
|
-
invalid_properties.push('invalid value for "
|
|
291
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
|
292
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
|
297
293
|
end
|
|
298
294
|
|
|
299
295
|
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
300
296
|
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
|
301
297
|
end
|
|
302
298
|
|
|
303
|
-
if !@
|
|
304
|
-
invalid_properties.push('invalid value for "
|
|
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
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
304
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
|
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 !@total_timeout.nil? && @total_timeout < 0.0
|
|
315
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
|
316
314
|
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
|
317
|
-
return false if @name.nil?
|
|
318
315
|
return false if @url.nil?
|
|
319
|
-
return false if
|
|
316
|
+
return false if @name.nil?
|
|
320
317
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
|
318
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
|
319
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
|
320
|
+
return false if !@connect_timeout.nil? && @connect_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
|
-
# 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
324
|
# Custom attribute writer method with validation
|
|
345
325
|
# @param [Object] sock_read_timeout Value to be assigned
|
|
346
326
|
def sock_read_timeout=(sock_read_timeout)
|
|
@@ -351,6 +331,16 @@ module PulpAnsibleClient
|
|
|
351
331
|
@sock_read_timeout = sock_read_timeout
|
|
352
332
|
end
|
|
353
333
|
|
|
334
|
+
# Custom attribute writer method with validation
|
|
335
|
+
# @param [Object] download_concurrency Value to be assigned
|
|
336
|
+
def download_concurrency=(download_concurrency)
|
|
337
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
|
338
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
|
339
|
+
end
|
|
340
|
+
|
|
341
|
+
@download_concurrency = download_concurrency
|
|
342
|
+
end
|
|
343
|
+
|
|
354
344
|
# Custom attribute writer method with validation
|
|
355
345
|
# @param [Object] sock_connect_timeout Value to be assigned
|
|
356
346
|
def sock_connect_timeout=(sock_connect_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] total_timeout Value to be assigned
|
|
356
|
+
def total_timeout=(total_timeout)
|
|
357
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
|
358
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
|
369
359
|
end
|
|
370
360
|
|
|
371
|
-
@
|
|
361
|
+
@total_timeout = total_timeout
|
|
362
|
+
end
|
|
363
|
+
|
|
364
|
+
# Custom attribute writer method with validation
|
|
365
|
+
# @param [Object] connect_timeout Value to be assigned
|
|
366
|
+
def connect_timeout=(connect_timeout)
|
|
367
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
|
368
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
|
369
|
+
end
|
|
370
|
+
|
|
371
|
+
@connect_timeout = connect_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
|
-
|
|
379
|
+
sock_read_timeout == o.sock_read_timeout &&
|
|
380
|
+
pulp_href == o.pulp_href &&
|
|
381
|
+
url == o.url &&
|
|
380
382
|
proxy_url == o.proxy_url &&
|
|
381
|
-
prn == o.prn &&
|
|
382
|
-
headers == o.headers &&
|
|
383
|
-
hidden_fields == o.hidden_fields &&
|
|
384
383
|
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
384
|
name == o.name &&
|
|
389
|
-
|
|
385
|
+
download_concurrency == o.download_concurrency &&
|
|
386
|
+
max_retries == o.max_retries &&
|
|
390
387
|
sock_connect_timeout == o.sock_connect_timeout &&
|
|
388
|
+
total_timeout == o.total_timeout &&
|
|
389
|
+
pulp_last_updated == o.pulp_last_updated &&
|
|
391
390
|
client_cert == o.client_cert &&
|
|
392
|
-
|
|
391
|
+
prn == o.prn &&
|
|
392
|
+
connect_timeout == o.connect_timeout &&
|
|
393
|
+
headers == o.headers &&
|
|
393
394
|
rate_limit == o.rate_limit &&
|
|
394
395
|
pulp_created == o.pulp_created &&
|
|
395
|
-
|
|
396
|
-
download_concurrency == o.download_concurrency &&
|
|
397
|
-
pulp_last_updated == o.pulp_last_updated &&
|
|
396
|
+
tls_validation == o.tls_validation &&
|
|
398
397
|
ca_cert == o.ca_cert &&
|
|
398
|
+
hidden_fields == o.hidden_fields &&
|
|
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
|
+
[sock_read_timeout, pulp_href, url, proxy_url, pulp_labels, name, download_concurrency, max_retries, sock_connect_timeout, total_timeout, pulp_last_updated, client_cert, prn, connect_timeout, headers, rate_limit, pulp_created, tls_validation, ca_cert, hidden_fields, metadata_only, git_ref].hash
|
|
413
413
|
end
|
|
414
414
|
|
|
415
415
|
# Builds the object from hash
|
|
@@ -19,7 +19,7 @@ module PulpAnsibleClient
|
|
|
19
19
|
# A remote to sync from. This will override a remote set on repository.
|
|
20
20
|
attr_accessor :remote
|
|
21
21
|
|
|
22
|
-
# If
|
|
22
|
+
# If `True`, synchronization will remove all content that is not present in the remote repository. If `False`, sync will be additive only.
|
|
23
23
|
attr_accessor :mirror
|
|
24
24
|
|
|
25
25
|
# Whether to optimize sync or not.
|
|
@@ -16,18 +16,18 @@ 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
|
-
|
|
22
19
|
# A URI of a repository the new content unit should be associated with.
|
|
23
20
|
attr_accessor :repository
|
|
24
21
|
|
|
25
|
-
#
|
|
26
|
-
attr_accessor :
|
|
22
|
+
# Artifact file representing the physical content
|
|
23
|
+
attr_accessor :artifact
|
|
27
24
|
|
|
28
25
|
# 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
26
|
attr_accessor :overwrite
|
|
30
27
|
|
|
28
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
|
29
|
+
attr_accessor :pulp_labels
|
|
30
|
+
|
|
31
31
|
attr_accessor :version
|
|
32
32
|
|
|
33
33
|
attr_accessor :name
|
|
@@ -37,10 +37,10 @@ module PulpAnsibleClient
|
|
|
37
37
|
# Attribute mapping from ruby-style variable name to JSON key.
|
|
38
38
|
def self.attribute_map
|
|
39
39
|
{
|
|
40
|
-
:'artifact' => :'artifact',
|
|
41
40
|
:'repository' => :'repository',
|
|
42
|
-
:'
|
|
41
|
+
:'artifact' => :'artifact',
|
|
43
42
|
:'overwrite' => :'overwrite',
|
|
43
|
+
:'pulp_labels' => :'pulp_labels',
|
|
44
44
|
:'version' => :'version',
|
|
45
45
|
:'name' => :'name',
|
|
46
46
|
:'namespace' => :'namespace'
|
|
@@ -55,10 +55,10 @@ module PulpAnsibleClient
|
|
|
55
55
|
# Attribute type mapping.
|
|
56
56
|
def self.openapi_types
|
|
57
57
|
{
|
|
58
|
-
:'artifact' => :'String',
|
|
59
58
|
:'repository' => :'String',
|
|
60
|
-
:'
|
|
59
|
+
:'artifact' => :'String',
|
|
61
60
|
:'overwrite' => :'Boolean',
|
|
61
|
+
:'pulp_labels' => :'Hash<String, String>',
|
|
62
62
|
:'version' => :'String',
|
|
63
63
|
:'name' => :'String',
|
|
64
64
|
:'namespace' => :'String'
|
|
@@ -86,14 +86,18 @@ module PulpAnsibleClient
|
|
|
86
86
|
h[k.to_sym] = v
|
|
87
87
|
}
|
|
88
88
|
|
|
89
|
+
if attributes.key?(:'repository')
|
|
90
|
+
self.repository = attributes[:'repository']
|
|
91
|
+
end
|
|
92
|
+
|
|
89
93
|
if attributes.key?(:'artifact')
|
|
90
94
|
self.artifact = attributes[:'artifact']
|
|
91
95
|
else
|
|
92
96
|
self.artifact = nil
|
|
93
97
|
end
|
|
94
98
|
|
|
95
|
-
if attributes.key?(:'
|
|
96
|
-
self.
|
|
99
|
+
if attributes.key?(:'overwrite')
|
|
100
|
+
self.overwrite = attributes[:'overwrite']
|
|
97
101
|
end
|
|
98
102
|
|
|
99
103
|
if attributes.key?(:'pulp_labels')
|
|
@@ -102,10 +106,6 @@ module PulpAnsibleClient
|
|
|
102
106
|
end
|
|
103
107
|
end
|
|
104
108
|
|
|
105
|
-
if attributes.key?(:'overwrite')
|
|
106
|
-
self.overwrite = attributes[:'overwrite']
|
|
107
|
-
end
|
|
108
|
-
|
|
109
109
|
if attributes.key?(:'version')
|
|
110
110
|
self.version = attributes[:'version']
|
|
111
111
|
else
|
|
@@ -222,10 +222,10 @@ module PulpAnsibleClient
|
|
|
222
222
|
def ==(o)
|
|
223
223
|
return true if self.equal?(o)
|
|
224
224
|
self.class == o.class &&
|
|
225
|
-
artifact == o.artifact &&
|
|
226
225
|
repository == o.repository &&
|
|
227
|
-
|
|
226
|
+
artifact == o.artifact &&
|
|
228
227
|
overwrite == o.overwrite &&
|
|
228
|
+
pulp_labels == o.pulp_labels &&
|
|
229
229
|
version == o.version &&
|
|
230
230
|
name == o.name &&
|
|
231
231
|
namespace == o.namespace
|
|
@@ -240,7 +240,7 @@ module PulpAnsibleClient
|
|
|
240
240
|
# Calculates hash code according to all attributes.
|
|
241
241
|
# @return [Integer] Hash code
|
|
242
242
|
def hash
|
|
243
|
-
[artifact,
|
|
243
|
+
[repository, artifact, overwrite, pulp_labels, version, name, namespace].hash
|
|
244
244
|
end
|
|
245
245
|
|
|
246
246
|
# Builds the object from hash
|