Artifact Registry V1 API - Class Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::ServiceStub (v0.12.2)

Reference documentation and code samples for the Artifact Registry V1 API class Google::Cloud::ArtifactRegistry::V1::ArtifactRegistry::Rest::ServiceStub.

REST service stub for the ArtifactRegistry service. Service stub contains baseline method implementations including transcoding, making the REST call, and deserialing the response.

Inherits

  • Object

Methods

#batch_delete_versions

def batch_delete_versions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the batch_delete_versions REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_repository

def create_repository(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the create_repository REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#create_tag

def create_tag(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1::Tag

Baseline implementation for the create_tag REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_package

def delete_package(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_package REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_repository

def delete_repository(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_repository REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_tag

def delete_tag(request_pb, options = nil) { |result, operation| ... } -> ::Google::Protobuf::Empty

Baseline implementation for the delete_tag REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#delete_version

def delete_version(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the delete_version REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#endpoint

def endpoint() -> String

The effective endpoint

Returns
  • (String)

#get_docker_image

def get_docker_image(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1::DockerImage

Baseline implementation for the get_docker_image REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_file

def get_file(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1::File

Baseline implementation for the get_file REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_iam_policy

def get_iam_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::Policy

Baseline implementation for the get_iam_policy REST call

Parameters
  • request_pb (::Google::Iam::V1::GetIamPolicyRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_maven_artifact

def get_maven_artifact(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1::MavenArtifact

Baseline implementation for the get_maven_artifact REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_npm_package

def get_npm_package(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1::NpmPackage

Baseline implementation for the get_npm_package REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_package

def get_package(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1::Package

Baseline implementation for the get_package REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_project_settings

def get_project_settings(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1::ProjectSettings

Baseline implementation for the get_project_settings REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_python_package

def get_python_package(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1::PythonPackage

Baseline implementation for the get_python_package REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_repository

def get_repository(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1::Repository

Baseline implementation for the get_repository REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_tag

def get_tag(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1::Tag

Baseline implementation for the get_tag REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_version

def get_version(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1::Version

Baseline implementation for the get_version REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#get_vpcsc_config

def get_vpcsc_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig

Baseline implementation for the get_vpcsc_config REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#import_apt_artifacts

def import_apt_artifacts(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the import_apt_artifacts REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#import_yum_artifacts

def import_yum_artifacts(request_pb, options = nil) { |result, operation| ... } -> ::Google::Longrunning::Operation

Baseline implementation for the import_yum_artifacts REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#initialize

def initialize(endpoint:, endpoint_template:, universe_domain:, credentials:) -> ServiceStub
Returns

#list_docker_images

def list_docker_images(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1::ListDockerImagesResponse

Baseline implementation for the list_docker_images REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_files

def list_files(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1::ListFilesResponse

Baseline implementation for the list_files REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_maven_artifacts

def list_maven_artifacts(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1::ListMavenArtifactsResponse

Baseline implementation for the list_maven_artifacts REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_npm_packages

def list_npm_packages(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1::ListNpmPackagesResponse

Baseline implementation for the list_npm_packages REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_packages

def list_packages(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1::ListPackagesResponse

Baseline implementation for the list_packages REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_python_packages

def list_python_packages(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1::ListPythonPackagesResponse

Baseline implementation for the list_python_packages REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_repositories

def list_repositories(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1::ListRepositoriesResponse

Baseline implementation for the list_repositories REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_tags

def list_tags(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1::ListTagsResponse

Baseline implementation for the list_tags REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#list_versions

def list_versions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1::ListVersionsResponse

Baseline implementation for the list_versions REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#set_iam_policy

def set_iam_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::Policy

Baseline implementation for the set_iam_policy REST call

Parameters
  • request_pb (::Google::Iam::V1::SetIamPolicyRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#test_iam_permissions

def test_iam_permissions(request_pb, options = nil) { |result, operation| ... } -> ::Google::Iam::V1::TestIamPermissionsResponse

Baseline implementation for the test_iam_permissions REST call

Parameters
  • request_pb (::Google::Iam::V1::TestIamPermissionsRequest) — A request object representing the call parameters. Required.
  • options (::Gapic::CallOptions) — Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#universe_domain

def universe_domain() -> String

The effective universe domain

Returns
  • (String)

#update_project_settings

def update_project_settings(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1::ProjectSettings

Baseline implementation for the update_project_settings REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_repository

def update_repository(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1::Repository

Baseline implementation for the update_repository REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_tag

def update_tag(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1::Tag

Baseline implementation for the update_tag REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)

#update_vpcsc_config

def update_vpcsc_config(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1::VPCSCConfig

Baseline implementation for the update_vpcsc_config REST call

Parameters
Yields
  • (result, operation) — Access the result along with the TransportOperation object
Yield Parameters
Returns
Raises
  • (::ArgumentError)