GetSnapshotPlainArgs

data class GetSnapshotPlainArgs(val filter: String? = null, val mostRecent: Boolean? = null, val name: String? = null, val project: String? = null) : ConvertibleToJava<GetSnapshotPlainArgs>

/* A collection of arguments for invoking getSnapshot.

Constructors

Link copied to clipboard
constructor(filter: String? = null, mostRecent: Boolean? = null, name: String? = null, project: String? = null)

Properties

Link copied to clipboard
val filter: String? = null

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.

Link copied to clipboard
val mostRecent: Boolean? = null

If filter is provided, ensures the most recent snapshot is returned when multiple compute snapshot match.

Link copied to clipboard
val name: String? = null

The name of the compute snapshot. One of name or filter must be provided.

Link copied to clipboard
val project: String? = null

The ID of the project in which the resource belongs. If it is not provided, the provider project is used.

Functions

Link copied to clipboard
open override fun toJava(): GetSnapshotPlainArgs