#[non_exhaustive]pub struct RawDisk {
pub container_type: Option<ContainerType>,
pub sha_1_checksum: Option<String>,
pub source: Option<String>,
/* private fields */
}image-family-views or images only.Expand description
The message type for the rawDisk field.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.container_type: Option<ContainerType>The format used to encode and transmit the block device, which should beTAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
sha_1_checksum: Option<String>[Deprecated] This field is deprecated. An optional SHA1 checksum of the disk image before unpackaging provided by the client when the disk image is created.
source: Option<String>The full Google Cloud Storage URL or Artifact Registry path where the raw disk image archive is stored. The following are valid formats:
- https://storage.googleapis.com/bucket_name/image_archive_name
- https://storage.googleapis.com/bucket_name/folder_name/image_archive_name
- projects/project/locations/location/repositories/repo/packages/package/versions/version_id
- projects/project/locations/location/repositories/repo/packages/package/versions/version_id@dirsum_sha256:hex_value
In order to create an image, you must provide the full or partial URL of one of the following:
- The rawDisk.source URL
- The sourceDisk URL
- The sourceImage URL
- The sourceSnapshot URL
Implementations§
Source§impl RawDisk
impl RawDisk
Sourcepub fn set_container_type<T>(self, v: T) -> Selfwhere
T: Into<ContainerType>,
pub fn set_container_type<T>(self, v: T) -> Selfwhere
T: Into<ContainerType>,
Sets the value of container_type.
§Example
use google_cloud_compute_v1::model::image::raw_disk::ContainerType;
let x0 = RawDisk::new().set_container_type(ContainerType::Tar);Sourcepub fn set_or_clear_container_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<ContainerType>,
pub fn set_or_clear_container_type<T>(self, v: Option<T>) -> Selfwhere
T: Into<ContainerType>,
Sets or clears the value of container_type.
§Example
use google_cloud_compute_v1::model::image::raw_disk::ContainerType;
let x0 = RawDisk::new().set_or_clear_container_type(Some(ContainerType::Tar));
let x_none = RawDisk::new().set_or_clear_container_type(None::<ContainerType>);Sourcepub fn set_sha_1_checksum<T>(self, v: T) -> Self
👎Deprecated
pub fn set_sha_1_checksum<T>(self, v: T) -> Self
Sourcepub fn set_or_clear_sha_1_checksum<T>(self, v: Option<T>) -> Self
👎Deprecated
pub fn set_or_clear_sha_1_checksum<T>(self, v: Option<T>) -> Self
Sets or clears the value of sha_1_checksum.
§Example
let x = RawDisk::new().set_or_clear_sha_1_checksum(Some("example"));
let x = RawDisk::new().set_or_clear_sha_1_checksum(None::<String>);Sourcepub fn set_source<T>(self, v: T) -> Self
pub fn set_source<T>(self, v: T) -> Self
Trait Implementations§
impl StructuralPartialEq for RawDisk
Auto Trait Implementations§
impl Freeze for RawDisk
impl RefUnwindSafe for RawDisk
impl Send for RawDisk
impl Sync for RawDisk
impl Unpin for RawDisk
impl UnsafeUnpin for RawDisk
impl UnwindSafe for RawDisk
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<T> FutureExt for T
impl<T> FutureExt for T
Source§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
Source§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request