Cloud Asset V1 API - Class Google::Cloud::Asset::V1::AssetService::Rest::ServiceStub (v0.31.0)

Reference documentation and code samples for the Cloud Asset V1 API class Google::Cloud::Asset::V1::AssetService::Rest::ServiceStub.

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

Inherits

  • Object

Methods

#analyze_iam_policy

def analyze_iam_policy(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Asset::V1::AnalyzeIamPolicyResponse

Baseline implementation for the analyze_iam_policy REST call

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

#analyze_iam_policy_longrunning

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

Baseline implementation for the analyze_iam_policy_longrunning REST call

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

#analyze_move

def analyze_move(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Asset::V1::AnalyzeMoveResponse

Baseline implementation for the analyze_move REST call

Parameters
  • request_pb (::Google::Cloud::Asset::V1::AnalyzeMoveRequest) — 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)

#analyze_org_policies

def analyze_org_policies(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Asset::V1::AnalyzeOrgPoliciesResponse

Baseline implementation for the analyze_org_policies REST call

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

#analyze_org_policy_governed_assets

def analyze_org_policy_governed_assets(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedAssetsResponse

Baseline implementation for the analyze_org_policy_governed_assets REST call

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

#analyze_org_policy_governed_containers

def analyze_org_policy_governed_containers(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Asset::V1::AnalyzeOrgPolicyGovernedContainersResponse

Baseline implementation for the analyze_org_policy_governed_containers REST call

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

#batch_get_assets_history

def batch_get_assets_history(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Asset::V1::BatchGetAssetsHistoryResponse

Baseline implementation for the batch_get_assets_history REST call

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

#batch_get_effective_iam_policies

def batch_get_effective_iam_policies(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Asset::V1::BatchGetEffectiveIamPoliciesResponse

Baseline implementation for the batch_get_effective_iam_policies REST call

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

#create_feed

def create_feed(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Asset::V1::Feed

Baseline implementation for the create_feed REST call

Parameters
  • request_pb (::Google::Cloud::Asset::V1::CreateFeedRequest) — 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)

#create_saved_query

def create_saved_query(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Asset::V1::SavedQuery

Baseline implementation for the create_saved_query REST call

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

#delete_feed

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

Baseline implementation for the delete_feed REST call

Parameters
  • request_pb (::Google::Cloud::Asset::V1::DeleteFeedRequest) — 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)

#delete_saved_query

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

Baseline implementation for the delete_saved_query 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)

#export_assets

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

Baseline implementation for the export_assets REST call

Parameters
  • request_pb (::Google::Cloud::Asset::V1::ExportAssetsRequest) — 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_feed

def get_feed(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Asset::V1::Feed

Baseline implementation for the get_feed REST call

Parameters
  • request_pb (::Google::Cloud::Asset::V1::GetFeedRequest) — 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_saved_query

def get_saved_query(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Asset::V1::SavedQuery

Baseline implementation for the get_saved_query REST call

Parameters
  • request_pb (::Google::Cloud::Asset::V1::GetSavedQueryRequest) — 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)

#initialize

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

#list_assets

def list_assets(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Asset::V1::ListAssetsResponse

Baseline implementation for the list_assets REST call

Parameters
  • request_pb (::Google::Cloud::Asset::V1::ListAssetsRequest) — 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)

#list_feeds

def list_feeds(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Asset::V1::ListFeedsResponse

Baseline implementation for the list_feeds REST call

Parameters
  • request_pb (::Google::Cloud::Asset::V1::ListFeedsRequest) — 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)

#list_saved_queries

def list_saved_queries(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Asset::V1::ListSavedQueriesResponse

Baseline implementation for the list_saved_queries REST call

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

#query_assets

def query_assets(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Asset::V1::QueryAssetsResponse

Baseline implementation for the query_assets REST call

Parameters
  • request_pb (::Google::Cloud::Asset::V1::QueryAssetsRequest) — 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)

#search_all_iam_policies

def search_all_iam_policies(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Asset::V1::SearchAllIamPoliciesResponse

Baseline implementation for the search_all_iam_policies REST call

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

#search_all_resources

def search_all_resources(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Asset::V1::SearchAllResourcesResponse

Baseline implementation for the search_all_resources 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_feed

def update_feed(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Asset::V1::Feed

Baseline implementation for the update_feed REST call

Parameters
  • request_pb (::Google::Cloud::Asset::V1::UpdateFeedRequest) — 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)

#update_saved_query

def update_saved_query(request_pb, options = nil) { |result, operation| ... } -> ::Google::Cloud::Asset::V1::SavedQuery

Baseline implementation for the update_saved_query REST call

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