pulp_ansible_client 0.16.3 → 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 +88 -22
- data/docs/AnsibleAnsibleNamespaceMetadata.md +29 -0
- data/docs/AnsibleAnsibleNamespaceMetadataResponse.md +35 -0
- data/docs/AnsibleAnsibleRepository.md +3 -1
- data/docs/AnsibleAnsibleRepositoryResponse.md +5 -1
- data/docs/AnsibleCollectionRemote.md +1 -1
- data/docs/AnsibleCollectionRemoteResponse.md +4 -2
- data/docs/AnsibleCollectionVersion.md +4 -4
- data/docs/AnsibleCollectionVersionMark.md +19 -0
- data/docs/AnsibleCollectionVersionMarkResponse.md +23 -0
- data/docs/AnsibleCollectionVersionResponse.md +4 -4
- data/docs/AnsibleCollectionsApi.md +230 -6
- data/docs/AnsibleGitRemote.md +30 -30
- data/docs/AnsibleGitRemoteResponse.md +28 -28
- data/docs/AnsibleRepositoryMark.md +19 -0
- data/docs/AnsibleRoleRemote.md +1 -1
- data/docs/AnsibleRoleRemoteResponse.md +1 -1
- data/docs/AnsibleRoleResponse.md +3 -3
- data/docs/CollectionNamespaceResponse.md +3 -1
- data/docs/CollectionRefResponse.md +1 -1
- data/docs/CollectionResponse.md +6 -6
- data/docs/CollectionSummaryResponse.md +35 -0
- data/docs/CollectionVersionCopyMove.md +21 -0
- data/docs/CollectionVersionListResponse.md +4 -2
- data/docs/CollectionVersionResponse.md +6 -4
- data/docs/CollectionVersionSearchList.md +27 -0
- data/docs/CollectionVersionSearchListResponse.md +29 -0
- data/docs/ContentCollectionDeprecationsApi.md +2 -6
- data/docs/ContentCollectionMarksApi.md +198 -0
- data/docs/ContentCollectionSignaturesApi.md +2 -6
- data/docs/ContentCollectionVersionsApi.md +6 -10
- data/docs/ContentNamespacesApi.md +220 -0
- data/docs/ContentRolesApi.md +2 -6
- data/docs/DistributionsAnsibleApi.md +230 -6
- data/docs/GalaxyCollectionResponse.md +4 -4
- data/docs/GalaxyCollectionVersionResponse.md +4 -4
- data/docs/GalaxyRoleResponse.md +1 -1
- data/docs/GalaxyRoleVersionResponse.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 +3 -1
- data/docs/PatchedansibleCollectionRemote.md +1 -1
- data/docs/PatchedansibleGitRemote.md +30 -30
- data/docs/PatchedansibleRoleRemote.md +1 -1
- data/docs/ProgressReportResponse.md +27 -0
- data/docs/PulpAnsibleApiV3CollectionsAllApi.md +2 -6
- data/docs/PulpAnsibleApiV3CollectionsApi.md +2 -6
- data/docs/PulpAnsibleApiV3CollectionsVersionsApi.md +2 -6
- data/docs/PulpAnsibleApiV3NamespacesApi.md +158 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleClientConfigurationApi.md +6 -6
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +2 -6
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexApi.md +2 -6
- data/docs/PulpAnsibleApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -6
- data/docs/PulpAnsibleApiV3PluginAnsibleContentNamespacesApi.md +363 -0
- data/docs/PulpAnsibleApiV3PluginAnsibleSearchCollectionVersionsApi.md +168 -0
- data/docs/PulpAnsibleDefaultApiV3CollectionsAllApi.md +2 -6
- data/docs/PulpAnsibleDefaultApiV3CollectionsApi.md +2 -6
- data/docs/PulpAnsibleDefaultApiV3CollectionsVersionsApi.md +2 -6
- data/docs/PulpAnsibleDefaultApiV3NamespacesApi.md +154 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleClientConfigurationApi.md +6 -6
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsAllCollectionsApi.md +2 -6
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexApi.md +2 -6
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentCollectionsIndexVersionsApi.md +2 -6
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleContentNamespacesApi.md +353 -0
- data/docs/PulpAnsibleDefaultApiV3PluginAnsibleSearchCollectionVersionsApi.md +164 -0
- data/docs/RemotesCollectionApi.md +238 -6
- data/docs/RemotesGitApi.md +230 -6
- data/docs/RemotesRoleApi.md +230 -6
- data/docs/RepositoriesAnsibleApi.md +450 -6
- data/docs/RepositoriesAnsibleVersionsApi.md +2 -4
- data/docs/Repository.md +25 -0
- data/docs/RepositoryResponse.md +33 -0
- data/docs/Task.md +19 -0
- data/docs/TaskResponse.md +45 -0
- data/docs/UnpaginatedCollectionVersionResponse.md +6 -4
- data/docs/VersionsApi.md +10 -10
- data/lib/pulp_ansible_client/api/ansible_collections_api.rb +270 -8
- data/lib/pulp_ansible_client/api/content_collection_deprecations_api.rb +2 -8
- data/lib/pulp_ansible_client/api/content_collection_marks_api.rb +247 -0
- data/lib/pulp_ansible_client/api/content_collection_signatures_api.rb +2 -8
- data/lib/pulp_ansible_client/api/content_collection_versions_api.rb +8 -14
- data/lib/pulp_ansible_client/api/content_namespaces_api.rb +276 -0
- data/lib/pulp_ansible_client/api/content_roles_api.rb +2 -8
- data/lib/pulp_ansible_client/api/distributions_ansible_api.rb +270 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_all_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_collections_versions_api.rb +2 -8
- 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_collections_all_collections_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api.rb +2 -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_collections_all_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_collections_versions_api.rb +2 -8
- 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_collections_all_collections_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api.rb +2 -8
- data/lib/pulp_ansible_client/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api.rb +2 -8
- 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 +283 -9
- data/lib/pulp_ansible_client/api/remotes_git_api.rb +270 -8
- data/lib/pulp_ansible_client/api/remotes_role_api.rb +270 -8
- data/lib/pulp_ansible_client/api/repositories_ansible_api.rb +542 -8
- data/lib/pulp_ansible_client/api/repositories_ansible_versions_api.rb +2 -5
- data/lib/pulp_ansible_client/api/versions_api.rb +12 -12
- 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 +14 -5
- data/lib/pulp_ansible_client/models/ansible_ansible_repository_response.rb +23 -5
- data/lib/pulp_ansible_client/models/ansible_collection_remote.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_collection_remote_response.rb +14 -5
- data/lib/pulp_ansible_client/models/ansible_collection_version.rb +18 -18
- 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_collection_version_response.rb +14 -14
- data/lib/pulp_ansible_client/models/ansible_git_remote.rb +243 -243
- data/lib/pulp_ansible_client/models/ansible_git_remote_response.rb +144 -144
- data/lib/pulp_ansible_client/models/ansible_repository_mark.rb +260 -0
- data/lib/pulp_ansible_client/models/ansible_role_remote.rb +1 -1
- data/lib/pulp_ansible_client/models/ansible_role_remote_response.rb +1 -1
- 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_ref_response.rb +0 -1
- data/lib/pulp_ansible_client/models/collection_response.rb +0 -6
- 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 -6
- data/lib/pulp_ansible_client/models/collection_version_response.rb +12 -5
- 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/galaxy_collection_response.rb +0 -4
- data/lib/pulp_ansible_client/models/galaxy_collection_version_response.rb +0 -4
- data/lib/pulp_ansible_client/models/galaxy_role_response.rb +0 -1
- data/lib/pulp_ansible_client/models/galaxy_role_version_response.rb +0 -1
- 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 +14 -5
- data/lib/pulp_ansible_client/models/patchedansible_collection_remote.rb +1 -1
- data/lib/pulp_ansible_client/models/patchedansible_git_remote.rb +234 -234
- data/lib/pulp_ansible_client/models/patchedansible_role_remote.rb +1 -1
- 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_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 -5
- 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 +51 -3
- data/spec/api/content_collection_deprecations_api_spec.rb +1 -3
- data/spec/api/content_collection_marks_api_spec.rb +83 -0
- data/spec/api/content_collection_signatures_api_spec.rb +1 -3
- data/spec/api/content_collection_versions_api_spec.rb +3 -5
- data/spec/api/content_namespaces_api_spec.rb +93 -0
- data/spec/api/content_roles_api_spec.rb +1 -3
- data/spec/api/distributions_ansible_api_spec.rb +51 -3
- data/spec/api/pulp_ansible_api_v3_collections_all_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_api_v3_collections_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_api_v3_collections_versions_api_spec.rb +1 -3
- 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_collections_all_collections_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -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_collections_all_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_default_api_v3_collections_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_default_api_v3_collections_versions_api_spec.rb +1 -3
- 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_collections_all_collections_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_api_spec.rb +1 -3
- data/spec/api/pulp_ansible_default_api_v3_plugin_ansible_content_collections_index_versions_api_spec.rb +1 -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 +55 -3
- data/spec/api/remotes_git_api_spec.rb +51 -3
- data/spec/api/remotes_role_api_spec.rb +51 -3
- data/spec/api/repositories_ansible_api_spec.rb +99 -3
- data/spec/api/repositories_ansible_versions_api_spec.rb +1 -2
- data/spec/api/versions_api_spec.rb +4 -4
- 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_response_spec.rb +2 -2
- data/spec/models/ansible_collection_version_spec.rb +3 -3
- data/spec/models/ansible_git_remote_response_spec.rb +19 -19
- data/spec/models/ansible_git_remote_spec.rb +19 -19
- data/spec/models/ansible_repository_mark_spec.rb +47 -0
- data/spec/models/ansible_role_response_spec.rb +3 -3
- 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 +19 -19
- 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 +230 -102
@@ -27,8 +27,8 @@ module PulpAnsibleClient
|
|
27
27
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
28
28
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
29
29
|
# @return [PaginatedGalaxyRoleVersionResponseList]
|
30
|
-
def
|
31
|
-
data, _status_code, _headers =
|
30
|
+
def api_v1_roles_versions_list(ansible_role_href, opts = {})
|
31
|
+
data, _status_code, _headers = api_v1_roles_versions_list_with_http_info(ansible_role_href, opts)
|
32
32
|
data
|
33
33
|
end
|
34
34
|
|
@@ -40,13 +40,13 @@ module PulpAnsibleClient
|
|
40
40
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
41
41
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
42
42
|
# @return [Array<(PaginatedGalaxyRoleVersionResponseList, Integer, Hash)>] PaginatedGalaxyRoleVersionResponseList data, response status code and response headers
|
43
|
-
def
|
43
|
+
def api_v1_roles_versions_list_with_http_info(ansible_role_href, opts = {})
|
44
44
|
if @api_client.config.debugging
|
45
|
-
@api_client.config.logger.debug 'Calling API: VersionsApi.
|
45
|
+
@api_client.config.logger.debug 'Calling API: VersionsApi.api_v1_roles_versions_list ...'
|
46
46
|
end
|
47
47
|
# verify the required parameter 'ansible_role_href' is set
|
48
48
|
if @api_client.config.client_side_validation && ansible_role_href.nil?
|
49
|
-
fail ArgumentError, "Missing the required parameter 'ansible_role_href' when calling VersionsApi.
|
49
|
+
fail ArgumentError, "Missing the required parameter 'ansible_role_href' when calling VersionsApi.api_v1_roles_versions_list"
|
50
50
|
end
|
51
51
|
# resource path
|
52
52
|
local_var_path = '{ansible_role_href}versions/'.sub('{' + 'ansible_role_href' + '}', CGI.escape(ansible_role_href.to_s).gsub('%2F', '/'))
|
@@ -86,7 +86,7 @@ module PulpAnsibleClient
|
|
86
86
|
|
87
87
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
88
88
|
if @api_client.config.debugging
|
89
|
-
@api_client.config.logger.debug "API called: VersionsApi#
|
89
|
+
@api_client.config.logger.debug "API called: VersionsApi#api_v1_roles_versions_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
90
90
|
end
|
91
91
|
return data, status_code, headers
|
92
92
|
end
|
@@ -98,8 +98,8 @@ module PulpAnsibleClient
|
|
98
98
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
99
99
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
100
100
|
# @return [PaginatedGalaxyCollectionVersionResponseList]
|
101
|
-
def
|
102
|
-
data, _status_code, _headers =
|
101
|
+
def api_v2_collection_versions_list(ansible_collection_version_href, opts = {})
|
102
|
+
data, _status_code, _headers = api_v2_collection_versions_list_with_http_info(ansible_collection_version_href, opts)
|
103
103
|
data
|
104
104
|
end
|
105
105
|
|
@@ -110,13 +110,13 @@ module PulpAnsibleClient
|
|
110
110
|
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
111
111
|
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
112
112
|
# @return [Array<(PaginatedGalaxyCollectionVersionResponseList, Integer, Hash)>] PaginatedGalaxyCollectionVersionResponseList data, response status code and response headers
|
113
|
-
def
|
113
|
+
def api_v2_collection_versions_list_with_http_info(ansible_collection_version_href, opts = {})
|
114
114
|
if @api_client.config.debugging
|
115
|
-
@api_client.config.logger.debug 'Calling API: VersionsApi.
|
115
|
+
@api_client.config.logger.debug 'Calling API: VersionsApi.api_v2_collection_versions_list ...'
|
116
116
|
end
|
117
117
|
# verify the required parameter 'ansible_collection_version_href' is set
|
118
118
|
if @api_client.config.client_side_validation && ansible_collection_version_href.nil?
|
119
|
-
fail ArgumentError, "Missing the required parameter 'ansible_collection_version_href' when calling VersionsApi.
|
119
|
+
fail ArgumentError, "Missing the required parameter 'ansible_collection_version_href' when calling VersionsApi.api_v2_collection_versions_list"
|
120
120
|
end
|
121
121
|
# resource path
|
122
122
|
local_var_path = '{ansible_collection_version_href}versions/'.sub('{' + 'ansible_collection_version_href' + '}', CGI.escape(ansible_collection_version_href.to_s).gsub('%2F', '/'))
|
@@ -155,7 +155,7 @@ module PulpAnsibleClient
|
|
155
155
|
|
156
156
|
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
157
157
|
if @api_client.config.debugging
|
158
|
-
@api_client.config.logger.debug "API called: VersionsApi#
|
158
|
+
@api_client.config.logger.debug "API called: VersionsApi#api_v2_collection_versions_list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
159
159
|
end
|
160
160
|
return data, status_code, headers
|
161
161
|
end
|
@@ -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
|
+
# A serializer for Namespaces.
|
17
|
+
class AnsibleAnsibleNamespaceMetadata
|
18
|
+
# Required named, only accepts lowercase, numbers and underscores.
|
19
|
+
attr_accessor :name
|
20
|
+
|
21
|
+
# Optional namespace company owner.
|
22
|
+
attr_accessor :company
|
23
|
+
|
24
|
+
# Optional namespace contact email.
|
25
|
+
attr_accessor :email
|
26
|
+
|
27
|
+
# Optional short description.
|
28
|
+
attr_accessor :description
|
29
|
+
|
30
|
+
# Optional resource page in markdown format.
|
31
|
+
attr_accessor :resources
|
32
|
+
|
33
|
+
# Labeled related links.
|
34
|
+
attr_accessor :links
|
35
|
+
|
36
|
+
# Optional avatar image for Namespace
|
37
|
+
attr_accessor :avatar
|
38
|
+
|
39
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
40
|
+
def self.attribute_map
|
41
|
+
{
|
42
|
+
:'name' => :'name',
|
43
|
+
:'company' => :'company',
|
44
|
+
:'email' => :'email',
|
45
|
+
:'description' => :'description',
|
46
|
+
:'resources' => :'resources',
|
47
|
+
:'links' => :'links',
|
48
|
+
:'avatar' => :'avatar'
|
49
|
+
}
|
50
|
+
end
|
51
|
+
|
52
|
+
# Attribute type mapping.
|
53
|
+
def self.openapi_types
|
54
|
+
{
|
55
|
+
:'name' => :'String',
|
56
|
+
:'company' => :'String',
|
57
|
+
:'email' => :'String',
|
58
|
+
:'description' => :'String',
|
59
|
+
:'resources' => :'String',
|
60
|
+
:'links' => :'Array<NamespaceLink>',
|
61
|
+
:'avatar' => :'File'
|
62
|
+
}
|
63
|
+
end
|
64
|
+
|
65
|
+
# List of attributes with nullable: true
|
66
|
+
def self.openapi_nullable
|
67
|
+
Set.new([
|
68
|
+
])
|
69
|
+
end
|
70
|
+
|
71
|
+
# Initializes the object
|
72
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
73
|
+
def initialize(attributes = {})
|
74
|
+
if (!attributes.is_a?(Hash))
|
75
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `PulpAnsibleClient::AnsibleAnsibleNamespaceMetadata` initialize method"
|
76
|
+
end
|
77
|
+
|
78
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
79
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
80
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
81
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `PulpAnsibleClient::AnsibleAnsibleNamespaceMetadata`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
82
|
+
end
|
83
|
+
h[k.to_sym] = v
|
84
|
+
}
|
85
|
+
|
86
|
+
if attributes.key?(:'name')
|
87
|
+
self.name = attributes[:'name']
|
88
|
+
end
|
89
|
+
|
90
|
+
if attributes.key?(:'company')
|
91
|
+
self.company = attributes[:'company']
|
92
|
+
end
|
93
|
+
|
94
|
+
if attributes.key?(:'email')
|
95
|
+
self.email = attributes[:'email']
|
96
|
+
end
|
97
|
+
|
98
|
+
if attributes.key?(:'description')
|
99
|
+
self.description = attributes[:'description']
|
100
|
+
end
|
101
|
+
|
102
|
+
if attributes.key?(:'resources')
|
103
|
+
self.resources = attributes[:'resources']
|
104
|
+
end
|
105
|
+
|
106
|
+
if attributes.key?(:'links')
|
107
|
+
if (value = attributes[:'links']).is_a?(Array)
|
108
|
+
self.links = value
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
if attributes.key?(:'avatar')
|
113
|
+
self.avatar = attributes[:'avatar']
|
114
|
+
end
|
115
|
+
end
|
116
|
+
|
117
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
118
|
+
# @return Array for valid properties with the reasons
|
119
|
+
def list_invalid_properties
|
120
|
+
invalid_properties = Array.new
|
121
|
+
if @name.nil?
|
122
|
+
invalid_properties.push('invalid value for "name", name cannot be nil.')
|
123
|
+
end
|
124
|
+
|
125
|
+
if @name.to_s.length > 64
|
126
|
+
invalid_properties.push('invalid value for "name", the character length must be smaller than or equal to 64.')
|
127
|
+
end
|
128
|
+
|
129
|
+
if @name.to_s.length < 3
|
130
|
+
invalid_properties.push('invalid value for "name", the character length must be great than or equal to 3.')
|
131
|
+
end
|
132
|
+
|
133
|
+
pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
|
134
|
+
if @name !~ pattern
|
135
|
+
invalid_properties.push("invalid value for \"name\", must conform to the pattern #{pattern}.")
|
136
|
+
end
|
137
|
+
|
138
|
+
if !@company.nil? && @company.to_s.length > 64
|
139
|
+
invalid_properties.push('invalid value for "company", the character length must be smaller than or equal to 64.')
|
140
|
+
end
|
141
|
+
|
142
|
+
if !@email.nil? && @email.to_s.length > 256
|
143
|
+
invalid_properties.push('invalid value for "email", the character length must be smaller than or equal to 256.')
|
144
|
+
end
|
145
|
+
|
146
|
+
if !@description.nil? && @description.to_s.length > 256
|
147
|
+
invalid_properties.push('invalid value for "description", the character length must be smaller than or equal to 256.')
|
148
|
+
end
|
149
|
+
|
150
|
+
invalid_properties
|
151
|
+
end
|
152
|
+
|
153
|
+
# Check to see if the all the properties in the model are valid
|
154
|
+
# @return true if the model is valid
|
155
|
+
def valid?
|
156
|
+
return false if @name.nil?
|
157
|
+
return false if @name.to_s.length > 64
|
158
|
+
return false if @name.to_s.length < 3
|
159
|
+
return false if @name !~ Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
|
160
|
+
return false if !@company.nil? && @company.to_s.length > 64
|
161
|
+
return false if !@email.nil? && @email.to_s.length > 256
|
162
|
+
return false if !@description.nil? && @description.to_s.length > 256
|
163
|
+
true
|
164
|
+
end
|
165
|
+
|
166
|
+
# Custom attribute writer method with validation
|
167
|
+
# @param [Object] name Value to be assigned
|
168
|
+
def name=(name)
|
169
|
+
if name.nil?
|
170
|
+
fail ArgumentError, 'name cannot be nil'
|
171
|
+
end
|
172
|
+
|
173
|
+
if name.to_s.length > 64
|
174
|
+
fail ArgumentError, 'invalid value for "name", the character length must be smaller than or equal to 64.'
|
175
|
+
end
|
176
|
+
|
177
|
+
if name.to_s.length < 3
|
178
|
+
fail ArgumentError, 'invalid value for "name", the character length must be great than or equal to 3.'
|
179
|
+
end
|
180
|
+
|
181
|
+
pattern = Regexp.new(/^(?!.*__)[a-z]+[0-9a-z_]*$/)
|
182
|
+
if name !~ pattern
|
183
|
+
fail ArgumentError, "invalid value for \"name\", must conform to the pattern #{pattern}."
|
184
|
+
end
|
185
|
+
|
186
|
+
@name = name
|
187
|
+
end
|
188
|
+
|
189
|
+
# Custom attribute writer method with validation
|
190
|
+
# @param [Object] company Value to be assigned
|
191
|
+
def company=(company)
|
192
|
+
if !company.nil? && company.to_s.length > 64
|
193
|
+
fail ArgumentError, 'invalid value for "company", the character length must be smaller than or equal to 64.'
|
194
|
+
end
|
195
|
+
|
196
|
+
@company = company
|
197
|
+
end
|
198
|
+
|
199
|
+
# Custom attribute writer method with validation
|
200
|
+
# @param [Object] email Value to be assigned
|
201
|
+
def email=(email)
|
202
|
+
if !email.nil? && email.to_s.length > 256
|
203
|
+
fail ArgumentError, 'invalid value for "email", the character length must be smaller than or equal to 256.'
|
204
|
+
end
|
205
|
+
|
206
|
+
@email = email
|
207
|
+
end
|
208
|
+
|
209
|
+
# Custom attribute writer method with validation
|
210
|
+
# @param [Object] description Value to be assigned
|
211
|
+
def description=(description)
|
212
|
+
if !description.nil? && description.to_s.length > 256
|
213
|
+
fail ArgumentError, 'invalid value for "description", the character length must be smaller than or equal to 256.'
|
214
|
+
end
|
215
|
+
|
216
|
+
@description = description
|
217
|
+
end
|
218
|
+
|
219
|
+
# Checks equality by comparing each attribute.
|
220
|
+
# @param [Object] Object to be compared
|
221
|
+
def ==(o)
|
222
|
+
return true if self.equal?(o)
|
223
|
+
self.class == o.class &&
|
224
|
+
name == o.name &&
|
225
|
+
company == o.company &&
|
226
|
+
email == o.email &&
|
227
|
+
description == o.description &&
|
228
|
+
resources == o.resources &&
|
229
|
+
links == o.links &&
|
230
|
+
avatar == o.avatar
|
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
|
+
[name, company, email, description, resources, links, avatar].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
|