Struct gapi_grpc::google::cloud::asset::v1::asset_service_client::AssetServiceClient [−][src]
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]
D: TryInto<Endpoint>,
D::Error: Into<StdError>,
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]
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
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]
&mut self,
request: impl IntoRequest<ExportAssetsRequest>
) -> Result<Response<Operation>, Status>
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]
&mut self,
request: impl IntoRequest<ListAssetsRequest>
) -> Result<Response<ListAssetsResponse>, Status>
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]
&mut self,
request: impl IntoRequest<BatchGetAssetsHistoryRequest>
) -> Result<Response<BatchGetAssetsHistoryResponse>, Status>
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]
&mut self,
request: impl IntoRequest<CreateFeedRequest>
) -> Result<Response<Feed>, Status>
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]
&mut self,
request: impl IntoRequest<GetFeedRequest>
) -> Result<Response<Feed>, Status>
Gets details about an asset feed.
pub async fn list_feeds(
&mut self,
request: impl IntoRequest<ListFeedsRequest>
) -> Result<Response<ListFeedsResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<ListFeedsRequest>
) -> Result<Response<ListFeedsResponse>, Status>
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]
&mut self,
request: impl IntoRequest<UpdateFeedRequest>
) -> Result<Response<Feed>, Status>
Updates an asset feed configuration.
pub async fn delete_feed(
&mut self,
request: impl IntoRequest<DeleteFeedRequest>
) -> Result<Response<()>, Status>
[src]
&mut self,
request: impl IntoRequest<DeleteFeedRequest>
) -> Result<Response<()>, Status>
Deletes an asset feed.
pub async fn search_all_resources(
&mut self,
request: impl IntoRequest<SearchAllResourcesRequest>
) -> Result<Response<SearchAllResourcesResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<SearchAllResourcesRequest>
) -> Result<Response<SearchAllResourcesResponse>, Status>
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]
&mut self,
request: impl IntoRequest<SearchAllIamPoliciesRequest>
) -> Result<Response<SearchAllIamPoliciesResponse>, Status>
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]
&mut self,
request: impl IntoRequest<AnalyzeIamPolicyRequest>
) -> Result<Response<AnalyzeIamPolicyResponse>, Status>
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]
&mut self,
request: impl IntoRequest<AnalyzeIamPolicyLongrunningRequest>
) -> Result<Response<Operation>, Status>
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]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[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,
T: Send,
impl<T> Sync for AssetServiceClient<T> where
T: Sync,
T: Sync,
impl<T> Unpin for AssetServiceClient<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for AssetServiceClient<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,