Privileged Access Manager V1 API - Class Google::Cloud::PrivilegedAccessManager::V1::PrivilegedAccessManager::Rest::ServiceStub (v0.2.0)

Reference documentation and code samples for the Privileged Access Manager V1 API class Google::Cloud::PrivilegedAccessManager::V1::PrivilegedAccessManager::Rest::ServiceStub.

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

Inherits

  • Object

Methods

#approve_grant

def approve_grant(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PrivilegedAccessManager::V1::Grant

Baseline implementation for the approve_grant REST call

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

#check_onboarding_status

def check_onboarding_status(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PrivilegedAccessManager::V1::CheckOnboardingStatusResponse

Baseline implementation for the check_onboarding_status REST call

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

#create_entitlement

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

Baseline implementation for the create_entitlement REST call

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

#create_grant

def create_grant(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PrivilegedAccessManager::V1::Grant

Baseline implementation for the create_grant REST call

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

#delete_entitlement

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

Baseline implementation for the delete_entitlement REST call

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

#deny_grant

def deny_grant(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PrivilegedAccessManager::V1::Grant

Baseline implementation for the deny_grant 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_entitlement

def get_entitlement(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PrivilegedAccessManager::V1::Entitlement

Baseline implementation for the get_entitlement REST call

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

#get_grant

def get_grant(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PrivilegedAccessManager::V1::Grant

Baseline implementation for the get_grant REST call

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

#list_entitlements

def list_entitlements(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PrivilegedAccessManager::V1::ListEntitlementsResponse

Baseline implementation for the list_entitlements REST call

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

#list_grants

def list_grants(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PrivilegedAccessManager::V1::ListGrantsResponse

Baseline implementation for the list_grants REST call

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

#logger

def logger(stub: false) -> Logger

The logger used for request/response debug logging.

Returns
  • (Logger)

#revoke_grant

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

Baseline implementation for the revoke_grant REST call

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

#search_entitlements

def search_entitlements(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PrivilegedAccessManager::V1::SearchEntitlementsResponse

Baseline implementation for the search_entitlements REST call

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

#search_grants

def search_grants(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::PrivilegedAccessManager::V1::SearchGrantsResponse

Baseline implementation for the search_grants REST call

Parameters
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_entitlement

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

Baseline implementation for the update_entitlement REST call

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