[−][src]Struct gcp_client::google::cloud::asset::v1::ResourceSearchResult
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 : *
- 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.
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]
fn clone(&self) -> ResourceSearchResult
[src]
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]
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError> where
B: BufMut,
[src]
B: BufMut,
fn decode<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
[src]
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
B: Buf,
Self: Default,
[src]
B: Buf,
Self: Default,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError> where
B: Buf,
[src]
B: Buf,
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,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
fn instrument(self, span: Span) -> Instrumented<Self>
[src]
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]
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.
fn to_owned(&self) -> T
[src]
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.
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.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T> WithSubscriber for T
[src]
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,