pub struct GetSnapshotArgs {
pub filter: Output<Option<String>>,
pub most_recent: Output<Option<bool>>,
pub name: Output<Option<String>>,
pub project: Output<Option<String>>,
}
Fields§
§filter: Output<Option<String>>
A filter to retrieve the compute snapshot.
See API filter parameter documentation for reference.
If multiple compute snapshot match, either adjust the filter or specify most_recent
. One of name
or filter
must be provided.
If you want to use a regular expression, use the eq
(equal) or ne
(not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Example sourceDisk eq '.*(.*/data-disk$).*'
. More details for golang Snapshots list call filters here.
most_recent: Output<Option<bool>>
If filter
is provided, ensures the most recent snapshot is returned when multiple compute snapshot match.
name: Output<Option<String>>
The name of the compute snapshot. One of name
or filter
must be provided.
project: Output<Option<String>>
The ID of the project in which the resource belongs. If it is not provided, the provider project is used.
Implementations§
source§impl GetSnapshotArgs
impl GetSnapshotArgs
sourcepub fn builder() -> GetSnapshotArgsBuilder
pub fn builder() -> GetSnapshotArgsBuilder
Create an instance of GetSnapshotArgs
using the builder syntax
Trait Implementations§
source§impl Clone for GetSnapshotArgs
impl Clone for GetSnapshotArgs
source§fn clone(&self) -> GetSnapshotArgs
fn clone(&self) -> GetSnapshotArgs
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for GetSnapshotArgs
impl RefUnwindSafe for GetSnapshotArgs
impl Send for GetSnapshotArgs
impl Sync for GetSnapshotArgs
impl Unpin for GetSnapshotArgs
impl UnwindSafe for GetSnapshotArgs
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)