pulp_container_client 2.14.14 → 2.14.16
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +222 -246
- data/docs/AccessPoliciesApi.md +28 -32
- data/docs/ArtifactDistributionResponse.md +7 -7
- data/docs/ArtifactsApi.md +23 -27
- data/docs/ContainerContainerDistribution.md +5 -5
- data/docs/ContainerContainerDistributionResponse.md +8 -8
- data/docs/ContainerContainerPushRepository.md +5 -5
- data/docs/ContainerContainerPushRepositoryResponse.md +8 -8
- data/docs/ContainerContainerRemote.md +1 -1
- data/docs/ContainerContainerRemoteResponse.md +1 -1
- data/docs/ContainerContainerRepository.md +1 -1
- data/docs/ContainerContainerRepositoryResponse.md +1 -1
- data/docs/ContentApi.md +8 -14
- data/docs/ContentBlobsApi.md +13 -17
- data/docs/ContentManifestsApi.md +15 -19
- data/docs/ContentSignaturesApi.md +13 -17
- data/docs/ContentTagsApi.md +15 -19
- data/docs/ContentguardsApi.md +8 -14
- data/docs/ContentguardsContentRedirectApi.md +53 -57
- data/docs/ContentguardsRbacApi.md +53 -57
- data/docs/DistributionsApi.md +8 -18
- data/docs/DistributionsArtifactsApi.md +13 -21
- data/docs/DistributionsContainerApi.md +53 -61
- data/docs/DocsApiJsonApi.md +6 -6
- data/docs/DocsApiYamlApi.md +6 -6
- data/docs/ExportersFilesystemApi.md +36 -40
- data/docs/ExportersFilesystemExportsApi.md +24 -24
- data/docs/ExportersPulpApi.md +33 -37
- data/docs/ExportersPulpExportsApi.md +21 -21
- data/docs/FilesystemExporter.md +1 -1
- data/docs/FilesystemExporterResponse.md +1 -1
- data/docs/GroupRole.md +1 -3
- data/docs/GroupRoleResponse.md +1 -3
- data/docs/GroupsApi.md +59 -63
- data/docs/GroupsRolesApi.md +27 -33
- data/docs/GroupsUsersApi.md +16 -16
- data/docs/ImportersPulpApi.md +33 -37
- data/docs/ImportersPulpImportCheckApi.md +1 -1
- data/docs/ImportersPulpImportsApi.md +21 -21
- data/docs/OrphansApi.md +6 -6
- data/docs/OrphansCleanupApi.md +6 -6
- data/docs/PatchedFilesystemExporter.md +1 -1
- data/docs/PatchedcontainerContainerDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPushRepository.md +5 -5
- data/docs/PatchedcontainerContainerRemote.md +1 -1
- data/docs/PatchedcontainerContainerRepository.md +1 -1
- data/docs/PublicationsApi.md +9 -15
- data/docs/PulpContainerNamespacesApi.md +43 -47
- data/docs/RemoteResponse.md +1 -1
- data/docs/RemoteResponseHiddenFields.md +2 -2
- data/docs/RemotesApi.md +8 -14
- data/docs/RemotesContainerApi.md +53 -57
- data/docs/RepairApi.md +6 -6
- data/docs/RepositoriesApi.md +8 -30
- data/docs/RepositoriesContainerApi.md +102 -122
- data/docs/RepositoriesContainerPushApi.md +68 -88
- data/docs/RepositoriesContainerPushVersionsApi.md +23 -25
- data/docs/RepositoriesContainerVersionsApi.md +23 -25
- data/docs/RepositoriesReclaimSpaceApi.md +6 -6
- data/docs/RepositoryResponse.md +1 -1
- data/docs/RepositoryVersionsApi.md +8 -12
- data/docs/RolesApi.md +39 -43
- data/docs/SigningServicesApi.md +13 -17
- data/docs/StatusApi.md +1 -1
- data/docs/StatusResponse.md +1 -3
- data/docs/TaskGroupsApi.md +11 -11
- data/docs/TaskSchedulesApi.md +35 -39
- data/docs/TasksApi.md +101 -105
- data/docs/TokenApi.md +6 -6
- data/docs/UploadsApi.md +53 -57
- data/docs/UserRole.md +2 -4
- data/docs/UserRoleResponse.md +2 -4
- data/docs/UsersApi.md +39 -43
- data/docs/UsersRolesApi.md +27 -33
- data/docs/VersionResponse.md +1 -3
- data/docs/WorkersApi.md +13 -17
- data/lib/pulp_container_client/api/access_policies_api.rb +33 -39
- data/lib/pulp_container_client/api/artifacts_api.rb +31 -37
- data/lib/pulp_container_client/api/content_api.rb +7 -20
- data/lib/pulp_container_client/api/content_blobs_api.rb +13 -19
- data/lib/pulp_container_client/api/content_manifests_api.rb +15 -21
- data/lib/pulp_container_client/api/content_signatures_api.rb +13 -19
- data/lib/pulp_container_client/api/content_tags_api.rb +15 -21
- data/lib/pulp_container_client/api/contentguards_api.rb +7 -20
- data/lib/pulp_container_client/api/contentguards_content_redirect_api.rb +65 -71
- data/lib/pulp_container_client/api/contentguards_rbac_api.rb +65 -71
- data/lib/pulp_container_client/api/distributions_api.rb +7 -26
- data/lib/pulp_container_client/api/distributions_artifacts_api.rb +13 -25
- data/lib/pulp_container_client/api/distributions_container_api.rb +65 -77
- data/lib/pulp_container_client/api/docs_api_json_api.rb +5 -5
- data/lib/pulp_container_client/api/docs_api_yaml_api.rb +5 -5
- data/lib/pulp_container_client/api/exporters_filesystem_api.rb +45 -51
- data/lib/pulp_container_client/api/exporters_filesystem_exports_api.rb +31 -31
- data/lib/pulp_container_client/api/exporters_pulp_api.rb +39 -45
- data/lib/pulp_container_client/api/exporters_pulp_exports_api.rb +25 -25
- data/lib/pulp_container_client/api/groups_api.rb +77 -83
- data/lib/pulp_container_client/api/groups_roles_api.rb +35 -44
- data/lib/pulp_container_client/api/groups_users_api.rb +19 -19
- data/lib/pulp_container_client/api/importers_pulp_api.rb +39 -45
- data/lib/pulp_container_client/api/importers_pulp_imports_api.rb +25 -25
- data/lib/pulp_container_client/api/orphans_api.rb +5 -5
- data/lib/pulp_container_client/api/orphans_cleanup_api.rb +6 -6
- data/lib/pulp_container_client/api/publications_api.rb +9 -18
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +51 -57
- data/lib/pulp_container_client/api/remotes_api.rb +7 -20
- data/lib/pulp_container_client/api/remotes_container_api.rb +65 -71
- data/lib/pulp_container_client/api/repair_api.rb +6 -6
- data/lib/pulp_container_client/api/repositories_api.rb +7 -44
- data/lib/pulp_container_client/api/repositories_container_api.rb +128 -158
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +88 -118
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +27 -30
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +27 -30
- data/lib/pulp_container_client/api/repositories_reclaim_space_api.rb +6 -6
- data/lib/pulp_container_client/api/repository_versions_api.rb +7 -12
- data/lib/pulp_container_client/api/roles_api.rb +51 -57
- data/lib/pulp_container_client/api/signing_services_api.rb +13 -19
- data/lib/pulp_container_client/api/task_groups_api.rb +11 -11
- data/lib/pulp_container_client/api/task_schedules_api.rb +43 -49
- data/lib/pulp_container_client/api/tasks_api.rb +125 -131
- data/lib/pulp_container_client/api/token_api.rb +5 -5
- data/lib/pulp_container_client/api/uploads_api.rb +67 -73
- data/lib/pulp_container_client/api/users_api.rb +51 -57
- data/lib/pulp_container_client/api/users_roles_api.rb +35 -44
- data/lib/pulp_container_client/api/workers_api.rb +14 -20
- data/lib/pulp_container_client/configuration.rb +3 -3
- data/lib/pulp_container_client/models/artifact_distribution_response.rb +35 -35
- data/lib/pulp_container_client/models/container_container_distribution.rb +45 -45
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +39 -39
- data/lib/pulp_container_client/models/container_container_push_repository.rb +37 -37
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +33 -33
- data/lib/pulp_container_client/models/container_container_remote.rb +21 -21
- data/lib/pulp_container_client/models/container_container_remote_response.rb +21 -21
- data/lib/pulp_container_client/models/container_container_repository.rb +1 -1
- data/lib/pulp_container_client/models/container_container_repository_response.rb +1 -1
- data/lib/pulp_container_client/models/filesystem_exporter.rb +1 -1
- data/lib/pulp_container_client/models/filesystem_exporter_response.rb +1 -1
- data/lib/pulp_container_client/models/group_role.rb +5 -16
- data/lib/pulp_container_client/models/group_role_response.rb +4 -15
- data/lib/pulp_container_client/models/nested_role.rb +0 -19
- data/lib/pulp_container_client/models/patched_filesystem_exporter.rb +1 -1
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +36 -36
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +37 -37
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +21 -21
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +1 -1
- data/lib/pulp_container_client/models/remote_response.rb +21 -21
- data/lib/pulp_container_client/models/remote_response_hidden_fields.rb +10 -0
- data/lib/pulp_container_client/models/repository_response.rb +1 -1
- data/lib/pulp_container_client/models/status_response.rb +4 -19
- data/lib/pulp_container_client/models/user_role.rb +6 -17
- data/lib/pulp_container_client/models/user_role_response.rb +5 -16
- data/lib/pulp_container_client/models/version_response.rb +4 -19
- data/lib/pulp_container_client/version.rb +1 -1
- data/lib/pulp_container_client.rb +0 -11
- data/spec/api/access_policies_api_spec.rb +11 -13
- data/spec/api/artifacts_api_spec.rb +9 -11
- data/spec/api/content_api_spec.rb +3 -6
- data/spec/api/content_blobs_api_spec.rb +5 -7
- data/spec/api/content_manifests_api_spec.rb +6 -8
- data/spec/api/content_signatures_api_spec.rb +5 -7
- data/spec/api/content_tags_api_spec.rb +6 -8
- data/spec/api/contentguards_api_spec.rb +3 -6
- data/spec/api/contentguards_content_redirect_api_spec.rb +21 -23
- data/spec/api/contentguards_rbac_api_spec.rb +21 -23
- data/spec/api/distributions_api_spec.rb +3 -8
- data/spec/api/distributions_artifacts_api_spec.rb +5 -9
- data/spec/api/distributions_container_api_spec.rb +21 -25
- data/spec/api/docs_api_json_api_spec.rb +2 -2
- data/spec/api/docs_api_yaml_api_spec.rb +2 -2
- data/spec/api/exporters_filesystem_api_spec.rb +16 -18
- data/spec/api/exporters_filesystem_exports_api_spec.rb +11 -11
- data/spec/api/exporters_pulp_api_spec.rb +13 -15
- data/spec/api/exporters_pulp_exports_api_spec.rb +8 -8
- data/spec/api/groups_api_spec.rb +27 -29
- data/spec/api/groups_roles_api_spec.rb +13 -16
- data/spec/api/groups_users_api_spec.rb +6 -6
- data/spec/api/importers_pulp_api_spec.rb +13 -15
- data/spec/api/importers_pulp_imports_api_spec.rb +8 -8
- data/spec/api/orphans_api_spec.rb +2 -2
- data/spec/api/orphans_cleanup_api_spec.rb +2 -2
- data/spec/api/publications_api_spec.rb +4 -7
- data/spec/api/pulp_container_namespaces_api_spec.rb +17 -19
- data/spec/api/remotes_api_spec.rb +3 -6
- data/spec/api/remotes_container_api_spec.rb +21 -23
- data/spec/api/repair_api_spec.rb +2 -2
- data/spec/api/repositories_api_spec.rb +3 -14
- data/spec/api/repositories_container_api_spec.rb +39 -49
- data/spec/api/repositories_container_push_api_spec.rb +27 -37
- data/spec/api/repositories_container_push_versions_api_spec.rb +9 -10
- data/spec/api/repositories_container_versions_api_spec.rb +9 -10
- data/spec/api/repositories_reclaim_space_api_spec.rb +2 -2
- data/spec/api/repository_versions_api_spec.rb +3 -5
- data/spec/api/roles_api_spec.rb +19 -21
- data/spec/api/signing_services_api_spec.rb +5 -7
- data/spec/api/task_groups_api_spec.rb +4 -4
- data/spec/api/task_schedules_api_spec.rb +15 -17
- data/spec/api/tasks_api_spec.rb +32 -34
- data/spec/api/token_api_spec.rb +2 -2
- data/spec/api/uploads_api_spec.rb +21 -23
- data/spec/api/users_api_spec.rb +19 -21
- data/spec/api/users_roles_api_spec.rb +13 -16
- data/spec/api/workers_api_spec.rb +5 -7
- data/spec/configuration_spec.rb +3 -3
- data/spec/models/artifact_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_distribution_response_spec.rb +6 -6
- data/spec/models/container_container_distribution_spec.rb +4 -4
- data/spec/models/container_container_push_repository_response_spec.rb +6 -6
- data/spec/models/container_container_push_repository_spec.rb +4 -4
- data/spec/models/group_role_response_spec.rb +0 -6
- data/spec/models/group_role_spec.rb +0 -6
- data/spec/models/patchedcontainer_container_distribution_spec.rb +4 -4
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +4 -4
- data/spec/models/status_response_spec.rb +0 -6
- data/spec/models/user_role_response_spec.rb +0 -6
- data/spec/models/user_role_spec.rb +0 -6
- data/spec/models/version_response_spec.rb +0 -6
- metadata +196 -240
- data/docs/Domain.md +0 -27
- data/docs/DomainResponse.md +0 -31
- data/docs/DomainsApi.md +0 -366
- data/docs/PaginatedDomainResponseList.md +0 -23
- data/docs/PaginatedUpstreamPulpResponseList.md +0 -23
- data/docs/PatchedDomain.md +0 -27
- data/docs/PatchedUpstreamPulp.md +0 -37
- data/docs/StorageClassEnum.md +0 -16
- data/docs/UpstreamPulp.md +0 -37
- data/docs/UpstreamPulpResponse.md +0 -39
- data/docs/UpstreamPulpsApi.md +0 -405
- data/lib/pulp_container_client/api/domains_api.rb +0 -452
- data/lib/pulp_container_client/api/upstream_pulps_api.rb +0 -492
- data/lib/pulp_container_client/models/domain.rb +0 -323
- data/lib/pulp_container_client/models/domain_response.rb +0 -318
- data/lib/pulp_container_client/models/paginated_domain_response_list.rb +0 -237
- data/lib/pulp_container_client/models/paginated_upstream_pulp_response_list.rb +0 -237
- data/lib/pulp_container_client/models/patched_domain.rb +0 -304
- data/lib/pulp_container_client/models/patched_upstream_pulp.rb +0 -450
- data/lib/pulp_container_client/models/storage_class_enum.rb +0 -37
- data/lib/pulp_container_client/models/upstream_pulp.rb +0 -477
- data/lib/pulp_container_client/models/upstream_pulp_response.rb +0 -338
- data/spec/api/domains_api_spec.rb +0 -122
- data/spec/api/upstream_pulps_api_spec.rb +0 -127
- data/spec/models/domain_response_spec.rb +0 -83
- data/spec/models/domain_spec.rb +0 -71
- data/spec/models/paginated_domain_response_list_spec.rb +0 -59
- data/spec/models/paginated_upstream_pulp_response_list_spec.rb +0 -59
- data/spec/models/patched_domain_spec.rb +0 -71
- data/spec/models/patched_upstream_pulp_spec.rb +0 -101
- data/spec/models/storage_class_enum_spec.rb +0 -35
- data/spec/models/upstream_pulp_response_spec.rb +0 -107
- data/spec/models/upstream_pulp_spec.rb +0 -101
@@ -1,492 +0,0 @@
|
|
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 'cgi'
|
14
|
-
|
15
|
-
module PulpContainerClient
|
16
|
-
class UpstreamPulpsApi
|
17
|
-
attr_accessor :api_client
|
18
|
-
|
19
|
-
def initialize(api_client = ApiClient.default)
|
20
|
-
@api_client = api_client
|
21
|
-
end
|
22
|
-
# Create an upstream pulp
|
23
|
-
# API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
24
|
-
# @param upstream_pulp [UpstreamPulp]
|
25
|
-
# @param [Hash] opts the optional parameters
|
26
|
-
# @return [UpstreamPulpResponse]
|
27
|
-
def create(upstream_pulp, opts = {})
|
28
|
-
data, _status_code, _headers = create_with_http_info(upstream_pulp, opts)
|
29
|
-
data
|
30
|
-
end
|
31
|
-
|
32
|
-
# Create an upstream pulp
|
33
|
-
# API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
34
|
-
# @param upstream_pulp [UpstreamPulp]
|
35
|
-
# @param [Hash] opts the optional parameters
|
36
|
-
# @return [Array<(UpstreamPulpResponse, Integer, Hash)>] UpstreamPulpResponse data, response status code and response headers
|
37
|
-
def create_with_http_info(upstream_pulp, opts = {})
|
38
|
-
if @api_client.config.debugging
|
39
|
-
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.create ...'
|
40
|
-
end
|
41
|
-
# verify the required parameter 'upstream_pulp' is set
|
42
|
-
if @api_client.config.client_side_validation && upstream_pulp.nil?
|
43
|
-
fail ArgumentError, "Missing the required parameter 'upstream_pulp' when calling UpstreamPulpsApi.create"
|
44
|
-
end
|
45
|
-
# resource path
|
46
|
-
local_var_path = '/pulp/api/v3/upstream-pulps/'
|
47
|
-
|
48
|
-
# query parameters
|
49
|
-
query_params = opts[:query_params] || {}
|
50
|
-
|
51
|
-
# header parameters
|
52
|
-
header_params = opts[:header_params] || {}
|
53
|
-
# HTTP header 'Accept' (if needed)
|
54
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
55
|
-
# HTTP header 'Content-Type'
|
56
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
57
|
-
|
58
|
-
# form parameters
|
59
|
-
form_params = opts[:form_params] || {}
|
60
|
-
|
61
|
-
# http body (model)
|
62
|
-
post_body = opts[:body] || @api_client.object_to_http_body(upstream_pulp)
|
63
|
-
|
64
|
-
# return_type
|
65
|
-
return_type = opts[:return_type] || 'UpstreamPulpResponse'
|
66
|
-
|
67
|
-
# auth_names
|
68
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
69
|
-
|
70
|
-
new_options = opts.merge(
|
71
|
-
:header_params => header_params,
|
72
|
-
:query_params => query_params,
|
73
|
-
:form_params => form_params,
|
74
|
-
:body => post_body,
|
75
|
-
:auth_names => auth_names,
|
76
|
-
:return_type => return_type
|
77
|
-
)
|
78
|
-
|
79
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
80
|
-
if @api_client.config.debugging
|
81
|
-
@api_client.config.logger.debug "API called: UpstreamPulpsApi#create\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
82
|
-
end
|
83
|
-
return data, status_code, headers
|
84
|
-
end
|
85
|
-
|
86
|
-
# Delete an upstream pulp
|
87
|
-
# API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
88
|
-
# @param upstream_pulp_href [String]
|
89
|
-
# @param [Hash] opts the optional parameters
|
90
|
-
# @return [nil]
|
91
|
-
def delete(upstream_pulp_href, opts = {})
|
92
|
-
delete_with_http_info(upstream_pulp_href, opts)
|
93
|
-
nil
|
94
|
-
end
|
95
|
-
|
96
|
-
# Delete an upstream pulp
|
97
|
-
# API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
98
|
-
# @param upstream_pulp_href [String]
|
99
|
-
# @param [Hash] opts the optional parameters
|
100
|
-
# @return [Array<(nil, Integer, Hash)>] nil, response status code and response headers
|
101
|
-
def delete_with_http_info(upstream_pulp_href, opts = {})
|
102
|
-
if @api_client.config.debugging
|
103
|
-
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.delete ...'
|
104
|
-
end
|
105
|
-
# verify the required parameter 'upstream_pulp_href' is set
|
106
|
-
if @api_client.config.client_side_validation && upstream_pulp_href.nil?
|
107
|
-
fail ArgumentError, "Missing the required parameter 'upstream_pulp_href' when calling UpstreamPulpsApi.delete"
|
108
|
-
end
|
109
|
-
# resource path
|
110
|
-
local_var_path = '{upstream_pulp_href}'.sub('{' + 'upstream_pulp_href' + '}', CGI.escape(upstream_pulp_href.to_s).gsub('%2F', '/'))
|
111
|
-
|
112
|
-
# query parameters
|
113
|
-
query_params = opts[:query_params] || {}
|
114
|
-
|
115
|
-
# header parameters
|
116
|
-
header_params = opts[:header_params] || {}
|
117
|
-
|
118
|
-
# form parameters
|
119
|
-
form_params = opts[:form_params] || {}
|
120
|
-
|
121
|
-
# http body (model)
|
122
|
-
post_body = opts[:body]
|
123
|
-
|
124
|
-
# return_type
|
125
|
-
return_type = opts[:return_type]
|
126
|
-
|
127
|
-
# auth_names
|
128
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
129
|
-
|
130
|
-
new_options = opts.merge(
|
131
|
-
:header_params => header_params,
|
132
|
-
:query_params => query_params,
|
133
|
-
:form_params => form_params,
|
134
|
-
:body => post_body,
|
135
|
-
:auth_names => auth_names,
|
136
|
-
:return_type => return_type
|
137
|
-
)
|
138
|
-
|
139
|
-
data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, new_options)
|
140
|
-
if @api_client.config.debugging
|
141
|
-
@api_client.config.logger.debug "API called: UpstreamPulpsApi#delete\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
142
|
-
end
|
143
|
-
return data, status_code, headers
|
144
|
-
end
|
145
|
-
|
146
|
-
# List upstream pulps
|
147
|
-
# API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
148
|
-
# @param [Hash] opts the optional parameters
|
149
|
-
# @option opts [Integer] :limit Number of results to return per page.
|
150
|
-
# @option opts [Integer] :offset The initial index from which to return the results.
|
151
|
-
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
152
|
-
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
153
|
-
# @return [PaginatedUpstreamPulpResponseList]
|
154
|
-
def list(opts = {})
|
155
|
-
data, _status_code, _headers = list_with_http_info(opts)
|
156
|
-
data
|
157
|
-
end
|
158
|
-
|
159
|
-
# List upstream pulps
|
160
|
-
# API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
161
|
-
# @param [Hash] opts the optional parameters
|
162
|
-
# @option opts [Integer] :limit Number of results to return per page.
|
163
|
-
# @option opts [Integer] :offset The initial index from which to return the results.
|
164
|
-
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
165
|
-
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
166
|
-
# @return [Array<(PaginatedUpstreamPulpResponseList, Integer, Hash)>] PaginatedUpstreamPulpResponseList data, response status code and response headers
|
167
|
-
def list_with_http_info(opts = {})
|
168
|
-
if @api_client.config.debugging
|
169
|
-
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.list ...'
|
170
|
-
end
|
171
|
-
# resource path
|
172
|
-
local_var_path = '/pulp/api/v3/upstream-pulps/'
|
173
|
-
|
174
|
-
# query parameters
|
175
|
-
query_params = opts[:query_params] || {}
|
176
|
-
query_params[:'limit'] = opts[:'limit'] if !opts[:'limit'].nil?
|
177
|
-
query_params[:'offset'] = opts[:'offset'] if !opts[:'offset'].nil?
|
178
|
-
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
179
|
-
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
180
|
-
|
181
|
-
# header parameters
|
182
|
-
header_params = opts[:header_params] || {}
|
183
|
-
# HTTP header 'Accept' (if needed)
|
184
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
185
|
-
|
186
|
-
# form parameters
|
187
|
-
form_params = opts[:form_params] || {}
|
188
|
-
|
189
|
-
# http body (model)
|
190
|
-
post_body = opts[:body]
|
191
|
-
|
192
|
-
# return_type
|
193
|
-
return_type = opts[:return_type] || 'PaginatedUpstreamPulpResponseList'
|
194
|
-
|
195
|
-
# auth_names
|
196
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
197
|
-
|
198
|
-
new_options = opts.merge(
|
199
|
-
:header_params => header_params,
|
200
|
-
:query_params => query_params,
|
201
|
-
:form_params => form_params,
|
202
|
-
:body => post_body,
|
203
|
-
:auth_names => auth_names,
|
204
|
-
:return_type => return_type
|
205
|
-
)
|
206
|
-
|
207
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
208
|
-
if @api_client.config.debugging
|
209
|
-
@api_client.config.logger.debug "API called: UpstreamPulpsApi#list\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
210
|
-
end
|
211
|
-
return data, status_code, headers
|
212
|
-
end
|
213
|
-
|
214
|
-
# Update an upstream pulp
|
215
|
-
# API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
216
|
-
# @param upstream_pulp_href [String]
|
217
|
-
# @param patched_upstream_pulp [PatchedUpstreamPulp]
|
218
|
-
# @param [Hash] opts the optional parameters
|
219
|
-
# @return [UpstreamPulpResponse]
|
220
|
-
def partial_update(upstream_pulp_href, patched_upstream_pulp, opts = {})
|
221
|
-
data, _status_code, _headers = partial_update_with_http_info(upstream_pulp_href, patched_upstream_pulp, opts)
|
222
|
-
data
|
223
|
-
end
|
224
|
-
|
225
|
-
# Update an upstream pulp
|
226
|
-
# API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
227
|
-
# @param upstream_pulp_href [String]
|
228
|
-
# @param patched_upstream_pulp [PatchedUpstreamPulp]
|
229
|
-
# @param [Hash] opts the optional parameters
|
230
|
-
# @return [Array<(UpstreamPulpResponse, Integer, Hash)>] UpstreamPulpResponse data, response status code and response headers
|
231
|
-
def partial_update_with_http_info(upstream_pulp_href, patched_upstream_pulp, opts = {})
|
232
|
-
if @api_client.config.debugging
|
233
|
-
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.partial_update ...'
|
234
|
-
end
|
235
|
-
# verify the required parameter 'upstream_pulp_href' is set
|
236
|
-
if @api_client.config.client_side_validation && upstream_pulp_href.nil?
|
237
|
-
fail ArgumentError, "Missing the required parameter 'upstream_pulp_href' when calling UpstreamPulpsApi.partial_update"
|
238
|
-
end
|
239
|
-
# verify the required parameter 'patched_upstream_pulp' is set
|
240
|
-
if @api_client.config.client_side_validation && patched_upstream_pulp.nil?
|
241
|
-
fail ArgumentError, "Missing the required parameter 'patched_upstream_pulp' when calling UpstreamPulpsApi.partial_update"
|
242
|
-
end
|
243
|
-
# resource path
|
244
|
-
local_var_path = '{upstream_pulp_href}'.sub('{' + 'upstream_pulp_href' + '}', CGI.escape(upstream_pulp_href.to_s).gsub('%2F', '/'))
|
245
|
-
|
246
|
-
# query parameters
|
247
|
-
query_params = opts[:query_params] || {}
|
248
|
-
|
249
|
-
# header parameters
|
250
|
-
header_params = opts[:header_params] || {}
|
251
|
-
# HTTP header 'Accept' (if needed)
|
252
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
253
|
-
# HTTP header 'Content-Type'
|
254
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
255
|
-
|
256
|
-
# form parameters
|
257
|
-
form_params = opts[:form_params] || {}
|
258
|
-
|
259
|
-
# http body (model)
|
260
|
-
post_body = opts[:body] || @api_client.object_to_http_body(patched_upstream_pulp)
|
261
|
-
|
262
|
-
# return_type
|
263
|
-
return_type = opts[:return_type] || 'UpstreamPulpResponse'
|
264
|
-
|
265
|
-
# auth_names
|
266
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
267
|
-
|
268
|
-
new_options = opts.merge(
|
269
|
-
:header_params => header_params,
|
270
|
-
:query_params => query_params,
|
271
|
-
:form_params => form_params,
|
272
|
-
:body => post_body,
|
273
|
-
:auth_names => auth_names,
|
274
|
-
:return_type => return_type
|
275
|
-
)
|
276
|
-
|
277
|
-
data, status_code, headers = @api_client.call_api(:PATCH, local_var_path, new_options)
|
278
|
-
if @api_client.config.debugging
|
279
|
-
@api_client.config.logger.debug "API called: UpstreamPulpsApi#partial_update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
280
|
-
end
|
281
|
-
return data, status_code, headers
|
282
|
-
end
|
283
|
-
|
284
|
-
# Inspect an upstream pulp
|
285
|
-
# API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
286
|
-
# @param upstream_pulp_href [String]
|
287
|
-
# @param [Hash] opts the optional parameters
|
288
|
-
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
289
|
-
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
290
|
-
# @return [UpstreamPulpResponse]
|
291
|
-
def read(upstream_pulp_href, opts = {})
|
292
|
-
data, _status_code, _headers = read_with_http_info(upstream_pulp_href, opts)
|
293
|
-
data
|
294
|
-
end
|
295
|
-
|
296
|
-
# Inspect an upstream pulp
|
297
|
-
# API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
298
|
-
# @param upstream_pulp_href [String]
|
299
|
-
# @param [Hash] opts the optional parameters
|
300
|
-
# @option opts [Array<String>] :fields A list of fields to include in the response.
|
301
|
-
# @option opts [Array<String>] :exclude_fields A list of fields to exclude from the response.
|
302
|
-
# @return [Array<(UpstreamPulpResponse, Integer, Hash)>] UpstreamPulpResponse data, response status code and response headers
|
303
|
-
def read_with_http_info(upstream_pulp_href, opts = {})
|
304
|
-
if @api_client.config.debugging
|
305
|
-
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.read ...'
|
306
|
-
end
|
307
|
-
# verify the required parameter 'upstream_pulp_href' is set
|
308
|
-
if @api_client.config.client_side_validation && upstream_pulp_href.nil?
|
309
|
-
fail ArgumentError, "Missing the required parameter 'upstream_pulp_href' when calling UpstreamPulpsApi.read"
|
310
|
-
end
|
311
|
-
# resource path
|
312
|
-
local_var_path = '{upstream_pulp_href}'.sub('{' + 'upstream_pulp_href' + '}', CGI.escape(upstream_pulp_href.to_s).gsub('%2F', '/'))
|
313
|
-
|
314
|
-
# query parameters
|
315
|
-
query_params = opts[:query_params] || {}
|
316
|
-
query_params[:'fields'] = @api_client.build_collection_param(opts[:'fields'], :multi) if !opts[:'fields'].nil?
|
317
|
-
query_params[:'exclude_fields'] = @api_client.build_collection_param(opts[:'exclude_fields'], :multi) if !opts[:'exclude_fields'].nil?
|
318
|
-
|
319
|
-
# header parameters
|
320
|
-
header_params = opts[:header_params] || {}
|
321
|
-
# HTTP header 'Accept' (if needed)
|
322
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
323
|
-
|
324
|
-
# form parameters
|
325
|
-
form_params = opts[:form_params] || {}
|
326
|
-
|
327
|
-
# http body (model)
|
328
|
-
post_body = opts[:body]
|
329
|
-
|
330
|
-
# return_type
|
331
|
-
return_type = opts[:return_type] || 'UpstreamPulpResponse'
|
332
|
-
|
333
|
-
# auth_names
|
334
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
335
|
-
|
336
|
-
new_options = opts.merge(
|
337
|
-
:header_params => header_params,
|
338
|
-
:query_params => query_params,
|
339
|
-
:form_params => form_params,
|
340
|
-
:body => post_body,
|
341
|
-
:auth_names => auth_names,
|
342
|
-
:return_type => return_type
|
343
|
-
)
|
344
|
-
|
345
|
-
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
346
|
-
if @api_client.config.debugging
|
347
|
-
@api_client.config.logger.debug "API called: UpstreamPulpsApi#read\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
348
|
-
end
|
349
|
-
return data, status_code, headers
|
350
|
-
end
|
351
|
-
|
352
|
-
# Replicate
|
353
|
-
# Trigger an asynchronous repository replication task group. This API is provided as a tech preview.
|
354
|
-
# @param upstream_pulp_href [String]
|
355
|
-
# @param upstream_pulp [UpstreamPulp]
|
356
|
-
# @param [Hash] opts the optional parameters
|
357
|
-
# @return [AsyncOperationResponse]
|
358
|
-
def replicate(upstream_pulp_href, upstream_pulp, opts = {})
|
359
|
-
data, _status_code, _headers = replicate_with_http_info(upstream_pulp_href, upstream_pulp, opts)
|
360
|
-
data
|
361
|
-
end
|
362
|
-
|
363
|
-
# Replicate
|
364
|
-
# Trigger an asynchronous repository replication task group. This API is provided as a tech preview.
|
365
|
-
# @param upstream_pulp_href [String]
|
366
|
-
# @param upstream_pulp [UpstreamPulp]
|
367
|
-
# @param [Hash] opts the optional parameters
|
368
|
-
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
369
|
-
def replicate_with_http_info(upstream_pulp_href, upstream_pulp, opts = {})
|
370
|
-
if @api_client.config.debugging
|
371
|
-
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.replicate ...'
|
372
|
-
end
|
373
|
-
# verify the required parameter 'upstream_pulp_href' is set
|
374
|
-
if @api_client.config.client_side_validation && upstream_pulp_href.nil?
|
375
|
-
fail ArgumentError, "Missing the required parameter 'upstream_pulp_href' when calling UpstreamPulpsApi.replicate"
|
376
|
-
end
|
377
|
-
# verify the required parameter 'upstream_pulp' is set
|
378
|
-
if @api_client.config.client_side_validation && upstream_pulp.nil?
|
379
|
-
fail ArgumentError, "Missing the required parameter 'upstream_pulp' when calling UpstreamPulpsApi.replicate"
|
380
|
-
end
|
381
|
-
# resource path
|
382
|
-
local_var_path = '{upstream_pulp_href}replicate/'.sub('{' + 'upstream_pulp_href' + '}', CGI.escape(upstream_pulp_href.to_s).gsub('%2F', '/'))
|
383
|
-
|
384
|
-
# query parameters
|
385
|
-
query_params = opts[:query_params] || {}
|
386
|
-
|
387
|
-
# header parameters
|
388
|
-
header_params = opts[:header_params] || {}
|
389
|
-
# HTTP header 'Accept' (if needed)
|
390
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
391
|
-
# HTTP header 'Content-Type'
|
392
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
393
|
-
|
394
|
-
# form parameters
|
395
|
-
form_params = opts[:form_params] || {}
|
396
|
-
|
397
|
-
# http body (model)
|
398
|
-
post_body = opts[:body] || @api_client.object_to_http_body(upstream_pulp)
|
399
|
-
|
400
|
-
# return_type
|
401
|
-
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
402
|
-
|
403
|
-
# auth_names
|
404
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
405
|
-
|
406
|
-
new_options = opts.merge(
|
407
|
-
:header_params => header_params,
|
408
|
-
:query_params => query_params,
|
409
|
-
:form_params => form_params,
|
410
|
-
:body => post_body,
|
411
|
-
:auth_names => auth_names,
|
412
|
-
:return_type => return_type
|
413
|
-
)
|
414
|
-
|
415
|
-
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
416
|
-
if @api_client.config.debugging
|
417
|
-
@api_client.config.logger.debug "API called: UpstreamPulpsApi#replicate\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
418
|
-
end
|
419
|
-
return data, status_code, headers
|
420
|
-
end
|
421
|
-
|
422
|
-
# Update an upstream pulp
|
423
|
-
# API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
424
|
-
# @param upstream_pulp_href [String]
|
425
|
-
# @param upstream_pulp [UpstreamPulp]
|
426
|
-
# @param [Hash] opts the optional parameters
|
427
|
-
# @return [UpstreamPulpResponse]
|
428
|
-
def update(upstream_pulp_href, upstream_pulp, opts = {})
|
429
|
-
data, _status_code, _headers = update_with_http_info(upstream_pulp_href, upstream_pulp, opts)
|
430
|
-
data
|
431
|
-
end
|
432
|
-
|
433
|
-
# Update an upstream pulp
|
434
|
-
# API for configuring an upstream Pulp to replicate. This API is provided as a tech preview.
|
435
|
-
# @param upstream_pulp_href [String]
|
436
|
-
# @param upstream_pulp [UpstreamPulp]
|
437
|
-
# @param [Hash] opts the optional parameters
|
438
|
-
# @return [Array<(UpstreamPulpResponse, Integer, Hash)>] UpstreamPulpResponse data, response status code and response headers
|
439
|
-
def update_with_http_info(upstream_pulp_href, upstream_pulp, opts = {})
|
440
|
-
if @api_client.config.debugging
|
441
|
-
@api_client.config.logger.debug 'Calling API: UpstreamPulpsApi.update ...'
|
442
|
-
end
|
443
|
-
# verify the required parameter 'upstream_pulp_href' is set
|
444
|
-
if @api_client.config.client_side_validation && upstream_pulp_href.nil?
|
445
|
-
fail ArgumentError, "Missing the required parameter 'upstream_pulp_href' when calling UpstreamPulpsApi.update"
|
446
|
-
end
|
447
|
-
# verify the required parameter 'upstream_pulp' is set
|
448
|
-
if @api_client.config.client_side_validation && upstream_pulp.nil?
|
449
|
-
fail ArgumentError, "Missing the required parameter 'upstream_pulp' when calling UpstreamPulpsApi.update"
|
450
|
-
end
|
451
|
-
# resource path
|
452
|
-
local_var_path = '{upstream_pulp_href}'.sub('{' + 'upstream_pulp_href' + '}', CGI.escape(upstream_pulp_href.to_s).gsub('%2F', '/'))
|
453
|
-
|
454
|
-
# query parameters
|
455
|
-
query_params = opts[:query_params] || {}
|
456
|
-
|
457
|
-
# header parameters
|
458
|
-
header_params = opts[:header_params] || {}
|
459
|
-
# HTTP header 'Accept' (if needed)
|
460
|
-
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
461
|
-
# HTTP header 'Content-Type'
|
462
|
-
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
463
|
-
|
464
|
-
# form parameters
|
465
|
-
form_params = opts[:form_params] || {}
|
466
|
-
|
467
|
-
# http body (model)
|
468
|
-
post_body = opts[:body] || @api_client.object_to_http_body(upstream_pulp)
|
469
|
-
|
470
|
-
# return_type
|
471
|
-
return_type = opts[:return_type] || 'UpstreamPulpResponse'
|
472
|
-
|
473
|
-
# auth_names
|
474
|
-
auth_names = opts[:auth_names] || ['basicAuth']
|
475
|
-
|
476
|
-
new_options = opts.merge(
|
477
|
-
:header_params => header_params,
|
478
|
-
:query_params => query_params,
|
479
|
-
:form_params => form_params,
|
480
|
-
:body => post_body,
|
481
|
-
:auth_names => auth_names,
|
482
|
-
:return_type => return_type
|
483
|
-
)
|
484
|
-
|
485
|
-
data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options)
|
486
|
-
if @api_client.config.debugging
|
487
|
-
@api_client.config.logger.debug "API called: UpstreamPulpsApi#update\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
488
|
-
end
|
489
|
-
return data, status_code, headers
|
490
|
-
end
|
491
|
-
end
|
492
|
-
end
|