v1beta1

package
v1.127.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

+kcc:proto=google.cloud.workstations.v1

+kubebuilder:object:generate=true +groupName=workstations.cnrm.cloud.google.com

Index

Constants

This section is empty.

Variables

View Source
var (
	// GroupVersion is group version used to register these objects
	GroupVersion = schema.GroupVersion{Group: "workstations.cnrm.cloud.google.com", Version: "v1beta1"}

	// SchemeBuilder is used to add go types to the GroupVersionKind scheme
	SchemeBuilder = &scheme.Builder{GroupVersion: GroupVersion}

	// AddToScheme adds the types in this group-version to the given scheme.
	AddToScheme = SchemeBuilder.AddToScheme
)
View Source
var WorkstationClusterGVK = GroupVersion.WithKind("WorkstationCluster")
View Source
var WorkstationConfigGVK = GroupVersion.WithKind("WorkstationConfig")
View Source
var WorkstationGVK = GroupVersion.WithKind("Workstation")

Functions

This section is empty.

Types

type Workstation added in v1.127.0

type Workstation struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	// +required
	Spec   WorkstationSpec   `json:"spec,omitempty"`
	Status WorkstationStatus `json:"status,omitempty"`
}

Workstation is the Schema for the Workstation API +k8s:openapi-gen=true +kubebuilder:storageversion

func (*Workstation) DeepCopy added in v1.127.0

func (in *Workstation) DeepCopy() *Workstation

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new Workstation.

func (*Workstation) DeepCopyInto added in v1.127.0

func (in *Workstation) DeepCopyInto(out *Workstation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*Workstation) DeepCopyObject added in v1.127.0

func (in *Workstation) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type WorkstationAnnotation added in v1.126.0

type WorkstationAnnotation struct {
	// Key for the annotation.
	Key string `json:"key,omitempty"`

	// Value for the annotation.
	Value string `json:"value,omitempty"`
}

func (*WorkstationAnnotation) DeepCopy added in v1.126.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationAnnotation.

func (*WorkstationAnnotation) DeepCopyInto added in v1.126.0

func (in *WorkstationAnnotation) DeepCopyInto(out *WorkstationAnnotation)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkstationCluster

type WorkstationCluster struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   WorkstationClusterSpec   `json:"spec,omitempty"`
	Status WorkstationClusterStatus `json:"status,omitempty"`
}

WorkstationCluster is the Schema for the WorkstationCluster API +k8s:openapi-gen=true +kubebuilder:storageversion

func (*WorkstationCluster) DeepCopy

func (in *WorkstationCluster) DeepCopy() *WorkstationCluster

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationCluster.

func (*WorkstationCluster) DeepCopyInto

func (in *WorkstationCluster) DeepCopyInto(out *WorkstationCluster)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*WorkstationCluster) DeepCopyObject

func (in *WorkstationCluster) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type WorkstationClusterList

type WorkstationClusterList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []WorkstationCluster `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object WorkstationClusterList contains a list of WorkstationCluster

func (*WorkstationClusterList) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationClusterList.

func (*WorkstationClusterList) DeepCopyInto

func (in *WorkstationClusterList) DeepCopyInto(out *WorkstationClusterList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*WorkstationClusterList) DeepCopyObject

func (in *WorkstationClusterList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type WorkstationClusterObservedState

type WorkstationClusterObservedState struct {
	// Output only. A system-assigned unique identifier for this workstation
	//  cluster.
	Uid *string `json:"uid,omitempty"`

	// Output only. Indicates whether this workstation cluster is currently being
	//  updated to match its intended state.
	Reconciling *bool `json:"reconciling,omitempty"`

	// Output only. Time when this workstation cluster was created.
	CreateTime *string `json:"createTime,omitempty"`

	// Output only. Time when this workstation cluster was most recently updated.
	UpdateTime *string `json:"updateTime,omitempty"`

	// Output only. Time when this workstation cluster was soft-deleted.
	DeleteTime *string `json:"deleteTime,omitempty"`

	// Optional. Checksum computed by the server. May be sent on update and delete
	//  requests to make sure that the client has an up-to-date value before
	//  proceeding.
	Etag *string `json:"etag,omitempty"`

	// Output only. The private IP address of the control plane for this
	//  workstation cluster. Workstation VMs need access to this IP address to work
	//  with the service, so make sure that your firewall rules allow egress from
	//  the workstation VMs to this address.
	ControlPlaneIP *string `json:"controlPlaneIP,omitempty"`

	// Output only. Hostname for the workstation cluster. This field will be
	//  populated only when private endpoint is enabled. To access workstations
	//  in the workstation cluster, create a new DNS zone mapping this domain
	//  name to an internal IP address and a forwarding rule mapping that address
	//  to the service attachment.
	ClusterHostname *string `json:"clusterHostname,omitempty"`

	// Output only. Service attachment URI for the workstation cluster. The
	//  service attachment is created when private endpoint is enabled. To access
	//  workstations in the workstation cluster, configure access to the managed
	//  service using [Private Service
	//  Connect](https://cloud.google.com/vpc/docs/configure-private-service-connect-services).
	ServiceAttachmentURI *string `json:"serviceAttachmentUri,omitempty"`

	// Output only. Whether this workstation cluster is in degraded mode, in which
	//  case it may require user action to restore full functionality. Details can
	//  be found in
	//  [conditions][google.cloud.workstations.v1.WorkstationCluster.conditions].
	Degraded *bool `json:"degraded,omitempty"`

	// Output only. Status conditions describing the workstation cluster's current
	//  state.
	GCPConditions []WorkstationServiceGCPCondition `json:"gcpConditions,omitempty"`
}

WorkstationClusterSpec defines the desired state of WorkstationCluster +kcc:proto=google.cloud.workstations.v1.WorkstationCluster

func (*WorkstationClusterObservedState) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationClusterObservedState.

func (*WorkstationClusterObservedState) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkstationClusterParent added in v1.126.0

type WorkstationClusterParent struct {
	ProjectID string
	Location  string
}

func (*WorkstationClusterParent) DeepCopy added in v1.126.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationClusterParent.

func (*WorkstationClusterParent) DeepCopyInto added in v1.126.0

func (in *WorkstationClusterParent) DeepCopyInto(out *WorkstationClusterParent)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*WorkstationClusterParent) String added in v1.126.0

func (p *WorkstationClusterParent) String() string

type WorkstationClusterRef added in v1.126.0

type WorkstationClusterRef struct {
	// A reference to an externally managed WorkstationCluster resource.
	// Should be in the format "projects/{{projectID}}/locations/{{location}}/workstationClusters/{{workstationclusterID}}".
	External string `json:"external,omitempty"`

	// The name of a WorkstationCluster resource.
	Name string `json:"name,omitempty"`

	// The namespace of a WorkstationCluster resource.
	Namespace string `json:"namespace,omitempty"`
}

WorkstationClusterRef defines the resource reference to WorkstationCluster, which "External" field holds the GCP identifier for the KRM object.

func NewWorkstationClusterRef added in v1.126.0

func NewWorkstationClusterRef(ctx context.Context, reader client.Reader, obj *WorkstationCluster) (*WorkstationClusterRef, error)

New builds a WorkstationClusterRef from the Config Connector WorkstationCluster object.

func (*WorkstationClusterRef) DeepCopy added in v1.126.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationClusterRef.

func (*WorkstationClusterRef) DeepCopyInto added in v1.126.0

func (in *WorkstationClusterRef) DeepCopyInto(out *WorkstationClusterRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*WorkstationClusterRef) NormalizedExternal added in v1.126.0

func (r *WorkstationClusterRef) NormalizedExternal(ctx context.Context, reader client.Reader, otherNamespace string) (string, error)

NormalizedExternal provision the "External" value for other resource that depends on WorkstationCluster. If the "External" is given in the other resource's spec.WorkstationClusterRef, the given value will be used. Otherwise, the "Name" and "Namespace" will be used to query the actual WorkstationCluster object from the cluster.

func (*WorkstationClusterRef) Parent added in v1.126.0

type WorkstationClusterSpec

type WorkstationClusterSpec struct {
	// Immutable. The Project that this resource belongs to.
	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="ResourceID field is immutable"
	ProjectRef refs.ProjectRef `json:"projectRef"`

	// The location of the cluster.
	Location string `json:"location,omitempty"`

	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="ResourceID field is immutable"
	// Immutable.
	// The WorkstationCluster name. If not given, the metadata.name will be used.
	ResourceID *string `json:"resourceID,omitempty"`

	// Optional. Human-readable name for this workstation cluster.
	DisplayName *string `json:"displayName,omitempty"`

	// Optional. Client-specified annotations.
	Annotations []WorkstationAnnotation `json:"annotations,omitempty"`

	// Optional.
	//  [Labels](https://cloud.google.com/workstations/docs/label-resources) that
	//  are applied to the workstation cluster and that are also propagated to the
	//  underlying Compute Engine resources.
	Labels []WorkstationLabel `json:"labels,omitempty"`

	// Immutable. Reference to the Compute Engine network in which instances associated
	//  with this workstation cluster will be created.
	// +required
	NetworkRef refs.ComputeNetworkRef `json:"networkRef"`

	// Immutable. Reference to the Compute Engine subnetwork in which instances
	//  associated with this workstation cluster will be created. Must be part of
	//  the subnetwork specified for this workstation cluster.
	// +required
	SubnetworkRef refs.ComputeSubnetworkRef `json:"subnetworkRef"`

	// Optional. Configuration for private workstation cluster.
	PrivateClusterConfig *WorkstationCluster_PrivateClusterConfig `json:"privateClusterConfig,omitempty"`
}

WorkstationClusterSpec defines the desired state of WorkstationCluster +kcc:proto=google.cloud.workstations.v1.WorkstationCluster

func (*WorkstationClusterSpec) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationClusterSpec.

func (*WorkstationClusterSpec) DeepCopyInto

func (in *WorkstationClusterSpec) DeepCopyInto(out *WorkstationClusterSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkstationClusterStatus

type WorkstationClusterStatus struct {
	/* Conditions represent the latest available observations of the
	   object's current state. */
	Conditions []v1alpha1.Condition `json:"conditions,omitempty"`

	// ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource.
	ObservedGeneration *int64 `json:"observedGeneration,omitempty"`

	// A unique specifier for the WorkstationCluster resource in GCP.
	ExternalRef *string `json:"externalRef,omitempty"`

	// ObservedState is the state of the resource as most recently observed in GCP.
	ObservedState *WorkstationClusterObservedState `json:"observedState,omitempty"`
}

WorkstationClusterStatus defines the config connector machine state of WorkstationCluster

func (*WorkstationClusterStatus) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationClusterStatus.

func (*WorkstationClusterStatus) DeepCopyInto

func (in *WorkstationClusterStatus) DeepCopyInto(out *WorkstationClusterStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkstationCluster_PrivateClusterConfig

type WorkstationCluster_PrivateClusterConfig struct {
	// Immutable. Whether Workstations endpoint is private.
	EnablePrivateEndpoint *bool `json:"enablePrivateEndpoint,omitempty"`

	// Optional. Additional projects that are allowed to attach to the
	//  workstation cluster's service attachment. By default, the workstation
	//  cluster's project and the VPC host project (if different) are allowed.
	AllowedProjects []refs.ProjectRef `json:"allowedProjects,omitempty"`
}

+kcc:proto=google.cloud.workstations.v1.WorkstationCluster.PrivateClusterConfig

func (*WorkstationCluster_PrivateClusterConfig) DeepCopy

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationCluster_PrivateClusterConfig.

func (*WorkstationCluster_PrivateClusterConfig) DeepCopyInto

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkstationConfig added in v1.127.0

type WorkstationConfig struct {
	metav1.TypeMeta   `json:",inline"`
	metav1.ObjectMeta `json:"metadata,omitempty"`

	Spec   WorkstationConfigSpec   `json:"spec,omitempty"`
	Status WorkstationConfigStatus `json:"status,omitempty"`
}

WorkstationConfig is the Schema for the WorkstationConfig API +k8s:openapi-gen=true +kubebuilder:storageversion

func (*WorkstationConfig) DeepCopy added in v1.127.0

func (in *WorkstationConfig) DeepCopy() *WorkstationConfig

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationConfig.

func (*WorkstationConfig) DeepCopyInto added in v1.127.0

func (in *WorkstationConfig) DeepCopyInto(out *WorkstationConfig)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*WorkstationConfig) DeepCopyObject added in v1.127.0

func (in *WorkstationConfig) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type WorkstationConfigIdentity added in v1.127.0

type WorkstationConfigIdentity struct {
	// contains filtered or unexported fields
}

WorkstationConfigIdentity defines the resource reference to WorkstationConfig, which "External" field holds the GCP identifier for the KRM object.

func NewWorkstationConfigIdentity added in v1.127.0

func NewWorkstationConfigIdentity(ctx context.Context, reader client.Reader, obj *WorkstationConfig) (*WorkstationConfigIdentity, error)

New builds a ConfigIdentity from the Config Connector WorkstationConfig object.

func (*WorkstationConfigIdentity) DeepCopy added in v1.127.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationConfigIdentity.

func (*WorkstationConfigIdentity) DeepCopyInto added in v1.127.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*WorkstationConfigIdentity) ID added in v1.127.0

func (*WorkstationConfigIdentity) Parent added in v1.127.0

func (*WorkstationConfigIdentity) String added in v1.127.0

func (i *WorkstationConfigIdentity) String() string

type WorkstationConfigList added in v1.127.0

type WorkstationConfigList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []WorkstationConfig `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object WorkstationConfigList contains a list of WorkstationConfig

func (*WorkstationConfigList) DeepCopy added in v1.127.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationConfigList.

func (*WorkstationConfigList) DeepCopyInto added in v1.127.0

func (in *WorkstationConfigList) DeepCopyInto(out *WorkstationConfigList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*WorkstationConfigList) DeepCopyObject added in v1.127.0

func (in *WorkstationConfigList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type WorkstationConfigObservedState added in v1.127.0

type WorkstationConfigObservedState struct {
	// Output only. A system-assigned unique identifier for this workstation
	//  configuration.
	UID *string `json:"uid,omitempty"`

	// Output only. Time when this workstation configuration was created.
	CreateTime *string `json:"createTime,omitempty"`

	// Output only. Time when this workstation configuration was most recently
	//  updated.
	UpdateTime *string `json:"updateTime,omitempty"`

	// Output only. Time when this workstation configuration was soft-deleted.
	DeleteTime *string `json:"deleteTime,omitempty"`

	// Output only. Checksum computed by the server. May be sent on update and
	//  delete requests to make sure that the client has an up-to-date value
	//  before proceeding.
	Etag *string `json:"etag,omitempty"`

	// Output only. Observed state of the runtime host for the workstation
	//   configuration.
	Host *WorkstationConfig_HostObservedState `json:"host,omitempty"`

	// Output only. Whether this resource is degraded, in which case it may
	//  require user action to restore full functionality. See also the
	//  [conditions][google.cloud.workstations.v1.WorkstationConfig.conditions]
	//  field.
	Degraded *bool `json:"degraded,omitempty"`

	// Output only. Status conditions describing the current resource state.
	GCPConditions []WorkstationServiceGCPCondition `json:"gcpConditions,omitempty"`
}

WorkstationConfigObservedState is the state of the WorkstationConfig resource as most recently observed in GCP. +kcc:proto=google.cloud.workstations.v1.WorkstationConfig

func (*WorkstationConfigObservedState) DeepCopy added in v1.127.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationConfigObservedState.

func (*WorkstationConfigObservedState) DeepCopyInto added in v1.127.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkstationConfigParent added in v1.127.0

type WorkstationConfigParent struct {
	ProjectID string
	Location  string
	Cluster   string
}

func ParseWorkstationConfigExternal added in v1.127.0

func ParseWorkstationConfigExternal(external string) (parent *WorkstationConfigParent, resourceID string, err error)

func (*WorkstationConfigParent) DeepCopy added in v1.127.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationConfigParent.

func (*WorkstationConfigParent) DeepCopyInto added in v1.127.0

func (in *WorkstationConfigParent) DeepCopyInto(out *WorkstationConfigParent)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*WorkstationConfigParent) String added in v1.127.0

func (p *WorkstationConfigParent) String() string

type WorkstationConfigRef added in v1.127.0

type WorkstationConfigRef struct {
	// A reference to an externally managed WorkstationConfig resource.
	// Should be in the format "projects/{{projectID}}/locations/{{location}}/workstationClusters/{{workstationclusterID}}/workstationConfigs/{{workstationconfigID}}".
	External string `json:"external,omitempty"`

	// The name of a WorkstationConfig resource.
	Name string `json:"name,omitempty"`

	// The namespace of a WorkstationConfig resource.
	Namespace string `json:"namespace,omitempty"`
}

WorkstationConfigRef defines the resource reference to WorkstationConfig, which "External" field holds the GCP identifier for the KRM object.

func (*WorkstationConfigRef) DeepCopy added in v1.127.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationConfigRef.

func (*WorkstationConfigRef) DeepCopyInto added in v1.127.0

func (in *WorkstationConfigRef) DeepCopyInto(out *WorkstationConfigRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*WorkstationConfigRef) NormalizedExternal added in v1.127.0

func (r *WorkstationConfigRef) NormalizedExternal(ctx context.Context, reader client.Reader, otherNamespace string) (string, error)

NormalizedExternal provision the "External" value for other resource that depends on WorkstationConfig. If the "External" is given in the other resource's spec.WorkstationConfigRef, the given value will be used. Otherwise, the "Name" and "Namespace" will be used to query the actual WorkstationConfig object from the cluster.

type WorkstationConfigSpec added in v1.127.0

type WorkstationConfigSpec struct {
	// Parent is a reference to the parent WorkstationCluster for this WorkstationConfig.
	Parent *WorkstationClusterRef `json:"parentRef"`

	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="ResourceID field is immutable"
	// Immutable.
	// The WorkstationConfig name. If not given, the metadata.name will be used.
	ResourceID *string `json:"resourceID,omitempty"`

	// Optional. Human-readable name for this workstation configuration.
	DisplayName *string `json:"displayName,omitempty"`

	// Optional. Client-specified annotations.
	Annotations []WorkstationAnnotation `json:"annotations,omitempty"`

	// Optional.
	//  [Labels](https://cloud.google.com/workstations/docs/label-resources) that
	//  are applied to the workstation configuration and that are also propagated
	//  to the underlying Compute Engine resources.
	Labels []WorkstationLabel `json:"labels,omitempty"`

	// Optional. Number of seconds to wait before automatically stopping a
	//  workstation after it last received user traffic.
	//
	//  A value of `"0s"` indicates that Cloud Workstations VMs created with this
	//  configuration should never time out due to idleness.
	//  Provide
	//  [duration](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#duration)
	//  terminated by `s` for seconds—for example, `"7200s"` (2 hours).
	//  The default is `"1200s"` (20 minutes).
	IdleTimeout *string `json:"idleTimeout,omitempty"`

	// Optional. Number of seconds that a workstation can run until it is
	//  automatically shut down. We recommend that workstations be shut down daily
	//  to reduce costs and so that security updates can be applied upon restart.
	//  The
	//  [idle_timeout][google.cloud.workstations.v1.WorkstationConfig.idle_timeout]
	//  and
	//  [running_timeout][google.cloud.workstations.v1.WorkstationConfig.running_timeout]
	//  fields are independent of each other. Note that the
	//  [running_timeout][google.cloud.workstations.v1.WorkstationConfig.running_timeout]
	//  field shuts down VMs after the specified time, regardless of whether or not
	//  the VMs are idle.
	//
	//  Provide duration terminated by `s` for seconds—for example, `"54000s"`
	//  (15 hours). Defaults to `"43200s"` (12 hours). A value of `"0s"` indicates
	//  that workstations using this configuration should never time out. If
	//  [encryption_key][google.cloud.workstations.v1.WorkstationConfig.encryption_key]
	//  is set, it must be greater than `"0s"` and less than
	//  `"86400s"` (24 hours).
	//
	//  Warning: A value of `"0s"` indicates that Cloud Workstations VMs created
	//  with this configuration have no maximum running time. This is strongly
	//  discouraged because you incur costs and will not pick up security updates.
	RunningTimeout *string `json:"runningTimeout,omitempty"`

	// Optional. Runtime host for the workstation.
	Host *WorkstationConfig_Host `json:"host,omitempty"`

	// Optional. Directories to persist across workstation sessions.
	PersistentDirectories []WorkstationConfig_PersistentDirectory `json:"persistentDirectories,omitempty"`

	// Optional. Container that runs upon startup for each workstation using this
	//  workstation configuration.
	Container *WorkstationConfig_Container `json:"container,omitempty"`

	// Immutable. Encrypts resources of this workstation configuration using a
	//  customer-managed encryption key (CMEK).
	//
	//  If specified, the boot disk of the Compute Engine instance and the
	//  persistent disk are encrypted using this encryption key. If
	//  this field is not set, the disks are encrypted using a generated
	//  key. Customer-managed encryption keys do not protect disk metadata.
	//
	//  If the customer-managed encryption key is rotated, when the workstation
	//  instance is stopped, the system attempts to recreate the
	//  persistent disk with the new version of the key. Be sure to keep
	//  older versions of the key until the persistent disk is recreated.
	//  Otherwise, data on the persistent disk might be lost.
	//
	//  If the encryption key is revoked, the workstation session automatically
	//  stops within 7 hours.
	//
	//  Immutable after the workstation configuration is created.
	EncryptionKey *WorkstationConfig_CustomerEncryptionKey `json:"encryptionKey,omitempty"`

	// Optional. Readiness checks to perform when starting a workstation using
	//  this workstation configuration. Mark a workstation as running only after
	//  all specified readiness checks return 200 status codes.
	ReadinessChecks []WorkstationConfig_ReadinessCheck `json:"readinessChecks,omitempty"`

	// Optional. Immutable. Specifies the zones used to replicate the VM and disk
	//  resources within the region. If set, exactly two zones within the
	//  workstation cluster's region must be specified—for example,
	//  `['us-central1-a', 'us-central1-f']`. If this field is empty, two default
	//  zones within the region are used.
	//
	//  Immutable after the workstation configuration is created.
	ReplicaZones []string `json:"replicaZones,omitempty"`
}

WorkstationConfigSpec defines the desired state of WorkstationConfig +kcc:proto=google.cloud.workstations.v1.WorkstationConfig

func (*WorkstationConfigSpec) DeepCopy added in v1.127.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationConfigSpec.

func (*WorkstationConfigSpec) DeepCopyInto added in v1.127.0

func (in *WorkstationConfigSpec) DeepCopyInto(out *WorkstationConfigSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkstationConfigStatus added in v1.127.0

type WorkstationConfigStatus struct {
	/* Conditions represent the latest available observations of the
	   object's current state. */
	Conditions []v1alpha1.Condition `json:"conditions,omitempty"`

	// ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource.
	ObservedGeneration *int64 `json:"observedGeneration,omitempty"`

	// A unique specifier for the WorkstationConfig resource in GCP.
	ExternalRef *string `json:"externalRef,omitempty"`

	// ObservedState is the state of the resource as most recently observed in GCP.
	ObservedState *WorkstationConfigObservedState `json:"observedState,omitempty"`
}

WorkstationConfigStatus defines the config connector machine state of WorkstationConfig

func (*WorkstationConfigStatus) DeepCopy added in v1.127.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationConfigStatus.

func (*WorkstationConfigStatus) DeepCopyInto added in v1.127.0

func (in *WorkstationConfigStatus) DeepCopyInto(out *WorkstationConfigStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkstationConfig_Container added in v1.127.0

type WorkstationConfig_Container struct {
	// Optional. A Docker container image that defines a custom environment.
	//
	//  Cloud Workstations provides a number of
	//  [preconfigured
	//  images](https://cloud.google.com/workstations/docs/preconfigured-base-images),
	//  but you can create your own
	//  [custom container
	//  images](https://cloud.google.com/workstations/docs/custom-container-images).
	//  If using a private image, the `host.gceInstance.serviceAccount` field
	//  must be specified in the workstation configuration and must have
	//  permission to pull the specified image. Otherwise, the image must be
	//  publicly accessible.
	Image *string `json:"image,omitempty"`

	// Optional. If set, overrides the default ENTRYPOINT specified by the
	//  image.
	Command []string `json:"command,omitempty"`

	// Optional. Arguments passed to the entrypoint.
	Args []string `json:"args,omitempty"`

	// Optional. Environment variables passed to the container's entrypoint.
	Env []WorkstationConfig_Container_EnvVar `json:"env,omitempty"`

	// Optional. If set, overrides the default DIR specified by the image.
	WorkingDir *string `json:"workingDir,omitempty"`

	// Optional. If set, overrides the USER specified in the image with the
	//  given uid.
	RunAsUser *int32 `json:"runAsUser,omitempty"`
}

+kcc:proto=google.cloud.workstations.v1.WorkstationConfig.Container

func (*WorkstationConfig_Container) DeepCopy added in v1.127.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationConfig_Container.

func (*WorkstationConfig_Container) DeepCopyInto added in v1.127.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkstationConfig_Container_EnvVar added in v1.127.0

type WorkstationConfig_Container_EnvVar struct {
	// Name is the name of the environment variable.
	Name string `json:"name,omitempty"`

	// Value is the value of the environment variable.
	Value string `json:"value,omitempty"`
}

func (*WorkstationConfig_Container_EnvVar) DeepCopy added in v1.127.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationConfig_Container_EnvVar.

func (*WorkstationConfig_Container_EnvVar) DeepCopyInto added in v1.127.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkstationConfig_CustomerEncryptionKey added in v1.127.0

type WorkstationConfig_CustomerEncryptionKey struct {
	// Immutable. A reference to the Google Cloud KMS encryption key. For example,
	//  `"projects/PROJECT_ID/locations/REGION/keyRings/KEY_RING/cryptoKeys/KEY_NAME"`.
	//  The key must be in the same region as the workstation configuration.
	KmsCryptoKeyRef *refs.KMSCryptoKeyRef `json:"kmsCryptoKeyRef,omitempty"`

	// Immutable. A reference to a service account to use with the specified
	//  KMS key. We recommend that you use a separate service account
	//  and follow KMS best practices. For more information, see
	//  [Separation of
	//  duties](https://cloud.google.com/kms/docs/separation-of-duties) and
	//  `gcloud kms keys add-iam-policy-binding`
	//  [`--member`](https://cloud.google.com/sdk/gcloud/reference/kms/keys/add-iam-policy-binding#--member).
	ServiceAccountRef *refs.IAMServiceAccountRef `json:"serviceAccountRef,omitempty"`
}

+kcc:proto=google.cloud.workstations.v1.WorkstationConfig.CustomerEncryptionKey

func (*WorkstationConfig_CustomerEncryptionKey) DeepCopy added in v1.127.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationConfig_CustomerEncryptionKey.

func (*WorkstationConfig_CustomerEncryptionKey) DeepCopyInto added in v1.127.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkstationConfig_Host added in v1.127.0

type WorkstationConfig_Host struct {
	// Specifies a Compute Engine instance as the host.
	GceInstance *WorkstationConfig_Host_GceInstance `json:"gceInstance,omitempty"`
}

+kcc:proto=google.cloud.workstations.v1.WorkstationConfig.Host

func (*WorkstationConfig_Host) DeepCopy added in v1.127.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationConfig_Host.

func (*WorkstationConfig_Host) DeepCopyInto added in v1.127.0

func (in *WorkstationConfig_Host) DeepCopyInto(out *WorkstationConfig_Host)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkstationConfig_HostObservedState added in v1.127.0

type WorkstationConfig_HostObservedState struct {
	// Output only. Observed state of the Compute Engine runtime host for the workstation configuration.
	GceInstance *WorkstationConfig_Host_GceInstanceObservedState `json:"gceInstance,omitempty"`
}

WorkstationConfigObservedState is the state of the WorkstationConfig_Host resource as most recently observed in GCP. +kcc:proto=google.cloud.workstations.v1.WorkstationConfig.Host

func (*WorkstationConfig_HostObservedState) DeepCopy added in v1.127.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationConfig_HostObservedState.

func (*WorkstationConfig_HostObservedState) DeepCopyInto added in v1.127.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkstationConfig_Host_GceInstance added in v1.127.0

type WorkstationConfig_Host_GceInstance struct {
	// Optional. The type of machine to use for VM instances—for example,
	//  `"e2-standard-4"`. For more information about machine types that
	//  Cloud Workstations supports, see the list of
	//  [available machine
	//  types](https://cloud.google.com/workstations/docs/available-machine-types).
	MachineType *string `json:"machineType,omitempty"`

	// Optional. A reference to the service account for Cloud
	//  Workstations VMs created with this configuration. When specified, be
	//  sure that the service account has `logginglogEntries.create` permission
	//  on the project so it can write logs out to Cloud Logging. If using a
	//  custom container image, the service account must have permissions to
	//  pull the specified image.
	//
	//  If you as the administrator want to be able to `ssh` into the
	//  underlying VM, you need to set this value to a service account
	//  for which you have the `iam.serviceAccounts.actAs` permission.
	//  Conversely, if you don't want anyone to be able to `ssh` into the
	//  underlying VM, use a service account where no one has that
	//  permission.
	//
	//  If not set, VMs run with a service account provided by the
	//  Cloud Workstations service, and the image must be publicly
	//  accessible.
	ServiceAccountRef *refs.IAMServiceAccountRef `json:"serviceAccountRef,omitempty"`

	// Optional. Scopes to grant to the
	//  [service_account][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.service_account].
	//  Various scopes are automatically added based on feature usage. When
	//  specified, users of workstations under this configuration must have
	//  `iam.serviceAccounts.actAs` on the service account.
	ServiceAccountScopes []string `json:"serviceAccountScopes,omitempty"`

	// Optional. Network tags to add to the Compute Engine VMs backing the
	//  workstations. This option applies
	//  [network
	//  tags](https://cloud.google.com/vpc/docs/add-remove-network-tags) to VMs
	//  created with this configuration. These network tags enable the creation
	//  of [firewall
	//  rules](https://cloud.google.com/workstations/docs/configure-firewall-rules).
	Tags []string `json:"tags,omitempty"`

	// Optional. The number of VMs that the system should keep idle so that
	//  new workstations can be started quickly for new users. Defaults to `0`
	//  in the API.
	PoolSize *int32 `json:"poolSize,omitempty"`

	// Optional. When set to true, disables public IP addresses for VMs. If
	//  you disable public IP addresses, you must set up Private Google Access
	//  or Cloud NAT on your network. If you use Private Google Access and you
	//  use `private.googleapis.com` or `restricted.googleapis.com` for
	//  Container Registry and Artifact Registry, make sure that you set
	//  up DNS records for domains `*.gcr.io` and `*.pkg.dev`.
	//  Defaults to false (VMs have public IP addresses).
	DisablePublicIPAddresses *bool `json:"disablePublicIPAddresses,omitempty"`

	// Optional. Whether to enable nested virtualization on Cloud Workstations
	//  VMs created under this workstation configuration.
	//
	//  Nested virtualization lets you run virtual machine (VM) instances
	//  inside your workstation. Before enabling nested virtualization,
	//  consider the following important considerations. Cloud Workstations
	//  instances are subject to the [same restrictions as Compute Engine
	//  instances](https://cloud.google.com/compute/docs/instances/nested-virtualization/overview#restrictions):
	//
	//  * **Organization policy**: projects, folders, or
	//  organizations may be restricted from creating nested VMs if the
	//  **Disable VM nested virtualization** constraint is enforced in
	//  the organization policy. For more information, see the
	//  Compute Engine section,
	//  [Checking whether nested virtualization is
	//  allowed](https://cloud.google.com/compute/docs/instances/nested-virtualization/managing-constraint#checking_whether_nested_virtualization_is_allowed).
	//  * **Performance**: nested VMs might experience a 10% or greater
	//  decrease in performance for workloads that are CPU-bound and
	//  possibly greater than a 10% decrease for workloads that are
	//  input/output bound.
	//  * **Machine Type**: nested virtualization can only be enabled on
	//  workstation configurations that specify a
	//  [machine_type][google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.machine_type]
	//  in the N1 or N2 machine series.
	//  * **GPUs**: nested virtualization may not be enabled on workstation
	//  configurations with accelerators.
	//  * **Operating System**: Because
	//  [Container-Optimized
	//  OS](https://cloud.google.com/compute/docs/images/os-details#container-optimized_os_cos)
	//  does not support nested virtualization, when nested virtualization is
	//  enabled, the underlying Compute Engine VM instances boot from an
	//  [Ubuntu
	//  LTS](https://cloud.google.com/compute/docs/images/os-details#ubuntu_lts)
	//  image.
	EnableNestedVirtualization *bool `json:"enableNestedVirtualization,omitempty"`

	// Optional. A set of Compute Engine Shielded instance options.
	ShieldedInstanceConfig *WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig `json:"shieldedInstanceConfig,omitempty"`

	// Optional. A set of Compute Engine Confidential VM instance options.
	ConfidentialInstanceConfig *WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig `json:"confidentialInstanceConfig,omitempty"`

	// Optional. The size of the boot disk for the VM in gigabytes (GB).
	//  The minimum boot disk size is `30` GB. Defaults to `50` GB.
	BootDiskSizeGB *int32 `json:"bootDiskSizeGB,omitempty"`
}

+kcc:proto=google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance

func (*WorkstationConfig_Host_GceInstance) DeepCopy added in v1.127.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationConfig_Host_GceInstance.

func (*WorkstationConfig_Host_GceInstance) DeepCopyInto added in v1.127.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkstationConfig_Host_GceInstanceObservedState added in v1.127.0

type WorkstationConfig_Host_GceInstanceObservedState struct {
	// Output only. Number of instances currently available in the pool for
	//  faster workstation startup.
	PooledInstances *int32 `json:"pooledInstances,omitempty"`
}

WorkstationConfigObservedState is the state of the WorkstationConfig_Host_GceInstanceObservedState resource as most recently observed in GCP. +kcc:proto=google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance

func (*WorkstationConfig_Host_GceInstanceObservedState) DeepCopy added in v1.127.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationConfig_Host_GceInstanceObservedState.

func (*WorkstationConfig_Host_GceInstanceObservedState) DeepCopyInto added in v1.127.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig added in v1.127.0

type WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig struct {
	// Optional. Whether the instance has confidential compute enabled.
	EnableConfidentialCompute *bool `json:"enableConfidentialCompute,omitempty"`
}

+kcc:proto=google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceConfidentialInstanceConfig

func (*WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig) DeepCopy added in v1.127.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig.

func (*WorkstationConfig_Host_GceInstance_GceConfidentialInstanceConfig) DeepCopyInto added in v1.127.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig added in v1.127.0

type WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig struct {
	// Optional. Whether the instance has Secure Boot enabled.
	EnableSecureBoot *bool `json:"enableSecureBoot,omitempty"`

	// Optional. Whether the instance has the vTPM enabled.
	EnableVTPM *bool `json:"enableVTPM,omitempty"`

	// Optional. Whether the instance has integrity monitoring enabled.
	EnableIntegrityMonitoring *bool `json:"enableIntegrityMonitoring,omitempty"`
}

+kcc:proto=google.cloud.workstations.v1.WorkstationConfig.Host.GceInstance.GceShieldedInstanceConfig

func (*WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig) DeepCopy added in v1.127.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig.

func (*WorkstationConfig_Host_GceInstance_GceShieldedInstanceConfig) DeepCopyInto added in v1.127.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkstationConfig_PersistentDirectory added in v1.127.0

type WorkstationConfig_PersistentDirectory struct {
	// A PersistentDirectory backed by a Compute Engine persistent disk.
	GcePD *WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk `json:"gcePD,omitempty"`

	// Optional. Location of this directory in the running workstation.
	MountPath *string `json:"mountPath,omitempty"`
}

+kcc:proto=google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory

func (*WorkstationConfig_PersistentDirectory) DeepCopy added in v1.127.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationConfig_PersistentDirectory.

func (*WorkstationConfig_PersistentDirectory) DeepCopyInto added in v1.127.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk added in v1.127.0

type WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk struct {
	// Optional. The GB capacity of a persistent home directory for each
	//  workstation created with this configuration. Must be empty if
	//  [source_snapshot][google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.source_snapshot]
	//  is set.
	//
	//  Valid values are `10`, `50`, `100`, `200`, `500`, or `1000`.
	//  Defaults to `200`. If less than `200` GB, the
	//  [disk_type][google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.disk_type]
	//  must be
	//  `"pd-balanced"` or `"pd-ssd"`.
	SizeGB *int32 `json:"sizeGB,omitempty"`

	// Optional. Type of file system that the disk should be formatted with.
	//  The workstation image must support this file system type. Must be empty
	//  if
	//  [source_snapshot][google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.source_snapshot]
	//  is set. Defaults to `"ext4"`.
	FSType *string `json:"fsType,omitempty"`

	// Optional. The [type of the persistent
	//  disk](https://cloud.google.com/compute/docs/disks#disk-types) for the
	//  home directory. Defaults to `"pd-standard"`.
	DiskType *string `json:"diskType,omitempty"`

	// Optional. Name of the snapshot to use as the source for the disk. If
	//  set,
	//  [size_gb][google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.size_gb]
	//  and
	//  [fs_type][google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk.fs_type]
	//  must be empty.
	SourceSnapshot *string `json:"sourceSnapshot,omitempty"`

	// Optional. Whether the persistent disk should be deleted when the
	//  workstation is deleted. Valid values are `DELETE` and `RETAIN`.
	//  Defaults to `DELETE`.
	ReclaimPolicy *string `json:"reclaimPolicy,omitempty"`
}

+kcc:proto=google.cloud.workstations.v1.WorkstationConfig.PersistentDirectory.GceRegionalPersistentDisk

func (*WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk) DeepCopy added in v1.127.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk.

func (*WorkstationConfig_PersistentDirectory_GceRegionalPersistentDisk) DeepCopyInto added in v1.127.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkstationConfig_ReadinessCheck added in v1.127.0

type WorkstationConfig_ReadinessCheck struct {
	// Optional. Path to which the request should be sent.
	Path *string `json:"path,omitempty"`

	// Optional. Port to which the request should be sent.
	Port *int32 `json:"port,omitempty"`
}

+kcc:proto=google.cloud.workstations.v1.WorkstationConfig.ReadinessCheck

func (*WorkstationConfig_ReadinessCheck) DeepCopy added in v1.127.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationConfig_ReadinessCheck.

func (*WorkstationConfig_ReadinessCheck) DeepCopyInto added in v1.127.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkstationIdentity added in v1.127.0

type WorkstationIdentity struct {
	// contains filtered or unexported fields
}

WorkstationIdentity defines the resource reference to Workstation.

func NewWorkstationIdentity added in v1.127.0

func NewWorkstationIdentity(ctx context.Context, reader client.Reader, obj *Workstation) (*WorkstationIdentity, error)

New builds a WorkstationIdentity from the Config Connector Workstation object.

func (*WorkstationIdentity) DeepCopy added in v1.127.0

func (in *WorkstationIdentity) DeepCopy() *WorkstationIdentity

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationIdentity.

func (*WorkstationIdentity) DeepCopyInto added in v1.127.0

func (in *WorkstationIdentity) DeepCopyInto(out *WorkstationIdentity)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*WorkstationIdentity) ID added in v1.127.0

func (i *WorkstationIdentity) ID() string

func (*WorkstationIdentity) Parent added in v1.127.0

func (*WorkstationIdentity) String added in v1.127.0

func (i *WorkstationIdentity) String() string

type WorkstationLabel added in v1.126.0

type WorkstationLabel struct {
	// Key for the label.
	Key string `json:"key,omitempty"`

	// Value for the label.
	Value string `json:"value,omitempty"`
}

func (*WorkstationLabel) DeepCopy added in v1.126.0

func (in *WorkstationLabel) DeepCopy() *WorkstationLabel

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationLabel.

func (*WorkstationLabel) DeepCopyInto added in v1.126.0

func (in *WorkstationLabel) DeepCopyInto(out *WorkstationLabel)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkstationList added in v1.127.0

type WorkstationList struct {
	metav1.TypeMeta `json:",inline"`
	metav1.ListMeta `json:"metadata,omitempty"`
	Items           []Workstation `json:"items"`
}

+k8s:deepcopy-gen:interfaces=k8s.io/apimachinery/pkg/runtime.Object WorkstationList contains a list of Workstation

func (*WorkstationList) DeepCopy added in v1.127.0

func (in *WorkstationList) DeepCopy() *WorkstationList

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationList.

func (*WorkstationList) DeepCopyInto added in v1.127.0

func (in *WorkstationList) DeepCopyInto(out *WorkstationList)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*WorkstationList) DeepCopyObject added in v1.127.0

func (in *WorkstationList) DeepCopyObject() runtime.Object

DeepCopyObject is an autogenerated deepcopy function, copying the receiver, creating a new runtime.Object.

type WorkstationObservedState added in v1.127.0

type WorkstationObservedState struct {
	// Output only. A system-assigned unique identifier for this workstation.
	UID *string `json:"uid,omitempty"`

	// Output only. Time when this workstation was created.
	CreateTime *string `json:"createTime,omitempty"`

	// Output only. Time when this workstation was most recently updated.
	UpdateTime *string `json:"updateTime,omitempty"`

	// Output only. Time when this workstation was most recently successfully
	//  started, regardless of the workstation's initial state.
	StartTime *string `json:"startTime,omitempty"`

	// Output only. Time when this workstation was soft-deleted.
	DeleteTime *string `json:"deleteTime,omitempty"`

	// Output only. Checksum computed by the server. May be sent on update and
	//  delete requests to make sure that the client has an up-to-date value
	//  before proceeding.
	Etag *string `json:"etag,omitempty"`

	// Output only. Current state of the workstation.
	State *string `json:"state,omitempty"`

	// Output only. Host to which clients can send HTTPS traffic that will be
	//  received by the workstation. Authorized traffic will be received to the
	//  workstation as HTTP on port 80. To send traffic to a different port,
	//  clients may prefix the host with the destination port in the format
	//  `{port}-{host}`.
	Host *string `json:"host,omitempty"`
}

WorkstationSpec defines the desired state of Workstation +kcc:proto=google.cloud.workstations.v1.Workstation WorkstationObservedState is the state of the Workstation resource as most recently observed in GCP.

func (*WorkstationObservedState) DeepCopy added in v1.127.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationObservedState.

func (*WorkstationObservedState) DeepCopyInto added in v1.127.0

func (in *WorkstationObservedState) DeepCopyInto(out *WorkstationObservedState)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkstationParent added in v1.127.0

type WorkstationParent struct {
	ProjectID string
	Location  string
	Cluster   string
	Config    string
}

func ParseWorkstationExternal added in v1.127.0

func ParseWorkstationExternal(external string) (parent *WorkstationParent, resourceID string, err error)

func (*WorkstationParent) DeepCopy added in v1.127.0

func (in *WorkstationParent) DeepCopy() *WorkstationParent

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationParent.

func (*WorkstationParent) DeepCopyInto added in v1.127.0

func (in *WorkstationParent) DeepCopyInto(out *WorkstationParent)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*WorkstationParent) String added in v1.127.0

func (p *WorkstationParent) String() string

type WorkstationRef added in v1.127.0

type WorkstationRef struct {
	// A reference to an externally managed Workstation resource.
	// Should be in the format "projects/{{projectID}}/locations/{{location}}/workstationClusters/{{workstationclusterID}}/workstationConfigs/{{workstationconfigID}}/workstations/{{workstationID}}".
	External string `json:"external,omitempty"`

	// The name of a Workstation resource.
	Name string `json:"name,omitempty"`

	// The namespace of a Workstation resource.
	Namespace string `json:"namespace,omitempty"`
}

WorkstationRef defines the resource reference to Workstation, which "External" field holds the GCP identifier for the KRM object.

func (*WorkstationRef) DeepCopy added in v1.127.0

func (in *WorkstationRef) DeepCopy() *WorkstationRef

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationRef.

func (*WorkstationRef) DeepCopyInto added in v1.127.0

func (in *WorkstationRef) DeepCopyInto(out *WorkstationRef)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

func (*WorkstationRef) NormalizedExternal added in v1.127.0

func (r *WorkstationRef) NormalizedExternal(ctx context.Context, reader client.Reader, otherNamespace string) (string, error)

NormalizedExternal provision the "External" value for other resource that depends on Workstation. If the "External" is given in the other resource's spec.WorkstationRef, the given value will be used. Otherwise, the "Name" and "Namespace" will be used to query the actual Workstation object from the cluster.

type WorkstationServiceGCPCondition added in v1.126.0

type WorkstationServiceGCPCondition struct {
	// The status code, which should be an enum value of
	//  [google.rpc.Code][google.rpc.Code].
	Code *int32 `json:"code,omitempty"`

	// A developer-facing error message, which should be in English. Any
	//  user-facing error message should be localized and sent in the
	//  [google.rpc.Status.details][google.rpc.Status.details] field, or localized
	//  by the client.
	Message *string `json:"message,omitempty"`
}

+kcc:proto=google.rpc.Status

func (*WorkstationServiceGCPCondition) DeepCopy added in v1.126.0

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationServiceGCPCondition.

func (*WorkstationServiceGCPCondition) DeepCopyInto added in v1.126.0

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkstationSpec added in v1.127.0

type WorkstationSpec struct {
	// Parent is a reference to the parent WorkstationConfig for this Workstation.
	Parent *WorkstationConfigRef `json:"parentRef"`

	// +kubebuilder:validation:XValidation:rule="self == oldSelf",message="ResourceID field is immutable"
	// Immutable.
	// The Workstation name. If not given, the metadata.name will be used.
	ResourceID *string `json:"resourceID,omitempty"`

	// Optional. Human-readable name for this workstation.
	DisplayName *string `json:"displayName,omitempty"`

	// Optional. Client-specified annotations.
	Annotations []WorkstationAnnotation `json:"annotations,omitempty"`

	// Optional.
	//  [Labels](https://cloud.google.com/workstations/docs/label-resources) that
	//  are applied to the workstation and that are also propagated to the
	//  underlying Compute Engine resources.
	Labels []WorkstationLabel `json:"labels,omitempty"`
}

WorkstationSpec defines the desired state of Workstation +kcc:proto=google.cloud.workstations.v1.Workstation

func (*WorkstationSpec) DeepCopy added in v1.127.0

func (in *WorkstationSpec) DeepCopy() *WorkstationSpec

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationSpec.

func (*WorkstationSpec) DeepCopyInto added in v1.127.0

func (in *WorkstationSpec) DeepCopyInto(out *WorkstationSpec)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

type WorkstationStatus added in v1.127.0

type WorkstationStatus struct {
	/* Conditions represent the latest available observations of the
	   object's current state. */
	Conditions []v1alpha1.Condition `json:"conditions,omitempty"`

	// ObservedGeneration is the generation of the resource that was most recently observed by the Config Connector controller. If this is equal to metadata.generation, then that means that the current reported status reflects the most recent desired state of the resource.
	ObservedGeneration *int64 `json:"observedGeneration,omitempty"`

	// A unique specifier for the Workstation resource in GCP.
	ExternalRef *string `json:"externalRef,omitempty"`

	// ObservedState is the state of the resource as most recently observed in GCP.
	ObservedState *WorkstationObservedState `json:"observedState,omitempty"`
}

WorkstationStatus defines the config connector machine state of Workstation

func (*WorkstationStatus) DeepCopy added in v1.127.0

func (in *WorkstationStatus) DeepCopy() *WorkstationStatus

DeepCopy is an autogenerated deepcopy function, copying the receiver, creating a new WorkstationStatus.

func (*WorkstationStatus) DeepCopyInto added in v1.127.0

func (in *WorkstationStatus) DeepCopyInto(out *WorkstationStatus)

DeepCopyInto is an autogenerated deepcopy function, copying the receiver, writing into out. in must be non-nil.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL