Struct gapi_grpc::google::cloud::asset::v1::asset_service_client::AssetServiceClient[][src]

pub struct AssetServiceClient<T> { /* fields omitted */ }

Asset service definition.

Implementations

impl AssetServiceClient<Channel>[src]

pub async fn connect<D>(dst: D) -> Result<Self, Error> where
    D: TryInto<Endpoint>,
    D::Error: Into<StdError>, 
[src]

Attempt to create a new client by connecting to a given endpoint.

impl<T> AssetServiceClient<T> where
    T: GrpcService<BoxBody>,
    T::ResponseBody: Body + HttpBody + Send + 'static,
    T::Error: Into<StdError>,
    <T::ResponseBody as HttpBody>::Error: Into<StdError> + Send
[src]

pub fn new(inner: T) -> Self[src]

pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self[src]

pub async fn export_assets(
    &mut self,
    request: impl IntoRequest<ExportAssetsRequest>
) -> Result<Response<Operation>, Status>
[src]

Exports assets with time and resource types to a given Cloud Storage location/BigQuery table. For Cloud Storage location destinations, the output format is newline-delimited JSON. Each line represents a [google.cloud.asset.v1.Asset][google.cloud.asset.v1.Asset] in the JSON format; for BigQuery table destinations, the output table stores the fields in asset proto as columns. This API implements the [google.longrunning.Operation][google.longrunning.Operation] API , which allows you to keep track of the export. We recommend intervals of at least 2 seconds with exponential retry to poll the export operation result. For regular-size resource parent, the export operation usually finishes within 5 minutes.

pub async fn list_assets(
    &mut self,
    request: impl IntoRequest<ListAssetsRequest>
) -> Result<Response<ListAssetsResponse>, Status>
[src]

Lists assets with time and resource types and returns paged results in response.

pub async fn batch_get_assets_history(
    &mut self,
    request: impl IntoRequest<BatchGetAssetsHistoryRequest>
) -> Result<Response<BatchGetAssetsHistoryResponse>, Status>
[src]

Batch gets the update history of assets that overlap a time window. For IAM_POLICY content, this API outputs history when the asset and its attached IAM POLICY both exist. This can create gaps in the output history. Otherwise, this API outputs history with asset in both non-delete or deleted status. If a specified asset does not exist, this API returns an INVALID_ARGUMENT error.

pub async fn create_feed(
    &mut self,
    request: impl IntoRequest<CreateFeedRequest>
) -> Result<Response<Feed>, Status>
[src]

Creates a feed in a parent project/folder/organization to listen to its asset updates.

pub async fn get_feed(
    &mut self,
    request: impl IntoRequest<GetFeedRequest>
) -> Result<Response<Feed>, Status>
[src]

Gets details about an asset feed.

pub async fn list_feeds(
    &mut self,
    request: impl IntoRequest<ListFeedsRequest>
) -> Result<Response<ListFeedsResponse>, Status>
[src]

Lists all asset feeds in a parent project/folder/organization.

pub async fn update_feed(
    &mut self,
    request: impl IntoRequest<UpdateFeedRequest>
) -> Result<Response<Feed>, Status>
[src]

Updates an asset feed configuration.

pub async fn delete_feed(
    &mut self,
    request: impl IntoRequest<DeleteFeedRequest>
) -> Result<Response<()>, Status>
[src]

Deletes an asset feed.

pub async fn search_all_resources(
    &mut self,
    request: impl IntoRequest<SearchAllResourcesRequest>
) -> Result<Response<SearchAllResourcesResponse>, Status>
[src]

Searches all Cloud resources within the specified scope, such as a project, folder, or organization. The caller must be granted the cloudasset.assets.searchAllResources permission on the desired scope, otherwise the request will be rejected.

pub async fn search_all_iam_policies(
    &mut self,
    request: impl IntoRequest<SearchAllIamPoliciesRequest>
) -> Result<Response<SearchAllIamPoliciesResponse>, Status>
[src]

Searches all IAM policies within the specified scope, such as a project, folder, or organization. The caller must be granted the cloudasset.assets.searchAllIamPolicies permission on the desired scope, otherwise the request will be rejected.

pub async fn analyze_iam_policy(
    &mut self,
    request: impl IntoRequest<AnalyzeIamPolicyRequest>
) -> Result<Response<AnalyzeIamPolicyResponse>, Status>
[src]

Analyzes IAM policies to answer which identities have what accesses on which resources.

pub async fn analyze_iam_policy_longrunning(
    &mut self,
    request: impl IntoRequest<AnalyzeIamPolicyLongrunningRequest>
) -> Result<Response<Operation>, Status>
[src]

Analyzes IAM policies asynchronously to answer which identities have what accesses on which resources, and writes the analysis results to a Google Cloud Storage or a BigQuery destination. For Cloud Storage destination, the output format is the JSON format that represents a [AnalyzeIamPolicyResponse][google.cloud.asset.v1.AnalyzeIamPolicyResponse]. This method implements the [google.longrunning.Operation][google.longrunning.Operation], which allows you to track the operation status. We recommend intervals of at least 2 seconds with exponential backoff retry to poll the operation result. The metadata contains the request to help callers to map responses to requests.

Trait Implementations

impl<T: Clone> Clone for AssetServiceClient<T>[src]

impl<T> Debug for AssetServiceClient<T>[src]

Auto Trait Implementations

impl<T> !RefUnwindSafe for AssetServiceClient<T>

impl<T> Send for AssetServiceClient<T> where
    T: Send

impl<T> Sync for AssetServiceClient<T> where
    T: Sync

impl<T> Unpin for AssetServiceClient<T> where
    T: Unpin

impl<T> !UnwindSafe for AssetServiceClient<T>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]