Struct google_api_proto::google::cloud::kms::inventory::v1::SearchProtectedResourcesRequest
source · pub struct SearchProtectedResourcesRequest {
pub scope: String,
pub crypto_key: String,
pub page_size: i32,
pub page_token: String,
pub resource_types: Vec<String>,
}
Expand description
Request message for [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources].
Fields§
§scope: String
Required. Resource name of the organization. Example: organizations/123
crypto_key: String
Required. The resource name of the [CryptoKey][google.cloud.kms.v1.CryptoKey].
page_size: i32
The maximum number of resources to return. The service may return fewer than this value. If unspecified, at most 500 resources will be returned. The maximum value is 500; values above 500 will be coerced to 500.
page_token: String
A page token, received from a previous [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] call. Provide this to retrieve the subsequent page.
When paginating, all other parameters provided to [KeyTrackingService.SearchProtectedResources][google.cloud.kms.inventory.v1.KeyTrackingService.SearchProtectedResources] must match the call that provided the page token.
resource_types: Vec<String>
Optional. A list of resource types that this request searches for. If empty, it will search all the trackable resource types.
Regular expressions are also supported. For example:
compute.googleapis.com.*
snapshots resources whose type starts withcompute.googleapis.com
..*Image
snapshots resources whose type ends withImage
..*Image.*
snapshots resources whose type containsImage
.
See RE2 for all supported regular expression syntax. If the regular expression does not match any supported resource type, an INVALID_ARGUMENT error will be returned.
Trait Implementations§
source§impl Clone for SearchProtectedResourcesRequest
impl Clone for SearchProtectedResourcesRequest
source§fn clone(&self) -> SearchProtectedResourcesRequest
fn clone(&self) -> SearchProtectedResourcesRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for SearchProtectedResourcesRequest
impl Message for SearchProtectedResourcesRequest
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 SearchProtectedResourcesRequest
impl PartialEq for SearchProtectedResourcesRequest
source§fn eq(&self, other: &SearchProtectedResourcesRequest) -> bool
fn eq(&self, other: &SearchProtectedResourcesRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SearchProtectedResourcesRequest
Auto Trait Implementations§
impl Freeze for SearchProtectedResourcesRequest
impl RefUnwindSafe for SearchProtectedResourcesRequest
impl Send for SearchProtectedResourcesRequest
impl Sync for SearchProtectedResourcesRequest
impl Unpin for SearchProtectedResourcesRequest
impl UnwindSafe for SearchProtectedResourcesRequest
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