Artifact Registry V1beta2 API - Class Google::Cloud::ArtifactRegistry::V1beta2::ArtifactRegistry::Rest::ServiceStub (v0.12.1)

Reference documentation and code samples for the Artifact Registry V1beta2 API class Google::Cloud::ArtifactRegistry::V1beta2::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

#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::V1beta2::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_file

def get_file(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1beta2::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_package

def get_package(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1beta2::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::V1beta2::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_repository

def get_repository(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1beta2::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::V1beta2::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::V1beta2::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)

#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_files

def list_files(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1beta2::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_packages

def list_packages(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1beta2::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_repositories

def list_repositories(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::ArtifactRegistry::V1beta2::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::V1beta2::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::V1beta2::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::V1beta2::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::V1beta2::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::V1beta2::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)