pulp_ansible_client 0.16.5 → 0.17.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 +89 -21
- data/docs/AnsibleAnsibleNamespaceMetadata.md +29 -0
- data/docs/AnsibleAnsibleNamespaceMetadataResponse.md +35 -0
- data/docs/AnsibleAnsibleRepository.md +4 -2
- data/docs/AnsibleAnsibleRepositoryResponse.md +6 -2
- data/docs/AnsibleCollectionRemoteResponse.md +3 -1
- data/docs/AnsibleCollectionRemoteResponseHiddenFields.md +2 -2
- data/docs/AnsibleCollectionVersion.md +5 -5
- data/docs/AnsibleCollectionVersionMark.md +19 -0
- data/docs/AnsibleCollectionVersionMarkResponse.md +23 -0
- data/docs/AnsibleCollectionsApi.md +229 -1
- data/docs/AnsibleCopyApi.md +1 -1
- data/docs/AnsibleGitRemote.md +28 -28
- data/docs/AnsibleGitRemoteResponse.md +24 -24
- data/docs/AnsibleRepositoryMark.md +19 -0
- data/docs/AnsibleRoleResponse.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 +3 -1
- data/docs/CollectionSummaryResponse.md +35 -0
- data/docs/CollectionVersionCopyMove.md +21 -0
- data/docs/CollectionVersionListResponse.md +3 -1
- data/docs/CollectionVersionResponse.md +2 -0
- data/docs/CollectionVersionSearchList.md +27 -0
- data/docs/CollectionVersionSearchListResponse.md +29 -0
- data/docs/ContentCollectionDeprecationsApi.md +1 -1
- data/docs/ContentCollectionMarksApi.md +198 -0
- data/docs/ContentCollectionSignaturesApi.md +1 -1
- data/docs/ContentCollectionVersionsApi.md +5 -5
- data/docs/ContentNamespacesApi.md +220 -0
- data/docs/ContentRolesApi.md +1 -1
- data/docs/DistributionsAnsibleApi.md +233 -1
- data/docs/GalaxyDetailApi.md +1 -1
- data/docs/MyPermissionsResponse.md +17 -0
- data/docs/NamespaceLink.md +19 -0
- data/docs/NamespaceLinkResponse.md +19 -0
- data/docs/NestedRole.md +21 -0
- data/docs/NestedRoleResponse.md +21 -0
- data/docs/ObjectRolesResponse.md +17 -0
- data/docs/PaginatedCollectionVersionSearchListResponseList.md +21 -0
- data/docs/PaginatedansibleAnsibleNamespaceMetadataResponseList.md +23 -0
- data/docs/PaginatedansibleCollectionVersionMarkResponseList.md +23 -0
- data/docs/PatchedansibleAnsibleNamespaceMetadata.md +29 -0
- data/docs/PatchedansibleAnsibleRepository.md +4 -2
- data/docs/PatchedansibleGitRemote.md +28 -28
- data/docs/ProgressReportResponse.md +27 -0
- 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 -1
- data/docs/PulpAnsibleApiV3CollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3NamespacesApi.md +158 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +7 -7
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +363 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md +168 -0
- 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 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +154 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +7 -7
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsArtifactsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsDocsBlobApi.md +1 -1
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +353 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +164 -0
- data/docs/PulpAnsibleTagsApi.md +1 -1
- data/docs/RemotesCollectionApi.md +237 -1
- data/docs/RemotesGitApi.md +229 -1
- data/docs/RemotesRoleApi.md +229 -1
- data/docs/RepositoriesAnsibleApi.md +465 -1
- data/docs/RepositoriesAnsibleVersionsApi.md +1 -1
- data/docs/Repository.md +25 -0
- data/docs/RepositoryAddRemoveContent.md +2 -2
- data/docs/RepositoryResponse.md +33 -0
- data/docs/Task.md +19 -0
- data/docs/TaskResponse.md +45 -0
- data/docs/UnpaginatedCollectionVersionResponse.md +2 -0
- data/docs/VersionsApi.md +11 -11
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +268 -0
- data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +247 -0
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +6 -6
- data/lib/pulp_ansible_client/api/content_namespaces_api.rb +276 -0
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +274 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_namespaces_api.rb +209 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api.rb +8 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api.rb +531 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api.rb +229 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_namespaces_api.rb +197 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api.rb +7 -7
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api.rb +501 -0
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api.rb +217 -0
- data/lib/pulp_ansible_client/api/remotes_collection_api.rb +281 -1
- data/lib/pulp_ansible_client/api/remotes_git_api.rb +268 -0
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +268 -0
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +564 -0
- data/lib/pulp_ansible_client/api/versions_api.rb +12 -12
- data/lib/pulp_ansible_client/configuration.rb +3 -3
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata.rb +359 -0
- data/lib/pulp_ansible_client/models/ansible_ansible_namespace_metadata_response.rb +402 -0
- data/lib/pulp_ansible_client/models/ansible_ansible_repository.rb +15 -6
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +24 -6
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +33 -24
- 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 +21 -21
- data/lib/pulp_ansible_client/models/ansible_collection_version_mark.rb +258 -0
- data/lib/pulp_ansible_client/models/ansible_collection_version_mark_response.rb +268 -0
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +237 -237
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +150 -150
- data/lib/pulp_ansible_client/models/ansible_repository_mark.rb +260 -0
- 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/ansible_role_response.rb +10 -10
- data/lib/pulp_ansible_client/models/collection_namespace_response.rb +13 -4
- data/lib/pulp_ansible_client/models/collection_summary_response.rb +359 -0
- data/lib/pulp_ansible_client/models/collection_version_copy_move.rb +242 -0
- data/lib/pulp_ansible_client/models/collection_version_list_response.rb +16 -5
- data/lib/pulp_ansible_client/models/collection_version_response.rb +12 -1
- data/lib/pulp_ansible_client/models/collection_version_search_list.rb +279 -0
- data/lib/pulp_ansible_client/models/collection_version_search_list_response.rb +287 -0
- data/lib/pulp_ansible_client/models/my_permissions_response.rb +213 -0
- data/lib/pulp_ansible_client/models/namespace_link.rb +282 -0
- data/lib/pulp_ansible_client/models/namespace_link_response.rb +264 -0
- data/lib/pulp_ansible_client/models/nested_role.rb +253 -0
- data/lib/pulp_ansible_client/models/nested_role_response.rb +234 -0
- data/lib/pulp_ansible_client/models/object_roles_response.rb +213 -0
- data/lib/pulp_ansible_client/models/paginated_collection_version_search_list_response_list.rb +226 -0
- data/lib/pulp_ansible_client/models/paginatedansible_ansible_namespace_metadata_response_list.rb +237 -0
- data/lib/pulp_ansible_client/models/paginatedansible_collection_version_mark_response_list.rb +237 -0
- data/lib/pulp_ansible_client/models/patchedansible_ansible_namespace_metadata.rb +350 -0
- data/lib/pulp_ansible_client/models/patchedansible_ansible_repository.rb +15 -6
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +226 -226
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +20 -20
- data/lib/pulp_ansible_client/models/progress_report_response.rb +259 -0
- data/lib/pulp_ansible_client/models/repository.rb +306 -0
- data/lib/pulp_ansible_client/models/repository_add_remove_content.rb +2 -2
- data/lib/pulp_ansible_client/models/repository_response.rb +309 -0
- data/lib/pulp_ansible_client/models/task.rb +266 -0
- data/lib/pulp_ansible_client/models/task_response.rb +366 -0
- data/lib/pulp_ansible_client/models/unpaginated_collection_version_response.rb +12 -1
- data/lib/pulp_ansible_client/version.rb +1 -1
- data/lib/pulp_ansible_client.rb +32 -0
- data/spec/api/ansible_collections_api_spec.rb +50 -0
- data/spec/api/content_collection_marks_api_spec.rb +83 -0
- data/spec/api/content_collection_versions_api_spec.rb +2 -2
- data/spec/api/content_namespaces_api_spec.rb +93 -0
- data/spec/api/distributions_ansible_api_spec.rb +52 -0
- data/spec/api/pulp_ansible_api_v3_namespaces_api_spec.rb +77 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_client_configuration_api_spec.rb +3 -3
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_namespaces_api_spec.rb +131 -0
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +83 -0
- data/spec/api/pulp_ansible_default_api_v3_namespaces_api_spec.rb +75 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_client_configuration_api_spec.rb +3 -3
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_namespaces_api_spec.rb +126 -0
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_search_collection_versions_api_spec.rb +81 -0
- data/spec/api/remotes_collection_api_spec.rb +54 -0
- data/spec/api/remotes_git_api_spec.rb +50 -0
- data/spec/api/remotes_role_api_spec.rb +50 -0
- data/spec/api/repositories_ansible_api_spec.rb +106 -0
- data/spec/api/versions_api_spec.rb +4 -4
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/ansible_ansible_namespace_metadata_response_spec.rb +95 -0
- data/spec/models/ansible_ansible_namespace_metadata_spec.rb +77 -0
- data/spec/models/ansible_ansible_repository_response_spec.rb +12 -0
- data/spec/models/ansible_ansible_repository_spec.rb +6 -0
- data/spec/models/ansible_collection_remote_response_spec.rb +6 -0
- data/spec/models/ansible_collection_version_mark_response_spec.rb +59 -0
- data/spec/models/ansible_collection_version_mark_spec.rb +47 -0
- data/spec/models/ansible_collection_version_spec.rb +4 -4
- data/spec/models/ansible_git_remote_response_spec.rb +19 -19
- data/spec/models/ansible_git_remote_spec.rb +20 -20
- data/spec/models/ansible_repository_mark_spec.rb +47 -0
- data/spec/models/ansible_role_response_spec.rb +2 -2
- data/spec/models/collection_namespace_response_spec.rb +6 -0
- data/spec/models/collection_summary_response_spec.rb +95 -0
- data/spec/models/collection_version_copy_move_spec.rb +53 -0
- data/spec/models/collection_version_list_response_spec.rb +6 -0
- data/spec/models/collection_version_response_spec.rb +6 -0
- data/spec/models/collection_version_search_list_response_spec.rb +77 -0
- data/spec/models/collection_version_search_list_spec.rb +71 -0
- data/spec/models/my_permissions_response_spec.rb +41 -0
- data/spec/models/namespace_link_response_spec.rb +47 -0
- data/spec/models/namespace_link_spec.rb +47 -0
- data/spec/models/nested_role_response_spec.rb +53 -0
- data/spec/models/nested_role_spec.rb +53 -0
- data/spec/models/object_roles_response_spec.rb +41 -0
- data/spec/models/paginated_collection_version_search_list_response_list_spec.rb +53 -0
- data/spec/models/paginatedansible_ansible_namespace_metadata_response_list_spec.rb +59 -0
- data/spec/models/paginatedansible_collection_version_mark_response_list_spec.rb +59 -0
- data/spec/models/patchedansible_ansible_namespace_metadata_spec.rb +77 -0
- data/spec/models/patchedansible_ansible_repository_spec.rb +6 -0
- data/spec/models/patchedansible_git_remote_spec.rb +20 -20
- data/spec/models/progress_report_response_spec.rb +71 -0
- data/spec/models/repository_response_spec.rb +89 -0
- data/spec/models/repository_spec.rb +65 -0
- data/spec/models/task_response_spec.rb +125 -0
- data/spec/models/task_spec.rb +47 -0
- data/spec/models/unpaginated_collection_version_response_spec.rb +6 -0
- metadata +242 -114
@@ -0,0 +1,359 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module PulpAnsibleClient
|
16
|
+
# Collection Version serializer without docs blob.
|
17
|
+
class CollectionSummaryResponse
|
18
|
+
attr_accessor :pulp_href
|
19
|
+
|
20
|
+
# The namespace of the collection.
|
21
|
+
attr_accessor :namespace
|
22
|
+
|
23
|
+
# The name of the collection.
|
24
|
+
attr_accessor :name
|
25
|
+
|
26
|
+
# The version of the collection.
|
27
|
+
attr_accessor :version
|
28
|
+
|
29
|
+
# The version of Ansible required to use the collection. Multiple versions can be separated with a comma.
|
30
|
+
attr_accessor :requires_ansible
|
31
|
+
|
32
|
+
# Timestamp of creation.
|
33
|
+
attr_accessor :pulp_created
|
34
|
+
|
35
|
+
# A JSON field with data about the contents.
|
36
|
+
attr_accessor :contents
|
37
|
+
|
38
|
+
# A dict declaring Collections that this collection requires to be installed for it to be usable.
|
39
|
+
attr_accessor :dependencies
|
40
|
+
|
41
|
+
# A short summary description of the collection.
|
42
|
+
attr_accessor :description
|
43
|
+
|
44
|
+
attr_accessor :tags
|
45
|
+
|
46
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
47
|
+
def self.attribute_map
|
48
|
+
{
|
49
|
+
:'pulp_href' => :'pulp_href',
|
50
|
+
:'namespace' => :'namespace',
|
51
|
+
:'name' => :'name',
|
52
|
+
:'version' => :'version',
|
53
|
+
:'requires_ansible' => :'requires_ansible',
|
54
|
+
:'pulp_created' => :'pulp_created',
|
55
|
+
:'contents' => :'contents',
|
56
|
+
:'dependencies' => :'dependencies',
|
57
|
+
:'description' => :'description',
|
58
|
+
:'tags' => :'tags'
|
59
|
+
}
|
60
|
+
end
|
61
|
+
|
62
|
+
# Attribute type mapping.
|
63
|
+
def self.openapi_types
|
64
|
+
{
|
65
|
+
:'pulp_href' => :'String',
|
66
|
+
:'namespace' => :'String',
|
67
|
+
:'name' => :'String',
|
68
|
+
:'version' => :'String',
|
69
|
+
:'requires_ansible' => :'String',
|
70
|
+
:'pulp_created' => :'DateTime',
|
71
|
+
:'contents' => :'Object',
|
72
|
+
:'dependencies' => :'Object',
|
73
|
+
:'description' => :'String',
|
74
|
+
:'tags' => :'Array<AnsibleTagResponse>'
|
75
|
+
}
|
76
|
+
end
|
77
|
+
|
78
|
+
# List of attributes with nullable: true
|
79
|
+
def self.openapi_nullable
|
80
|
+
Set.new([
|
81
|
+
:'requires_ansible',
|
82
|
+
])
|
83
|
+
end
|
84
|
+
|
85
|
+
# Initializes the object
|
86
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
87
|
+
def initialize(attributes = {})
|
88
|
+
if (!attributes.is_a?(Hash))
|
89
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::CollectionSummaryResponse` initialize method"
|
90
|
+
end
|
91
|
+
|
92
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
93
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
94
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
95
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::CollectionSummaryResponse`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
96
|
+
end
|
97
|
+
h[k.to_sym] = v
|
98
|
+
}
|
99
|
+
|
100
|
+
if attributes.key?(:'pulp_href')
|
101
|
+
self.pulp_href = attributes[:'pulp_href']
|
102
|
+
end
|
103
|
+
|
104
|
+
if attributes.key?(:'namespace')
|
105
|
+
self.namespace = attributes[:'namespace']
|
106
|
+
end
|
107
|
+
|
108
|
+
if attributes.key?(:'name')
|
109
|
+
self.name = attributes[:'name']
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes.key?(:'version')
|
113
|
+
self.version = attributes[:'version']
|
114
|
+
end
|
115
|
+
|
116
|
+
if attributes.key?(:'requires_ansible')
|
117
|
+
self.requires_ansible = attributes[:'requires_ansible']
|
118
|
+
end
|
119
|
+
|
120
|
+
if attributes.key?(:'pulp_created')
|
121
|
+
self.pulp_created = attributes[:'pulp_created']
|
122
|
+
end
|
123
|
+
|
124
|
+
if attributes.key?(:'contents')
|
125
|
+
self.contents = attributes[:'contents']
|
126
|
+
end
|
127
|
+
|
128
|
+
if attributes.key?(:'dependencies')
|
129
|
+
self.dependencies = attributes[:'dependencies']
|
130
|
+
end
|
131
|
+
|
132
|
+
if attributes.key?(:'description')
|
133
|
+
self.description = attributes[:'description']
|
134
|
+
end
|
135
|
+
|
136
|
+
if attributes.key?(:'tags')
|
137
|
+
if (value = attributes[:'tags']).is_a?(Array)
|
138
|
+
self.tags = value
|
139
|
+
end
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
144
|
+
# @return Array for valid properties with the reasons
|
145
|
+
def list_invalid_properties
|
146
|
+
invalid_properties = Array.new
|
147
|
+
if !@namespace.nil? && @namespace.to_s.length > 64
|
148
|
+
invalid_properties.push('invalid value for "namespace", the character length must be smaller than or equal to 64.')
|
149
|
+
end
|
150
|
+
|
151
|
+
if !@name.nil? && @name.to_s.length > 64
|
152
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 64.')
|
153
|
+
end
|
154
|
+
|
155
|
+
if !@version.nil? && @version.to_s.length > 128
|
156
|
+
invalid_properties.push('invalid value for "version", the character length must be smaller than or equal to 128.')
|
157
|
+
end
|
158
|
+
|
159
|
+
if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
|
160
|
+
invalid_properties.push('invalid value for "requires_ansible", the character length must be smaller than or equal to 255.')
|
161
|
+
end
|
162
|
+
|
163
|
+
invalid_properties
|
164
|
+
end
|
165
|
+
|
166
|
+
# Check to see if the all the properties in the model are valid
|
167
|
+
# @return true if the model is valid
|
168
|
+
def valid?
|
169
|
+
return false if !@namespace.nil? && @namespace.to_s.length > 64
|
170
|
+
return false if !@name.nil? && @name.to_s.length > 64
|
171
|
+
return false if !@version.nil? && @version.to_s.length > 128
|
172
|
+
return false if !@requires_ansible.nil? && @requires_ansible.to_s.length > 255
|
173
|
+
true
|
174
|
+
end
|
175
|
+
|
176
|
+
# Custom attribute writer method with validation
|
177
|
+
# @param [Object] namespace Value to be assigned
|
178
|
+
def namespace=(namespace)
|
179
|
+
if !namespace.nil? && namespace.to_s.length > 64
|
180
|
+
fail ArgumentError, 'invalid value for "namespace", the character length must be smaller than or equal to 64.'
|
181
|
+
end
|
182
|
+
|
183
|
+
@namespace = namespace
|
184
|
+
end
|
185
|
+
|
186
|
+
# Custom attribute writer method with validation
|
187
|
+
# @param [Object] name Value to be assigned
|
188
|
+
def name=(name)
|
189
|
+
if !name.nil? && name.to_s.length > 64
|
190
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 64.'
|
191
|
+
end
|
192
|
+
|
193
|
+
@name = name
|
194
|
+
end
|
195
|
+
|
196
|
+
# Custom attribute writer method with validation
|
197
|
+
# @param [Object] version Value to be assigned
|
198
|
+
def version=(version)
|
199
|
+
if !version.nil? && version.to_s.length > 128
|
200
|
+
fail ArgumentError, 'invalid value for "version", the character length must be smaller than or equal to 128.'
|
201
|
+
end
|
202
|
+
|
203
|
+
@version = version
|
204
|
+
end
|
205
|
+
|
206
|
+
# Custom attribute writer method with validation
|
207
|
+
# @param [Object] requires_ansible Value to be assigned
|
208
|
+
def requires_ansible=(requires_ansible)
|
209
|
+
if !requires_ansible.nil? && requires_ansible.to_s.length > 255
|
210
|
+
fail ArgumentError, 'invalid value for "requires_ansible", the character length must be smaller than or equal to 255.'
|
211
|
+
end
|
212
|
+
|
213
|
+
@requires_ansible = requires_ansible
|
214
|
+
end
|
215
|
+
|
216
|
+
# Checks equality by comparing each attribute.
|
217
|
+
# @param [Object] Object to be compared
|
218
|
+
def ==(o)
|
219
|
+
return true if self.equal?(o)
|
220
|
+
self.class == o.class &&
|
221
|
+
pulp_href == o.pulp_href &&
|
222
|
+
namespace == o.namespace &&
|
223
|
+
name == o.name &&
|
224
|
+
version == o.version &&
|
225
|
+
requires_ansible == o.requires_ansible &&
|
226
|
+
pulp_created == o.pulp_created &&
|
227
|
+
contents == o.contents &&
|
228
|
+
dependencies == o.dependencies &&
|
229
|
+
description == o.description &&
|
230
|
+
tags == o.tags
|
231
|
+
end
|
232
|
+
|
233
|
+
# @see the `==` method
|
234
|
+
# @param [Object] Object to be compared
|
235
|
+
def eql?(o)
|
236
|
+
self == o
|
237
|
+
end
|
238
|
+
|
239
|
+
# Calculates hash code according to all attributes.
|
240
|
+
# @return [Integer] Hash code
|
241
|
+
def hash
|
242
|
+
[pulp_href, namespace, name, version, requires_ansible, pulp_created, contents, dependencies, description, tags].hash
|
243
|
+
end
|
244
|
+
|
245
|
+
# Builds the object from hash
|
246
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
247
|
+
# @return [Object] Returns the model itself
|
248
|
+
def self.build_from_hash(attributes)
|
249
|
+
new.build_from_hash(attributes)
|
250
|
+
end
|
251
|
+
|
252
|
+
# Builds the object from hash
|
253
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
254
|
+
# @return [Object] Returns the model itself
|
255
|
+
def build_from_hash(attributes)
|
256
|
+
return nil unless attributes.is_a?(Hash)
|
257
|
+
self.class.openapi_types.each_pair do |key, type|
|
258
|
+
if type =~ /\AArray<(.*)>/i
|
259
|
+
# check to ensure the input is an array given that the attribute
|
260
|
+
# is documented as an array but the input is not
|
261
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
262
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
263
|
+
end
|
264
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
265
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
266
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
267
|
+
end
|
268
|
+
|
269
|
+
self
|
270
|
+
end
|
271
|
+
|
272
|
+
# Deserializes the data based on type
|
273
|
+
# @param string type Data type
|
274
|
+
# @param string value Value to be deserialized
|
275
|
+
# @return [Object] Deserialized data
|
276
|
+
def _deserialize(type, value)
|
277
|
+
case type.to_sym
|
278
|
+
when :DateTime
|
279
|
+
DateTime.parse(value)
|
280
|
+
when :Date
|
281
|
+
Date.parse(value)
|
282
|
+
when :String
|
283
|
+
value.to_s
|
284
|
+
when :Integer
|
285
|
+
value.to_i
|
286
|
+
when :Float
|
287
|
+
value.to_f
|
288
|
+
when :Boolean
|
289
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
290
|
+
true
|
291
|
+
else
|
292
|
+
false
|
293
|
+
end
|
294
|
+
when :Object
|
295
|
+
# generic object (usually a Hash), return directly
|
296
|
+
value
|
297
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
298
|
+
inner_type = Regexp.last_match[:inner_type]
|
299
|
+
value.map { |v| _deserialize(inner_type, v) }
|
300
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
301
|
+
k_type = Regexp.last_match[:k_type]
|
302
|
+
v_type = Regexp.last_match[:v_type]
|
303
|
+
{}.tap do |hash|
|
304
|
+
value.each do |k, v|
|
305
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
306
|
+
end
|
307
|
+
end
|
308
|
+
else # model
|
309
|
+
PulpAnsibleClient.const_get(type).build_from_hash(value)
|
310
|
+
end
|
311
|
+
end
|
312
|
+
|
313
|
+
# Returns the string representation of the object
|
314
|
+
# @return [String] String presentation of the object
|
315
|
+
def to_s
|
316
|
+
to_hash.to_s
|
317
|
+
end
|
318
|
+
|
319
|
+
# to_body is an alias to to_hash (backward compatibility)
|
320
|
+
# @return [Hash] Returns the object in the form of hash
|
321
|
+
def to_body
|
322
|
+
to_hash
|
323
|
+
end
|
324
|
+
|
325
|
+
# Returns the object in the form of hash
|
326
|
+
# @return [Hash] Returns the object in the form of hash
|
327
|
+
def to_hash
|
328
|
+
hash = {}
|
329
|
+
self.class.attribute_map.each_pair do |attr, param|
|
330
|
+
value = self.send(attr)
|
331
|
+
if value.nil?
|
332
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
333
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
334
|
+
end
|
335
|
+
|
336
|
+
hash[param] = _to_hash(value)
|
337
|
+
end
|
338
|
+
hash
|
339
|
+
end
|
340
|
+
|
341
|
+
# Outputs non-array value in the form of hash
|
342
|
+
# For object, use to_hash. Otherwise, just return the value
|
343
|
+
# @param [Object] value Any valid value
|
344
|
+
# @return [Hash] Returns the value in the form of hash
|
345
|
+
def _to_hash(value)
|
346
|
+
if value.is_a?(Array)
|
347
|
+
value.compact.map { |v| _to_hash(v) }
|
348
|
+
elsif value.is_a?(Hash)
|
349
|
+
{}.tap do |hash|
|
350
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
351
|
+
end
|
352
|
+
elsif value.respond_to? :to_hash
|
353
|
+
value.to_hash
|
354
|
+
else
|
355
|
+
value
|
356
|
+
end
|
357
|
+
end
|
358
|
+
end
|
359
|
+
end
|
@@ -0,0 +1,242 @@
|
|
1
|
+
=begin
|
2
|
+
#Pulp 3 API
|
3
|
+
|
4
|
+
#Fetch, Upload, Organize, and Distribute Software Packages
|
5
|
+
|
6
|
+
The version of the OpenAPI document: v3
|
7
|
+
Contact: pulp-list@redhat.com
|
8
|
+
Generated by: https://openapi-generator.tech
|
9
|
+
OpenAPI Generator version: 4.3.1
|
10
|
+
|
11
|
+
=end
|
12
|
+
|
13
|
+
require 'date'
|
14
|
+
|
15
|
+
module PulpAnsibleClient
|
16
|
+
# Copy or move collections from a source repository into one or more destinations. This will carry associated content like Signatures and Marks along.
|
17
|
+
class CollectionVersionCopyMove
|
18
|
+
# A list of collection versions to move or copy.
|
19
|
+
attr_accessor :collection_versions
|
20
|
+
|
21
|
+
# List of repository HREFs to put content in.
|
22
|
+
attr_accessor :destination_repositories
|
23
|
+
|
24
|
+
# HREF for a signing service. This will be used to sign the collection before moving putting it in any new repositories.
|
25
|
+
attr_accessor :signing_service
|
26
|
+
|
27
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
28
|
+
def self.attribute_map
|
29
|
+
{
|
30
|
+
:'collection_versions' => :'collection_versions',
|
31
|
+
:'destination_repositories' => :'destination_repositories',
|
32
|
+
:'signing_service' => :'signing_service'
|
33
|
+
}
|
34
|
+
end
|
35
|
+
|
36
|
+
# Attribute type mapping.
|
37
|
+
def self.openapi_types
|
38
|
+
{
|
39
|
+
:'collection_versions' => :'Array<String>',
|
40
|
+
:'destination_repositories' => :'Array<String>',
|
41
|
+
:'signing_service' => :'String'
|
42
|
+
}
|
43
|
+
end
|
44
|
+
|
45
|
+
# List of attributes with nullable: true
|
46
|
+
def self.openapi_nullable
|
47
|
+
Set.new([
|
48
|
+
])
|
49
|
+
end
|
50
|
+
|
51
|
+
# Initializes the object
|
52
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
53
|
+
def initialize(attributes = {})
|
54
|
+
if (!attributes.is_a?(Hash))
|
55
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::CollectionVersionCopyMove` initialize method"
|
56
|
+
end
|
57
|
+
|
58
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
59
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
60
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
61
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::CollectionVersionCopyMove`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
62
|
+
end
|
63
|
+
h[k.to_sym] = v
|
64
|
+
}
|
65
|
+
|
66
|
+
if attributes.key?(:'collection_versions')
|
67
|
+
if (value = attributes[:'collection_versions']).is_a?(Array)
|
68
|
+
self.collection_versions = value
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
if attributes.key?(:'destination_repositories')
|
73
|
+
if (value = attributes[:'destination_repositories']).is_a?(Array)
|
74
|
+
self.destination_repositories = value
|
75
|
+
end
|
76
|
+
end
|
77
|
+
|
78
|
+
if attributes.key?(:'signing_service')
|
79
|
+
self.signing_service = attributes[:'signing_service']
|
80
|
+
end
|
81
|
+
end
|
82
|
+
|
83
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
84
|
+
# @return Array for valid properties with the reasons
|
85
|
+
def list_invalid_properties
|
86
|
+
invalid_properties = Array.new
|
87
|
+
if @collection_versions.nil?
|
88
|
+
invalid_properties.push('invalid value for "collection_versions", collection_versions cannot be nil.')
|
89
|
+
end
|
90
|
+
|
91
|
+
if @destination_repositories.nil?
|
92
|
+
invalid_properties.push('invalid value for "destination_repositories", destination_repositories cannot be nil.')
|
93
|
+
end
|
94
|
+
|
95
|
+
invalid_properties
|
96
|
+
end
|
97
|
+
|
98
|
+
# Check to see if the all the properties in the model are valid
|
99
|
+
# @return true if the model is valid
|
100
|
+
def valid?
|
101
|
+
return false if @collection_versions.nil?
|
102
|
+
return false if @destination_repositories.nil?
|
103
|
+
true
|
104
|
+
end
|
105
|
+
|
106
|
+
# Checks equality by comparing each attribute.
|
107
|
+
# @param [Object] Object to be compared
|
108
|
+
def ==(o)
|
109
|
+
return true if self.equal?(o)
|
110
|
+
self.class == o.class &&
|
111
|
+
collection_versions == o.collection_versions &&
|
112
|
+
destination_repositories == o.destination_repositories &&
|
113
|
+
signing_service == o.signing_service
|
114
|
+
end
|
115
|
+
|
116
|
+
# @see the `==` method
|
117
|
+
# @param [Object] Object to be compared
|
118
|
+
def eql?(o)
|
119
|
+
self == o
|
120
|
+
end
|
121
|
+
|
122
|
+
# Calculates hash code according to all attributes.
|
123
|
+
# @return [Integer] Hash code
|
124
|
+
def hash
|
125
|
+
[collection_versions, destination_repositories, signing_service].hash
|
126
|
+
end
|
127
|
+
|
128
|
+
# Builds the object from hash
|
129
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
130
|
+
# @return [Object] Returns the model itself
|
131
|
+
def self.build_from_hash(attributes)
|
132
|
+
new.build_from_hash(attributes)
|
133
|
+
end
|
134
|
+
|
135
|
+
# Builds the object from hash
|
136
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
137
|
+
# @return [Object] Returns the model itself
|
138
|
+
def build_from_hash(attributes)
|
139
|
+
return nil unless attributes.is_a?(Hash)
|
140
|
+
self.class.openapi_types.each_pair do |key, type|
|
141
|
+
if type =~ /\AArray<(.*)>/i
|
142
|
+
# check to ensure the input is an array given that the attribute
|
143
|
+
# is documented as an array but the input is not
|
144
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
145
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
146
|
+
end
|
147
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
148
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
149
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
150
|
+
end
|
151
|
+
|
152
|
+
self
|
153
|
+
end
|
154
|
+
|
155
|
+
# Deserializes the data based on type
|
156
|
+
# @param string type Data type
|
157
|
+
# @param string value Value to be deserialized
|
158
|
+
# @return [Object] Deserialized data
|
159
|
+
def _deserialize(type, value)
|
160
|
+
case type.to_sym
|
161
|
+
when :DateTime
|
162
|
+
DateTime.parse(value)
|
163
|
+
when :Date
|
164
|
+
Date.parse(value)
|
165
|
+
when :String
|
166
|
+
value.to_s
|
167
|
+
when :Integer
|
168
|
+
value.to_i
|
169
|
+
when :Float
|
170
|
+
value.to_f
|
171
|
+
when :Boolean
|
172
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
173
|
+
true
|
174
|
+
else
|
175
|
+
false
|
176
|
+
end
|
177
|
+
when :Object
|
178
|
+
# generic object (usually a Hash), return directly
|
179
|
+
value
|
180
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
181
|
+
inner_type = Regexp.last_match[:inner_type]
|
182
|
+
value.map { |v| _deserialize(inner_type, v) }
|
183
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
184
|
+
k_type = Regexp.last_match[:k_type]
|
185
|
+
v_type = Regexp.last_match[:v_type]
|
186
|
+
{}.tap do |hash|
|
187
|
+
value.each do |k, v|
|
188
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
189
|
+
end
|
190
|
+
end
|
191
|
+
else # model
|
192
|
+
PulpAnsibleClient.const_get(type).build_from_hash(value)
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
# Returns the string representation of the object
|
197
|
+
# @return [String] String presentation of the object
|
198
|
+
def to_s
|
199
|
+
to_hash.to_s
|
200
|
+
end
|
201
|
+
|
202
|
+
# to_body is an alias to to_hash (backward compatibility)
|
203
|
+
# @return [Hash] Returns the object in the form of hash
|
204
|
+
def to_body
|
205
|
+
to_hash
|
206
|
+
end
|
207
|
+
|
208
|
+
# Returns the object in the form of hash
|
209
|
+
# @return [Hash] Returns the object in the form of hash
|
210
|
+
def to_hash
|
211
|
+
hash = {}
|
212
|
+
self.class.attribute_map.each_pair do |attr, param|
|
213
|
+
value = self.send(attr)
|
214
|
+
if value.nil?
|
215
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
216
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
217
|
+
end
|
218
|
+
|
219
|
+
hash[param] = _to_hash(value)
|
220
|
+
end
|
221
|
+
hash
|
222
|
+
end
|
223
|
+
|
224
|
+
# Outputs non-array value in the form of hash
|
225
|
+
# For object, use to_hash. Otherwise, just return the value
|
226
|
+
# @param [Object] value Any valid value
|
227
|
+
# @return [Hash] Returns the value in the form of hash
|
228
|
+
def _to_hash(value)
|
229
|
+
if value.is_a?(Array)
|
230
|
+
value.compact.map { |v| _to_hash(v) }
|
231
|
+
elsif value.is_a?(Hash)
|
232
|
+
{}.tap do |hash|
|
233
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
234
|
+
end
|
235
|
+
elsif value.respond_to? :to_hash
|
236
|
+
value.to_hash
|
237
|
+
else
|
238
|
+
value
|
239
|
+
end
|
240
|
+
end
|
241
|
+
end
|
242
|
+
end
|
@@ -25,6 +25,8 @@ module PulpAnsibleClient
|
|
25
25
|
|
26
26
|
attr_accessor :requires_ansible
|
27
27
|
|
28
|
+
attr_accessor :marks
|
29
|
+
|
28
30
|
# Attribute mapping from ruby-style variable name to JSON key.
|
29
31
|
def self.attribute_map
|
30
32
|
{
|
@@ -32,7 +34,8 @@ module PulpAnsibleClient
|
|
32
34
|
:'href' => :'href',
|
33
35
|
:'created_at' => :'created_at',
|
34
36
|
:'updated_at' => :'updated_at',
|
35
|
-
:'requires_ansible' => :'requires_ansible'
|
37
|
+
:'requires_ansible' => :'requires_ansible',
|
38
|
+
:'marks' => :'marks'
|
36
39
|
}
|
37
40
|
end
|
38
41
|
|
@@ -43,14 +46,15 @@ module PulpAnsibleClient
|
|
43
46
|
:'href' => :'String',
|
44
47
|
:'created_at' => :'DateTime',
|
45
48
|
:'updated_at' => :'DateTime',
|
46
|
-
:'requires_ansible' => :'String'
|
49
|
+
:'requires_ansible' => :'String',
|
50
|
+
:'marks' => :'Array<String>'
|
47
51
|
}
|
48
52
|
end
|
49
53
|
|
50
54
|
# List of attributes with nullable: true
|
51
55
|
def self.openapi_nullable
|
52
56
|
Set.new([
|
53
|
-
:'requires_ansible'
|
57
|
+
:'requires_ansible',
|
54
58
|
])
|
55
59
|
end
|
56
60
|
|
@@ -88,6 +92,12 @@ module PulpAnsibleClient
|
|
88
92
|
if attributes.key?(:'requires_ansible')
|
89
93
|
self.requires_ansible = attributes[:'requires_ansible']
|
90
94
|
end
|
95
|
+
|
96
|
+
if attributes.key?(:'marks')
|
97
|
+
if (value = attributes[:'marks']).is_a?(Array)
|
98
|
+
self.marks = value
|
99
|
+
end
|
100
|
+
end
|
91
101
|
end
|
92
102
|
|
93
103
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -137,7 +147,8 @@ module PulpAnsibleClient
|
|
137
147
|
href == o.href &&
|
138
148
|
created_at == o.created_at &&
|
139
149
|
updated_at == o.updated_at &&
|
140
|
-
requires_ansible == o.requires_ansible
|
150
|
+
requires_ansible == o.requires_ansible &&
|
151
|
+
marks == o.marks
|
141
152
|
end
|
142
153
|
|
143
154
|
# @see the `==` method
|
@@ -149,7 +160,7 @@ module PulpAnsibleClient
|
|
149
160
|
# Calculates hash code according to all attributes.
|
150
161
|
# @return [Integer] Hash code
|
151
162
|
def hash
|
152
|
-
[version, href, created_at, updated_at, requires_ansible].hash
|
163
|
+
[version, href, created_at, updated_at, requires_ansible, marks].hash
|
153
164
|
end
|
154
165
|
|
155
166
|
# Builds the object from hash
|