pulp_ansible_client 0.24.1 → 0.24.3
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 +16 -4
- data/docs/AnsibleAnsibleCollectionDeprecated.md +2 -0
- data/docs/AnsibleAnsibleCollectionDeprecatedResponse.md +2 -0
- data/docs/AnsibleCollectionVersionResponse.md +6 -4
- data/docs/AnsibleCollectionVersionSignatureResponse.md +2 -0
- data/docs/AnsibleGitRemote.md +30 -30
- data/docs/AnsibleGitRemoteResponse.md +28 -28
- data/docs/AnsibleRole.md +2 -0
- data/docs/AnsibleRoleResponse.md +6 -4
- data/docs/ContentCollectionDeprecationsApi.md +148 -0
- data/docs/ContentCollectionMarksApi.md +150 -2
- data/docs/ContentCollectionSignaturesApi.md +152 -2
- data/docs/ContentCollectionVersionsApi.md +156 -6
- data/docs/ContentNamespacesApi.md +150 -2
- data/docs/ContentRolesApi.md +150 -2
- data/docs/DistributionsAnsibleApi.md +4 -2
- data/docs/PatchedansibleGitRemote.md +30 -30
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +4 -2
- data/docs/PulpAnsibleApiV3NamespacesApi.md +2 -2
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +4 -2
- data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +2 -2
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +4 -2
- data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +2 -2
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +4 -2
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +2 -2
- data/docs/RemotesGitApi.md +2 -2
- data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +151 -0
- data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +154 -3
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +157 -3
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +163 -9
- data/lib/pulp_ansible_client/api/content_namespaces_api.rb +154 -3
- data/lib/pulp_ansible_client/api/content_roles_api.rb +154 -3
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +6 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +6 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +6 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +6 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +6 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated.rb +13 -1
- data/lib/pulp_ansible_client/models/ansible_ansible_collection_deprecated_response.rb +13 -1
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +33 -21
- data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +13 -1
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +248 -248
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +165 -165
- data/lib/pulp_ansible_client/models/ansible_role.rb +13 -1
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +29 -17
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +239 -239
- data/lib/pulp_ansible_client/models/unset_label.rb +1 -1
- data/lib/pulp_ansible_client/models/unset_label_response.rb +1 -1
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/spec/api/content_collection_deprecations_api_spec.rb +27 -0
- data/spec/api/content_collection_marks_api_spec.rb +28 -1
- data/spec/api/content_collection_signatures_api_spec.rb +29 -1
- data/spec/api/content_collection_versions_api_spec.rb +31 -3
- data/spec/api/content_namespaces_api_spec.rb +28 -1
- data/spec/api/content_roles_api_spec.rb +28 -1
- data/spec/api/distributions_ansible_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +2 -1
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +1 -1
- data/spec/models/ansible_ansible_collection_deprecated_response_spec.rb +6 -0
- data/spec/models/ansible_ansible_collection_deprecated_spec.rb +6 -0
- data/spec/models/ansible_collection_version_response_spec.rb +10 -4
- data/spec/models/ansible_collection_version_signature_response_spec.rb +6 -0
- 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 +9 -3
- data/spec/models/ansible_role_spec.rb +6 -0
- data/spec/models/patchedansible_git_remote_spec.rb +20 -20
- metadata +123 -123
@@ -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 :
|
19
|
+
# Limits requests per second for each concurrent downloader
|
20
|
+
attr_accessor :rate_limit
|
21
21
|
|
22
|
-
#
|
23
|
-
attr_accessor :
|
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.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
26
|
+
attr_accessor :total_timeout
|
27
|
+
|
28
|
+
# Headers for aiohttp.Clientsession
|
29
|
+
attr_accessor :headers
|
30
|
+
|
31
|
+
# If True, TLS peer validation must be performed.
|
32
|
+
attr_accessor :tls_validation
|
24
33
|
|
25
34
|
attr_accessor :pulp_labels
|
26
35
|
|
27
36
|
# 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.
|
28
37
|
attr_accessor :sock_connect_timeout
|
29
38
|
|
30
|
-
#
|
31
|
-
attr_accessor :
|
32
|
-
|
33
|
-
# If True, TLS peer validation must be performed.
|
34
|
-
attr_accessor :tls_validation
|
39
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
40
|
+
attr_accessor :ca_cert
|
35
41
|
|
36
|
-
#
|
37
|
-
attr_accessor :
|
42
|
+
# The URL of an external content source.
|
43
|
+
attr_accessor :url
|
38
44
|
|
39
|
-
# aiohttp.ClientTimeout.
|
40
|
-
attr_accessor :
|
45
|
+
# 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.
|
46
|
+
attr_accessor :sock_read_timeout
|
41
47
|
|
42
|
-
#
|
43
|
-
attr_accessor :
|
48
|
+
# The proxy URL. Format: scheme://host:port
|
49
|
+
attr_accessor :proxy_url
|
44
50
|
|
45
51
|
# The Pulp Resource Name (PRN).
|
46
52
|
attr_accessor :prn
|
47
53
|
|
48
|
-
# Timestamp of the most recent update of the remote.
|
49
|
-
attr_accessor :pulp_last_updated
|
50
|
-
|
51
54
|
# A PEM encoded client certificate used for authentication.
|
52
55
|
attr_accessor :client_cert
|
53
56
|
|
54
|
-
#
|
55
|
-
attr_accessor :
|
56
|
-
|
57
|
-
# 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.
|
58
|
-
attr_accessor :sock_read_timeout
|
59
|
-
|
60
|
-
# The URL of an external content source.
|
61
|
-
attr_accessor :url
|
57
|
+
# List of hidden (write only) fields
|
58
|
+
attr_accessor :hidden_fields
|
62
59
|
|
63
|
-
#
|
64
|
-
attr_accessor :
|
60
|
+
# Timestamp of the most recent update of the remote.
|
61
|
+
attr_accessor :pulp_last_updated
|
65
62
|
|
66
|
-
#
|
67
|
-
attr_accessor :
|
63
|
+
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
64
|
+
attr_accessor :max_retries
|
68
65
|
|
69
66
|
# Timestamp of creation.
|
70
67
|
attr_accessor :pulp_created
|
71
68
|
|
72
69
|
attr_accessor :pulp_href
|
73
70
|
|
74
|
-
#
|
75
|
-
attr_accessor :
|
71
|
+
# A unique name for this remote.
|
72
|
+
attr_accessor :name
|
73
|
+
|
74
|
+
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
75
|
+
attr_accessor :connect_timeout
|
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
|
-
:'
|
86
|
+
:'rate_limit' => :'rate_limit',
|
87
|
+
:'download_concurrency' => :'download_concurrency',
|
88
|
+
:'total_timeout' => :'total_timeout',
|
89
|
+
:'headers' => :'headers',
|
90
|
+
:'tls_validation' => :'tls_validation',
|
88
91
|
:'pulp_labels' => :'pulp_labels',
|
89
92
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
90
|
-
:'connect_timeout' => :'connect_timeout',
|
91
|
-
:'tls_validation' => :'tls_validation',
|
92
|
-
:'headers' => :'headers',
|
93
|
-
:'total_timeout' => :'total_timeout',
|
94
|
-
:'hidden_fields' => :'hidden_fields',
|
95
|
-
:'prn' => :'prn',
|
96
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
97
|
-
:'client_cert' => :'client_cert',
|
98
|
-
:'download_concurrency' => :'download_concurrency',
|
99
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
100
|
-
:'url' => :'url',
|
101
93
|
:'ca_cert' => :'ca_cert',
|
94
|
+
:'url' => :'url',
|
95
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
102
96
|
:'proxy_url' => :'proxy_url',
|
97
|
+
:'prn' => :'prn',
|
98
|
+
:'client_cert' => :'client_cert',
|
99
|
+
:'hidden_fields' => :'hidden_fields',
|
100
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
101
|
+
:'max_retries' => :'max_retries',
|
103
102
|
:'pulp_created' => :'pulp_created',
|
104
103
|
:'pulp_href' => :'pulp_href',
|
105
|
-
:'
|
104
|
+
:'name' => :'name',
|
105
|
+
:'connect_timeout' => :'connect_timeout',
|
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
|
-
:'
|
119
|
+
:'rate_limit' => :'Integer',
|
120
|
+
:'download_concurrency' => :'Integer',
|
121
|
+
:'total_timeout' => :'Float',
|
122
|
+
:'headers' => :'Array<Object>',
|
123
|
+
:'tls_validation' => :'Boolean',
|
121
124
|
:'pulp_labels' => :'Hash<String, String>',
|
122
125
|
:'sock_connect_timeout' => :'Float',
|
123
|
-
:'connect_timeout' => :'Float',
|
124
|
-
:'tls_validation' => :'Boolean',
|
125
|
-
:'headers' => :'Array<Object>',
|
126
|
-
:'total_timeout' => :'Float',
|
127
|
-
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
128
|
-
:'prn' => :'String',
|
129
|
-
:'pulp_last_updated' => :'Time',
|
130
|
-
:'client_cert' => :'String',
|
131
|
-
:'download_concurrency' => :'Integer',
|
132
|
-
:'sock_read_timeout' => :'Float',
|
133
|
-
:'url' => :'String',
|
134
126
|
:'ca_cert' => :'String',
|
127
|
+
:'url' => :'String',
|
128
|
+
:'sock_read_timeout' => :'Float',
|
135
129
|
:'proxy_url' => :'String',
|
130
|
+
:'prn' => :'String',
|
131
|
+
:'client_cert' => :'String',
|
132
|
+
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
133
|
+
:'pulp_last_updated' => :'Time',
|
134
|
+
:'max_retries' => :'Integer',
|
136
135
|
:'pulp_created' => :'Time',
|
137
136
|
:'pulp_href' => :'String',
|
138
|
-
:'
|
137
|
+
:'name' => :'String',
|
138
|
+
:'connect_timeout' => :'Float',
|
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
|
-
:'
|
148
|
-
:'sock_connect_timeout',
|
149
|
-
:'connect_timeout',
|
150
|
-
:'total_timeout',
|
151
|
-
:'client_cert',
|
147
|
+
:'rate_limit',
|
152
148
|
:'download_concurrency',
|
153
|
-
:'
|
149
|
+
:'total_timeout',
|
150
|
+
:'sock_connect_timeout',
|
154
151
|
:'ca_cert',
|
152
|
+
:'sock_read_timeout',
|
155
153
|
:'proxy_url',
|
156
|
-
:'
|
154
|
+
:'client_cert',
|
155
|
+
:'max_retries',
|
156
|
+
:'connect_timeout',
|
157
157
|
])
|
158
158
|
end
|
159
159
|
|
@@ -172,14 +172,26 @@ module PulpAnsibleClient
|
|
172
172
|
h[k.to_sym] = v
|
173
173
|
}
|
174
174
|
|
175
|
-
if attributes.key?(:'
|
176
|
-
self.
|
175
|
+
if attributes.key?(:'rate_limit')
|
176
|
+
self.rate_limit = attributes[:'rate_limit']
|
177
177
|
end
|
178
178
|
|
179
|
-
if attributes.key?(:'
|
180
|
-
self.
|
181
|
-
|
182
|
-
|
179
|
+
if attributes.key?(:'download_concurrency')
|
180
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
181
|
+
end
|
182
|
+
|
183
|
+
if attributes.key?(:'total_timeout')
|
184
|
+
self.total_timeout = attributes[:'total_timeout']
|
185
|
+
end
|
186
|
+
|
187
|
+
if attributes.key?(:'headers')
|
188
|
+
if (value = attributes[:'headers']).is_a?(Array)
|
189
|
+
self.headers = value
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
if attributes.key?(:'tls_validation')
|
194
|
+
self.tls_validation = attributes[:'tls_validation']
|
183
195
|
end
|
184
196
|
|
185
197
|
if attributes.key?(:'pulp_labels')
|
@@ -192,62 +204,44 @@ module PulpAnsibleClient
|
|
192
204
|
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
193
205
|
end
|
194
206
|
|
195
|
-
if attributes.key?(:'
|
196
|
-
self.
|
197
|
-
end
|
198
|
-
|
199
|
-
if attributes.key?(:'tls_validation')
|
200
|
-
self.tls_validation = attributes[:'tls_validation']
|
207
|
+
if attributes.key?(:'ca_cert')
|
208
|
+
self.ca_cert = attributes[:'ca_cert']
|
201
209
|
end
|
202
210
|
|
203
|
-
if attributes.key?(:'
|
204
|
-
|
205
|
-
|
206
|
-
|
211
|
+
if attributes.key?(:'url')
|
212
|
+
self.url = attributes[:'url']
|
213
|
+
else
|
214
|
+
self.url = nil
|
207
215
|
end
|
208
216
|
|
209
|
-
if attributes.key?(:'
|
210
|
-
self.
|
217
|
+
if attributes.key?(:'sock_read_timeout')
|
218
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
211
219
|
end
|
212
220
|
|
213
|
-
if attributes.key?(:'
|
214
|
-
|
215
|
-
self.hidden_fields = value
|
216
|
-
end
|
221
|
+
if attributes.key?(:'proxy_url')
|
222
|
+
self.proxy_url = attributes[:'proxy_url']
|
217
223
|
end
|
218
224
|
|
219
225
|
if attributes.key?(:'prn')
|
220
226
|
self.prn = attributes[:'prn']
|
221
227
|
end
|
222
228
|
|
223
|
-
if attributes.key?(:'pulp_last_updated')
|
224
|
-
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
225
|
-
end
|
226
|
-
|
227
229
|
if attributes.key?(:'client_cert')
|
228
230
|
self.client_cert = attributes[:'client_cert']
|
229
231
|
end
|
230
232
|
|
231
|
-
if attributes.key?(:'
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
if attributes.key?(:'sock_read_timeout')
|
236
|
-
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
237
|
-
end
|
238
|
-
|
239
|
-
if attributes.key?(:'url')
|
240
|
-
self.url = attributes[:'url']
|
241
|
-
else
|
242
|
-
self.url = nil
|
233
|
+
if attributes.key?(:'hidden_fields')
|
234
|
+
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
235
|
+
self.hidden_fields = value
|
236
|
+
end
|
243
237
|
end
|
244
238
|
|
245
|
-
if attributes.key?(:'
|
246
|
-
self.
|
239
|
+
if attributes.key?(:'pulp_last_updated')
|
240
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
247
241
|
end
|
248
242
|
|
249
|
-
if attributes.key?(:'
|
250
|
-
self.
|
243
|
+
if attributes.key?(:'max_retries')
|
244
|
+
self.max_retries = attributes[:'max_retries']
|
251
245
|
end
|
252
246
|
|
253
247
|
if attributes.key?(:'pulp_created')
|
@@ -258,8 +252,14 @@ module PulpAnsibleClient
|
|
258
252
|
self.pulp_href = attributes[:'pulp_href']
|
259
253
|
end
|
260
254
|
|
261
|
-
if attributes.key?(:'
|
262
|
-
self.
|
255
|
+
if attributes.key?(:'name')
|
256
|
+
self.name = attributes[:'name']
|
257
|
+
else
|
258
|
+
self.name = nil
|
259
|
+
end
|
260
|
+
|
261
|
+
if attributes.key?(:'connect_timeout')
|
262
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
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 !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
284
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
285
|
-
end
|
286
|
-
|
287
|
-
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
288
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
279
|
+
if !@download_concurrency.nil? && @download_concurrency < 1
|
280
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
289
281
|
end
|
290
282
|
|
291
283
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
292
284
|
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
293
285
|
end
|
294
286
|
|
295
|
-
if !@
|
296
|
-
invalid_properties.push('invalid value for "
|
287
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
288
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
289
|
+
end
|
290
|
+
|
291
|
+
if @url.nil?
|
292
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
297
293
|
end
|
298
294
|
|
299
295
|
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
300
296
|
invalid_properties.push('invalid value for "sock_read_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 @name.nil?
|
300
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
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,34 +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 @name.nil?
|
315
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
316
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
317
|
-
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
318
314
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
319
|
-
return false if !@
|
315
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
316
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
320
317
|
return false if @url.nil?
|
318
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
319
|
+
return false if @name.nil?
|
320
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
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 "
|
329
|
-
end
|
330
|
-
|
331
|
-
@sock_connect_timeout = sock_connect_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.'
|
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.'
|
339
329
|
end
|
340
330
|
|
341
|
-
@
|
331
|
+
@download_concurrency = download_concurrency
|
342
332
|
end
|
343
333
|
|
344
334
|
# Custom attribute writer method with validation
|
@@ -352,13 +342,13 @@ module PulpAnsibleClient
|
|
352
342
|
end
|
353
343
|
|
354
344
|
# Custom attribute writer method with validation
|
355
|
-
# @param [Object]
|
356
|
-
def
|
357
|
-
if !
|
358
|
-
fail ArgumentError, 'invalid value for "
|
345
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
346
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
347
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
348
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
359
349
|
end
|
360
350
|
|
361
|
-
@
|
351
|
+
@sock_connect_timeout = sock_connect_timeout
|
362
352
|
end
|
363
353
|
|
364
354
|
# Custom attribute writer method with validation
|
@@ -371,31 +361,41 @@ module PulpAnsibleClient
|
|
371
361
|
@sock_read_timeout = sock_read_timeout
|
372
362
|
end
|
373
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
|
+
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
|
-
|
379
|
+
rate_limit == o.rate_limit &&
|
380
|
+
download_concurrency == o.download_concurrency &&
|
381
|
+
total_timeout == o.total_timeout &&
|
382
|
+
headers == o.headers &&
|
383
|
+
tls_validation == o.tls_validation &&
|
381
384
|
pulp_labels == o.pulp_labels &&
|
382
385
|
sock_connect_timeout == o.sock_connect_timeout &&
|
383
|
-
connect_timeout == o.connect_timeout &&
|
384
|
-
tls_validation == o.tls_validation &&
|
385
|
-
headers == o.headers &&
|
386
|
-
total_timeout == o.total_timeout &&
|
387
|
-
hidden_fields == o.hidden_fields &&
|
388
|
-
prn == o.prn &&
|
389
|
-
pulp_last_updated == o.pulp_last_updated &&
|
390
|
-
client_cert == o.client_cert &&
|
391
|
-
download_concurrency == o.download_concurrency &&
|
392
|
-
sock_read_timeout == o.sock_read_timeout &&
|
393
|
-
url == o.url &&
|
394
386
|
ca_cert == o.ca_cert &&
|
387
|
+
url == o.url &&
|
388
|
+
sock_read_timeout == o.sock_read_timeout &&
|
395
389
|
proxy_url == o.proxy_url &&
|
390
|
+
prn == o.prn &&
|
391
|
+
client_cert == o.client_cert &&
|
392
|
+
hidden_fields == o.hidden_fields &&
|
393
|
+
pulp_last_updated == o.pulp_last_updated &&
|
394
|
+
max_retries == o.max_retries &&
|
396
395
|
pulp_created == o.pulp_created &&
|
397
396
|
pulp_href == o.pulp_href &&
|
398
|
-
|
397
|
+
name == o.name &&
|
398
|
+
connect_timeout == o.connect_timeout &&
|
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
|
+
[rate_limit, download_concurrency, total_timeout, headers, tls_validation, pulp_labels, sock_connect_timeout, ca_cert, url, sock_read_timeout, proxy_url, prn, client_cert, hidden_fields, pulp_last_updated, max_retries, pulp_created, pulp_href, name, connect_timeout, metadata_only, git_ref].hash
|
413
413
|
end
|
414
414
|
|
415
415
|
# Builds the object from hash
|
@@ -19,6 +19,9 @@ module PulpAnsibleClient
|
|
19
19
|
# A URI of a repository the new content unit should be associated with.
|
20
20
|
attr_accessor :repository
|
21
21
|
|
22
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
23
|
+
attr_accessor :pulp_labels
|
24
|
+
|
22
25
|
# Artifact file representing the physical content
|
23
26
|
attr_accessor :artifact
|
24
27
|
|
@@ -32,6 +35,7 @@ module PulpAnsibleClient
|
|
32
35
|
def self.attribute_map
|
33
36
|
{
|
34
37
|
:'repository' => :'repository',
|
38
|
+
:'pulp_labels' => :'pulp_labels',
|
35
39
|
:'artifact' => :'artifact',
|
36
40
|
:'version' => :'version',
|
37
41
|
:'name' => :'name',
|
@@ -48,6 +52,7 @@ module PulpAnsibleClient
|
|
48
52
|
def self.openapi_types
|
49
53
|
{
|
50
54
|
:'repository' => :'String',
|
55
|
+
:'pulp_labels' => :'Hash<String, String>',
|
51
56
|
:'artifact' => :'String',
|
52
57
|
:'version' => :'String',
|
53
58
|
:'name' => :'String',
|
@@ -80,6 +85,12 @@ module PulpAnsibleClient
|
|
80
85
|
self.repository = attributes[:'repository']
|
81
86
|
end
|
82
87
|
|
88
|
+
if attributes.key?(:'pulp_labels')
|
89
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
90
|
+
self.pulp_labels = value
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
83
94
|
if attributes.key?(:'artifact')
|
84
95
|
self.artifact = attributes[:'artifact']
|
85
96
|
else
|
@@ -203,6 +214,7 @@ module PulpAnsibleClient
|
|
203
214
|
return true if self.equal?(o)
|
204
215
|
self.class == o.class &&
|
205
216
|
repository == o.repository &&
|
217
|
+
pulp_labels == o.pulp_labels &&
|
206
218
|
artifact == o.artifact &&
|
207
219
|
version == o.version &&
|
208
220
|
name == o.name &&
|
@@ -218,7 +230,7 @@ module PulpAnsibleClient
|
|
218
230
|
# Calculates hash code according to all attributes.
|
219
231
|
# @return [Integer] Hash code
|
220
232
|
def hash
|
221
|
-
[repository, artifact, version, name, namespace].hash
|
233
|
+
[repository, pulp_labels, artifact, version, name, namespace].hash
|
222
234
|
end
|
223
235
|
|
224
236
|
# Builds the object from hash
|