pulp_ansible_client 0.18.3 → 0.19.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +34 -47
- data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +2 -2
- data/docs/AnsibleCollectionVersion.md +3 -3
- data/docs/AnsibleCollectionVersionResponse.md +3 -3
- data/docs/AnsibleCollectionsApi.md +9 -15
- data/docs/AnsibleCopyApi.md +1 -1
- data/docs/AnsibleGitRemote.md +25 -25
- data/docs/AnsibleGitRemoteResponse.md +23 -23
- data/docs/AnsibleRole.md +3 -3
- data/docs/ApiCollectionsApi.md +1 -1
- data/docs/ApiRolesApi.md +1 -1
- data/docs/CollectionImportApi.md +1 -1
- data/docs/CollectionNamespaceResponse.md +1 -1
- data/docs/CollectionResponse.md +5 -3
- data/docs/CollectionVersionResponse.md +1 -1
- data/docs/CollectionVersionSignatureResponse.md +23 -0
- data/docs/ContentCollectionDeprecationsApi.md +1 -3
- data/docs/ContentCollectionMarksApi.md +2 -4
- data/docs/ContentCollectionSignaturesApi.md +3 -5
- data/docs/ContentCollectionVersionsApi.md +5 -5
- data/docs/ContentNamespacesApi.md +1 -19
- data/docs/ContentRolesApi.md +1 -3
- data/docs/DistributionsAnsibleApi.md +10 -136
- data/docs/GalaxyDetailApi.md +1 -1
- data/docs/{UnsetLabel.md → PatchedCollection.md} +3 -3
- data/docs/PatchedansibleGitRemote.md +25 -25
- data/docs/PulpAnsibleApiApi.md +1 -1
- data/docs/PulpAnsibleApiV2CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3Api.md +1 -1
- data/docs/PulpAnsibleApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +1 -3
- data/docs/PulpAnsibleApiV3CollectionsApi.md +5 -7
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +3 -3
- data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3NamespacesApi.md +1 -19
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -3
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +5 -7
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +3 -3
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +5 -23
- data/docs/{ApiPluginAnsibleSearchCollectionVersionsApi.md → PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md} +17 -18
- data/docs/PulpAnsibleArtifactsCollectionsV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3Api.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3ArtifactsCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionVersionsAllApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +1 -3
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +5 -7
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +3 -3
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +1 -19
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -3
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +5 -7
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +3 -3
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +5 -23
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +3 -4
- data/docs/PulpAnsibleTagsApi.md +1 -1
- data/docs/RemotesCollectionApi.md +9 -135
- data/docs/RemotesGitApi.md +9 -135
- data/docs/RemotesRoleApi.md +9 -135
- data/docs/RepositoriesAnsibleApi.md +10 -136
- data/docs/RepositoriesAnsibleVersionsApi.md +1 -3
- data/docs/UnpaginatedCollectionVersionResponse.md +1 -1
- data/docs/VersionsApi.md +1 -1
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +0 -11
- data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +0 -3
- data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +0 -3
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +0 -3
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/api/content_namespaces_api.rb +0 -27
- data/lib/pulp_ansible_client/api/content_roles_api.rb +0 -3
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +0 -163
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +0 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +9 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +0 -27
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api.rb +0 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +9 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +8 -35
- data/lib/pulp_ansible_client/api/{api_plugin_ansible_search_collection_versions_api.rb → pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb} +24 -26
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_all_api.rb +0 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +9 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +0 -27
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api.rb +0 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +9 -12
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +3 -3
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +8 -35
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +0 -2
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +0 -163
- data/lib/pulp_ansible_client/api/remotes_git_api.rb +0 -163
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +0 -163
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +0 -163
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +0 -3
- data/lib/pulp_ansible_client/configuration.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response_hidden_fields.rb +0 -10
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_collection_version_response.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +217 -217
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +143 -143
- data/lib/pulp_ansible_client/models/ansible_role.rb +11 -11
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +20 -20
- data/lib/pulp_ansible_client/models/collection_namespace_response.rb +1 -0
- data/lib/pulp_ansible_client/models/collection_response.rb +19 -6
- data/lib/pulp_ansible_client/models/collection_version_response.rb +9 -2
- data/lib/pulp_ansible_client/models/{set_label.rb → collection_version_signature_response.rb} +49 -42
- data/lib/pulp_ansible_client/models/{unset_label_response.rb → patched_collection.rb} +11 -46
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +216 -216
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +9 -2
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +3 -5
- data/spec/api/ansible_collections_api_spec.rb +0 -5
- data/spec/api/content_collection_deprecations_api_spec.rb +0 -1
- data/spec/api/content_collection_marks_api_spec.rb +0 -1
- data/spec/api/content_collection_signatures_api_spec.rb +0 -1
- data/spec/api/content_collection_versions_api_spec.rb +2 -2
- data/spec/api/content_namespaces_api_spec.rb +0 -9
- data/spec/api/content_roles_api_spec.rb +0 -1
- data/spec/api/distributions_ansible_api_spec.rb +0 -35
- data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +0 -1
- data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -2
- data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +0 -9
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +0 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -2
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +4 -13
- data/spec/api/{api_plugin_ansible_search_collection_versions_api_spec.rb → pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb} +8 -9
- data/spec/api/pulp_ansible_default_api_v3_collections_all_api_spec.rb +0 -1
- data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -2
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +0 -9
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_all_collections_api_spec.rb +0 -1
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -2
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -1
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +4 -13
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +0 -1
- data/spec/api/remotes_collection_api_spec.rb +0 -35
- data/spec/api/remotes_git_api_spec.rb +0 -35
- data/spec/api/remotes_role_api_spec.rb +0 -35
- data/spec/api/repositories_ansible_api_spec.rb +0 -35
- data/spec/api/repositories_ansible_versions_api_spec.rb +0 -1
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/ansible_collection_version_response_spec.rb +2 -2
- data/spec/models/ansible_collection_version_spec.rb +3 -3
- data/spec/models/ansible_git_remote_response_spec.rb +16 -16
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/ansible_role_spec.rb +2 -2
- data/spec/models/collection_response_spec.rb +6 -0
- data/spec/models/collection_version_signature_response_spec.rb +59 -0
- data/spec/models/{unset_label_spec.rb → patched_collection_spec.rb} +7 -7
- data/spec/models/patchedansible_git_remote_spec.rb +19 -19
- metadata +155 -163
- data/docs/SetLabel.md +0 -19
- data/docs/SetLabelResponse.md +0 -19
- data/docs/UnsetLabelResponse.md +0 -19
- data/lib/pulp_ansible_client/models/set_label_response.rb +0 -243
- data/lib/pulp_ansible_client/models/unset_label.rb +0 -242
- data/spec/models/set_label_response_spec.rb +0 -47
- data/spec/models/set_label_spec.rb +0 -47
- data/spec/models/unset_label_response_spec.rb +0 -47
@@ -259,20 +259,20 @@ module PulpAnsibleClient
|
|
259
259
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
260
260
|
end
|
261
261
|
|
262
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
263
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
262
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
263
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
264
264
|
end
|
265
265
|
|
266
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
267
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
266
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
267
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
268
268
|
end
|
269
269
|
|
270
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
271
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
270
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
271
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
272
272
|
end
|
273
273
|
|
274
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
275
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
274
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
275
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
276
276
|
end
|
277
277
|
|
278
278
|
invalid_properties
|
@@ -284,10 +284,10 @@ module PulpAnsibleClient
|
|
284
284
|
return false if @name.nil?
|
285
285
|
return false if @url.nil?
|
286
286
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
287
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
288
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
289
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
290
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
287
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
288
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
289
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
290
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
291
291
|
true
|
292
292
|
end
|
293
293
|
|
@@ -304,8 +304,8 @@ module PulpAnsibleClient
|
|
304
304
|
# Custom attribute writer method with validation
|
305
305
|
# @param [Object] total_timeout Value to be assigned
|
306
306
|
def total_timeout=(total_timeout)
|
307
|
-
if !total_timeout.nil? && total_timeout < 0
|
308
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
307
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
308
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
309
309
|
end
|
310
310
|
|
311
311
|
@total_timeout = total_timeout
|
@@ -314,8 +314,8 @@ module PulpAnsibleClient
|
|
314
314
|
# Custom attribute writer method with validation
|
315
315
|
# @param [Object] connect_timeout Value to be assigned
|
316
316
|
def connect_timeout=(connect_timeout)
|
317
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
318
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
317
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
318
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
319
319
|
end
|
320
320
|
|
321
321
|
@connect_timeout = connect_timeout
|
@@ -324,8 +324,8 @@ module PulpAnsibleClient
|
|
324
324
|
# Custom attribute writer method with validation
|
325
325
|
# @param [Object] sock_connect_timeout Value to be assigned
|
326
326
|
def sock_connect_timeout=(sock_connect_timeout)
|
327
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
328
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
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
|
@@ -334,8 +334,8 @@ module PulpAnsibleClient
|
|
334
334
|
# Custom attribute writer method with validation
|
335
335
|
# @param [Object] sock_read_timeout Value to be assigned
|
336
336
|
def sock_read_timeout=(sock_read_timeout)
|
337
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
338
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
337
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
338
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
339
339
|
end
|
340
340
|
|
341
341
|
@sock_read_timeout = sock_read_timeout
|
@@ -22,7 +22,6 @@ module PulpAnsibleClient
|
|
22
22
|
|
23
23
|
attr_accessor :name
|
24
24
|
|
25
|
-
# Get deprecated.
|
26
25
|
attr_accessor :deprecated
|
27
26
|
|
28
27
|
# Get a link to a collection versions list.
|
@@ -34,9 +33,11 @@ module PulpAnsibleClient
|
|
34
33
|
# Get the timestamp of the lowest version CollectionVersion's created timestamp.
|
35
34
|
attr_accessor :created_at
|
36
35
|
|
37
|
-
# Get the timestamp of the
|
36
|
+
# Get the timestamp of the latest version CollectionVersion's created timestamp.
|
38
37
|
attr_accessor :updated_at
|
39
38
|
|
39
|
+
attr_accessor :download_count
|
40
|
+
|
40
41
|
# Attribute mapping from ruby-style variable name to JSON key.
|
41
42
|
def self.attribute_map
|
42
43
|
{
|
@@ -47,7 +48,8 @@ module PulpAnsibleClient
|
|
47
48
|
:'versions_url' => :'versions_url',
|
48
49
|
:'highest_version' => :'highest_version',
|
49
50
|
:'created_at' => :'created_at',
|
50
|
-
:'updated_at' => :'updated_at'
|
51
|
+
:'updated_at' => :'updated_at',
|
52
|
+
:'download_count' => :'download_count'
|
51
53
|
}
|
52
54
|
end
|
53
55
|
|
@@ -61,7 +63,8 @@ module PulpAnsibleClient
|
|
61
63
|
:'versions_url' => :'String',
|
62
64
|
:'highest_version' => :'Object',
|
63
65
|
:'created_at' => :'DateTime',
|
64
|
-
:'updated_at' => :'DateTime'
|
66
|
+
:'updated_at' => :'DateTime',
|
67
|
+
:'download_count' => :'String'
|
65
68
|
}
|
66
69
|
end
|
67
70
|
|
@@ -117,18 +120,27 @@ module PulpAnsibleClient
|
|
117
120
|
if attributes.key?(:'updated_at')
|
118
121
|
self.updated_at = attributes[:'updated_at']
|
119
122
|
end
|
123
|
+
|
124
|
+
if attributes.key?(:'download_count')
|
125
|
+
self.download_count = attributes[:'download_count']
|
126
|
+
end
|
120
127
|
end
|
121
128
|
|
122
129
|
# Show invalid properties with the reasons. Usually used together with valid?
|
123
130
|
# @return Array for valid properties with the reasons
|
124
131
|
def list_invalid_properties
|
125
132
|
invalid_properties = Array.new
|
133
|
+
if @deprecated.nil?
|
134
|
+
invalid_properties.push('invalid value for "deprecated", deprecated cannot be nil.')
|
135
|
+
end
|
136
|
+
|
126
137
|
invalid_properties
|
127
138
|
end
|
128
139
|
|
129
140
|
# Check to see if the all the properties in the model are valid
|
130
141
|
# @return true if the model is valid
|
131
142
|
def valid?
|
143
|
+
return false if @deprecated.nil?
|
132
144
|
true
|
133
145
|
end
|
134
146
|
|
@@ -144,7 +156,8 @@ module PulpAnsibleClient
|
|
144
156
|
versions_url == o.versions_url &&
|
145
157
|
highest_version == o.highest_version &&
|
146
158
|
created_at == o.created_at &&
|
147
|
-
updated_at == o.updated_at
|
159
|
+
updated_at == o.updated_at &&
|
160
|
+
download_count == o.download_count
|
148
161
|
end
|
149
162
|
|
150
163
|
# @see the `==` method
|
@@ -156,7 +169,7 @@ module PulpAnsibleClient
|
|
156
169
|
# Calculates hash code according to all attributes.
|
157
170
|
# @return [Integer] Hash code
|
158
171
|
def hash
|
159
|
-
[href, namespace, name, deprecated, versions_url, highest_version, created_at, updated_at].hash
|
172
|
+
[href, namespace, name, deprecated, versions_url, highest_version, created_at, updated_at, download_count].hash
|
160
173
|
end
|
161
174
|
|
162
175
|
# Builds the object from hash
|
@@ -93,7 +93,7 @@ module PulpAnsibleClient
|
|
93
93
|
:'download_url' => :'String',
|
94
94
|
:'name' => :'String',
|
95
95
|
:'namespace' => :'CollectionNamespaceResponse',
|
96
|
-
:'signatures' => :'
|
96
|
+
:'signatures' => :'Array<CollectionVersionSignatureResponse>',
|
97
97
|
:'metadata' => :'CollectionMetadataResponse',
|
98
98
|
:'git_url' => :'String',
|
99
99
|
:'git_commit_sha' => :'String',
|
@@ -171,7 +171,9 @@ module PulpAnsibleClient
|
|
171
171
|
end
|
172
172
|
|
173
173
|
if attributes.key?(:'signatures')
|
174
|
-
|
174
|
+
if (value = attributes[:'signatures']).is_a?(Array)
|
175
|
+
self.signatures = value
|
176
|
+
end
|
175
177
|
end
|
176
178
|
|
177
179
|
if attributes.key?(:'metadata')
|
@@ -211,6 +213,10 @@ module PulpAnsibleClient
|
|
211
213
|
invalid_properties.push('invalid value for "requires_ansible", the character length must be smaller than or equal to 255.')
|
212
214
|
end
|
213
215
|
|
216
|
+
if @signatures.nil?
|
217
|
+
invalid_properties.push('invalid value for "signatures", signatures cannot be nil.')
|
218
|
+
end
|
219
|
+
|
214
220
|
invalid_properties
|
215
221
|
end
|
216
222
|
|
@@ -220,6 +226,7 @@ module PulpAnsibleClient
|
|
220
226
|
return false if @created_at.nil?
|
221
227
|
return false if @updated_at.nil?
|
222
228
|
return false if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
|
229
|
+
return false if @signatures.nil?
|
223
230
|
true
|
224
231
|
end
|
225
232
|
|
data/lib/pulp_ansible_client/models/{set_label.rb → collection_version_signature_response.rb}
RENAMED
@@ -13,32 +13,40 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpAnsibleClient
|
16
|
-
#
|
17
|
-
class
|
18
|
-
attr_accessor :
|
16
|
+
# A serializer for the signatures on a Collection Version.
|
17
|
+
class CollectionVersionSignatureResponse
|
18
|
+
attr_accessor :signature
|
19
19
|
|
20
|
-
attr_accessor :
|
20
|
+
attr_accessor :pubkey_fingerprint
|
21
|
+
|
22
|
+
attr_accessor :signing_service
|
23
|
+
|
24
|
+
attr_accessor :pulp_created
|
21
25
|
|
22
26
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
27
|
def self.attribute_map
|
24
28
|
{
|
25
|
-
:'
|
26
|
-
:'
|
29
|
+
:'signature' => :'signature',
|
30
|
+
:'pubkey_fingerprint' => :'pubkey_fingerprint',
|
31
|
+
:'signing_service' => :'signing_service',
|
32
|
+
:'pulp_created' => :'pulp_created'
|
27
33
|
}
|
28
34
|
end
|
29
35
|
|
30
36
|
# Attribute type mapping.
|
31
37
|
def self.openapi_types
|
32
38
|
{
|
33
|
-
:'
|
34
|
-
:'
|
39
|
+
:'signature' => :'String',
|
40
|
+
:'pubkey_fingerprint' => :'String',
|
41
|
+
:'signing_service' => :'String',
|
42
|
+
:'pulp_created' => :'DateTime'
|
35
43
|
}
|
36
44
|
end
|
37
45
|
|
38
46
|
# List of attributes with nullable: true
|
39
47
|
def self.openapi_nullable
|
40
48
|
Set.new([
|
41
|
-
:'
|
49
|
+
:'signing_service',
|
42
50
|
])
|
43
51
|
end
|
44
52
|
|
@@ -46,23 +54,31 @@ module PulpAnsibleClient
|
|
46
54
|
# @param [Hash] attributes Model attributes in the form of hash
|
47
55
|
def initialize(attributes = {})
|
48
56
|
if (!attributes.is_a?(Hash))
|
49
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::
|
57
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::CollectionVersionSignatureResponse` initialize method"
|
50
58
|
end
|
51
59
|
|
52
60
|
# check to see if the attribute exists and convert string to symbol for hash key
|
53
61
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
54
62
|
if (!self.class.attribute_map.key?(k.to_sym))
|
55
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::
|
63
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::CollectionVersionSignatureResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
56
64
|
end
|
57
65
|
h[k.to_sym] = v
|
58
66
|
}
|
59
67
|
|
60
|
-
if attributes.key?(:'
|
61
|
-
self.
|
68
|
+
if attributes.key?(:'signature')
|
69
|
+
self.signature = attributes[:'signature']
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'pubkey_fingerprint')
|
73
|
+
self.pubkey_fingerprint = attributes[:'pubkey_fingerprint']
|
74
|
+
end
|
75
|
+
|
76
|
+
if attributes.key?(:'signing_service')
|
77
|
+
self.signing_service = attributes[:'signing_service']
|
62
78
|
end
|
63
79
|
|
64
|
-
if attributes.key?(:'
|
65
|
-
self.
|
80
|
+
if attributes.key?(:'pulp_created')
|
81
|
+
self.pulp_created = attributes[:'pulp_created']
|
66
82
|
end
|
67
83
|
end
|
68
84
|
|
@@ -70,17 +86,12 @@ module PulpAnsibleClient
|
|
70
86
|
# @return Array for valid properties with the reasons
|
71
87
|
def list_invalid_properties
|
72
88
|
invalid_properties = Array.new
|
73
|
-
if @
|
74
|
-
invalid_properties.push('invalid value for "
|
75
|
-
end
|
76
|
-
|
77
|
-
if @key.to_s.length < 1
|
78
|
-
invalid_properties.push('invalid value for "key", the character length must be great than or equal to 1.')
|
89
|
+
if @pubkey_fingerprint.nil?
|
90
|
+
invalid_properties.push('invalid value for "pubkey_fingerprint", pubkey_fingerprint cannot be nil.')
|
79
91
|
end
|
80
92
|
|
81
|
-
|
82
|
-
|
83
|
-
invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
|
93
|
+
if @pubkey_fingerprint.to_s.length > 64
|
94
|
+
invalid_properties.push('invalid value for "pubkey_fingerprint", the character length must be smaller than or equal to 64.')
|
84
95
|
end
|
85
96
|
|
86
97
|
invalid_properties
|
@@ -89,29 +100,23 @@ module PulpAnsibleClient
|
|
89
100
|
# Check to see if the all the properties in the model are valid
|
90
101
|
# @return true if the model is valid
|
91
102
|
def valid?
|
92
|
-
return false if @
|
93
|
-
return false if @
|
94
|
-
return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
103
|
+
return false if @pubkey_fingerprint.nil?
|
104
|
+
return false if @pubkey_fingerprint.to_s.length > 64
|
95
105
|
true
|
96
106
|
end
|
97
107
|
|
98
108
|
# Custom attribute writer method with validation
|
99
|
-
# @param [Object]
|
100
|
-
def
|
101
|
-
if
|
102
|
-
fail ArgumentError, '
|
103
|
-
end
|
104
|
-
|
105
|
-
if key.to_s.length < 1
|
106
|
-
fail ArgumentError, 'invalid value for "key", the character length must be great than or equal to 1.'
|
109
|
+
# @param [Object] pubkey_fingerprint Value to be assigned
|
110
|
+
def pubkey_fingerprint=(pubkey_fingerprint)
|
111
|
+
if pubkey_fingerprint.nil?
|
112
|
+
fail ArgumentError, 'pubkey_fingerprint cannot be nil'
|
107
113
|
end
|
108
114
|
|
109
|
-
|
110
|
-
|
111
|
-
fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
|
115
|
+
if pubkey_fingerprint.to_s.length > 64
|
116
|
+
fail ArgumentError, 'invalid value for "pubkey_fingerprint", the character length must be smaller than or equal to 64.'
|
112
117
|
end
|
113
118
|
|
114
|
-
@
|
119
|
+
@pubkey_fingerprint = pubkey_fingerprint
|
115
120
|
end
|
116
121
|
|
117
122
|
# Checks equality by comparing each attribute.
|
@@ -119,8 +124,10 @@ module PulpAnsibleClient
|
|
119
124
|
def ==(o)
|
120
125
|
return true if self.equal?(o)
|
121
126
|
self.class == o.class &&
|
122
|
-
|
123
|
-
|
127
|
+
signature == o.signature &&
|
128
|
+
pubkey_fingerprint == o.pubkey_fingerprint &&
|
129
|
+
signing_service == o.signing_service &&
|
130
|
+
pulp_created == o.pulp_created
|
124
131
|
end
|
125
132
|
|
126
133
|
# @see the `==` method
|
@@ -132,7 +139,7 @@ module PulpAnsibleClient
|
|
132
139
|
# Calculates hash code according to all attributes.
|
133
140
|
# @return [Integer] Hash code
|
134
141
|
def hash
|
135
|
-
[
|
142
|
+
[signature, pubkey_fingerprint, signing_service, pulp_created].hash
|
136
143
|
end
|
137
144
|
|
138
145
|
# Builds the object from hash
|
@@ -13,25 +13,21 @@ OpenAPI Generator version: 4.3.1
|
|
13
13
|
require 'date'
|
14
14
|
|
15
15
|
module PulpAnsibleClient
|
16
|
-
#
|
17
|
-
class
|
18
|
-
attr_accessor :
|
19
|
-
|
20
|
-
attr_accessor :value
|
16
|
+
# A serializer for a Collection.
|
17
|
+
class PatchedCollection
|
18
|
+
attr_accessor :deprecated
|
21
19
|
|
22
20
|
# Attribute mapping from ruby-style variable name to JSON key.
|
23
21
|
def self.attribute_map
|
24
22
|
{
|
25
|
-
:'
|
26
|
-
:'value' => :'value'
|
23
|
+
:'deprecated' => :'deprecated'
|
27
24
|
}
|
28
25
|
end
|
29
26
|
|
30
27
|
# Attribute type mapping.
|
31
28
|
def self.openapi_types
|
32
29
|
{
|
33
|
-
:'
|
34
|
-
:'value' => :'String'
|
30
|
+
:'deprecated' => :'Boolean'
|
35
31
|
}
|
36
32
|
end
|
37
33
|
|
@@ -45,23 +41,19 @@ module PulpAnsibleClient
|
|
45
41
|
# @param [Hash] attributes Model attributes in the form of hash
|
46
42
|
def initialize(attributes = {})
|
47
43
|
if (!attributes.is_a?(Hash))
|
48
|
-
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::
|
44
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::PatchedCollection` initialize method"
|
49
45
|
end
|
50
46
|
|
51
47
|
# check to see if the attribute exists and convert string to symbol for hash key
|
52
48
|
attributes = attributes.each_with_object({}) { |(k, v), h|
|
53
49
|
if (!self.class.attribute_map.key?(k.to_sym))
|
54
|
-
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::
|
50
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::PatchedCollection`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
55
51
|
end
|
56
52
|
h[k.to_sym] = v
|
57
53
|
}
|
58
54
|
|
59
|
-
if attributes.key?(:'
|
60
|
-
self.
|
61
|
-
end
|
62
|
-
|
63
|
-
if attributes.key?(:'value')
|
64
|
-
self.value = attributes[:'value']
|
55
|
+
if attributes.key?(:'deprecated')
|
56
|
+
self.deprecated = attributes[:'deprecated']
|
65
57
|
end
|
66
58
|
end
|
67
59
|
|
@@ -69,48 +61,21 @@ module PulpAnsibleClient
|
|
69
61
|
# @return Array for valid properties with the reasons
|
70
62
|
def list_invalid_properties
|
71
63
|
invalid_properties = Array.new
|
72
|
-
if @key.nil?
|
73
|
-
invalid_properties.push('invalid value for "key", key cannot be nil.')
|
74
|
-
end
|
75
|
-
|
76
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
77
|
-
if @key !~ pattern
|
78
|
-
invalid_properties.push("invalid value for \"key\", must conform to the pattern #{pattern}.")
|
79
|
-
end
|
80
|
-
|
81
64
|
invalid_properties
|
82
65
|
end
|
83
66
|
|
84
67
|
# Check to see if the all the properties in the model are valid
|
85
68
|
# @return true if the model is valid
|
86
69
|
def valid?
|
87
|
-
return false if @key.nil?
|
88
|
-
return false if @key !~ Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
89
70
|
true
|
90
71
|
end
|
91
72
|
|
92
|
-
# Custom attribute writer method with validation
|
93
|
-
# @param [Object] key Value to be assigned
|
94
|
-
def key=(key)
|
95
|
-
if key.nil?
|
96
|
-
fail ArgumentError, 'key cannot be nil'
|
97
|
-
end
|
98
|
-
|
99
|
-
pattern = Regexp.new(/^[-a-zA-Z0-9_]+$/)
|
100
|
-
if key !~ pattern
|
101
|
-
fail ArgumentError, "invalid value for \"key\", must conform to the pattern #{pattern}."
|
102
|
-
end
|
103
|
-
|
104
|
-
@key = key
|
105
|
-
end
|
106
|
-
|
107
73
|
# Checks equality by comparing each attribute.
|
108
74
|
# @param [Object] Object to be compared
|
109
75
|
def ==(o)
|
110
76
|
return true if self.equal?(o)
|
111
77
|
self.class == o.class &&
|
112
|
-
|
113
|
-
value == o.value
|
78
|
+
deprecated == o.deprecated
|
114
79
|
end
|
115
80
|
|
116
81
|
# @see the `==` method
|
@@ -122,7 +87,7 @@ module PulpAnsibleClient
|
|
122
87
|
# Calculates hash code according to all attributes.
|
123
88
|
# @return [Integer] Hash code
|
124
89
|
def hash
|
125
|
-
[
|
90
|
+
[deprecated].hash
|
126
91
|
end
|
127
92
|
|
128
93
|
# Builds the object from hash
|
@@ -356,20 +356,20 @@ module PulpAnsibleClient
|
|
356
356
|
invalid_properties.push('invalid value for "download_concurrency", must be greater than or equal to 1.')
|
357
357
|
end
|
358
358
|
|
359
|
-
if !@total_timeout.nil? && @total_timeout < 0
|
360
|
-
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.')
|
359
|
+
if !@total_timeout.nil? && @total_timeout < 0.0
|
360
|
+
invalid_properties.push('invalid value for "total_timeout", must be greater than or equal to 0.0.')
|
361
361
|
end
|
362
362
|
|
363
|
-
if !@connect_timeout.nil? && @connect_timeout < 0
|
364
|
-
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.')
|
363
|
+
if !@connect_timeout.nil? && @connect_timeout < 0.0
|
364
|
+
invalid_properties.push('invalid value for "connect_timeout", must be greater than or equal to 0.0.')
|
365
365
|
end
|
366
366
|
|
367
|
-
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
368
|
-
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.')
|
367
|
+
if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
368
|
+
invalid_properties.push('invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.')
|
369
369
|
end
|
370
370
|
|
371
|
-
if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
372
|
-
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.')
|
371
|
+
if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
372
|
+
invalid_properties.push('invalid value for "sock_read_timeout", must be greater than or equal to 0.0.')
|
373
373
|
end
|
374
374
|
|
375
375
|
if !@requirements_file.nil? && @requirements_file.to_s.length < 1
|
@@ -409,10 +409,10 @@ module PulpAnsibleClient
|
|
409
409
|
return false if !@username.nil? && @username.to_s.length < 1
|
410
410
|
return false if !@password.nil? && @password.to_s.length < 1
|
411
411
|
return false if !@download_concurrency.nil? && @download_concurrency < 1
|
412
|
-
return false if !@total_timeout.nil? && @total_timeout < 0
|
413
|
-
return false if !@connect_timeout.nil? && @connect_timeout < 0
|
414
|
-
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0
|
415
|
-
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0
|
412
|
+
return false if !@total_timeout.nil? && @total_timeout < 0.0
|
413
|
+
return false if !@connect_timeout.nil? && @connect_timeout < 0.0
|
414
|
+
return false if !@sock_connect_timeout.nil? && @sock_connect_timeout < 0.0
|
415
|
+
return false if !@sock_read_timeout.nil? && @sock_read_timeout < 0.0
|
416
416
|
return false if !@requirements_file.nil? && @requirements_file.to_s.length < 1
|
417
417
|
return false if !@auth_url.nil? && @auth_url.to_s.length > 255
|
418
418
|
return false if !@auth_url.nil? && @auth_url.to_s.length < 1
|
@@ -534,8 +534,8 @@ module PulpAnsibleClient
|
|
534
534
|
# Custom attribute writer method with validation
|
535
535
|
# @param [Object] total_timeout Value to be assigned
|
536
536
|
def total_timeout=(total_timeout)
|
537
|
-
if !total_timeout.nil? && total_timeout < 0
|
538
|
-
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.'
|
537
|
+
if !total_timeout.nil? && total_timeout < 0.0
|
538
|
+
fail ArgumentError, 'invalid value for "total_timeout", must be greater than or equal to 0.0.'
|
539
539
|
end
|
540
540
|
|
541
541
|
@total_timeout = total_timeout
|
@@ -544,8 +544,8 @@ module PulpAnsibleClient
|
|
544
544
|
# Custom attribute writer method with validation
|
545
545
|
# @param [Object] connect_timeout Value to be assigned
|
546
546
|
def connect_timeout=(connect_timeout)
|
547
|
-
if !connect_timeout.nil? && connect_timeout < 0
|
548
|
-
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.'
|
547
|
+
if !connect_timeout.nil? && connect_timeout < 0.0
|
548
|
+
fail ArgumentError, 'invalid value for "connect_timeout", must be greater than or equal to 0.0.'
|
549
549
|
end
|
550
550
|
|
551
551
|
@connect_timeout = connect_timeout
|
@@ -554,8 +554,8 @@ module PulpAnsibleClient
|
|
554
554
|
# Custom attribute writer method with validation
|
555
555
|
# @param [Object] sock_connect_timeout Value to be assigned
|
556
556
|
def sock_connect_timeout=(sock_connect_timeout)
|
557
|
-
if !sock_connect_timeout.nil? && sock_connect_timeout < 0
|
558
|
-
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.'
|
557
|
+
if !sock_connect_timeout.nil? && sock_connect_timeout < 0.0
|
558
|
+
fail ArgumentError, 'invalid value for "sock_connect_timeout", must be greater than or equal to 0.0.'
|
559
559
|
end
|
560
560
|
|
561
561
|
@sock_connect_timeout = sock_connect_timeout
|
@@ -564,8 +564,8 @@ module PulpAnsibleClient
|
|
564
564
|
# Custom attribute writer method with validation
|
565
565
|
# @param [Object] sock_read_timeout Value to be assigned
|
566
566
|
def sock_read_timeout=(sock_read_timeout)
|
567
|
-
if !sock_read_timeout.nil? && sock_read_timeout < 0
|
568
|
-
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.'
|
567
|
+
if !sock_read_timeout.nil? && sock_read_timeout < 0.0
|
568
|
+
fail ArgumentError, 'invalid value for "sock_read_timeout", must be greater than or equal to 0.0.'
|
569
569
|
end
|
570
570
|
|
571
571
|
@sock_read_timeout = sock_read_timeout
|