pub struct SimulatedResource {
pub iam_policy_data: Option<Policy>,
pub resource_data: Option<HashMap<String, Value>>,
pub resource_type: Option<String>,
}
Expand description
Manually constructed resource name. If the custom module evaluates against only the resource data, you can omit the iam_policy_data
field. If it evaluates only the iam_policy_data
field, you can omit the resource data.
This type is not used in any activity, and only used as part of another schema.
Fields§
§iam_policy_data: Option<Policy>
Optional. A representation of the IAM policy.
resource_data: Option<HashMap<String, Value>>
Optional. A representation of the Google Cloud resource. Should match the Google Cloud resource JSON format.
resource_type: Option<String>
Required. The type of the resource, for example, compute.googleapis.com/Disk
.
Trait Implementations§
Source§impl Clone for SimulatedResource
impl Clone for SimulatedResource
Source§fn clone(&self) -> SimulatedResource
fn clone(&self) -> SimulatedResource
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for SimulatedResource
impl Debug for SimulatedResource
Source§impl Default for SimulatedResource
impl Default for SimulatedResource
Source§fn default() -> SimulatedResource
fn default() -> SimulatedResource
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for SimulatedResource
impl<'de> Deserialize<'de> for SimulatedResource
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Serialize for SimulatedResource
impl Serialize for SimulatedResource
impl Part for SimulatedResource
Auto Trait Implementations§
impl Freeze for SimulatedResource
impl RefUnwindSafe for SimulatedResource
impl Send for SimulatedResource
impl Sync for SimulatedResource
impl Unpin for SimulatedResource
impl UnwindSafe for SimulatedResource
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
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more