pulumi_wasm_providers_gcp_mini::compute::image

Struct ImageArgs

source
pub struct ImageArgs {
Show 14 fields pub description: Output<Option<String>>, pub disk_size_gb: Output<Option<i32>>, pub family: Output<Option<String>>, pub guest_os_features: Output<Option<Vec<ImageGuestOsFeature>>>, pub image_encryption_key: Output<Option<ImageImageEncryptionKey>>, pub labels: Output<Option<HashMap<String, String>>>, pub licenses: Output<Option<Vec<String>>>, pub name: Output<Option<String>>, pub project: Output<Option<String>>, pub raw_disk: Output<Option<ImageRawDisk>>, pub source_disk: Output<Option<String>>, pub source_image: Output<Option<String>>, pub source_snapshot: Output<Option<String>>, pub storage_locations: Output<Option<Vec<String>>>,
}

Fields§

§description: Output<Option<String>>

An optional description of this resource. Provide this property when you create the resource.

§disk_size_gb: Output<Option<i32>>

Size of the image when restored onto a persistent disk (in GB).

§family: Output<Option<String>>

The name of the image family to which this image belongs. You can create disks by specifying an image family instead of a specific image name. The image family always returns its latest image that is not deprecated. The name of the image family must comply with RFC1035.

§guest_os_features: Output<Option<Vec<ImageGuestOsFeature>>>

A list of features to enable on the guest operating system. Applicable only for bootable images. Structure is documented below.

§image_encryption_key: Output<Option<ImageImageEncryptionKey>>

Encrypts the image using a customer-supplied encryption key. After you encrypt an image with a customer-supplied key, you must provide the same key if you use the image later (e.g. to create a disk from the image) Structure is documented below.

§labels: Output<Option<HashMap<String, String>>>

Labels to apply to this Image. Note: This field is non-authoritative, and will only manage the labels present in your configuration. Please refer to the field effective_labels for all of the labels present on the resource.

§licenses: Output<Option<Vec<String>>>

Any applicable license URI.

§name: Output<Option<String>>

Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035. Specifically, the name must be 1-63 characters long and match the regular expression a-z? which means the first character must be a lowercase letter, and all following characters must be a dash, lowercase letter, or digit, except the last character, which cannot be a dash.


§project: Output<Option<String>>

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

§raw_disk: Output<Option<ImageRawDisk>>

The parameters of the raw disk image. Structure is documented below.

§source_disk: Output<Option<String>>

The source disk to create this image based on. You must provide either this property or the rawDisk.source property but not both to create an image.

§source_image: Output<Option<String>>

URL of the source image used to create this image. In order to create an image, you must provide the full or partial URL of one of the following:

  • The selfLink URL
  • This property
  • The rawDisk.source URL
  • The sourceDisk URL
§source_snapshot: Output<Option<String>>

URL of the source snapshot used to create this image. In order to create an image, you must provide the full or partial URL of one of the following:

  • The selfLink URL
  • This property
  • The sourceImage URL
  • The rawDisk.source URL
  • The sourceDisk URL
§storage_locations: Output<Option<Vec<String>>>

Cloud Storage bucket storage location of the image (regional or multi-regional). Reference link: https://cloud.google.com/compute/docs/reference/rest/v1/images

Implementations§

source§

impl ImageArgs

source

pub fn builder() -> ImageArgsBuilder

Create an instance of ImageArgs using the builder syntax

Trait Implementations§

source§

impl Clone for ImageArgs

source§

fn clone(&self) -> ImageArgs

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

source§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

source§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.