Struct gapi_grpc::google::cloud::asset::v1::ResourceSearchResult [−][src]
A result of Resource Search, containing information of a cloud resource.
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}. This field is available when the resource belongs to a project.
To search against project
:
- use a field query. Example:
project:12345
- use a free text query. Example:
12345
- specify the
scope
field as this project in your search request.
folders: Vec<String>
The folder(s) that this resource belongs to, in the form of folders/{FOLDER_NUMBER}. This field is available when the resource belongs to one or more folders.
To search against folders
:
- use a field query. Example:
folders:(123 OR 456)
- use a free text query. Example:
123
- specify the
scope
field as this folder in your search request.
organization: String
The organization that this resource belongs to, in the form of organizations/{ORGANIZATION_NUMBER}. This field is available when the resource belongs to an organization.
To search against organization
:
- use a field query. Example:
organization:123
- use a free text query. Example:
123
- specify the
scope
field as this organization in your search request.
display_name: String
The display name of this resource. This field is available only when the resource’s proto contains it.
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. This field is available only when the resource’s proto contains it.
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
. This field is available only when the resource’s proto
contains it.
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. This field is available only when the resource’s proto contains it.
To search against the labels
:
- use a field query:
- 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’s existence. Example:
labels.env:*
- query on any label’s key or value. Example:
- use a free text query. Example:
prod
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. This field is available only when the resource’s proto contains it.
To search against the network_tags
:
- use a field query. Example:
networkTags:internal
- use a free text query. Example:
internal
kms_key: String
The Cloud KMS CryptoKey name or CryptoKeyVersion name. This field is available only when the resource’s proto contains it.
To search against the kms_key
:
- use a field query. Example:
kmsKey:key
- use a free text query. Example:
key
create_time: Option<Timestamp>
The create timestamp of this resource, at which the resource was created. The granularity is in seconds. Timestamp.nanos will always be 0. This field is available only when the resource’s proto contains it.
To search against create_time
:
- use a field query.
- value in seconds since unix epoch. Example:
createTime > 1609459200
- value in date string. Example:
createTime > 2021-01-01
- value in date-time string (must be quoted). Example:
createTime > "2021-01-01T00:00:00"
- value in seconds since unix epoch. Example:
update_time: Option<Timestamp>
The last update timestamp of this resource, at which the resource was last modified or deleted. The granularity is in seconds. Timestamp.nanos will always be 0. This field is available only when the resource’s proto contains it.
To search against update_time
:
- use a field query.
- value in seconds since unix epoch. Example:
updateTime < 1609459200
- value in date string. Example:
updateTime < 2021-01-01
- value in date-time string (must be quoted). Example:
updateTime < "2021-01-01T00:00:00"
- value in seconds since unix epoch. Example:
state: String
The state of this resource. Different resources types have different state definitions that are mapped from various fields of different resource types. This field is available only when the resource’s proto contains it.
Example:
If the resource is an instance provided by Compute Engine,
its state will include PROVISIONING, STAGING, RUNNING, STOPPING,
SUSPENDING, SUSPENDED, REPAIRING, and TERMINATED. See status
definition
in API
Reference.
If the resource is a project provided by Cloud Resource Manager, its state
will include LIFECYCLE_STATE_UNSPECIFIED, ACTIVE, DELETE_REQUESTED and
DELETE_IN_PROGRESS. See lifecycleState
definition in API
Reference.
To search against the state
:
- use a field query. Example:
state:RUNNING
- use a free text query. Example:
RUNNING
additional_attributes: Option<Struct>
The additional searchable attributes of this resource. The attributes may
vary from one resource type to another. Examples: projectId
for Project,
dnsName
for DNS ManagedZone. This field contains a subset of the resource
metadata fields that are returned by the List or Get APIs provided by the
corresponding GCP service (e.g., Compute Engine). see API references and
supported searchable
attributes
to see which fields are included.
You can search values of these fields through free text search. However, you should not consume the field programically as the field names and values may change as the GCP service updates to a new incompatible API version.
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 queryfoobar
.
parent_full_resource_name: String
The full resource name of this resource’s parent, if it has one.
To search against the parent_full_resource_name
:
- use a field query. Example:
parentFullResourceName:"project-name"
- use a free text query. Example:
project-name
parent_asset_type: String
The type of this resource’s immediate parent, if there is one.
To search against the parent_asset_type
:
- use a field query. Example:
parentAssetType:"cloudresourcemanager.googleapis.com/Project"
- use a free text query. Example:
cloudresourcemanager.googleapis.com/Project
Trait Implementations
impl Clone for ResourceSearchResult
[src]
fn clone(&self) -> ResourceSearchResult
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ResourceSearchResult
[src]
impl Default for ResourceSearchResult
[src]
fn default() -> ResourceSearchResult
[src]
impl Message for ResourceSearchResult
[src]
fn encode_raw<B>(&self, buf: &mut B) where
B: BufMut,
[src]
B: BufMut,
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
[src]
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
fn encoded_len(&self) -> usize
[src]
fn clear(&mut self)
[src]
pub fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
pub fn decode<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
[src]
Self: Default,
B: Buf,
pub fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
pub fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
impl PartialEq<ResourceSearchResult> for ResourceSearchResult
[src]
fn eq(&self, other: &ResourceSearchResult) -> bool
[src]
fn ne(&self, other: &ResourceSearchResult) -> bool
[src]
impl StructuralPartialEq for ResourceSearchResult
[src]
Auto Trait Implementations
impl RefUnwindSafe for ResourceSearchResult
impl Send for ResourceSearchResult
impl Sync for ResourceSearchResult
impl Unpin for ResourceSearchResult
impl UnwindSafe for ResourceSearchResult
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>,