pulumi_wasm_providers_gcp_mini::compute::image

Struct ImageArgsBuilder

source
pub struct ImageArgsBuilder<S: State = Empty> { /* private fields */ }
Expand description

Use builder syntax to set the inputs and finish with build_struct().

Implementations§

source§

impl<S: State> ImageArgsBuilder<S>

source

pub fn build_struct(self) -> ImageArgs
where S: IsComplete,

Finish building and return the requested object

source

pub fn description( self, value: impl Into<Output<Option<String>>>, ) -> ImageArgsBuilder<SetDescription<S>>
where S::Description: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_description( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ImageArgsBuilder<SetDescription<S>>
where S::Description: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn disk_size_gb( self, value: impl Into<Output<Option<i32>>>, ) -> ImageArgsBuilder<SetDiskSizeGb<S>>
where S::DiskSizeGb: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

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

source

pub fn maybe_disk_size_gb( self, value: Option<impl Into<Output<Option<i32>>>>, ) -> ImageArgsBuilder<SetDiskSizeGb<S>>
where S::DiskSizeGb: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<i32>> as Default>::default().

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

source

pub fn family( self, value: impl Into<Output<Option<String>>>, ) -> ImageArgsBuilder<SetFamily<S>>
where S::Family: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn maybe_family( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ImageArgsBuilder<SetFamily<S>>
where S::Family: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.

source

pub fn guest_os_features( self, value: impl Into<Output<Option<Vec<ImageGuestOsFeature>>>>, ) -> ImageArgsBuilder<SetGuestOsFeatures<S>>
where S::GuestOsFeatures: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::compute::ImageGuestOsFeature>>,
> as Default>::default()

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

source

pub fn maybe_guest_os_features( self, value: Option<impl Into<Output<Option<Vec<ImageGuestOsFeature>>>>>, ) -> ImageArgsBuilder<SetGuestOsFeatures<S>>
where S::GuestOsFeatures: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<Vec<super::super::types::compute::ImageGuestOsFeature>>,
> as Default>::default()

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

source

pub fn image_encryption_key( self, value: impl Into<Output<Option<ImageImageEncryptionKey>>>, ) -> ImageArgsBuilder<SetImageEncryptionKey<S>>
where S::ImageEncryptionKey: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::ImageImageEncryptionKey>,
> as Default>::default()

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.

source

pub fn maybe_image_encryption_key( self, value: Option<impl Into<Output<Option<ImageImageEncryptionKey>>>>, ) -> ImageArgsBuilder<SetImageEncryptionKey<S>>
where S::ImageEncryptionKey: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::ImageImageEncryptionKey>,
> as Default>::default()

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.

source

pub fn labels( self, value: impl Into<Output<Option<HashMap<String, String>>>>, ) -> ImageArgsBuilder<SetLabels<S>>
where S::Labels: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

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.

source

pub fn maybe_labels( self, value: Option<impl Into<Output<Option<HashMap<String, String>>>>>, ) -> ImageArgsBuilder<SetLabels<S>>
where S::Labels: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<std::collections::HashMap<String, String>>,
> as Default>::default()

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.

source

pub fn licenses( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> ImageArgsBuilder<SetLicenses<S>>
where S::Licenses: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default().

Any applicable license URI.

source

pub fn maybe_licenses( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> ImageArgsBuilder<SetLicenses<S>>
where S::Licenses: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default().

Any applicable license URI.

source

pub fn name( self, value: impl Into<Output<Option<String>>>, ) -> ImageArgsBuilder<SetName<S>>
where S::Name: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.


source

pub fn maybe_name( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ImageArgsBuilder<SetName<S>>
where S::Name: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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.


source

pub fn project( self, value: impl Into<Output<Option<String>>>, ) -> ImageArgsBuilder<SetProject<S>>
where S::Project: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn maybe_project( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ImageArgsBuilder<SetProject<S>>
where S::Project: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

source

pub fn raw_disk( self, value: impl Into<Output<Option<ImageRawDisk>>>, ) -> ImageArgsBuilder<SetRawDisk<S>>
where S::RawDisk: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::ImageRawDisk>,
> as Default>::default()

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

source

pub fn maybe_raw_disk( self, value: Option<impl Into<Output<Option<ImageRawDisk>>>>, ) -> ImageArgsBuilder<SetRawDisk<S>>
where S::RawDisk: IsUnset,

Optional (Some / Option setters). Default:

<pulumi_wasm_rust::Output<
    Option<super::super::types::compute::ImageRawDisk>,
> as Default>::default()

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

source

pub fn source_disk( self, value: impl Into<Output<Option<String>>>, ) -> ImageArgsBuilder<SetSourceDisk<S>>
where S::SourceDisk: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

pub fn maybe_source_disk( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ImageArgsBuilder<SetSourceDisk<S>>
where S::SourceDisk: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

pub fn source_image( self, value: impl Into<Output<Option<String>>>, ) -> ImageArgsBuilder<SetSourceImage<S>>
where S::SourceImage: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

pub fn maybe_source_image( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ImageArgsBuilder<SetSourceImage<S>>
where S::SourceImage: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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

pub fn source_snapshot( self, value: impl Into<Output<Option<String>>>, ) -> ImageArgsBuilder<SetSourceSnapshot<S>>
where S::SourceSnapshot: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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
source

pub fn maybe_source_snapshot( self, value: Option<impl Into<Output<Option<String>>>>, ) -> ImageArgsBuilder<SetSourceSnapshot<S>>
where S::SourceSnapshot: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<String>> as Default>::default().

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
source

pub fn storage_locations( self, value: impl Into<Output<Option<Vec<String>>>>, ) -> ImageArgsBuilder<SetStorageLocations<S>>
where S::StorageLocations: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default().

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

source

pub fn maybe_storage_locations( self, value: Option<impl Into<Output<Option<Vec<String>>>>>, ) -> ImageArgsBuilder<SetStorageLocations<S>>
where S::StorageLocations: IsUnset,

Optional (Some / Option setters). Default: <pulumi_wasm_rust::Output<Option<Vec<String>>> as Default>::default().

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

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> 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, 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.