pulp_ansible_client 0.24.0 → 0.24.2
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 +14 -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 +30 -30
- 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 +4 -2
- data/docs/ContentRolesApi.md +150 -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 +6 -3
- data/lib/pulp_ansible_client/api/content_roles_api.rb +154 -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 +26 -14
- data/lib/pulp_ansible_client/models/ansible_collection_version_signature_response.rb +13 -1
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +251 -251
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +160 -160
- data/lib/pulp_ansible_client/models/ansible_role.rb +13 -1
- data/lib/pulp_ansible_client/models/ansible_role_response.rb +26 -14
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +241 -241
- 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 +2 -1
- data/spec/api/content_roles_api_spec.rb +28 -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 +8 -2
- 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 +8 -2
- 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
|
-
|
19
|
+
# 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.
|
20
|
+
attr_accessor :sock_connect_timeout
|
20
21
|
|
21
|
-
# A
|
22
|
-
attr_accessor :
|
22
|
+
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
23
|
+
attr_accessor :ca_cert
|
23
24
|
|
24
|
-
#
|
25
|
-
attr_accessor :
|
25
|
+
# List of hidden (write only) fields
|
26
|
+
attr_accessor :hidden_fields
|
26
27
|
|
27
|
-
#
|
28
|
-
attr_accessor :
|
28
|
+
# Limits requests per second for each concurrent downloader
|
29
|
+
attr_accessor :rate_limit
|
30
|
+
|
31
|
+
# The URL of an external content source.
|
32
|
+
attr_accessor :url
|
33
|
+
|
34
|
+
# Timestamp of creation.
|
35
|
+
attr_accessor :pulp_created
|
29
36
|
|
30
37
|
# aiohttp.ClientTimeout.connect (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
31
38
|
attr_accessor :connect_timeout
|
32
39
|
|
33
|
-
#
|
34
|
-
attr_accessor :
|
35
|
-
|
36
|
-
# The URL of an external content source.
|
37
|
-
attr_accessor :url
|
40
|
+
# Headers for aiohttp.Clientsession
|
41
|
+
attr_accessor :headers
|
38
42
|
|
39
|
-
#
|
40
|
-
attr_accessor :
|
43
|
+
# If True, TLS peer validation must be performed.
|
44
|
+
attr_accessor :tls_validation
|
41
45
|
|
42
46
|
# Timestamp of the most recent update of the remote.
|
43
47
|
attr_accessor :pulp_last_updated
|
44
48
|
|
45
|
-
#
|
46
|
-
attr_accessor :
|
49
|
+
# The proxy URL. Format: scheme://host:port
|
50
|
+
attr_accessor :proxy_url
|
51
|
+
|
52
|
+
attr_accessor :pulp_href
|
47
53
|
|
48
54
|
# A PEM encoded client certificate used for authentication.
|
49
55
|
attr_accessor :client_cert
|
50
56
|
|
51
|
-
# The
|
52
|
-
attr_accessor :
|
53
|
-
|
54
|
-
# A PEM encoded CA certificate used to validate the server certificate presented by the remote server.
|
55
|
-
attr_accessor :ca_cert
|
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
|
56
59
|
|
57
|
-
#
|
58
|
-
attr_accessor :
|
60
|
+
# Total number of simultaneous connections. If not set then the default value will be used.
|
61
|
+
attr_accessor :download_concurrency
|
59
62
|
|
60
|
-
#
|
61
|
-
attr_accessor :
|
63
|
+
# The Pulp Resource Name (PRN).
|
64
|
+
attr_accessor :prn
|
62
65
|
|
63
66
|
# Maximum number of retry attempts after a download failure. If not set then the default value (3) will be used.
|
64
67
|
attr_accessor :max_retries
|
65
68
|
|
66
|
-
#
|
67
|
-
attr_accessor :
|
68
|
-
|
69
|
-
# If True, TLS peer validation must be performed.
|
70
|
-
attr_accessor :tls_validation
|
69
|
+
# A unique name for this remote.
|
70
|
+
attr_accessor :name
|
71
71
|
|
72
|
-
#
|
73
|
-
attr_accessor :
|
72
|
+
# aiohttp.ClientTimeout.total (q.v.) for download-connections. The default is null, which will cause the default from the aiohttp library to be used.
|
73
|
+
attr_accessor :total_timeout
|
74
74
|
|
75
|
-
attr_accessor :
|
75
|
+
attr_accessor :pulp_labels
|
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
|
-
:'pulp_labels' => :'pulp_labels',
|
87
|
-
:'name' => :'name',
|
88
|
-
:'proxy_url' => :'proxy_url',
|
89
|
-
:'sock_read_timeout' => :'sock_read_timeout',
|
90
|
-
:'connect_timeout' => :'connect_timeout',
|
91
|
-
:'download_concurrency' => :'download_concurrency',
|
92
|
-
:'url' => :'url',
|
93
86
|
:'sock_connect_timeout' => :'sock_connect_timeout',
|
94
|
-
:'pulp_last_updated' => :'pulp_last_updated',
|
95
|
-
:'headers' => :'headers',
|
96
|
-
:'client_cert' => :'client_cert',
|
97
|
-
:'prn' => :'prn',
|
98
87
|
:'ca_cert' => :'ca_cert',
|
99
|
-
:'total_timeout' => :'total_timeout',
|
100
|
-
:'pulp_created' => :'pulp_created',
|
101
|
-
:'max_retries' => :'max_retries',
|
102
88
|
:'hidden_fields' => :'hidden_fields',
|
103
|
-
:'tls_validation' => :'tls_validation',
|
104
89
|
:'rate_limit' => :'rate_limit',
|
90
|
+
:'url' => :'url',
|
91
|
+
:'pulp_created' => :'pulp_created',
|
92
|
+
:'connect_timeout' => :'connect_timeout',
|
93
|
+
:'headers' => :'headers',
|
94
|
+
:'tls_validation' => :'tls_validation',
|
95
|
+
:'pulp_last_updated' => :'pulp_last_updated',
|
96
|
+
:'proxy_url' => :'proxy_url',
|
105
97
|
:'pulp_href' => :'pulp_href',
|
98
|
+
:'client_cert' => :'client_cert',
|
99
|
+
:'sock_read_timeout' => :'sock_read_timeout',
|
100
|
+
:'download_concurrency' => :'download_concurrency',
|
101
|
+
:'prn' => :'prn',
|
102
|
+
:'max_retries' => :'max_retries',
|
103
|
+
:'name' => :'name',
|
104
|
+
:'total_timeout' => :'total_timeout',
|
105
|
+
:'pulp_labels' => :'pulp_labels',
|
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
|
-
:'pulp_labels' => :'Hash<String, String>',
|
120
|
-
:'name' => :'String',
|
121
|
-
:'proxy_url' => :'String',
|
122
|
-
:'sock_read_timeout' => :'Float',
|
123
|
-
:'connect_timeout' => :'Float',
|
124
|
-
:'download_concurrency' => :'Integer',
|
125
|
-
:'url' => :'String',
|
126
119
|
:'sock_connect_timeout' => :'Float',
|
127
|
-
:'pulp_last_updated' => :'Time',
|
128
|
-
:'headers' => :'Array<Object>',
|
129
|
-
:'client_cert' => :'String',
|
130
|
-
:'prn' => :'String',
|
131
120
|
:'ca_cert' => :'String',
|
132
|
-
:'total_timeout' => :'Float',
|
133
|
-
:'pulp_created' => :'Time',
|
134
|
-
:'max_retries' => :'Integer',
|
135
121
|
:'hidden_fields' => :'Array<AnsibleCollectionRemoteResponseHiddenFieldsInner>',
|
136
|
-
:'tls_validation' => :'Boolean',
|
137
122
|
:'rate_limit' => :'Integer',
|
123
|
+
:'url' => :'String',
|
124
|
+
:'pulp_created' => :'Time',
|
125
|
+
:'connect_timeout' => :'Float',
|
126
|
+
:'headers' => :'Array<Object>',
|
127
|
+
:'tls_validation' => :'Boolean',
|
128
|
+
:'pulp_last_updated' => :'Time',
|
129
|
+
:'proxy_url' => :'String',
|
138
130
|
:'pulp_href' => :'String',
|
131
|
+
:'client_cert' => :'String',
|
132
|
+
:'sock_read_timeout' => :'Float',
|
133
|
+
:'download_concurrency' => :'Integer',
|
134
|
+
:'prn' => :'String',
|
135
|
+
:'max_retries' => :'Integer',
|
136
|
+
:'name' => :'String',
|
137
|
+
:'total_timeout' => :'Float',
|
138
|
+
:'pulp_labels' => :'Hash<String, 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
|
+
:'sock_connect_timeout',
|
148
|
+
:'ca_cert',
|
149
|
+
:'rate_limit',
|
150
|
+
:'connect_timeout',
|
147
151
|
:'proxy_url',
|
152
|
+
:'client_cert',
|
148
153
|
:'sock_read_timeout',
|
149
|
-
:'connect_timeout',
|
150
154
|
:'download_concurrency',
|
151
|
-
:'sock_connect_timeout',
|
152
|
-
:'client_cert',
|
153
|
-
:'ca_cert',
|
154
|
-
:'total_timeout',
|
155
155
|
:'max_retries',
|
156
|
-
:'
|
156
|
+
:'total_timeout',
|
157
157
|
])
|
158
158
|
end
|
159
159
|
|
@@ -172,32 +172,22 @@ module PulpAnsibleClient
|
|
172
172
|
h[k.to_sym] = v
|
173
173
|
}
|
174
174
|
|
175
|
-
if attributes.key?(:'
|
176
|
-
|
177
|
-
self.pulp_labels = value
|
178
|
-
end
|
179
|
-
end
|
180
|
-
|
181
|
-
if attributes.key?(:'name')
|
182
|
-
self.name = attributes[:'name']
|
183
|
-
else
|
184
|
-
self.name = nil
|
185
|
-
end
|
186
|
-
|
187
|
-
if attributes.key?(:'proxy_url')
|
188
|
-
self.proxy_url = attributes[:'proxy_url']
|
175
|
+
if attributes.key?(:'sock_connect_timeout')
|
176
|
+
self.sock_connect_timeout = attributes[:'sock_connect_timeout']
|
189
177
|
end
|
190
178
|
|
191
|
-
if attributes.key?(:'
|
192
|
-
self.
|
179
|
+
if attributes.key?(:'ca_cert')
|
180
|
+
self.ca_cert = attributes[:'ca_cert']
|
193
181
|
end
|
194
182
|
|
195
|
-
if attributes.key?(:'
|
196
|
-
|
183
|
+
if attributes.key?(:'hidden_fields')
|
184
|
+
if (value = attributes[:'hidden_fields']).is_a?(Array)
|
185
|
+
self.hidden_fields = value
|
186
|
+
end
|
197
187
|
end
|
198
188
|
|
199
|
-
if attributes.key?(:'
|
200
|
-
self.
|
189
|
+
if attributes.key?(:'rate_limit')
|
190
|
+
self.rate_limit = attributes[:'rate_limit']
|
201
191
|
end
|
202
192
|
|
203
193
|
if attributes.key?(:'url')
|
@@ -206,12 +196,12 @@ module PulpAnsibleClient
|
|
206
196
|
self.url = nil
|
207
197
|
end
|
208
198
|
|
209
|
-
if attributes.key?(:'
|
210
|
-
self.
|
199
|
+
if attributes.key?(:'pulp_created')
|
200
|
+
self.pulp_created = attributes[:'pulp_created']
|
211
201
|
end
|
212
202
|
|
213
|
-
if attributes.key?(:'
|
214
|
-
self.
|
203
|
+
if attributes.key?(:'connect_timeout')
|
204
|
+
self.connect_timeout = attributes[:'connect_timeout']
|
215
205
|
end
|
216
206
|
|
217
207
|
if attributes.key?(:'headers')
|
@@ -220,46 +210,56 @@ module PulpAnsibleClient
|
|
220
210
|
end
|
221
211
|
end
|
222
212
|
|
223
|
-
if attributes.key?(:'
|
224
|
-
self.
|
213
|
+
if attributes.key?(:'tls_validation')
|
214
|
+
self.tls_validation = attributes[:'tls_validation']
|
225
215
|
end
|
226
216
|
|
227
|
-
if attributes.key?(:'
|
228
|
-
self.
|
217
|
+
if attributes.key?(:'pulp_last_updated')
|
218
|
+
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
229
219
|
end
|
230
220
|
|
231
|
-
if attributes.key?(:'
|
232
|
-
self.
|
221
|
+
if attributes.key?(:'proxy_url')
|
222
|
+
self.proxy_url = attributes[:'proxy_url']
|
233
223
|
end
|
234
224
|
|
235
|
-
if attributes.key?(:'
|
236
|
-
self.
|
225
|
+
if attributes.key?(:'pulp_href')
|
226
|
+
self.pulp_href = attributes[:'pulp_href']
|
237
227
|
end
|
238
228
|
|
239
|
-
if attributes.key?(:'
|
240
|
-
self.
|
229
|
+
if attributes.key?(:'client_cert')
|
230
|
+
self.client_cert = attributes[:'client_cert']
|
241
231
|
end
|
242
232
|
|
243
|
-
if attributes.key?(:'
|
244
|
-
self.
|
233
|
+
if attributes.key?(:'sock_read_timeout')
|
234
|
+
self.sock_read_timeout = attributes[:'sock_read_timeout']
|
245
235
|
end
|
246
236
|
|
247
|
-
if attributes.key?(:'
|
248
|
-
|
249
|
-
self.hidden_fields = value
|
250
|
-
end
|
237
|
+
if attributes.key?(:'download_concurrency')
|
238
|
+
self.download_concurrency = attributes[:'download_concurrency']
|
251
239
|
end
|
252
240
|
|
253
|
-
if attributes.key?(:'
|
254
|
-
self.
|
241
|
+
if attributes.key?(:'prn')
|
242
|
+
self.prn = attributes[:'prn']
|
255
243
|
end
|
256
244
|
|
257
|
-
if attributes.key?(:'
|
258
|
-
self.
|
245
|
+
if attributes.key?(:'max_retries')
|
246
|
+
self.max_retries = attributes[:'max_retries']
|
259
247
|
end
|
260
248
|
|
261
|
-
if attributes.key?(:'
|
262
|
-
self.
|
249
|
+
if attributes.key?(:'name')
|
250
|
+
self.name = attributes[:'name']
|
251
|
+
else
|
252
|
+
self.name = nil
|
253
|
+
end
|
254
|
+
|
255
|
+
if attributes.key?(:'total_timeout')
|
256
|
+
self.total_timeout = attributes[:'total_timeout']
|
257
|
+
end
|
258
|
+
|
259
|
+
if attributes.key?(:'pulp_labels')
|
260
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
261
|
+
self.pulp_labels = value
|
262
|
+
end
|
263
263
|
end
|
264
264
|
|
265
265
|
if attributes.key?(:'metadata_only')
|
@@ -276,28 +276,28 @@ 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 !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
280
|
+
invalid_properties.push('invalid value for "sock_connect_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 @url.nil?
|
284
|
+
invalid_properties.push('invalid value for "url", url cannot be nil.')
|
285
285
|
end
|
286
286
|
|
287
287
|
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
288
288
|
invalid_properties.push('invalid value for "connect_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 !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
292
|
+
invalid_properties.push('invalid value for "sock_read_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 !@download_concurrency.nil? && @download_concurrency < 1
|
296
|
+
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
297
297
|
end
|
298
298
|
|
299
|
-
if
|
300
|
-
invalid_properties.push('invalid value for "
|
299
|
+
if @name.nil?
|
300
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
301
301
|
end
|
302
302
|
|
303
303
|
if !@total_timeout.nil? && @total_timeout < 0.0
|
@@ -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
|
314
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
315
|
+
return false if @url.nil?
|
316
316
|
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
317
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
317
318
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
318
|
-
return false if @
|
319
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
319
|
+
return false if @name.nil?
|
320
320
|
return false if !@total_timeout.nil? && @total_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 "
|
325
|
+
# @param [Object] sock_connect_timeout Value to be assigned
|
326
|
+
def sock_connect_timeout=(sock_connect_timeout)
|
327
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
328
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
329
329
|
end
|
330
330
|
|
331
|
-
@
|
331
|
+
@sock_connect_timeout = sock_connect_timeout
|
332
332
|
end
|
333
333
|
|
334
334
|
# Custom attribute writer method with validation
|
@@ -342,23 +342,23 @@ module PulpAnsibleClient
|
|
342
342
|
end
|
343
343
|
|
344
344
|
# Custom attribute writer method with validation
|
345
|
-
# @param [Object]
|
346
|
-
def
|
347
|
-
if !
|
348
|
-
fail ArgumentError, 'invalid value for "
|
345
|
+
# @param [Object] sock_read_timeout Value to be assigned
|
346
|
+
def sock_read_timeout=(sock_read_timeout)
|
347
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
348
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
349
349
|
end
|
350
350
|
|
351
|
-
@
|
351
|
+
@sock_read_timeout = sock_read_timeout
|
352
352
|
end
|
353
353
|
|
354
354
|
# Custom attribute writer method with validation
|
355
|
-
# @param [Object]
|
356
|
-
def
|
357
|
-
if !
|
358
|
-
fail ArgumentError, 'invalid value for "
|
355
|
+
# @param [Object] download_concurrency Value to be assigned
|
356
|
+
def download_concurrency=(download_concurrency)
|
357
|
+
if !download_concurrency.nil? && download_concurrency < 1
|
358
|
+
fail ArgumentError, 'invalid value for "download_concurrency", must be greater than or equal to 1.'
|
359
359
|
end
|
360
360
|
|
361
|
-
@
|
361
|
+
@download_concurrency = download_concurrency
|
362
362
|
end
|
363
363
|
|
364
364
|
# Custom attribute writer method with validation
|
@@ -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
|
-
pulp_labels == o.pulp_labels &&
|
380
|
-
name == o.name &&
|
381
|
-
proxy_url == o.proxy_url &&
|
382
|
-
sock_read_timeout == o.sock_read_timeout &&
|
383
|
-
connect_timeout == o.connect_timeout &&
|
384
|
-
download_concurrency == o.download_concurrency &&
|
385
|
-
url == o.url &&
|
386
379
|
sock_connect_timeout == o.sock_connect_timeout &&
|
387
|
-
pulp_last_updated == o.pulp_last_updated &&
|
388
|
-
headers == o.headers &&
|
389
|
-
client_cert == o.client_cert &&
|
390
|
-
prn == o.prn &&
|
391
380
|
ca_cert == o.ca_cert &&
|
392
|
-
total_timeout == o.total_timeout &&
|
393
|
-
pulp_created == o.pulp_created &&
|
394
|
-
max_retries == o.max_retries &&
|
395
381
|
hidden_fields == o.hidden_fields &&
|
396
|
-
tls_validation == o.tls_validation &&
|
397
382
|
rate_limit == o.rate_limit &&
|
383
|
+
url == o.url &&
|
384
|
+
pulp_created == o.pulp_created &&
|
385
|
+
connect_timeout == o.connect_timeout &&
|
386
|
+
headers == o.headers &&
|
387
|
+
tls_validation == o.tls_validation &&
|
388
|
+
pulp_last_updated == o.pulp_last_updated &&
|
389
|
+
proxy_url == o.proxy_url &&
|
398
390
|
pulp_href == o.pulp_href &&
|
391
|
+
client_cert == o.client_cert &&
|
392
|
+
sock_read_timeout == o.sock_read_timeout &&
|
393
|
+
download_concurrency == o.download_concurrency &&
|
394
|
+
prn == o.prn &&
|
395
|
+
max_retries == o.max_retries &&
|
396
|
+
name == o.name &&
|
397
|
+
total_timeout == o.total_timeout &&
|
398
|
+
pulp_labels == o.pulp_labels &&
|
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_connect_timeout, ca_cert, hidden_fields, rate_limit, url, pulp_created, connect_timeout, headers, tls_validation, pulp_last_updated, proxy_url, pulp_href, client_cert, sock_read_timeout, download_concurrency, prn, max_retries, name, total_timeout, pulp_labels, metadata_only, git_ref].hash
|
413
413
|
end
|
414
414
|
|
415
415
|
# Builds the object from hash
|
@@ -22,6 +22,9 @@ module PulpAnsibleClient
|
|
22
22
|
# Artifact file representing the physical content
|
23
23
|
attr_accessor :artifact
|
24
24
|
|
25
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
26
|
+
attr_accessor :pulp_labels
|
27
|
+
|
25
28
|
attr_accessor :version
|
26
29
|
|
27
30
|
attr_accessor :name
|
@@ -33,6 +36,7 @@ module PulpAnsibleClient
|
|
33
36
|
{
|
34
37
|
:'repository' => :'repository',
|
35
38
|
:'artifact' => :'artifact',
|
39
|
+
:'pulp_labels' => :'pulp_labels',
|
36
40
|
:'version' => :'version',
|
37
41
|
:'name' => :'name',
|
38
42
|
:'namespace' => :'namespace'
|
@@ -49,6 +53,7 @@ module PulpAnsibleClient
|
|
49
53
|
{
|
50
54
|
:'repository' => :'String',
|
51
55
|
:'artifact' => :'String',
|
56
|
+
:'pulp_labels' => :'Hash<String, String>',
|
52
57
|
:'version' => :'String',
|
53
58
|
:'name' => :'String',
|
54
59
|
:'namespace' => :'String'
|
@@ -86,6 +91,12 @@ module PulpAnsibleClient
|
|
86
91
|
self.artifact = nil
|
87
92
|
end
|
88
93
|
|
94
|
+
if attributes.key?(:'pulp_labels')
|
95
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
96
|
+
self.pulp_labels = value
|
97
|
+
end
|
98
|
+
end
|
99
|
+
|
89
100
|
if attributes.key?(:'version')
|
90
101
|
self.version = attributes[:'version']
|
91
102
|
else
|
@@ -204,6 +215,7 @@ module PulpAnsibleClient
|
|
204
215
|
self.class == o.class &&
|
205
216
|
repository == o.repository &&
|
206
217
|
artifact == o.artifact &&
|
218
|
+
pulp_labels == o.pulp_labels &&
|
207
219
|
version == o.version &&
|
208
220
|
name == o.name &&
|
209
221
|
namespace == o.namespace
|
@@ -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, artifact, pulp_labels, version, name, namespace].hash
|
222
234
|
end
|
223
235
|
|
224
236
|
# Builds the object from hash
|
@@ -16,8 +16,7 @@ require 'time'
|
|
16
16
|
module PulpAnsibleClient
|
17
17
|
# A serializer for Role versions.
|
18
18
|
class AnsibleRoleResponse
|
19
|
-
|
20
|
-
attr_accessor :prn
|
19
|
+
attr_accessor :pulp_href
|
21
20
|
|
22
21
|
# Timestamp of creation.
|
23
22
|
attr_accessor :pulp_created
|
@@ -25,10 +24,14 @@ module PulpAnsibleClient
|
|
25
24
|
# Artifact file representing the physical content
|
26
25
|
attr_accessor :artifact
|
27
26
|
|
27
|
+
# The Pulp Resource Name (PRN).
|
28
|
+
attr_accessor :prn
|
29
|
+
|
28
30
|
# Timestamp of the last time this resource was updated. Note: for immutable resources - like content, repository versions, and publication - pulp_created and pulp_last_updated dates will be the same.
|
29
31
|
attr_accessor :pulp_last_updated
|
30
32
|
|
31
|
-
|
33
|
+
# A dictionary of arbitrary key/value pairs used to describe a specific Content instance.
|
34
|
+
attr_accessor :pulp_labels
|
32
35
|
|
33
36
|
attr_accessor :version
|
34
37
|
|
@@ -39,11 +42,12 @@ module PulpAnsibleClient
|
|
39
42
|
# Attribute mapping from ruby-style variable name to JSON key.
|
40
43
|
def self.attribute_map
|
41
44
|
{
|
42
|
-
:'
|
45
|
+
:'pulp_href' => :'pulp_href',
|
43
46
|
:'pulp_created' => :'pulp_created',
|
44
47
|
:'artifact' => :'artifact',
|
48
|
+
:'prn' => :'prn',
|
45
49
|
:'pulp_last_updated' => :'pulp_last_updated',
|
46
|
-
:'
|
50
|
+
:'pulp_labels' => :'pulp_labels',
|
47
51
|
:'version' => :'version',
|
48
52
|
:'name' => :'name',
|
49
53
|
:'namespace' => :'namespace'
|
@@ -58,11 +62,12 @@ module PulpAnsibleClient
|
|
58
62
|
# Attribute type mapping.
|
59
63
|
def self.openapi_types
|
60
64
|
{
|
61
|
-
:'
|
65
|
+
:'pulp_href' => :'String',
|
62
66
|
:'pulp_created' => :'Time',
|
63
67
|
:'artifact' => :'String',
|
68
|
+
:'prn' => :'String',
|
64
69
|
:'pulp_last_updated' => :'Time',
|
65
|
-
:'
|
70
|
+
:'pulp_labels' => :'Hash<String, String>',
|
66
71
|
:'version' => :'String',
|
67
72
|
:'name' => :'String',
|
68
73
|
:'namespace' => :'String'
|
@@ -90,8 +95,8 @@ module PulpAnsibleClient
|
|
90
95
|
h[k.to_sym] = v
|
91
96
|
}
|
92
97
|
|
93
|
-
if attributes.key?(:'
|
94
|
-
self.
|
98
|
+
if attributes.key?(:'pulp_href')
|
99
|
+
self.pulp_href = attributes[:'pulp_href']
|
95
100
|
end
|
96
101
|
|
97
102
|
if attributes.key?(:'pulp_created')
|
@@ -104,12 +109,18 @@ module PulpAnsibleClient
|
|
104
109
|
self.artifact = nil
|
105
110
|
end
|
106
111
|
|
112
|
+
if attributes.key?(:'prn')
|
113
|
+
self.prn = attributes[:'prn']
|
114
|
+
end
|
115
|
+
|
107
116
|
if attributes.key?(:'pulp_last_updated')
|
108
117
|
self.pulp_last_updated = attributes[:'pulp_last_updated']
|
109
118
|
end
|
110
119
|
|
111
|
-
if attributes.key?(:'
|
112
|
-
|
120
|
+
if attributes.key?(:'pulp_labels')
|
121
|
+
if (value = attributes[:'pulp_labels']).is_a?(Hash)
|
122
|
+
self.pulp_labels = value
|
123
|
+
end
|
113
124
|
end
|
114
125
|
|
115
126
|
if attributes.key?(:'version')
|
@@ -171,11 +182,12 @@ module PulpAnsibleClient
|
|
171
182
|
def ==(o)
|
172
183
|
return true if self.equal?(o)
|
173
184
|
self.class == o.class &&
|
174
|
-
|
185
|
+
pulp_href == o.pulp_href &&
|
175
186
|
pulp_created == o.pulp_created &&
|
176
187
|
artifact == o.artifact &&
|
188
|
+
prn == o.prn &&
|
177
189
|
pulp_last_updated == o.pulp_last_updated &&
|
178
|
-
|
190
|
+
pulp_labels == o.pulp_labels &&
|
179
191
|
version == o.version &&
|
180
192
|
name == o.name &&
|
181
193
|
namespace == o.namespace
|
@@ -190,7 +202,7 @@ module PulpAnsibleClient
|
|
190
202
|
# Calculates hash code according to all attributes.
|
191
203
|
# @return [Integer] Hash code
|
192
204
|
def hash
|
193
|
-
[
|
205
|
+
[pulp_href, pulp_created, artifact, prn, pulp_last_updated, pulp_labels, version, name, namespace].hash
|
194
206
|
end
|
195
207
|
|
196
208
|
# Builds the object from hash
|