compute.v1beta1.computeInstance
Index
fn new(name)
obj metadata
fn withAnnotations(annotations)
fn withAnnotationsMixin(annotations)
fn withClusterName(clusterName)
fn withCreationTimestamp(creationTimestamp)
fn withDeletionGracePeriodSeconds(deletionGracePeriodSeconds)
fn withDeletionTimestamp(deletionTimestamp)
fn withFinalizers(finalizers)
fn withFinalizersMixin(finalizers)
fn withGenerateName(generateName)
fn withGeneration(generation)
fn withLabels(labels)
fn withLabelsMixin(labels)
fn withName(name)
fn withNamespace(namespace)
fn withOwnerReferences(ownerReferences)
fn withOwnerReferencesMixin(ownerReferences)
fn withResourceVersion(resourceVersion)
fn withSelfLink(selfLink)
fn withUid(uid)
obj spec
fn withAttachedDisk(attachedDisk)
fn withAttachedDiskMixin(attachedDisk)
fn withCanIpForward(canIpForward)
fn withDeletionProtection(deletionProtection)
fn withDescription(description)
fn withDesiredStatus(desiredStatus)
fn withEnableDisplay(enableDisplay)
fn withGuestAccelerator(guestAccelerator)
fn withGuestAcceleratorMixin(guestAccelerator)
fn withHostname(hostname)
fn withMachineType(machineType)
fn withMetadata(metadata)
fn withMetadataMixin(metadata)
fn withMetadataStartupScript(metadataStartupScript)
fn withMinCpuPlatform(minCpuPlatform)
fn withNetworkInterface(networkInterface)
fn withNetworkInterfaceMixin(networkInterface)
fn withResourceID(resourceID)
fn withResourcePolicies(resourcePolicies)
fn withResourcePoliciesMixin(resourcePolicies)
fn withScratchDisk(scratchDisk)
fn withScratchDiskMixin(scratchDisk)
fn withTags(tags)
fn withTagsMixin(tags)
fn withZone(zone)
obj spec.advancedMachineFeatures
obj spec.attachedDisk
obj spec.bootDisk
obj spec.confidentialInstanceConfig
obj spec.guestAccelerator
obj spec.instanceTemplateRef
obj spec.metadata
obj spec.networkInterface
fn withAccessConfig(accessConfig)
fn withAccessConfigMixin(accessConfig)
fn withAliasIpRange(aliasIpRange)
fn withAliasIpRangeMixin(aliasIpRange)
fn withIpv6AccessConfig(ipv6AccessConfig)
fn withIpv6AccessConfigMixin(ipv6AccessConfig)
fn withIpv6AccessType(ipv6AccessType)
fn withName(name)
fn withNetworkIp(networkIp)
fn withNicType(nicType)
fn withQueueCount(queueCount)
fn withStackType(stackType)
fn withSubnetworkProject(subnetworkProject)
obj spec.networkInterface.accessConfig
obj spec.networkInterface.aliasIpRange
obj spec.networkInterface.ipv6AccessConfig
obj spec.networkInterface.networkIpRef
obj spec.networkInterface.networkRef
obj spec.networkInterface.subnetworkRef
obj spec.networkPerformanceConfig
obj spec.reservationAffinity
obj spec.resourcePolicies
obj spec.scheduling
fn withAutomaticRestart(automaticRestart)
fn withMinNodeCpus(minNodeCpus)
fn withNodeAffinities(nodeAffinities)
fn withNodeAffinitiesMixin(nodeAffinities)
fn withOnHostMaintenance(onHostMaintenance)
fn withPreemptible(preemptible)
fn withProvisioningModel(provisioningModel)
obj spec.scheduling.nodeAffinities
obj spec.scratchDisk
obj spec.serviceAccount
obj spec.shieldedInstanceConfig
Fields
fn new
new(name)
new returns an instance of ComputeInstance
obj metadata
"ObjectMeta is metadata that all persisted resources must have, which includes all objects users must create."
fn metadata.withAnnotations
withAnnotations(annotations)
"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations"
fn metadata.withAnnotationsMixin
withAnnotationsMixin(annotations)
"Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations"
Note: This function appends passed data to existing values
fn metadata.withClusterName
withClusterName(clusterName)
"The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request."
fn metadata.withCreationTimestamp
withCreationTimestamp(creationTimestamp)
"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."
fn metadata.withDeletionGracePeriodSeconds
withDeletionGracePeriodSeconds(deletionGracePeriodSeconds)
"Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only."
fn metadata.withDeletionTimestamp
withDeletionTimestamp(deletionTimestamp)
"Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers."
fn metadata.withFinalizers
withFinalizers(finalizers)
"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."
fn metadata.withFinalizersMixin
withFinalizersMixin(finalizers)
"Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list."
Note: This function appends passed data to existing values
fn metadata.withGenerateName
withGenerateName(generateName)
"GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server.\n\nIf this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header).\n\nApplied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency"
fn metadata.withGeneration
withGeneration(generation)
"A sequence number representing a specific generation of the desired state. Populated by the system. Read-only."
fn metadata.withLabels
withLabels(labels)
"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels"
fn metadata.withLabelsMixin
withLabelsMixin(labels)
"Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels"
Note: This function appends passed data to existing values
fn metadata.withName
withName(name)
"Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names"
fn metadata.withNamespace
withNamespace(namespace)
"Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty.\n\nMust be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces"
fn metadata.withOwnerReferences
withOwnerReferences(ownerReferences)
"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."
fn metadata.withOwnerReferencesMixin
withOwnerReferencesMixin(ownerReferences)
"List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller."
Note: This function appends passed data to existing values
fn metadata.withResourceVersion
withResourceVersion(resourceVersion)
"An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources.\n\nPopulated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency"
fn metadata.withSelfLink
withSelfLink(selfLink)
"SelfLink is a URL representing this object. Populated by the system. Read-only.\n\nDEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release."
fn metadata.withUid
withUid(uid)
"UID is the unique in time and space value for this object. It is typically generated by the server on successful creation of a resource and is not allowed to change on PUT operations.\n\nPopulated by the system. Read-only. More info: http://kubernetes.io/docs/user-guide/identifiers#uids"
obj spec
fn spec.withAttachedDisk
withAttachedDisk(attachedDisk)
"List of disks attached to the instance."
fn spec.withAttachedDiskMixin
withAttachedDiskMixin(attachedDisk)
"List of disks attached to the instance."
Note: This function appends passed data to existing values
fn spec.withCanIpForward
withCanIpForward(canIpForward)
"Whether sending and receiving of packets with non-matching source or destination IPs is allowed."
fn spec.withDeletionProtection
withDeletionProtection(deletionProtection)
"Whether deletion protection is enabled on this instance."
fn spec.withDescription
withDescription(description)
"Immutable. A brief description of the resource."
fn spec.withDesiredStatus
withDesiredStatus(desiredStatus)
"Desired status of the instance. Either \"RUNNING\" or \"TERMINATED\"."
fn spec.withEnableDisplay
withEnableDisplay(enableDisplay)
"Whether the instance has virtual displays enabled."
fn spec.withGuestAccelerator
withGuestAccelerator(guestAccelerator)
"Immutable. List of the type and count of accelerator cards attached to the instance."
fn spec.withGuestAcceleratorMixin
withGuestAcceleratorMixin(guestAccelerator)
"Immutable. List of the type and count of accelerator cards attached to the instance."
Note: This function appends passed data to existing values
fn spec.withHostname
withHostname(hostname)
"Immutable. A custom hostname for the instance. Must be a fully qualified DNS name and RFC-1035-valid. Valid format is a series of labels 1-63 characters long matching the regular expression a-z, concatenated with periods. The entire hostname must not exceed 253 characters. Changing this forces a new resource to be created."
fn spec.withMachineType
withMachineType(machineType)
"The machine type to create."
fn spec.withMetadata
withMetadata(metadata)
fn spec.withMetadataMixin
withMetadataMixin(metadata)
Note: This function appends passed data to existing values
fn spec.withMetadataStartupScript
withMetadataStartupScript(metadataStartupScript)
"Immutable. Metadata startup scripts made available within the instance."
fn spec.withMinCpuPlatform
withMinCpuPlatform(minCpuPlatform)
"The minimum CPU platform specified for the VM instance."
fn spec.withNetworkInterface
withNetworkInterface(networkInterface)
"Immutable. The networks attached to the instance."
fn spec.withNetworkInterfaceMixin
withNetworkInterfaceMixin(networkInterface)
"Immutable. The networks attached to the instance."
Note: This function appends passed data to existing values
fn spec.withResourceID
withResourceID(resourceID)
"Immutable. Optional. The name of the resource. Used for creation and acquisition. When unset, the value of metadata.name
is used as the default."
fn spec.withResourcePolicies
withResourcePolicies(resourcePolicies)
fn spec.withResourcePoliciesMixin
withResourcePoliciesMixin(resourcePolicies)
Note: This function appends passed data to existing values
fn spec.withScratchDisk
withScratchDisk(scratchDisk)
"Immutable. The scratch disks attached to the instance."
fn spec.withScratchDiskMixin
withScratchDiskMixin(scratchDisk)
"Immutable. The scratch disks attached to the instance."
Note: This function appends passed data to existing values
fn spec.withTags
withTags(tags)
"The list of tags attached to the instance."
fn spec.withTagsMixin
withTagsMixin(tags)
"The list of tags attached to the instance."
Note: This function appends passed data to existing values
fn spec.withZone
withZone(zone)
"Immutable. The zone of the instance. If self_link is provided, this value is ignored. If neither self_link nor zone are provided, the provider zone is used."
obj spec.advancedMachineFeatures
"Controls for advanced machine-related behavior features."
fn spec.advancedMachineFeatures.withEnableNestedVirtualization
withEnableNestedVirtualization(enableNestedVirtualization)
"Whether to enable nested virtualization or not."
fn spec.advancedMachineFeatures.withThreadsPerCore
withThreadsPerCore(threadsPerCore)
"The number of threads per physical core. To disable simultaneous multithreading (SMT) set this to 1. If unset, the maximum number of threads supported per core by the underlying processor is assumed."
obj spec.attachedDisk
"List of disks attached to the instance."
fn spec.attachedDisk.withDeviceName
withDeviceName(deviceName)
"Name with which the attached disk is accessible under /dev/disk/by-id/."
fn spec.attachedDisk.withDiskEncryptionKeySha256
withDiskEncryptionKeySha256(diskEncryptionKeySha256)
"The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource."
fn spec.attachedDisk.withMode
withMode(mode)
"Read/write mode for the disk. One of \"READ_ONLY\" or \"READ_WRITE\"."
obj spec.attachedDisk.diskEncryptionKeyRaw
"A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set."
fn spec.attachedDisk.diskEncryptionKeyRaw.withValue
withValue(value)
"Value of the field. Cannot be used if 'valueFrom' is specified."
obj spec.attachedDisk.diskEncryptionKeyRaw.valueFrom
"Source for the field's value. Cannot be used if 'value' is specified."
obj spec.attachedDisk.diskEncryptionKeyRaw.valueFrom.secretKeyRef
"Reference to a value with the given key in the given Secret in the resource's namespace."
fn spec.attachedDisk.diskEncryptionKeyRaw.valueFrom.secretKeyRef.withKey
withKey(key)
"Key that identifies the value to be extracted."
fn spec.attachedDisk.diskEncryptionKeyRaw.valueFrom.secretKeyRef.withName
withName(name)
"Name of the Secret to extract a value from."
obj spec.attachedDisk.kmsKeyRef
fn spec.attachedDisk.kmsKeyRef.withExternal
withExternal(external)
"Allowed value: The selfLink
field of a KMSCryptoKey
resource."
fn spec.attachedDisk.kmsKeyRef.withName
withName(name)
"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"
fn spec.attachedDisk.kmsKeyRef.withNamespace
withNamespace(namespace)
"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"
obj spec.attachedDisk.sourceDiskRef
fn spec.attachedDisk.sourceDiskRef.withExternal
withExternal(external)
"Allowed value: The selfLink
field of a ComputeDisk
resource."
fn spec.attachedDisk.sourceDiskRef.withName
withName(name)
"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"
fn spec.attachedDisk.sourceDiskRef.withNamespace
withNamespace(namespace)
"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"
obj spec.bootDisk
"Immutable. The boot disk for the instance."
fn spec.bootDisk.withAutoDelete
withAutoDelete(autoDelete)
"Immutable. Whether the disk will be auto-deleted when the instance is deleted."
fn spec.bootDisk.withDeviceName
withDeviceName(deviceName)
"Immutable. Name with which attached disk will be accessible under /dev/disk/by-id/."
fn spec.bootDisk.withDiskEncryptionKeySha256
withDiskEncryptionKeySha256(diskEncryptionKeySha256)
"The RFC 4648 base64 encoded SHA-256 hash of the customer-supplied encryption key that protects this resource."
fn spec.bootDisk.withMode
withMode(mode)
"Immutable. Read/write mode for the disk. One of \"READ_ONLY\" or \"READ_WRITE\"."
obj spec.bootDisk.diskEncryptionKeyRaw
"Immutable. A 256-bit customer-supplied encryption key, encoded in RFC 4648 base64 to encrypt this disk. Only one of kms_key_self_link and disk_encryption_key_raw may be set."
fn spec.bootDisk.diskEncryptionKeyRaw.withValue
withValue(value)
"Value of the field. Cannot be used if 'valueFrom' is specified."
obj spec.bootDisk.diskEncryptionKeyRaw.valueFrom
"Source for the field's value. Cannot be used if 'value' is specified."
obj spec.bootDisk.diskEncryptionKeyRaw.valueFrom.secretKeyRef
"Reference to a value with the given key in the given Secret in the resource's namespace."
fn spec.bootDisk.diskEncryptionKeyRaw.valueFrom.secretKeyRef.withKey
withKey(key)
"Key that identifies the value to be extracted."
fn spec.bootDisk.diskEncryptionKeyRaw.valueFrom.secretKeyRef.withName
withName(name)
"Name of the Secret to extract a value from."
obj spec.bootDisk.initializeParams
"Immutable. Parameters with which a disk was created alongside the instance."
fn spec.bootDisk.initializeParams.withLabels
withLabels(labels)
"Immutable. A set of key/value label pairs assigned to the disk."
fn spec.bootDisk.initializeParams.withLabelsMixin
withLabelsMixin(labels)
"Immutable. A set of key/value label pairs assigned to the disk."
Note: This function appends passed data to existing values
fn spec.bootDisk.initializeParams.withSize
withSize(size)
"Immutable. The size of the image in gigabytes."
fn spec.bootDisk.initializeParams.withType
withType(type)
"Immutable. The Google Compute Engine disk type. One of pd-standard, pd-ssd or pd-balanced."
obj spec.bootDisk.initializeParams.sourceImageRef
fn spec.bootDisk.initializeParams.sourceImageRef.withExternal
withExternal(external)
"Allowed value: The selfLink
field of a ComputeImage
resource."
fn spec.bootDisk.initializeParams.sourceImageRef.withName
withName(name)
"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"
fn spec.bootDisk.initializeParams.sourceImageRef.withNamespace
withNamespace(namespace)
"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"
obj spec.bootDisk.kmsKeyRef
fn spec.bootDisk.kmsKeyRef.withExternal
withExternal(external)
"Allowed value: The selfLink
field of a KMSCryptoKey
resource."
fn spec.bootDisk.kmsKeyRef.withName
withName(name)
"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"
fn spec.bootDisk.kmsKeyRef.withNamespace
withNamespace(namespace)
"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"
obj spec.bootDisk.sourceDiskRef
fn spec.bootDisk.sourceDiskRef.withExternal
withExternal(external)
"Allowed value: The selfLink
field of a ComputeDisk
resource."
fn spec.bootDisk.sourceDiskRef.withName
withName(name)
"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"
fn spec.bootDisk.sourceDiskRef.withNamespace
withNamespace(namespace)
"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"
obj spec.confidentialInstanceConfig
"Immutable. The Confidential VM config being used by the instance. on_host_maintenance has to be set to TERMINATE or this will fail to create."
fn spec.confidentialInstanceConfig.withEnableConfidentialCompute
withEnableConfidentialCompute(enableConfidentialCompute)
"Defines whether the instance should have confidential compute enabled."
obj spec.guestAccelerator
"Immutable. List of the type and count of accelerator cards attached to the instance."
fn spec.guestAccelerator.withCount
withCount(count)
"Immutable. The number of the guest accelerator cards exposed to this instance."
fn spec.guestAccelerator.withType
withType(type)
"Immutable. The accelerator type resource exposed to this instance. E.g. nvidia-tesla-k80."
obj spec.instanceTemplateRef
fn spec.instanceTemplateRef.withExternal
withExternal(external)
"Allowed value: The selfLink
field of a ComputeInstanceTemplate
resource."
fn spec.instanceTemplateRef.withName
withName(name)
"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"
fn spec.instanceTemplateRef.withNamespace
withNamespace(namespace)
"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"
obj spec.metadata
fn spec.metadata.withKey
withKey(key)
fn spec.metadata.withValue
withValue(value)
obj spec.networkInterface
"Immutable. The networks attached to the instance."
fn spec.networkInterface.withAccessConfig
withAccessConfig(accessConfig)
"Access configurations, i.e. IPs via which this instance can be accessed via the Internet."
fn spec.networkInterface.withAccessConfigMixin
withAccessConfigMixin(accessConfig)
"Access configurations, i.e. IPs via which this instance can be accessed via the Internet."
Note: This function appends passed data to existing values
fn spec.networkInterface.withAliasIpRange
withAliasIpRange(aliasIpRange)
"An array of alias IP ranges for this network interface."
fn spec.networkInterface.withAliasIpRangeMixin
withAliasIpRangeMixin(aliasIpRange)
"An array of alias IP ranges for this network interface."
Note: This function appends passed data to existing values
fn spec.networkInterface.withIpv6AccessConfig
withIpv6AccessConfig(ipv6AccessConfig)
"An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access."
fn spec.networkInterface.withIpv6AccessConfigMixin
withIpv6AccessConfigMixin(ipv6AccessConfig)
"An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access."
Note: This function appends passed data to existing values
fn spec.networkInterface.withIpv6AccessType
withIpv6AccessType(ipv6AccessType)
"One of EXTERNAL, INTERNAL to indicate whether the IP can be accessed from the Internet. This field is always inherited from its subnetwork."
fn spec.networkInterface.withName
withName(name)
"The name of the interface."
fn spec.networkInterface.withNetworkIp
withNetworkIp(networkIp)
"DEPRECATED. This field is deprecated, use spec.networkInterface.networkIpRef
instead."
fn spec.networkInterface.withNicType
withNicType(nicType)
"Immutable. The type of vNIC to be used on this interface. Possible values:GVNIC, VIRTIO_NET."
fn spec.networkInterface.withQueueCount
withQueueCount(queueCount)
"Immutable. The networking queue count that's specified by users for the network interface. Both Rx and Tx queues will be set to this number. It will be empty if not specified."
fn spec.networkInterface.withStackType
withStackType(stackType)
"The stack type for this network interface to identify whether the IPv6 feature is enabled or not. If not specified, IPV4_ONLY will be used."
fn spec.networkInterface.withSubnetworkProject
withSubnetworkProject(subnetworkProject)
"The project in which the subnetwork belongs."
obj spec.networkInterface.accessConfig
"Access configurations, i.e. IPs via which this instance can be accessed via the Internet."
fn spec.networkInterface.accessConfig.withNetworkTier
withNetworkTier(networkTier)
"The networking tier used for configuring this instance. One of PREMIUM or STANDARD."
fn spec.networkInterface.accessConfig.withPublicPtrDomainName
withPublicPtrDomainName(publicPtrDomainName)
"The DNS domain name for the public PTR record."
obj spec.networkInterface.accessConfig.natIpRef
fn spec.networkInterface.accessConfig.natIpRef.withExternal
withExternal(external)
"Allowed value: The address
field of a ComputeAddress
resource."
fn spec.networkInterface.accessConfig.natIpRef.withName
withName(name)
"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"
fn spec.networkInterface.accessConfig.natIpRef.withNamespace
withNamespace(namespace)
"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"
obj spec.networkInterface.aliasIpRange
"An array of alias IP ranges for this network interface."
fn spec.networkInterface.aliasIpRange.withIpCidrRange
withIpCidrRange(ipCidrRange)
"The IP CIDR range represented by this alias IP range."
fn spec.networkInterface.aliasIpRange.withSubnetworkRangeName
withSubnetworkRangeName(subnetworkRangeName)
"The subnetwork secondary range name specifying the secondary range from which to allocate the IP CIDR range for this alias IP range."
obj spec.networkInterface.ipv6AccessConfig
"An array of IPv6 access configurations for this interface. Currently, only one IPv6 access config, DIRECT_IPV6, is supported. If there is no ipv6AccessConfig specified, then this instance will have no external IPv6 Internet access."
fn spec.networkInterface.ipv6AccessConfig.withExternalIpv6
withExternalIpv6(externalIpv6)
"The first IPv6 address of the external IPv6 range associated with this instance, prefix length is stored in externalIpv6PrefixLength in ipv6AccessConfig. The field is output only, an IPv6 address from a subnetwork associated with the instance will be allocated dynamically."
fn spec.networkInterface.ipv6AccessConfig.withExternalIpv6PrefixLength
withExternalIpv6PrefixLength(externalIpv6PrefixLength)
"The prefix length of the external IPv6 range."
fn spec.networkInterface.ipv6AccessConfig.withNetworkTier
withNetworkTier(networkTier)
"The service-level to be provided for IPv6 traffic when the subnet has an external subnet. Only PREMIUM tier is valid for IPv6."
fn spec.networkInterface.ipv6AccessConfig.withPublicPtrDomainName
withPublicPtrDomainName(publicPtrDomainName)
"The domain name to be used when creating DNSv6 records for the external IPv6 ranges."
obj spec.networkInterface.networkIpRef
fn spec.networkInterface.networkIpRef.withExternal
withExternal(external)
"Allowed value: The address
field of a ComputeAddress
resource."
fn spec.networkInterface.networkIpRef.withKind
withKind(kind)
"Kind of the referent. Allowed values: ComputeAddress"
fn spec.networkInterface.networkIpRef.withName
withName(name)
"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"
fn spec.networkInterface.networkIpRef.withNamespace
withNamespace(namespace)
"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"
obj spec.networkInterface.networkRef
fn spec.networkInterface.networkRef.withExternal
withExternal(external)
"Allowed value: The selfLink
field of a ComputeNetwork
resource."
fn spec.networkInterface.networkRef.withName
withName(name)
"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"
fn spec.networkInterface.networkRef.withNamespace
withNamespace(namespace)
"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"
obj spec.networkInterface.subnetworkRef
fn spec.networkInterface.subnetworkRef.withExternal
withExternal(external)
"Allowed value: The selfLink
field of a ComputeSubnetwork
resource."
fn spec.networkInterface.subnetworkRef.withName
withName(name)
"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"
fn spec.networkInterface.subnetworkRef.withNamespace
withNamespace(namespace)
"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"
obj spec.networkPerformanceConfig
"Immutable. Configures network performance settings for the instance. If not specified, the instance will be created with its default network performance configuration."
fn spec.networkPerformanceConfig.withTotalEgressBandwidthTier
withTotalEgressBandwidthTier(totalEgressBandwidthTier)
"Immutable. The egress bandwidth tier to enable. Possible values:TIER_1, DEFAULT."
obj spec.reservationAffinity
"Immutable. Specifies the reservations that this instance can consume from."
fn spec.reservationAffinity.withType
withType(type)
"Immutable. The type of reservation from which this instance can consume resources."
obj spec.reservationAffinity.specificReservation
"Immutable. Specifies the label selector for the reservation to use."
fn spec.reservationAffinity.specificReservation.withKey
withKey(key)
"Immutable. Corresponds to the label key of a reservation resource. To target a SPECIFIC_RESERVATION by name, specify compute.googleapis.com/reservation-name as the key and specify the name of your reservation as the only value."
fn spec.reservationAffinity.specificReservation.withValues
withValues(values)
"Immutable. Corresponds to the label values of a reservation resource."
fn spec.reservationAffinity.specificReservation.withValuesMixin
withValuesMixin(values)
"Immutable. Corresponds to the label values of a reservation resource."
Note: This function appends passed data to existing values
obj spec.resourcePolicies
fn spec.resourcePolicies.withExternal
withExternal(external)
"Allowed value: The selfLink
field of a ComputeResourcePolicy
resource."
fn spec.resourcePolicies.withName
withName(name)
"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"
fn spec.resourcePolicies.withNamespace
withNamespace(namespace)
"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"
obj spec.scheduling
"The scheduling strategy being used by the instance."
fn spec.scheduling.withAutomaticRestart
withAutomaticRestart(automaticRestart)
"Specifies if the instance should be restarted if it was terminated by Compute Engine (not a user)."
fn spec.scheduling.withMinNodeCpus
withMinNodeCpus(minNodeCpus)
fn spec.scheduling.withNodeAffinities
withNodeAffinities(nodeAffinities)
fn spec.scheduling.withNodeAffinitiesMixin
withNodeAffinitiesMixin(nodeAffinities)
Note: This function appends passed data to existing values
fn spec.scheduling.withOnHostMaintenance
withOnHostMaintenance(onHostMaintenance)
"Describes maintenance behavior for the instance. One of MIGRATE or TERMINATE,."
fn spec.scheduling.withPreemptible
withPreemptible(preemptible)
"Immutable. Whether the instance is preemptible."
fn spec.scheduling.withProvisioningModel
withProvisioningModel(provisioningModel)
"Immutable. Whether the instance is spot. If this is set as SPOT."
obj spec.scheduling.nodeAffinities
fn spec.scheduling.nodeAffinities.withValue
withValue(value)
fn spec.scheduling.nodeAffinities.withValueMixin
withValueMixin(value)
Note: This function appends passed data to existing values
obj spec.scratchDisk
"Immutable. The scratch disks attached to the instance."
fn spec.scratchDisk.withInterface
withInterface(interface)
"The disk interface used for attaching this disk. One of SCSI or NVME."
obj spec.serviceAccount
"The service account to attach to the instance."
fn spec.serviceAccount.withScopes
withScopes(scopes)
"A list of service scopes."
fn spec.serviceAccount.withScopesMixin
withScopesMixin(scopes)
"A list of service scopes."
Note: This function appends passed data to existing values
obj spec.serviceAccount.serviceAccountRef
fn spec.serviceAccount.serviceAccountRef.withExternal
withExternal(external)
"Allowed value: The email
field of an IAMServiceAccount
resource."
fn spec.serviceAccount.serviceAccountRef.withName
withName(name)
"Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names"
fn spec.serviceAccount.serviceAccountRef.withNamespace
withNamespace(namespace)
"Namespace of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces/"
obj spec.shieldedInstanceConfig
"The shielded vm config being used by the instance."
fn spec.shieldedInstanceConfig.withEnableIntegrityMonitoring
withEnableIntegrityMonitoring(enableIntegrityMonitoring)
"Whether integrity monitoring is enabled for the instance."
fn spec.shieldedInstanceConfig.withEnableSecureBoot
withEnableSecureBoot(enableSecureBoot)
"Whether secure boot is enabled for the instance."
fn spec.shieldedInstanceConfig.withEnableVtpm
withEnableVtpm(enableVtpm)
"Whether the instance uses vTPM."