Documentation ¶
Overview ¶
toalpha contains functions that convert stable cloud protos to alpha cloud protos.
Index ¶
- func AcceleratorConfig(config *compute.AcceleratorConfig) *computealpha.AcceleratorConfig
- func AccessConfig(config *compute.AccessConfig) *computealpha.AccessConfig
- func AdvancedMachineFeatures(features *compute.AdvancedMachineFeatures) *computealpha.AdvancedMachineFeatures
- func AliasIpRange(rng *compute.AliasIpRange) *computealpha.AliasIpRange
- func AttachedDisk(disk *compute.AttachedDisk) *computealpha.AttachedDisk
- func AttachedDiskInitializeParams(params *compute.AttachedDiskInitializeParams) *computealpha.AttachedDiskInitializeParams
- func CustomerEncryptionKey(key *compute.CustomerEncryptionKey) *computealpha.CustomerEncryptionKey
- func DisplayDevice(device *compute.DisplayDevice) *computealpha.DisplayDevice
- func Duration(duration *compute.Duration) *computealpha.Duration
- func FileContentBuffer(buffer *compute.FileContentBuffer) *computealpha.FileContentBuffer
- func GuestOsFeature(feature *compute.GuestOsFeature) *computealpha.GuestOsFeature
- func InitialStateConfig(config *compute.InitialStateConfig) *computealpha.InitialStateConfig
- func Instance(instance *compute.Instance) *computealpha.Instance
- func InstanceConfig(config *compute.ConfidentialInstanceConfig) *computealpha.ConfidentialInstanceConfig
- func InstanceParams(params *compute.InstanceParams) *computealpha.InstanceParams
- func MapSlice[T any, U any](input []T, f func(T) U) []U
- func Metadata(metadata *compute.Metadata) *computealpha.Metadata
- func MetadataItems(items *compute.MetadataItems) *computealpha.MetadataItems
- func NetworkInterface(intf *compute.NetworkInterface) *computealpha.NetworkInterface
- func NetworkPerformanceConfig(config *compute.NetworkPerformanceConfig) *computealpha.NetworkPerformanceConfig
- func ReservationAffinity(affinity *compute.ReservationAffinity) *computealpha.ReservationAffinity
- func ResourceStatus(status *compute.ResourceStatus) *computealpha.ResourceStatus
- func Scheduling(scheduling *compute.Scheduling) *computealpha.Scheduling
- func SchedulingNodeAffinity(affinity *compute.SchedulingNodeAffinity) *computealpha.SchedulingNodeAffinity
- func ServiceAccount(account *compute.ServiceAccount) *computealpha.ServiceAccount
- func ShieldedInstanceConfig(config *compute.ShieldedInstanceConfig) *computealpha.ShieldedInstanceConfig
- func ShieldedInstanceIntegrityPolicy(policy *compute.ShieldedInstanceIntegrityPolicy) *computealpha.ShieldedInstanceIntegrityPolicy
- func Tags(tags *compute.Tags) *computealpha.Tags
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AcceleratorConfig ¶
func AcceleratorConfig(config *compute.AcceleratorConfig) *computealpha.AcceleratorConfig
AcceleratorConfig converts a stable AcceleratorConfig to an alpha AcceleratorConfig.
func AccessConfig ¶
func AccessConfig(config *compute.AccessConfig) *computealpha.AccessConfig
AccessConfig converts a stable AccessConfig to an alpha AccessConfig.
func AdvancedMachineFeatures ¶
func AdvancedMachineFeatures(features *compute.AdvancedMachineFeatures) *computealpha.AdvancedMachineFeatures
AdvancedMachineFeatures converts a stable AdvancedMachineFeatures to an alpha AdvancedMachineFeatures.
func AliasIpRange ¶
func AliasIpRange(rng *compute.AliasIpRange) *computealpha.AliasIpRange
AliasIpRange converts a stable AliasIpRange to an alpha AliasIpRange.
func AttachedDisk ¶
func AttachedDisk(disk *compute.AttachedDisk) *computealpha.AttachedDisk
AttachedDisk converts a stable AttachedDisk to an alpha AttachedDisk.
func AttachedDiskInitializeParams ¶
func AttachedDiskInitializeParams(params *compute.AttachedDiskInitializeParams) *computealpha.AttachedDiskInitializeParams
AttachedDiskInitializeParams converts a stable AttachedDiskInitializeParams to an alpha AttachedDiskInitializeParams.
func CustomerEncryptionKey ¶
func CustomerEncryptionKey(key *compute.CustomerEncryptionKey) *computealpha.CustomerEncryptionKey
CustomerEncryptionKey converts a stable CustomerEncryptionKey to an alpha CustomerEncryptionKey.
func DisplayDevice ¶
func DisplayDevice(device *compute.DisplayDevice) *computealpha.DisplayDevice
DisplayDevice converts a stable DisplayDevice to an alpha DisplayDevice.
func Duration ¶
func Duration(duration *compute.Duration) *computealpha.Duration
Duration converts a stable Duration to an alpha Duration.
func FileContentBuffer ¶
func FileContentBuffer(buffer *compute.FileContentBuffer) *computealpha.FileContentBuffer
FileContentBuffer converts a stable FileContentBuffer to an alpha FileContentBuffer.
func GuestOsFeature ¶
func GuestOsFeature(feature *compute.GuestOsFeature) *computealpha.GuestOsFeature
GuestOsFeature converts a stable GuestOsFeature to an alpha GuestOsFeature.
func InitialStateConfig ¶
func InitialStateConfig(config *compute.InitialStateConfig) *computealpha.InitialStateConfig
InitialStateConfig converts a stable InitialStateConfig to an alpha InitialStateConfig.
func Instance ¶
func Instance(instance *compute.Instance) *computealpha.Instance
Instance converts a stable Instance to an alpha Instance.
func InstanceConfig ¶
func InstanceConfig(config *compute.ConfidentialInstanceConfig) *computealpha.ConfidentialInstanceConfig
InstanceConfig converts a stable ConfidentialInstanceConfig to an alpha ConfidentialInstanceConfig.
func InstanceParams ¶
func InstanceParams(params *compute.InstanceParams) *computealpha.InstanceParams
InstanceParams converts a stable InstanceParams to an alpha InstanceParams.
func MapSlice ¶
MapSlice takes a slice of Ts, applies a function to each T, and returns a slice of Us.
func Metadata ¶
func Metadata(metadata *compute.Metadata) *computealpha.Metadata
Metadata converts a stable Metadata to an alpha Metadata.
func MetadataItems ¶
func MetadataItems(items *compute.MetadataItems) *computealpha.MetadataItems
MetadataItems converts a stable MetadataItems to an alpha MetadataItems.
func NetworkInterface ¶
func NetworkInterface(intf *compute.NetworkInterface) *computealpha.NetworkInterface
NetworkInterface converts a stable NetworkInterface to an alpha NetworkInterface.
func NetworkPerformanceConfig ¶
func NetworkPerformanceConfig(config *compute.NetworkPerformanceConfig) *computealpha.NetworkPerformanceConfig
NetworkPerformanceConfig converts a stable NetworkPerformanceConfig to an alpha NetworkPerformanceConfig.
func ReservationAffinity ¶
func ReservationAffinity(affinity *compute.ReservationAffinity) *computealpha.ReservationAffinity
ReservationAffinity converts a stable ReservationAffinity to an alpha ReservationAffinity.
func ResourceStatus ¶
func ResourceStatus(status *compute.ResourceStatus) *computealpha.ResourceStatus
ResourceStatus converts a stable ResourceStatus to an alpha ResourceStatus.
func Scheduling ¶
func Scheduling(scheduling *compute.Scheduling) *computealpha.Scheduling
Scheduling converts a stable Scheduling to an alpha Scheduling.
func SchedulingNodeAffinity ¶
func SchedulingNodeAffinity(affinity *compute.SchedulingNodeAffinity) *computealpha.SchedulingNodeAffinity
SchedulingNodeAffinity converts a stable SchedulingNodeAffinity to an alpha SchedulingNodeAffinity.
func ServiceAccount ¶
func ServiceAccount(account *compute.ServiceAccount) *computealpha.ServiceAccount
ServiceAccount converts a stable ServiceAccount to an alpha ServiceAccount.
func ShieldedInstanceConfig ¶
func ShieldedInstanceConfig(config *compute.ShieldedInstanceConfig) *computealpha.ShieldedInstanceConfig
ShieldedInstanceConfig converts a sstable ShieldedInstanceConfig to an alpha ShieldedInstanceConfig.
func ShieldedInstanceIntegrityPolicy ¶
func ShieldedInstanceIntegrityPolicy(policy *compute.ShieldedInstanceIntegrityPolicy) *computealpha.ShieldedInstanceIntegrityPolicy
ShieldedInstanceIntegrityPolicy converts a stable ShieldedInstanceIntegrityPolicy to an alpha ShieldedInstanceIntegrityPolicy.
Types ¶
This section is empty.