pulp_container_client 2.10.13 → 2.11.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 +41 -17
- data/docs/ContainerBlobResponse.md +1 -3
- data/docs/ContainerContainerDistribution.md +5 -5
- data/docs/ContainerContainerDistributionResponse.md +9 -9
- data/docs/ContainerContainerPushRepository.md +7 -5
- data/docs/ContainerContainerPushRepositoryResponse.md +14 -12
- data/docs/ContainerContainerRemote.md +3 -1
- data/docs/ContainerContainerRemoteResponse.md +3 -1
- data/docs/ContainerContainerRepository.md +3 -1
- data/docs/ContainerContainerRepositoryResponse.md +3 -1
- data/docs/ContainerManifestSignatureResponse.md +33 -0
- data/docs/{RepositorySyncURL.md → ContainerRepositorySyncURL.md} +5 -3
- data/docs/ContentBlobsApi.md +0 -2
- data/docs/ContentSignaturesApi.md +158 -0
- data/docs/ContentSummary.md +21 -0
- data/docs/DistributionsContainerApi.md +228 -0
- data/docs/MyPermissionsResponse.md +17 -0
- data/docs/NestedRole.md +21 -0
- data/docs/NestedRoleResponse.md +21 -0
- data/docs/ObjectRolesResponse.md +17 -0
- data/docs/{PaginatedcontainerContentRedirectContentGuardResponseList.md → PaginatedcontainerManifestSignatureResponseList.md} +3 -3
- data/docs/PatchedcontainerContainerDistribution.md +5 -5
- data/docs/PatchedcontainerContainerPushRepository.md +7 -5
- data/docs/PatchedcontainerContainerRemote.md +3 -1
- data/docs/PatchedcontainerContainerRepository.md +3 -1
- data/docs/PulpContainerNamespacesApi.md +228 -0
- data/docs/RemotesContainerApi.md +228 -0
- data/docs/RemoveSignatures.md +17 -0
- data/docs/RemoveSignaturesResponse.md +17 -0
- data/docs/RepositoriesContainerApi.md +288 -4
- data/docs/RepositoriesContainerPushApi.md +339 -0
- data/docs/RepositoriesContainerPushVersionsApi.md +4 -4
- data/docs/RepositoriesContainerVersionsApi.md +4 -4
- data/docs/RepositorySign.md +21 -0
- data/docs/RepositoryVersion.md +17 -0
- data/git_push.sh +58 -0
- data/lib/pulp_container_client/api/content_blobs_api.rb +0 -7
- data/lib/pulp_container_client/api/content_signatures_api.rb +200 -0
- data/lib/pulp_container_client/api/distributions_container_api.rb +268 -0
- data/lib/pulp_container_client/api/pulp_container_namespaces_api.rb +268 -0
- data/lib/pulp_container_client/api/remotes_container_api.rb +268 -0
- data/lib/pulp_container_client/api/repositories_container_api.rb +347 -9
- data/lib/pulp_container_client/api/repositories_container_push_api.rb +406 -0
- data/lib/pulp_container_client/api/repositories_container_push_versions_api.rb +9 -9
- data/lib/pulp_container_client/api/repositories_container_versions_api.rb +9 -9
- data/lib/pulp_container_client/api_client.rb +5 -2
- data/lib/pulp_container_client/configuration.rb +0 -1
- data/lib/pulp_container_client/models/container_blob_response.rb +4 -19
- data/lib/pulp_container_client/models/container_container_distribution.rb +21 -21
- data/lib/pulp_container_client/models/container_container_distribution_response.rb +34 -34
- data/lib/pulp_container_client/models/container_container_push_repository.rb +44 -33
- data/lib/pulp_container_client/models/container_container_push_repository_response.rb +55 -44
- data/lib/pulp_container_client/models/container_container_remote.rb +30 -5
- data/lib/pulp_container_client/models/container_container_remote_response.rb +15 -5
- data/lib/pulp_container_client/models/container_container_repository.rb +16 -5
- data/lib/pulp_container_client/models/container_container_repository_response.rb +16 -5
- data/lib/pulp_container_client/models/{container_content_redirect_content_guard.rb → container_manifest_signature_response.rb} +108 -44
- data/lib/pulp_container_client/models/{repository_sync_url.rb → container_repository_sync_url.rb} +20 -8
- data/lib/pulp_container_client/models/content_summary.rb +246 -0
- data/lib/pulp_container_client/models/my_permissions_response.rb +213 -0
- data/lib/pulp_container_client/models/{container_content_redirect_content_guard_response.rb → nested_role.rb} +30 -39
- data/lib/pulp_container_client/models/nested_role_response.rb +234 -0
- data/lib/pulp_container_client/models/{repair.rb → object_roles_response.rb} +17 -13
- data/lib/pulp_container_client/models/{paginatedcontainer_content_redirect_content_guard_response_list.rb → paginatedcontainer_manifest_signature_response_list.rb} +4 -4
- data/lib/pulp_container_client/models/patchedcontainer_container_distribution.rb +21 -21
- data/lib/pulp_container_client/models/patchedcontainer_container_push_repository.rb +44 -33
- data/lib/pulp_container_client/models/patchedcontainer_container_remote.rb +30 -5
- data/lib/pulp_container_client/models/patchedcontainer_container_repository.rb +16 -5
- data/lib/pulp_container_client/models/remove_signatures.rb +232 -0
- data/lib/pulp_container_client/models/remove_signatures_response.rb +213 -0
- data/lib/pulp_container_client/models/{patchedcontainer_content_redirect_content_guard.rb → repository_sign.rb} +40 -43
- data/lib/pulp_container_client/models/repository_version.rb +208 -0
- data/lib/pulp_container_client/version.rb +1 -1
- data/lib/pulp_container_client.rb +13 -7
- data/pulp_container_client.gemspec +3 -3
- data/spec/api/content_blobs_api_spec.rb +0 -1
- data/spec/api/content_signatures_api_spec.rb +78 -0
- data/spec/api/distributions_container_api_spec.rb +50 -0
- data/spec/api/pulp_container_namespaces_api_spec.rb +50 -0
- data/spec/api/remotes_container_api_spec.rb +50 -0
- data/spec/api/repositories_container_api_spec.rb +64 -1
- data/spec/api/repositories_container_push_api_spec.rb +75 -0
- data/spec/api/repositories_container_push_versions_api_spec.rb +1 -1
- data/spec/api/repositories_container_versions_api_spec.rb +1 -1
- data/spec/models/container_blob_response_spec.rb +0 -6
- data/spec/models/container_container_distribution_response_spec.rb +7 -7
- data/spec/models/container_container_distribution_spec.rb +5 -5
- data/spec/models/container_container_push_repository_response_spec.rb +13 -7
- data/spec/models/container_container_push_repository_spec.rb +9 -3
- data/spec/models/container_container_remote_response_spec.rb +6 -0
- data/spec/models/container_container_remote_spec.rb +6 -0
- data/spec/models/container_container_repository_response_spec.rb +6 -0
- data/spec/models/container_container_repository_spec.rb +6 -0
- data/spec/models/container_manifest_signature_response_spec.rb +89 -0
- data/spec/models/{container_content_redirect_content_guard_response_spec.rb → container_repository_sync_url_spec.rb} +9 -15
- data/spec/models/{container_content_redirect_content_guard_spec.rb → content_summary_spec.rb} +14 -8
- data/spec/models/my_permissions_response_spec.rb +41 -0
- data/spec/models/nested_role_response_spec.rb +53 -0
- data/spec/models/{patchedcontainer_content_redirect_content_guard_spec.rb → nested_role_spec.rb} +14 -8
- data/spec/models/object_roles_response_spec.rb +41 -0
- data/spec/models/{paginatedcontainer_content_redirect_content_guard_response_list_spec.rb → paginatedcontainer_manifest_signature_response_list_spec.rb} +6 -6
- data/spec/models/patchedcontainer_container_distribution_spec.rb +5 -5
- data/spec/models/patchedcontainer_container_push_repository_spec.rb +9 -3
- data/spec/models/patchedcontainer_container_remote_spec.rb +6 -0
- data/spec/models/patchedcontainer_container_repository_spec.rb +6 -0
- data/spec/models/remove_signatures_response_spec.rb +41 -0
- data/spec/models/{repair_spec.rb → remove_signatures_spec.rb} +7 -7
- data/spec/models/{repository_sync_url_spec.rb → repository_sign_spec.rb} +14 -8
- data/spec/models/repository_version_spec.rb +41 -0
- metadata +99 -74
- data/docs/ContainerContentRedirectContentGuard.md +0 -19
- data/docs/ContainerContentRedirectContentGuardResponse.md +0 -23
- data/docs/ContentguardsContentRedirectApi.md +0 -361
- data/docs/PatchedcontainerContentRedirectContentGuard.md +0 -19
- data/docs/Repair.md +0 -17
- data/lib/pulp_container_client/api/contentguards_content_redirect_api.rb +0 -440
- data/spec/api/contentguards_content_redirect_api_spec.rb +0 -120
@@ -89,6 +89,74 @@ module PulpContainerClient
|
|
89
89
|
return data, status_code, headers
|
90
90
|
end
|
91
91
|
|
92
|
+
# Add a role for this object to users/groups.
|
93
|
+
# @param container_container_repository_href [String]
|
94
|
+
# @param nested_role [NestedRole]
|
95
|
+
# @param [Hash] opts the optional parameters
|
96
|
+
# @return [NestedRoleResponse]
|
97
|
+
def add_role(container_container_repository_href, nested_role, opts = {})
|
98
|
+
data, _status_code, _headers = add_role_with_http_info(container_container_repository_href, nested_role, opts)
|
99
|
+
data
|
100
|
+
end
|
101
|
+
|
102
|
+
# Add a role for this object to users/groups.
|
103
|
+
# @param container_container_repository_href [String]
|
104
|
+
# @param nested_role [NestedRole]
|
105
|
+
# @param [Hash] opts the optional parameters
|
106
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
107
|
+
def add_role_with_http_info(container_container_repository_href, nested_role, opts = {})
|
108
|
+
if @api_client.config.debugging
|
109
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.add_role ...'
|
110
|
+
end
|
111
|
+
# verify the required parameter 'container_container_repository_href' is set
|
112
|
+
if @api_client.config.client_side_validation && container_container_repository_href.nil?
|
113
|
+
fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerApi.add_role"
|
114
|
+
end
|
115
|
+
# verify the required parameter 'nested_role' is set
|
116
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
117
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling RepositoriesContainerApi.add_role"
|
118
|
+
end
|
119
|
+
# resource path
|
120
|
+
local_var_path = '{container_container_repository_href}add_role/'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))
|
121
|
+
|
122
|
+
# query parameters
|
123
|
+
query_params = opts[:query_params] || {}
|
124
|
+
|
125
|
+
# header parameters
|
126
|
+
header_params = opts[:header_params] || {}
|
127
|
+
# HTTP header 'Accept' (if needed)
|
128
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
129
|
+
# HTTP header 'Content-Type'
|
130
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
131
|
+
|
132
|
+
# form parameters
|
133
|
+
form_params = opts[:form_params] || {}
|
134
|
+
|
135
|
+
# http body (model)
|
136
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
137
|
+
|
138
|
+
# return_type
|
139
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
140
|
+
|
141
|
+
# auth_names
|
142
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
143
|
+
|
144
|
+
new_options = opts.merge(
|
145
|
+
:header_params => header_params,
|
146
|
+
:query_params => query_params,
|
147
|
+
:form_params => form_params,
|
148
|
+
:body => post_body,
|
149
|
+
:auth_names => auth_names,
|
150
|
+
:return_type => return_type
|
151
|
+
)
|
152
|
+
|
153
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
154
|
+
if @api_client.config.debugging
|
155
|
+
@api_client.config.logger.debug "API called: RepositoriesContainerApi#add_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
156
|
+
end
|
157
|
+
return data, status_code, headers
|
158
|
+
end
|
159
|
+
|
92
160
|
# Build an Image
|
93
161
|
# Trigger an asynchronous task to build an OCI image from a Containerfile. A new repository version is created with the new image and tag. This API is tech preview in Pulp Container 1.1. Backwards compatibility when upgrading is not guaranteed.
|
94
162
|
# @param container_container_repository_href [String]
|
@@ -524,6 +592,138 @@ module PulpContainerClient
|
|
524
592
|
return data, status_code, headers
|
525
593
|
end
|
526
594
|
|
595
|
+
# List roles assigned to this object.
|
596
|
+
# @param container_container_repository_href [String]
|
597
|
+
# @param [Hash] opts the optional parameters
|
598
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
599
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
600
|
+
# @return [ObjectRolesResponse]
|
601
|
+
def list_roles(container_container_repository_href, opts = {})
|
602
|
+
data, _status_code, _headers = list_roles_with_http_info(container_container_repository_href, opts)
|
603
|
+
data
|
604
|
+
end
|
605
|
+
|
606
|
+
# List roles assigned to this object.
|
607
|
+
# @param container_container_repository_href [String]
|
608
|
+
# @param [Hash] opts the optional parameters
|
609
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
610
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
611
|
+
# @return [Array<(ObjectRolesResponse, Integer, Hash)>] ObjectRolesResponse data, response status code and response headers
|
612
|
+
def list_roles_with_http_info(container_container_repository_href, opts = {})
|
613
|
+
if @api_client.config.debugging
|
614
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.list_roles ...'
|
615
|
+
end
|
616
|
+
# verify the required parameter 'container_container_repository_href' is set
|
617
|
+
if @api_client.config.client_side_validation && container_container_repository_href.nil?
|
618
|
+
fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerApi.list_roles"
|
619
|
+
end
|
620
|
+
# resource path
|
621
|
+
local_var_path = '{container_container_repository_href}list_roles/'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))
|
622
|
+
|
623
|
+
# query parameters
|
624
|
+
query_params = opts[:query_params] || {}
|
625
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
626
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
627
|
+
|
628
|
+
# header parameters
|
629
|
+
header_params = opts[:header_params] || {}
|
630
|
+
# HTTP header 'Accept' (if needed)
|
631
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
632
|
+
|
633
|
+
# form parameters
|
634
|
+
form_params = opts[:form_params] || {}
|
635
|
+
|
636
|
+
# http body (model)
|
637
|
+
post_body = opts[:body]
|
638
|
+
|
639
|
+
# return_type
|
640
|
+
return_type = opts[:return_type] || 'ObjectRolesResponse'
|
641
|
+
|
642
|
+
# auth_names
|
643
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
644
|
+
|
645
|
+
new_options = opts.merge(
|
646
|
+
:header_params => header_params,
|
647
|
+
:query_params => query_params,
|
648
|
+
:form_params => form_params,
|
649
|
+
:body => post_body,
|
650
|
+
:auth_names => auth_names,
|
651
|
+
:return_type => return_type
|
652
|
+
)
|
653
|
+
|
654
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
655
|
+
if @api_client.config.debugging
|
656
|
+
@api_client.config.logger.debug "API called: RepositoriesContainerApi#list_roles\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
657
|
+
end
|
658
|
+
return data, status_code, headers
|
659
|
+
end
|
660
|
+
|
661
|
+
# List permissions available to the current user on this object.
|
662
|
+
# @param container_container_repository_href [String]
|
663
|
+
# @param [Hash] opts the optional parameters
|
664
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
665
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
666
|
+
# @return [MyPermissionsResponse]
|
667
|
+
def my_permissions(container_container_repository_href, opts = {})
|
668
|
+
data, _status_code, _headers = my_permissions_with_http_info(container_container_repository_href, opts)
|
669
|
+
data
|
670
|
+
end
|
671
|
+
|
672
|
+
# List permissions available to the current user on this object.
|
673
|
+
# @param container_container_repository_href [String]
|
674
|
+
# @param [Hash] opts the optional parameters
|
675
|
+
# @option opts [String] :fields A list of fields to include in the response.
|
676
|
+
# @option opts [String] :exclude_fields A list of fields to exclude from the response.
|
677
|
+
# @return [Array<(MyPermissionsResponse, Integer, Hash)>] MyPermissionsResponse data, response status code and response headers
|
678
|
+
def my_permissions_with_http_info(container_container_repository_href, opts = {})
|
679
|
+
if @api_client.config.debugging
|
680
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.my_permissions ...'
|
681
|
+
end
|
682
|
+
# verify the required parameter 'container_container_repository_href' is set
|
683
|
+
if @api_client.config.client_side_validation && container_container_repository_href.nil?
|
684
|
+
fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerApi.my_permissions"
|
685
|
+
end
|
686
|
+
# resource path
|
687
|
+
local_var_path = '{container_container_repository_href}my_permissions/'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))
|
688
|
+
|
689
|
+
# query parameters
|
690
|
+
query_params = opts[:query_params] || {}
|
691
|
+
query_params[:'fields'] = opts[:'fields'] if !opts[:'fields'].nil?
|
692
|
+
query_params[:'exclude_fields'] = opts[:'exclude_fields'] if !opts[:'exclude_fields'].nil?
|
693
|
+
|
694
|
+
# header parameters
|
695
|
+
header_params = opts[:header_params] || {}
|
696
|
+
# HTTP header 'Accept' (if needed)
|
697
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
698
|
+
|
699
|
+
# form parameters
|
700
|
+
form_params = opts[:form_params] || {}
|
701
|
+
|
702
|
+
# http body (model)
|
703
|
+
post_body = opts[:body]
|
704
|
+
|
705
|
+
# return_type
|
706
|
+
return_type = opts[:return_type] || 'MyPermissionsResponse'
|
707
|
+
|
708
|
+
# auth_names
|
709
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
710
|
+
|
711
|
+
new_options = opts.merge(
|
712
|
+
:header_params => header_params,
|
713
|
+
:query_params => query_params,
|
714
|
+
:form_params => form_params,
|
715
|
+
:body => post_body,
|
716
|
+
:auth_names => auth_names,
|
717
|
+
:return_type => return_type
|
718
|
+
)
|
719
|
+
|
720
|
+
data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options)
|
721
|
+
if @api_client.config.debugging
|
722
|
+
@api_client.config.logger.debug "API called: RepositoriesContainerApi#my_permissions\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
723
|
+
end
|
724
|
+
return data, status_code, headers
|
725
|
+
end
|
726
|
+
|
527
727
|
# Update a container repository
|
528
728
|
# Trigger an asynchronous partial update task
|
529
729
|
# @param container_container_repository_href [String]
|
@@ -732,24 +932,162 @@ module PulpContainerClient
|
|
732
932
|
return data, status_code, headers
|
733
933
|
end
|
734
934
|
|
935
|
+
# Remove a role for this object from users/groups.
|
936
|
+
# @param container_container_repository_href [String]
|
937
|
+
# @param nested_role [NestedRole]
|
938
|
+
# @param [Hash] opts the optional parameters
|
939
|
+
# @return [NestedRoleResponse]
|
940
|
+
def remove_role(container_container_repository_href, nested_role, opts = {})
|
941
|
+
data, _status_code, _headers = remove_role_with_http_info(container_container_repository_href, nested_role, opts)
|
942
|
+
data
|
943
|
+
end
|
944
|
+
|
945
|
+
# Remove a role for this object from users/groups.
|
946
|
+
# @param container_container_repository_href [String]
|
947
|
+
# @param nested_role [NestedRole]
|
948
|
+
# @param [Hash] opts the optional parameters
|
949
|
+
# @return [Array<(NestedRoleResponse, Integer, Hash)>] NestedRoleResponse data, response status code and response headers
|
950
|
+
def remove_role_with_http_info(container_container_repository_href, nested_role, opts = {})
|
951
|
+
if @api_client.config.debugging
|
952
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.remove_role ...'
|
953
|
+
end
|
954
|
+
# verify the required parameter 'container_container_repository_href' is set
|
955
|
+
if @api_client.config.client_side_validation && container_container_repository_href.nil?
|
956
|
+
fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerApi.remove_role"
|
957
|
+
end
|
958
|
+
# verify the required parameter 'nested_role' is set
|
959
|
+
if @api_client.config.client_side_validation && nested_role.nil?
|
960
|
+
fail ArgumentError, "Missing the required parameter 'nested_role' when calling RepositoriesContainerApi.remove_role"
|
961
|
+
end
|
962
|
+
# resource path
|
963
|
+
local_var_path = '{container_container_repository_href}remove_role/'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))
|
964
|
+
|
965
|
+
# query parameters
|
966
|
+
query_params = opts[:query_params] || {}
|
967
|
+
|
968
|
+
# header parameters
|
969
|
+
header_params = opts[:header_params] || {}
|
970
|
+
# HTTP header 'Accept' (if needed)
|
971
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
972
|
+
# HTTP header 'Content-Type'
|
973
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
974
|
+
|
975
|
+
# form parameters
|
976
|
+
form_params = opts[:form_params] || {}
|
977
|
+
|
978
|
+
# http body (model)
|
979
|
+
post_body = opts[:body] || @api_client.object_to_http_body(nested_role)
|
980
|
+
|
981
|
+
# return_type
|
982
|
+
return_type = opts[:return_type] || 'NestedRoleResponse'
|
983
|
+
|
984
|
+
# auth_names
|
985
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
986
|
+
|
987
|
+
new_options = opts.merge(
|
988
|
+
:header_params => header_params,
|
989
|
+
:query_params => query_params,
|
990
|
+
:form_params => form_params,
|
991
|
+
:body => post_body,
|
992
|
+
:auth_names => auth_names,
|
993
|
+
:return_type => return_type
|
994
|
+
)
|
995
|
+
|
996
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
997
|
+
if @api_client.config.debugging
|
998
|
+
@api_client.config.logger.debug "API called: RepositoriesContainerApi#remove_role\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
999
|
+
end
|
1000
|
+
return data, status_code, headers
|
1001
|
+
end
|
1002
|
+
|
1003
|
+
# Sign images in the repo
|
1004
|
+
# Trigger an asynchronous task to sign content.
|
1005
|
+
# @param container_container_repository_href [String]
|
1006
|
+
# @param repository_sign [RepositorySign]
|
1007
|
+
# @param [Hash] opts the optional parameters
|
1008
|
+
# @return [AsyncOperationResponse]
|
1009
|
+
def sign(container_container_repository_href, repository_sign, opts = {})
|
1010
|
+
data, _status_code, _headers = sign_with_http_info(container_container_repository_href, repository_sign, opts)
|
1011
|
+
data
|
1012
|
+
end
|
1013
|
+
|
1014
|
+
# Sign images in the repo
|
1015
|
+
# Trigger an asynchronous task to sign content.
|
1016
|
+
# @param container_container_repository_href [String]
|
1017
|
+
# @param repository_sign [RepositorySign]
|
1018
|
+
# @param [Hash] opts the optional parameters
|
1019
|
+
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
1020
|
+
def sign_with_http_info(container_container_repository_href, repository_sign, opts = {})
|
1021
|
+
if @api_client.config.debugging
|
1022
|
+
@api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.sign ...'
|
1023
|
+
end
|
1024
|
+
# verify the required parameter 'container_container_repository_href' is set
|
1025
|
+
if @api_client.config.client_side_validation && container_container_repository_href.nil?
|
1026
|
+
fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerApi.sign"
|
1027
|
+
end
|
1028
|
+
# verify the required parameter 'repository_sign' is set
|
1029
|
+
if @api_client.config.client_side_validation && repository_sign.nil?
|
1030
|
+
fail ArgumentError, "Missing the required parameter 'repository_sign' when calling RepositoriesContainerApi.sign"
|
1031
|
+
end
|
1032
|
+
# resource path
|
1033
|
+
local_var_path = '{container_container_repository_href}sign/'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))
|
1034
|
+
|
1035
|
+
# query parameters
|
1036
|
+
query_params = opts[:query_params] || {}
|
1037
|
+
|
1038
|
+
# header parameters
|
1039
|
+
header_params = opts[:header_params] || {}
|
1040
|
+
# HTTP header 'Accept' (if needed)
|
1041
|
+
header_params['Accept'] = @api_client.select_header_accept(['application/json'])
|
1042
|
+
# HTTP header 'Content-Type'
|
1043
|
+
header_params['Content-Type'] = @api_client.select_header_content_type(['application/json', 'application/x-www-form-urlencoded', 'multipart/form-data'])
|
1044
|
+
|
1045
|
+
# form parameters
|
1046
|
+
form_params = opts[:form_params] || {}
|
1047
|
+
|
1048
|
+
# http body (model)
|
1049
|
+
post_body = opts[:body] || @api_client.object_to_http_body(repository_sign)
|
1050
|
+
|
1051
|
+
# return_type
|
1052
|
+
return_type = opts[:return_type] || 'AsyncOperationResponse'
|
1053
|
+
|
1054
|
+
# auth_names
|
1055
|
+
auth_names = opts[:auth_names] || ['basicAuth']
|
1056
|
+
|
1057
|
+
new_options = opts.merge(
|
1058
|
+
:header_params => header_params,
|
1059
|
+
:query_params => query_params,
|
1060
|
+
:form_params => form_params,
|
1061
|
+
:body => post_body,
|
1062
|
+
:auth_names => auth_names,
|
1063
|
+
:return_type => return_type
|
1064
|
+
)
|
1065
|
+
|
1066
|
+
data, status_code, headers = @api_client.call_api(:POST, local_var_path, new_options)
|
1067
|
+
if @api_client.config.debugging
|
1068
|
+
@api_client.config.logger.debug "API called: RepositoriesContainerApi#sign\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
|
1069
|
+
end
|
1070
|
+
return data, status_code, headers
|
1071
|
+
end
|
1072
|
+
|
735
1073
|
# Sync from a remote
|
736
1074
|
# Trigger an asynchronous task to sync content.
|
737
1075
|
# @param container_container_repository_href [String]
|
738
|
-
# @param
|
1076
|
+
# @param container_repository_sync_url [ContainerRepositorySyncURL]
|
739
1077
|
# @param [Hash] opts the optional parameters
|
740
1078
|
# @return [AsyncOperationResponse]
|
741
|
-
def sync(container_container_repository_href,
|
742
|
-
data, _status_code, _headers = sync_with_http_info(container_container_repository_href,
|
1079
|
+
def sync(container_container_repository_href, container_repository_sync_url, opts = {})
|
1080
|
+
data, _status_code, _headers = sync_with_http_info(container_container_repository_href, container_repository_sync_url, opts)
|
743
1081
|
data
|
744
1082
|
end
|
745
1083
|
|
746
1084
|
# Sync from a remote
|
747
1085
|
# Trigger an asynchronous task to sync content.
|
748
1086
|
# @param container_container_repository_href [String]
|
749
|
-
# @param
|
1087
|
+
# @param container_repository_sync_url [ContainerRepositorySyncURL]
|
750
1088
|
# @param [Hash] opts the optional parameters
|
751
1089
|
# @return [Array<(AsyncOperationResponse, Integer, Hash)>] AsyncOperationResponse data, response status code and response headers
|
752
|
-
def sync_with_http_info(container_container_repository_href,
|
1090
|
+
def sync_with_http_info(container_container_repository_href, container_repository_sync_url, opts = {})
|
753
1091
|
if @api_client.config.debugging
|
754
1092
|
@api_client.config.logger.debug 'Calling API: RepositoriesContainerApi.sync ...'
|
755
1093
|
end
|
@@ -757,9 +1095,9 @@ module PulpContainerClient
|
|
757
1095
|
if @api_client.config.client_side_validation && container_container_repository_href.nil?
|
758
1096
|
fail ArgumentError, "Missing the required parameter 'container_container_repository_href' when calling RepositoriesContainerApi.sync"
|
759
1097
|
end
|
760
|
-
# verify the required parameter '
|
761
|
-
if @api_client.config.client_side_validation &&
|
762
|
-
fail ArgumentError, "Missing the required parameter '
|
1098
|
+
# verify the required parameter 'container_repository_sync_url' is set
|
1099
|
+
if @api_client.config.client_side_validation && container_repository_sync_url.nil?
|
1100
|
+
fail ArgumentError, "Missing the required parameter 'container_repository_sync_url' when calling RepositoriesContainerApi.sync"
|
763
1101
|
end
|
764
1102
|
# resource path
|
765
1103
|
local_var_path = '{container_container_repository_href}sync/'.sub('{' + 'container_container_repository_href' + '}', CGI.escape(container_container_repository_href.to_s).gsub('%2F', '/'))
|
@@ -778,7 +1116,7 @@ module PulpContainerClient
|
|
778
1116
|
form_params = opts[:form_params] || {}
|
779
1117
|
|
780
1118
|
# http body (model)
|
781
|
-
post_body = opts[:body] || @api_client.object_to_http_body(
|
1119
|
+
post_body = opts[:body] || @api_client.object_to_http_body(container_repository_sync_url)
|
782
1120
|
|
783
1121
|
# return_type
|
784
1122
|
return_type = opts[:return_type] || 'AsyncOperationResponse'
|