Struct google_api_proto::google::cloud::securitycenter::v1::Resource
source · pub struct Resource {Show 15 fields
pub name: String,
pub display_name: String,
pub type: String,
pub project: String,
pub project_display_name: String,
pub parent: String,
pub parent_display_name: String,
pub folders: Vec<Folder>,
pub cloud_provider: i32,
pub organization: String,
pub service: String,
pub location: String,
pub resource_path: Option<ResourcePath>,
pub resource_path_string: String,
pub cloud_provider_metadata: Option<CloudProviderMetadata>,
}
Expand description
Information related to the Google Cloud resource.
Fields§
§name: String
The full resource name of the resource. See: https://cloud.google.com/apis/design/resource_names#full_resource_name
display_name: String
The human readable name of the resource.
type: String
The full resource type of the resource.
project: String
The full resource name of project that the resource belongs to.
project_display_name: String
The project ID that the resource belongs to.
parent: String
The full resource name of resource’s parent.
parent_display_name: String
The human readable name of resource’s parent.
folders: Vec<Folder>
Output only. Contains a Folder message for each folder in the assets ancestry. The first folder is the deepest nested folder, and the last folder is the folder directly under the Organization.
cloud_provider: i32
Indicates which cloud provider the resource resides in.
organization: String
Indicates which organization or tenant in the cloud provider the finding applies to.
service: String
The parent service or product from which the resource is provided, for example, GKE or SNS.
location: String
The region or location of the service (if applicable).
resource_path: Option<ResourcePath>
Provides the path to the resource within the resource hierarchy.
resource_path_string: String
A string representation of the resource path.
For Google Cloud, it has the format of
organizations/{organization_id}/folders/{folder_id}/folders/{folder_id}/projects/{project_id}
where there can be any number of folders.
For AWS, it has the format of
org/{organization_id}/ou/{organizational_unit_id}/ou/{organizational_unit_id}/account/{account_id}
where there can be any number of organizational units.
For Azure, it has the format of
mg/{management_group_id}/mg/{management_group_id}/subscription/{subscription_id}/rg/{resource_group_name}
where there can be any number of management groups.
cloud_provider_metadata: Option<CloudProviderMetadata>
Implementations§
source§impl Resource
impl Resource
sourcepub fn cloud_provider(&self) -> CloudProvider
pub fn cloud_provider(&self) -> CloudProvider
Returns the enum value of cloud_provider
, or the default if the field is set to an invalid enum value.
sourcepub fn set_cloud_provider(&mut self, value: CloudProvider)
pub fn set_cloud_provider(&mut self, value: CloudProvider)
Sets cloud_provider
to the provided enum value.
Trait Implementations§
source§impl Message for Resource
impl Message for Resource
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for Resource
impl PartialEq for Resource
impl StructuralPartialEq for Resource
Auto Trait Implementations§
impl Freeze for Resource
impl RefUnwindSafe for Resource
impl Send for Resource
impl Sync for Resource
impl Unpin for Resource
impl UnwindSafe for Resource
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request