[][src]Struct gcp_client::google::cloud::asset::v1::ResourceSearchResult

pub struct ResourceSearchResult {
    pub name: String,
    pub asset_type: String,
    pub project: String,
    pub display_name: String,
    pub description: String,
    pub location: String,
    pub labels: HashMap<String, String>,
    pub network_tags: Vec<String>,
    pub additional_attributes: Option<Struct>,
}

A result of Resource Search, containing information of a cloud resoure.

Fields

name: String

The full resource name of this resource. Example: "//compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1". See Cloud Asset Inventory Resource Name Format for more information.

To search against the name:

  • use a field query. Example: name : "instance1"
  • use a free text query. Example: "instance1"
asset_type: String

The type of this resource. Example: "compute.googleapis.com/Disk".

To search against the asset_type:

  • specify the asset_type field in your search request.
project: String

The project that this resource belongs to, in the form of projects/{PROJECT_NUMBER}.

To search against the project:

  • specify the scope field as this project in your search request.
display_name: String

The display name of this resource.

To search against the display_name:

  • use a field query. Example: displayName : "My Instance"
  • use a free text query. Example: "My Instance"
description: String

One or more paragraphs of text description of this resource. Maximum length could be up to 1M bytes.

To search against the description:

  • use a field query. Example: description : "*important instance*"
  • use a free text query. Example: "*important instance*"
location: String

Location can be "global", regional like "us-east1", or zonal like "us-west1-b".

To search against the location:

  • use a field query. Example: location : "us-west*"
  • use a free text query. Example: "us-west*"
labels: HashMap<String, String>

Labels associated with this resource. See Labelling and grouping GCP resources for more information.

To search against the labels:

  • use a field query, as following:
    • query on any label's key or value. Example: labels : "prod"
    • query by a given label. Example: labels.env : "prod"
    • query by a given label'sexistence. Example: labels.env : *
  • use a free text query. Example: "prod"
network_tags: Vec<String>

Network tags associated with this resource. Like labels, network tags are a type of annotations used to group GCP resources. See Labelling GCP resources for more information.

To search against the network_tags:

  • use a field query. Example: networkTags : "internal"
  • use a free text query. Example: "internal"
additional_attributes: Option<Struct>

The additional attributes of this resource. The attributes may vary from one resource type to another. Examples: "projectId" for Project, "dnsName" for DNS ManagedZone.

To search against the additional_attributes:

  • use a free text query to match the attributes values. Example: to search additional_attributes = { dnsName: "foobar" }, you can issue a query "foobar".

Trait Implementations

impl Clone for ResourceSearchResult[src]

impl Debug for ResourceSearchResult[src]

impl Default for ResourceSearchResult[src]

impl Message for ResourceSearchResult[src]

impl PartialEq<ResourceSearchResult> for ResourceSearchResult[src]

impl StructuralPartialEq for ResourceSearchResult[src]

Auto Trait Implementations

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, 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>, 

impl<T> WithSubscriber for T[src]