Constants
NotebookService_ListInstances_FullMethodName, NotebookService_GetInstance_FullMethodName, NotebookService_CreateInstance_FullMethodName, NotebookService_RegisterInstance_FullMethodName, NotebookService_SetInstanceAccelerator_FullMethodName, NotebookService_SetInstanceMachineType_FullMethodName, NotebookService_SetInstanceLabels_FullMethodName, NotebookService_DeleteInstance_FullMethodName, NotebookService_StartInstance_FullMethodName, NotebookService_StopInstance_FullMethodName, NotebookService_ResetInstance_FullMethodName, NotebookService_ReportInstanceInfo_FullMethodName, NotebookService_IsInstanceUpgradeable_FullMethodName, NotebookService_UpgradeInstance_FullMethodName, NotebookService_UpgradeInstanceInternal_FullMethodName, NotebookService_ListEnvironments_FullMethodName, NotebookService_GetEnvironment_FullMethodName, NotebookService_CreateEnvironment_FullMethodName, NotebookService_DeleteEnvironment_FullMethodName
const (
NotebookService_ListInstances_FullMethodName = "/google.cloud.notebooks.v1beta1.NotebookService/ListInstances"
NotebookService_GetInstance_FullMethodName = "/google.cloud.notebooks.v1beta1.NotebookService/GetInstance"
NotebookService_CreateInstance_FullMethodName = "/google.cloud.notebooks.v1beta1.NotebookService/CreateInstance"
NotebookService_RegisterInstance_FullMethodName = "/google.cloud.notebooks.v1beta1.NotebookService/RegisterInstance"
NotebookService_SetInstanceAccelerator_FullMethodName = "/google.cloud.notebooks.v1beta1.NotebookService/SetInstanceAccelerator"
NotebookService_SetInstanceMachineType_FullMethodName = "/google.cloud.notebooks.v1beta1.NotebookService/SetInstanceMachineType"
NotebookService_SetInstanceLabels_FullMethodName = "/google.cloud.notebooks.v1beta1.NotebookService/SetInstanceLabels"
NotebookService_DeleteInstance_FullMethodName = "/google.cloud.notebooks.v1beta1.NotebookService/DeleteInstance"
NotebookService_StartInstance_FullMethodName = "/google.cloud.notebooks.v1beta1.NotebookService/StartInstance"
NotebookService_StopInstance_FullMethodName = "/google.cloud.notebooks.v1beta1.NotebookService/StopInstance"
NotebookService_ResetInstance_FullMethodName = "/google.cloud.notebooks.v1beta1.NotebookService/ResetInstance"
NotebookService_ReportInstanceInfo_FullMethodName = "/google.cloud.notebooks.v1beta1.NotebookService/ReportInstanceInfo"
NotebookService_IsInstanceUpgradeable_FullMethodName = "/google.cloud.notebooks.v1beta1.NotebookService/IsInstanceUpgradeable"
NotebookService_UpgradeInstance_FullMethodName = "/google.cloud.notebooks.v1beta1.NotebookService/UpgradeInstance"
NotebookService_UpgradeInstanceInternal_FullMethodName = "/google.cloud.notebooks.v1beta1.NotebookService/UpgradeInstanceInternal"
NotebookService_ListEnvironments_FullMethodName = "/google.cloud.notebooks.v1beta1.NotebookService/ListEnvironments"
NotebookService_GetEnvironment_FullMethodName = "/google.cloud.notebooks.v1beta1.NotebookService/GetEnvironment"
NotebookService_CreateEnvironment_FullMethodName = "/google.cloud.notebooks.v1beta1.NotebookService/CreateEnvironment"
NotebookService_DeleteEnvironment_FullMethodName = "/google.cloud.notebooks.v1beta1.NotebookService/DeleteEnvironment"
)Variables
ReservationAffinity_Type_name, ReservationAffinity_Type_value
var (
ReservationAffinity_Type_name = map[int32]string{
0: "TYPE_UNSPECIFIED",
1: "NO_RESERVATION",
2: "ANY_RESERVATION",
3: "SPECIFIC_RESERVATION",
}
ReservationAffinity_Type_value = map[string]int32{
"TYPE_UNSPECIFIED": 0,
"NO_RESERVATION": 1,
"ANY_RESERVATION": 2,
"SPECIFIC_RESERVATION": 3,
}
)Enum value maps for ReservationAffinity_Type.
Instance_AcceleratorType_name, Instance_AcceleratorType_value
var (
Instance_AcceleratorType_name = map[int32]string{
0: "ACCELERATOR_TYPE_UNSPECIFIED",
1: "NVIDIA_TESLA_K80",
2: "NVIDIA_TESLA_P100",
3: "NVIDIA_TESLA_V100",
4: "NVIDIA_TESLA_P4",
5: "NVIDIA_TESLA_T4",
8: "NVIDIA_TESLA_T4_VWS",
9: "NVIDIA_TESLA_P100_VWS",
10: "NVIDIA_TESLA_P4_VWS",
6: "TPU_V2",
7: "TPU_V3",
}
Instance_AcceleratorType_value = map[string]int32{
"ACCELERATOR_TYPE_UNSPECIFIED": 0,
"NVIDIA_TESLA_K80": 1,
"NVIDIA_TESLA_P100": 2,
"NVIDIA_TESLA_V100": 3,
"NVIDIA_TESLA_P4": 4,
"NVIDIA_TESLA_T4": 5,
"NVIDIA_TESLA_T4_VWS": 8,
"NVIDIA_TESLA_P100_VWS": 9,
"NVIDIA_TESLA_P4_VWS": 10,
"TPU_V2": 6,
"TPU_V3": 7,
}
)Enum value maps for Instance_AcceleratorType.
Instance_State_name, Instance_State_value
var (
Instance_State_name = map[int32]string{
0: "STATE_UNSPECIFIED",
1: "STARTING",
2: "PROVISIONING",
3: "ACTIVE",
4: "STOPPING",
5: "STOPPED",
6: "DELETED",
7: "UPGRADING",
8: "INITIALIZING",
9: "REGISTERING",
10: "SUSPENDING",
11: "SUSPENDED",
}
Instance_State_value = map[string]int32{
"STATE_UNSPECIFIED": 0,
"STARTING": 1,
"PROVISIONING": 2,
"ACTIVE": 3,
"STOPPING": 4,
"STOPPED": 5,
"DELETED": 6,
"UPGRADING": 7,
"INITIALIZING": 8,
"REGISTERING": 9,
"SUSPENDING": 10,
"SUSPENDED": 11,
}
)Enum value maps for Instance_State.
Instance_DiskType_name, Instance_DiskType_value
var (
Instance_DiskType_name = map[int32]string{
0: "DISK_TYPE_UNSPECIFIED",
1: "PD_STANDARD",
2: "PD_SSD",
3: "PD_BALANCED",
}
Instance_DiskType_value = map[string]int32{
"DISK_TYPE_UNSPECIFIED": 0,
"PD_STANDARD": 1,
"PD_SSD": 2,
"PD_BALANCED": 3,
}
)Enum value maps for Instance_DiskType.
Instance_DiskEncryption_name, Instance_DiskEncryption_value
var (
Instance_DiskEncryption_name = map[int32]string{
0: "DISK_ENCRYPTION_UNSPECIFIED",
1: "GMEK",
2: "CMEK",
}
Instance_DiskEncryption_value = map[string]int32{
"DISK_ENCRYPTION_UNSPECIFIED": 0,
"GMEK": 1,
"CMEK": 2,
}
)Enum value maps for Instance_DiskEncryption.
Instance_NicType_name, Instance_NicType_value
var (
Instance_NicType_name = map[int32]string{
0: "UNSPECIFIED_NIC_TYPE",
1: "VIRTIO_NET",
2: "GVNIC",
}
Instance_NicType_value = map[string]int32{
"UNSPECIFIED_NIC_TYPE": 0,
"VIRTIO_NET": 1,
"GVNIC": 2,
}
)Enum value maps for Instance_NicType.
File_google_cloud_notebooks_v1beta1_environment_proto
var File_google_cloud_notebooks_v1beta1_environment_proto protoreflect.FileDescriptorFile_google_cloud_notebooks_v1beta1_instance_proto
var File_google_cloud_notebooks_v1beta1_instance_proto protoreflect.FileDescriptorFile_google_cloud_notebooks_v1beta1_service_proto
var File_google_cloud_notebooks_v1beta1_service_proto protoreflect.FileDescriptorNotebookService_ServiceDesc
var NotebookService_ServiceDesc = grpc.ServiceDesc{
ServiceName: "google.cloud.notebooks.v1beta1.NotebookService",
HandlerType: (*NotebookServiceServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "ListInstances",
Handler: _NotebookService_ListInstances_Handler,
},
{
MethodName: "GetInstance",
Handler: _NotebookService_GetInstance_Handler,
},
{
MethodName: "CreateInstance",
Handler: _NotebookService_CreateInstance_Handler,
},
{
MethodName: "RegisterInstance",
Handler: _NotebookService_RegisterInstance_Handler,
},
{
MethodName: "SetInstanceAccelerator",
Handler: _NotebookService_SetInstanceAccelerator_Handler,
},
{
MethodName: "SetInstanceMachineType",
Handler: _NotebookService_SetInstanceMachineType_Handler,
},
{
MethodName: "SetInstanceLabels",
Handler: _NotebookService_SetInstanceLabels_Handler,
},
{
MethodName: "DeleteInstance",
Handler: _NotebookService_DeleteInstance_Handler,
},
{
MethodName: "StartInstance",
Handler: _NotebookService_StartInstance_Handler,
},
{
MethodName: "StopInstance",
Handler: _NotebookService_StopInstance_Handler,
},
{
MethodName: "ResetInstance",
Handler: _NotebookService_ResetInstance_Handler,
},
{
MethodName: "ReportInstanceInfo",
Handler: _NotebookService_ReportInstanceInfo_Handler,
},
{
MethodName: "IsInstanceUpgradeable",
Handler: _NotebookService_IsInstanceUpgradeable_Handler,
},
{
MethodName: "UpgradeInstance",
Handler: _NotebookService_UpgradeInstance_Handler,
},
{
MethodName: "UpgradeInstanceInternal",
Handler: _NotebookService_UpgradeInstanceInternal_Handler,
},
{
MethodName: "ListEnvironments",
Handler: _NotebookService_ListEnvironments_Handler,
},
{
MethodName: "GetEnvironment",
Handler: _NotebookService_GetEnvironment_Handler,
},
{
MethodName: "CreateEnvironment",
Handler: _NotebookService_CreateEnvironment_Handler,
},
{
MethodName: "DeleteEnvironment",
Handler: _NotebookService_DeleteEnvironment_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "google/cloud/notebooks/v1beta1/service.proto",
}NotebookService_ServiceDesc is the grpc.ServiceDesc for NotebookService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions
func RegisterNotebookServiceServer
func RegisterNotebookServiceServer(s grpc.ServiceRegistrar, srv NotebookServiceServer)ContainerImage
type ContainerImage struct {
// Required. The path to the container image repository. For example:
// `gcr.io/{project_id}/{image_name}`
Repository string `protobuf:"bytes,1,opt,name=repository,proto3" json:"repository,omitempty"`
// The tag of the container image. If not specified, this defaults
// to the latest tag.
Tag string `protobuf:"bytes,2,opt,name=tag,proto3" json:"tag,omitempty"`
// contains filtered or unexported fields
}Definition of a container image for starting a notebook instance with the environment installed in a container.
func (*ContainerImage) Descriptor
func (*ContainerImage) Descriptor() ([]byte, []int)Deprecated: Use ContainerImage.ProtoReflect.Descriptor instead.
func (*ContainerImage) GetRepository
func (x *ContainerImage) GetRepository() stringfunc (*ContainerImage) GetTag
func (x *ContainerImage) GetTag() stringfunc (*ContainerImage) ProtoMessage
func (*ContainerImage) ProtoMessage()func (*ContainerImage) ProtoReflect
func (x *ContainerImage) ProtoReflect() protoreflect.Messagefunc (*ContainerImage) Reset
func (x *ContainerImage) Reset()func (*ContainerImage) String
func (x *ContainerImage) String() stringCreateEnvironmentRequest
type CreateEnvironmentRequest struct {
// Required. Format: `projects/{project_id}/locations/{location}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. User-defined unique ID of this environment. The `environment_id` must
// be 1 to 63 characters long and contain only lowercase letters,
// numeric characters, and dashes. The first character must be a lowercase
// letter and the last character cannot be a dash.
EnvironmentId string `protobuf:"bytes,2,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"`
// Required. The environment to be created.
Environment *Environment `protobuf:"bytes,3,opt,name=environment,proto3" json:"environment,omitempty"`
// contains filtered or unexported fields
}Request for creating a notebook environment.
func (*CreateEnvironmentRequest) Descriptor
func (*CreateEnvironmentRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateEnvironmentRequest.ProtoReflect.Descriptor instead.
func (*CreateEnvironmentRequest) GetEnvironment
func (x *CreateEnvironmentRequest) GetEnvironment() *Environmentfunc (*CreateEnvironmentRequest) GetEnvironmentId
func (x *CreateEnvironmentRequest) GetEnvironmentId() stringfunc (*CreateEnvironmentRequest) GetParent
func (x *CreateEnvironmentRequest) GetParent() stringfunc (*CreateEnvironmentRequest) ProtoMessage
func (*CreateEnvironmentRequest) ProtoMessage()func (*CreateEnvironmentRequest) ProtoReflect
func (x *CreateEnvironmentRequest) ProtoReflect() protoreflect.Messagefunc (*CreateEnvironmentRequest) Reset
func (x *CreateEnvironmentRequest) Reset()func (*CreateEnvironmentRequest) String
func (x *CreateEnvironmentRequest) String() stringCreateInstanceRequest
type CreateInstanceRequest struct {
// Required. Format:
// `parent=projects/{project_id}/locations/{location}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. User-defined unique ID of this instance.
InstanceId string `protobuf:"bytes,2,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
// Required. The instance to be created.
Instance *Instance `protobuf:"bytes,3,opt,name=instance,proto3" json:"instance,omitempty"`
// contains filtered or unexported fields
}Request for creating a notebook instance.
func (*CreateInstanceRequest) Descriptor
func (*CreateInstanceRequest) Descriptor() ([]byte, []int)Deprecated: Use CreateInstanceRequest.ProtoReflect.Descriptor instead.
func (*CreateInstanceRequest) GetInstance
func (x *CreateInstanceRequest) GetInstance() *Instancefunc (*CreateInstanceRequest) GetInstanceId
func (x *CreateInstanceRequest) GetInstanceId() stringfunc (*CreateInstanceRequest) GetParent
func (x *CreateInstanceRequest) GetParent() stringfunc (*CreateInstanceRequest) ProtoMessage
func (*CreateInstanceRequest) ProtoMessage()func (*CreateInstanceRequest) ProtoReflect
func (x *CreateInstanceRequest) ProtoReflect() protoreflect.Messagefunc (*CreateInstanceRequest) Reset
func (x *CreateInstanceRequest) Reset()func (*CreateInstanceRequest) String
func (x *CreateInstanceRequest) String() stringDeleteEnvironmentRequest
type DeleteEnvironmentRequest struct {
// Required. Format:
// `projects/{project_id}/locations/{location}/environments/{environment_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request for deleting a notebook environment.
func (*DeleteEnvironmentRequest) Descriptor
func (*DeleteEnvironmentRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteEnvironmentRequest.ProtoReflect.Descriptor instead.
func (*DeleteEnvironmentRequest) GetName
func (x *DeleteEnvironmentRequest) GetName() stringfunc (*DeleteEnvironmentRequest) ProtoMessage
func (*DeleteEnvironmentRequest) ProtoMessage()func (*DeleteEnvironmentRequest) ProtoReflect
func (x *DeleteEnvironmentRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteEnvironmentRequest) Reset
func (x *DeleteEnvironmentRequest) Reset()func (*DeleteEnvironmentRequest) String
func (x *DeleteEnvironmentRequest) String() stringDeleteInstanceRequest
type DeleteInstanceRequest struct {
// Required. Format:
// `projects/{project_id}/locations/{location}/instances/{instance_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request for deleting a notebook instance.
func (*DeleteInstanceRequest) Descriptor
func (*DeleteInstanceRequest) Descriptor() ([]byte, []int)Deprecated: Use DeleteInstanceRequest.ProtoReflect.Descriptor instead.
func (*DeleteInstanceRequest) GetName
func (x *DeleteInstanceRequest) GetName() stringfunc (*DeleteInstanceRequest) ProtoMessage
func (*DeleteInstanceRequest) ProtoMessage()func (*DeleteInstanceRequest) ProtoReflect
func (x *DeleteInstanceRequest) ProtoReflect() protoreflect.Messagefunc (*DeleteInstanceRequest) Reset
func (x *DeleteInstanceRequest) Reset()func (*DeleteInstanceRequest) String
func (x *DeleteInstanceRequest) String() stringEnvironment
type Environment struct {
// Output only. Name of this environment.
// Format:
// `projects/{project_id}/locations/{location}/environments/{environment_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Display name of this environment for the UI.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// A brief description of this environment.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Type of the environment; can be one of VM image, or container image.
//
// Types that are valid to be assigned to ImageType:
//
// *Environment_VmImage
// *Environment_ContainerImage
ImageType isEnvironment_ImageType `protobuf_oneof:"image_type"`
// Path to a Bash script that automatically runs after a notebook instance
// fully boots up. The path must be a URL or
// Cloud Storage path. Example: `"gs://path-to-file/file-name"`
PostStartupScript string `protobuf:"bytes,8,opt,name=post_startup_script,json=postStartupScript,proto3" json:"post_startup_script,omitempty"`
// Output only. The time at which this environment was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,9,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// contains filtered or unexported fields
}Definition of a software environment that is used to start a notebook instance.
func (*Environment) Descriptor
func (*Environment) Descriptor() ([]byte, []int)Deprecated: Use Environment.ProtoReflect.Descriptor instead.
func (*Environment) GetContainerImage
func (x *Environment) GetContainerImage() *ContainerImagefunc (*Environment) GetCreateTime
func (x *Environment) GetCreateTime() *timestamppb.Timestampfunc (*Environment) GetDescription
func (x *Environment) GetDescription() stringfunc (*Environment) GetDisplayName
func (x *Environment) GetDisplayName() stringfunc (*Environment) GetImageType
func (x *Environment) GetImageType() isEnvironment_ImageTypefunc (*Environment) GetName
func (x *Environment) GetName() stringfunc (*Environment) GetPostStartupScript
func (x *Environment) GetPostStartupScript() stringfunc (*Environment) GetVmImage
func (x *Environment) GetVmImage() *VmImagefunc (*Environment) ProtoMessage
func (*Environment) ProtoMessage()func (*Environment) ProtoReflect
func (x *Environment) ProtoReflect() protoreflect.Messagefunc (*Environment) Reset
func (x *Environment) Reset()func (*Environment) String
func (x *Environment) String() stringEnvironment_ContainerImage
type Environment_ContainerImage struct {
// Use a container image to start the notebook instance.
ContainerImage *ContainerImage `protobuf:"bytes,7,opt,name=container_image,json=containerImage,proto3,oneof"`
}Environment_VmImage
type Environment_VmImage struct {
// Use a Compute Engine VM image to start the notebook instance.
VmImage *VmImage `protobuf:"bytes,6,opt,name=vm_image,json=vmImage,proto3,oneof"`
}GetEnvironmentRequest
type GetEnvironmentRequest struct {
// Required. Format:
// `projects/{project_id}/locations/{location}/environments/{environment_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request for getting a notebook environment.
func (*GetEnvironmentRequest) Descriptor
func (*GetEnvironmentRequest) Descriptor() ([]byte, []int)Deprecated: Use GetEnvironmentRequest.ProtoReflect.Descriptor instead.
func (*GetEnvironmentRequest) GetName
func (x *GetEnvironmentRequest) GetName() stringfunc (*GetEnvironmentRequest) ProtoMessage
func (*GetEnvironmentRequest) ProtoMessage()func (*GetEnvironmentRequest) ProtoReflect
func (x *GetEnvironmentRequest) ProtoReflect() protoreflect.Messagefunc (*GetEnvironmentRequest) Reset
func (x *GetEnvironmentRequest) Reset()func (*GetEnvironmentRequest) String
func (x *GetEnvironmentRequest) String() stringGetInstanceRequest
type GetInstanceRequest struct {
// Required. Format:
// `projects/{project_id}/locations/{location}/instances/{instance_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request for getting a notebook instance.
func (*GetInstanceRequest) Descriptor
func (*GetInstanceRequest) Descriptor() ([]byte, []int)Deprecated: Use GetInstanceRequest.ProtoReflect.Descriptor instead.
func (*GetInstanceRequest) GetName
func (x *GetInstanceRequest) GetName() stringfunc (*GetInstanceRequest) ProtoMessage
func (*GetInstanceRequest) ProtoMessage()func (*GetInstanceRequest) ProtoReflect
func (x *GetInstanceRequest) ProtoReflect() protoreflect.Messagefunc (*GetInstanceRequest) Reset
func (x *GetInstanceRequest) Reset()func (*GetInstanceRequest) String
func (x *GetInstanceRequest) String() stringInstance
type Instance struct {
// Output only. The name of this notebook instance. Format:
// `projects/{project_id}/locations/{location}/instances/{instance_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Type of the environment; can be one of VM image, or container image.
//
// Types that are valid to be assigned to Environment:
//
// *Instance_VmImage
// *Instance_ContainerImage
Environment isInstance_Environment `protobuf_oneof:"environment"`
// Path to a Bash script that automatically runs after a notebook instance
// fully boots up. The path must be a URL or
// Cloud Storage path (`gs://path-to-file/file-name`).
PostStartupScript string `protobuf:"bytes,4,opt,name=post_startup_script,json=postStartupScript,proto3" json:"post_startup_script,omitempty"`
// Output only. The proxy endpoint that is used to access the Jupyter notebook.
ProxyUri string `protobuf:"bytes,5,opt,name=proxy_uri,json=proxyUri,proto3" json:"proxy_uri,omitempty"`
// Input only. The owner of this instance after creation. Format: `alias@example.com`
//
// Currently supports one owner only. If not specified, all of the service
// account users of your VM instance's service account can use
// the instance.
InstanceOwners []string `protobuf:"bytes,6,rep,name=instance_owners,json=instanceOwners,proto3" json:"instance_owners,omitempty"`
// The service account on this instance, giving access to other Google
// Cloud services.
// You can use any service account within the same project, but you
// must have the service account user permission to use the instance.
//
// If not specified, the [Compute Engine default service
// account](https://cloud.google.com/compute/docs/access/service-accounts#default_service_account)
// is used.
ServiceAccount string `protobuf:"bytes,7,opt,name=service_account,json=serviceAccount,proto3" json:"service_account,omitempty"`
// Required. The [Compute Engine machine
// type](https://cloud.google.com/compute/docs/machine-types) of this
// instance.
MachineType string `protobuf:"bytes,8,opt,name=machine_type,json=machineType,proto3" json:"machine_type,omitempty"`
// The hardware accelerator used on this instance. If you use
// accelerators, make sure that your configuration has
// [enough vCPUs and memory to support the `machine_type` you have
// selected](https://cloud.google.com/compute/docs/gpus/#gpus-list).
AcceleratorConfig *Instance_AcceleratorConfig `protobuf:"bytes,9,opt,name=accelerator_config,json=acceleratorConfig,proto3" json:"accelerator_config,omitempty"`
// Output only. The state of this instance.
State Instance_State `protobuf:"varint,10,opt,name=state,proto3,enum=google.cloud.notebooks.v1beta1.Instance_State" json:"state,omitempty"`
// Whether the end user authorizes Google Cloud to install GPU driver
// on this instance.
// If this field is empty or set to false, the GPU driver won't be installed.
// Only applicable to instances with GPUs.
InstallGpuDriver bool `protobuf:"varint,11,opt,name=install_gpu_driver,json=installGpuDriver,proto3" json:"install_gpu_driver,omitempty"`
// Specify a custom Cloud Storage path where the GPU driver is stored.
// If not specified, we'll automatically choose from official GPU drivers.
CustomGpuDriverPath string `protobuf:"bytes,12,opt,name=custom_gpu_driver_path,json=customGpuDriverPath,proto3" json:"custom_gpu_driver_path,omitempty"`
// Input only. The type of the boot disk attached to this instance, defaults to
// standard persistent disk (`PD_STANDARD`).
BootDiskType Instance_DiskType `protobuf:"varint,13,opt,name=boot_disk_type,json=bootDiskType,proto3,enum=google.cloud.notebooks.v1beta1.Instance_DiskType" json:"boot_disk_type,omitempty"`
// Input only. The size of the boot disk in GB attached to this instance, up to a maximum
// of 64000 GB (64 TB). The minimum recommended value is 100 GB. If not
// specified, this defaults to 100.
BootDiskSizeGb int64 `protobuf:"varint,14,opt,name=boot_disk_size_gb,json=bootDiskSizeGb,proto3" json:"boot_disk_size_gb,omitempty"`
// Input only. The type of the data disk attached to this instance, defaults to
// standard persistent disk (`PD_STANDARD`).
DataDiskType Instance_DiskType `protobuf:"varint,25,opt,name=data_disk_type,json=dataDiskType,proto3,enum=google.cloud.notebooks.v1beta1.Instance_DiskType" json:"data_disk_type,omitempty"`
// Input only. The size of the data disk in GB attached to this instance, up to a maximum
// of 64000 GB (64 TB). You can choose the size of the data disk based on how
// big your notebooks and data are. If not specified, this defaults to 100.
DataDiskSizeGb int64 `protobuf:"varint,26,opt,name=data_disk_size_gb,json=dataDiskSizeGb,proto3" json:"data_disk_size_gb,omitempty"`
// Input only. If true, the data disk will not be auto deleted when deleting the instance.
NoRemoveDataDisk bool `protobuf:"varint,27,opt,name=no_remove_data_disk,json=noRemoveDataDisk,proto3" json:"no_remove_data_disk,omitempty"`
// Input only. Disk encryption method used on the boot and data disks, defaults to GMEK.
DiskEncryption Instance_DiskEncryption `protobuf:"varint,15,opt,name=disk_encryption,json=diskEncryption,proto3,enum=google.cloud.notebooks.v1beta1.Instance_DiskEncryption" json:"disk_encryption,omitempty"`
// Input only. The KMS key used to encrypt the disks, only applicable if disk_encryption
// is CMEK.
// Format:
// `projects/{project_id}/locations/{location}/keyRings/{key_ring_id}/cryptoKeys/{key_id}`
//
// Learn more about [using your own encryption
// keys](https://cloud.google.com/kms/docs/quickstart).
KmsKey string `protobuf:"bytes,16,opt,name=kms_key,json=kmsKey,proto3" json:"kms_key,omitempty"`
// If true, no public IP will be assigned to this instance.
NoPublicIp bool `protobuf:"varint,17,opt,name=no_public_ip,json=noPublicIp,proto3" json:"no_public_ip,omitempty"`
// If true, the notebook instance will not register with the proxy.
NoProxyAccess bool `protobuf:"varint,18,opt,name=no_proxy_access,json=noProxyAccess,proto3" json:"no_proxy_access,omitempty"`
// The name of the VPC that this instance is in.
// Format:
// `projects/{project_id}/global/networks/{network_id}`
Network string `protobuf:"bytes,19,opt,name=network,proto3" json:"network,omitempty"`
// The name of the subnet that this instance is in.
// Format:
// `projects/{project_id}/regions/{region}/subnetworks/{subnetwork_id}`
Subnet string `protobuf:"bytes,20,opt,name=subnet,proto3" json:"subnet,omitempty"`
// Labels to apply to this instance.
// These can be later modified by the setLabels method.
Labels map[string]string `protobuf:"bytes,21,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// Custom metadata to apply to this instance.
Metadata map[string]string `protobuf:"bytes,22,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// Optional. The type of vNIC to be used on this interface. This may be gVNIC or
// VirtioNet.
NicType Instance_NicType `protobuf:"varint,28,opt,name=nic_type,json=nicType,proto3,enum=google.cloud.notebooks.v1beta1.Instance_NicType" json:"nic_type,omitempty"`
// Optional. The optional reservation affinity. Setting this field will apply
// the specified [Zonal Compute
// Reservation](https://cloud.google.com/compute/docs/instances/reserving-zonal-resources)
// to this notebook instance.
ReservationAffinity *ReservationAffinity `protobuf:"bytes,29,opt,name=reservation_affinity,json=reservationAffinity,proto3" json:"reservation_affinity,omitempty"`
// Optional. Flag to enable ip forwarding or not, default false/off.
// https://cloud.google.com/vpc/docs/using-routes#canipforward
CanIpForward bool `protobuf:"varint,31,opt,name=can_ip_forward,json=canIpForward,proto3" json:"can_ip_forward,omitempty"`
// Output only. Instance creation time.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,23,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Instance update time.
UpdateTime *timestamppb.Timestamp `protobuf:"bytes,24,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
// contains filtered or unexported fields
}The definition of a notebook instance.
func (*Instance) Descriptor
Deprecated: Use Instance.ProtoReflect.Descriptor instead.
func (*Instance) GetAcceleratorConfig
func (x *Instance) GetAcceleratorConfig() *Instance_AcceleratorConfigfunc (*Instance) GetBootDiskSizeGb
func (*Instance) GetBootDiskType
func (x *Instance) GetBootDiskType() Instance_DiskTypefunc (*Instance) GetCanIpForward
func (*Instance) GetContainerImage
func (x *Instance) GetContainerImage() *ContainerImagefunc (*Instance) GetCreateTime
func (x *Instance) GetCreateTime() *timestamppb.Timestampfunc (*Instance) GetCustomGpuDriverPath
func (*Instance) GetDataDiskSizeGb
func (*Instance) GetDataDiskType
func (x *Instance) GetDataDiskType() Instance_DiskTypefunc (*Instance) GetDiskEncryption
func (x *Instance) GetDiskEncryption() Instance_DiskEncryptionfunc (*Instance) GetEnvironment
func (x *Instance) GetEnvironment() isInstance_Environmentfunc (*Instance) GetInstallGpuDriver
func (*Instance) GetInstanceOwners
func (*Instance) GetKmsKey
func (*Instance) GetLabels
func (*Instance) GetMachineType
func (*Instance) GetMetadata
func (*Instance) GetName
func (*Instance) GetNetwork
func (*Instance) GetNicType
func (x *Instance) GetNicType() Instance_NicTypefunc (*Instance) GetNoProxyAccess
func (*Instance) GetNoPublicIp
func (*Instance) GetNoRemoveDataDisk
func (*Instance) GetPostStartupScript
func (*Instance) GetProxyUri
func (*Instance) GetReservationAffinity
func (x *Instance) GetReservationAffinity() *ReservationAffinityfunc (*Instance) GetServiceAccount
func (*Instance) GetState
func (x *Instance) GetState() Instance_Statefunc (*Instance) GetSubnet
func (*Instance) GetUpdateTime
func (x *Instance) GetUpdateTime() *timestamppb.Timestampfunc (*Instance) GetVmImage
func (*Instance) ProtoMessage
func (*Instance) ProtoMessage()func (*Instance) ProtoReflect
func (x *Instance) ProtoReflect() protoreflect.Messagefunc (*Instance) Reset
func (x *Instance) Reset()func (*Instance) String
Instance_AcceleratorConfig
type Instance_AcceleratorConfig struct {
// Type of this accelerator.
Type Instance_AcceleratorType `protobuf:"varint,1,opt,name=type,proto3,enum=google.cloud.notebooks.v1beta1.Instance_AcceleratorType" json:"type,omitempty"`
// Count of cores of this accelerator.
CoreCount int64 `protobuf:"varint,2,opt,name=core_count,json=coreCount,proto3" json:"core_count,omitempty"`
// contains filtered or unexported fields
}Definition of a hardware accelerator. Note that not all combinations
of type and core_count are valid. Check GPUs on Compute
Engine to find a
valid combination. TPUs are not supported.
func (*Instance_AcceleratorConfig) Descriptor
func (*Instance_AcceleratorConfig) Descriptor() ([]byte, []int)Deprecated: Use Instance_AcceleratorConfig.ProtoReflect.Descriptor instead.
func (*Instance_AcceleratorConfig) GetCoreCount
func (x *Instance_AcceleratorConfig) GetCoreCount() int64func (*Instance_AcceleratorConfig) GetType
func (x *Instance_AcceleratorConfig) GetType() Instance_AcceleratorTypefunc (*Instance_AcceleratorConfig) ProtoMessage
func (*Instance_AcceleratorConfig) ProtoMessage()func (*Instance_AcceleratorConfig) ProtoReflect
func (x *Instance_AcceleratorConfig) ProtoReflect() protoreflect.Messagefunc (*Instance_AcceleratorConfig) Reset
func (x *Instance_AcceleratorConfig) Reset()func (*Instance_AcceleratorConfig) String
func (x *Instance_AcceleratorConfig) String() stringInstance_AcceleratorType
type Instance_AcceleratorType int32Definition of the types of hardware accelerators that can be used on this instance.
Instance_ACCELERATOR_TYPE_UNSPECIFIED, Instance_NVIDIA_TESLA_K80, Instance_NVIDIA_TESLA_P100, Instance_NVIDIA_TESLA_V100, Instance_NVIDIA_TESLA_P4, Instance_NVIDIA_TESLA_T4, Instance_NVIDIA_TESLA_T4_VWS, Instance_NVIDIA_TESLA_P100_VWS, Instance_NVIDIA_TESLA_P4_VWS, Instance_TPU_V2, Instance_TPU_V3
const (
// Accelerator type is not specified.
Instance_ACCELERATOR_TYPE_UNSPECIFIED Instance_AcceleratorType = 0
// Accelerator type is Nvidia Tesla K80.
Instance_NVIDIA_TESLA_K80 Instance_AcceleratorType = 1
// Accelerator type is Nvidia Tesla P100.
Instance_NVIDIA_TESLA_P100 Instance_AcceleratorType = 2
// Accelerator type is Nvidia Tesla V100.
Instance_NVIDIA_TESLA_V100 Instance_AcceleratorType = 3
// Accelerator type is Nvidia Tesla P4.
Instance_NVIDIA_TESLA_P4 Instance_AcceleratorType = 4
// Accelerator type is Nvidia Tesla T4.
Instance_NVIDIA_TESLA_T4 Instance_AcceleratorType = 5
// Accelerator type is NVIDIA Tesla T4 Virtual Workstations.
Instance_NVIDIA_TESLA_T4_VWS Instance_AcceleratorType = 8
// Accelerator type is NVIDIA Tesla P100 Virtual Workstations.
Instance_NVIDIA_TESLA_P100_VWS Instance_AcceleratorType = 9
// Accelerator type is NVIDIA Tesla P4 Virtual Workstations.
Instance_NVIDIA_TESLA_P4_VWS Instance_AcceleratorType = 10
// (Coming soon) Accelerator type is TPU V2.
Instance_TPU_V2 Instance_AcceleratorType = 6
// (Coming soon) Accelerator type is TPU V3.
Instance_TPU_V3 Instance_AcceleratorType = 7
)func (Instance_AcceleratorType) Descriptor
func (Instance_AcceleratorType) Descriptor() protoreflect.EnumDescriptorfunc (Instance_AcceleratorType) Enum
func (x Instance_AcceleratorType) Enum() *Instance_AcceleratorTypefunc (Instance_AcceleratorType) EnumDescriptor
func (Instance_AcceleratorType) EnumDescriptor() ([]byte, []int)Deprecated: Use Instance_AcceleratorType.Descriptor instead.
func (Instance_AcceleratorType) Number
func (x Instance_AcceleratorType) Number() protoreflect.EnumNumberfunc (Instance_AcceleratorType) String
func (x Instance_AcceleratorType) String() stringfunc (Instance_AcceleratorType) Type
func (Instance_AcceleratorType) Type() protoreflect.EnumTypeInstance_ContainerImage
type Instance_ContainerImage struct {
// Use a container image to start the notebook instance.
ContainerImage *ContainerImage `protobuf:"bytes,3,opt,name=container_image,json=containerImage,proto3,oneof"`
}Instance_DiskEncryption
type Instance_DiskEncryption int32Definition of the disk encryption options.
Instance_DISK_ENCRYPTION_UNSPECIFIED, Instance_GMEK, Instance_CMEK
const (
// Disk encryption is not specified.
Instance_DISK_ENCRYPTION_UNSPECIFIED Instance_DiskEncryption = 0
// Use Google managed encryption keys to encrypt the boot disk.
Instance_GMEK Instance_DiskEncryption = 1
// Use customer managed encryption keys to encrypt the boot disk.
Instance_CMEK Instance_DiskEncryption = 2
)func (Instance_DiskEncryption) Descriptor
func (Instance_DiskEncryption) Descriptor() protoreflect.EnumDescriptorfunc (Instance_DiskEncryption) Enum
func (x Instance_DiskEncryption) Enum() *Instance_DiskEncryptionfunc (Instance_DiskEncryption) EnumDescriptor
func (Instance_DiskEncryption) EnumDescriptor() ([]byte, []int)Deprecated: Use Instance_DiskEncryption.Descriptor instead.
func (Instance_DiskEncryption) Number
func (x Instance_DiskEncryption) Number() protoreflect.EnumNumberfunc (Instance_DiskEncryption) String
func (x Instance_DiskEncryption) String() stringfunc (Instance_DiskEncryption) Type
func (Instance_DiskEncryption) Type() protoreflect.EnumTypeInstance_DiskType
type Instance_DiskType int32Possible disk types for notebook instances.
Instance_DISK_TYPE_UNSPECIFIED, Instance_PD_STANDARD, Instance_PD_SSD, Instance_PD_BALANCED
const (
// Disk type not set.
Instance_DISK_TYPE_UNSPECIFIED Instance_DiskType = 0
// Standard persistent disk type.
Instance_PD_STANDARD Instance_DiskType = 1
// SSD persistent disk type.
Instance_PD_SSD Instance_DiskType = 2
// Balanced persistent disk type.
Instance_PD_BALANCED Instance_DiskType = 3
)func (Instance_DiskType) Descriptor
func (Instance_DiskType) Descriptor() protoreflect.EnumDescriptorfunc (Instance_DiskType) Enum
func (x Instance_DiskType) Enum() *Instance_DiskTypefunc (Instance_DiskType) EnumDescriptor
func (Instance_DiskType) EnumDescriptor() ([]byte, []int)Deprecated: Use Instance_DiskType.Descriptor instead.
func (Instance_DiskType) Number
func (x Instance_DiskType) Number() protoreflect.EnumNumberfunc (Instance_DiskType) String
func (x Instance_DiskType) String() stringfunc (Instance_DiskType) Type
func (Instance_DiskType) Type() protoreflect.EnumTypeInstance_NicType
type Instance_NicType int32The type of vNIC driver.
Instance_UNSPECIFIED_NIC_TYPE, Instance_VIRTIO_NET, Instance_GVNIC
const (
// No type specified. Default should be UNSPECIFIED_NIC_TYPE.
Instance_UNSPECIFIED_NIC_TYPE Instance_NicType = 0
// VIRTIO. Default in Notebooks DLVM.
Instance_VIRTIO_NET Instance_NicType = 1
// GVNIC. Alternative to VIRTIO.
// https://github.com/GoogleCloudPlatform/compute-virtual-ethernet-linux
Instance_GVNIC Instance_NicType = 2
)func (Instance_NicType) Descriptor
func (Instance_NicType) Descriptor() protoreflect.EnumDescriptorfunc (Instance_NicType) Enum
func (x Instance_NicType) Enum() *Instance_NicTypefunc (Instance_NicType) EnumDescriptor
func (Instance_NicType) EnumDescriptor() ([]byte, []int)Deprecated: Use Instance_NicType.Descriptor instead.
func (Instance_NicType) Number
func (x Instance_NicType) Number() protoreflect.EnumNumberfunc (Instance_NicType) String
func (x Instance_NicType) String() stringfunc (Instance_NicType) Type
func (Instance_NicType) Type() protoreflect.EnumTypeInstance_State
type Instance_State int32The definition of the states of this instance.
Instance_STATE_UNSPECIFIED, Instance_STARTING, Instance_PROVISIONING, Instance_ACTIVE, Instance_STOPPING, Instance_STOPPED, Instance_DELETED, Instance_UPGRADING, Instance_INITIALIZING, Instance_REGISTERING, Instance_SUSPENDING, Instance_SUSPENDED
const (
// State is not specified.
Instance_STATE_UNSPECIFIED Instance_State = 0
// The control logic is starting the instance.
Instance_STARTING Instance_State = 1
// The control logic is installing required frameworks and registering the
// instance with notebook proxy
Instance_PROVISIONING Instance_State = 2
// The instance is running.
Instance_ACTIVE Instance_State = 3
// The control logic is stopping the instance.
Instance_STOPPING Instance_State = 4
// The instance is stopped.
Instance_STOPPED Instance_State = 5
// The instance is deleted.
Instance_DELETED Instance_State = 6
// The instance is upgrading.
Instance_UPGRADING Instance_State = 7
// The instance is being created.
Instance_INITIALIZING Instance_State = 8
// The instance is getting registered.
Instance_REGISTERING Instance_State = 9
// The instance is suspending.
Instance_SUSPENDING Instance_State = 10
// The instance is suspended.
Instance_SUSPENDED Instance_State = 11
)func (Instance_State) Descriptor
func (Instance_State) Descriptor() protoreflect.EnumDescriptorfunc (Instance_State) Enum
func (x Instance_State) Enum() *Instance_Statefunc (Instance_State) EnumDescriptor
func (Instance_State) EnumDescriptor() ([]byte, []int)Deprecated: Use Instance_State.Descriptor instead.
func (Instance_State) Number
func (x Instance_State) Number() protoreflect.EnumNumberfunc (Instance_State) String
func (x Instance_State) String() stringfunc (Instance_State) Type
func (Instance_State) Type() protoreflect.EnumTypeInstance_VmImage
type Instance_VmImage struct {
// Use a Compute Engine VM image to start the notebook instance.
VmImage *VmImage `protobuf:"bytes,2,opt,name=vm_image,json=vmImage,proto3,oneof"`
}IsInstanceUpgradeableRequest
type IsInstanceUpgradeableRequest struct {
// Required. Format:
// `projects/{project_id}/locations/{location}/instances/{instance_id}`
NotebookInstance string `protobuf:"bytes,1,opt,name=notebook_instance,json=notebookInstance,proto3" json:"notebook_instance,omitempty"`
// contains filtered or unexported fields
}Request for checking if a notebook instance is upgradeable.
func (*IsInstanceUpgradeableRequest) Descriptor
func (*IsInstanceUpgradeableRequest) Descriptor() ([]byte, []int)Deprecated: Use IsInstanceUpgradeableRequest.ProtoReflect.Descriptor instead.
func (*IsInstanceUpgradeableRequest) GetNotebookInstance
func (x *IsInstanceUpgradeableRequest) GetNotebookInstance() stringfunc (*IsInstanceUpgradeableRequest) ProtoMessage
func (*IsInstanceUpgradeableRequest) ProtoMessage()func (*IsInstanceUpgradeableRequest) ProtoReflect
func (x *IsInstanceUpgradeableRequest) ProtoReflect() protoreflect.Messagefunc (*IsInstanceUpgradeableRequest) Reset
func (x *IsInstanceUpgradeableRequest) Reset()func (*IsInstanceUpgradeableRequest) String
func (x *IsInstanceUpgradeableRequest) String() stringIsInstanceUpgradeableResponse
type IsInstanceUpgradeableResponse struct {
// If an instance is upgradeable.
Upgradeable bool `protobuf:"varint,1,opt,name=upgradeable,proto3" json:"upgradeable,omitempty"`
// The version this instance will be upgraded to if calling the upgrade
// endpoint. This field will only be populated if field upgradeable is true.
UpgradeVersion string `protobuf:"bytes,2,opt,name=upgrade_version,json=upgradeVersion,proto3" json:"upgrade_version,omitempty"`
// Additional information about upgrade.
UpgradeInfo string `protobuf:"bytes,3,opt,name=upgrade_info,json=upgradeInfo,proto3" json:"upgrade_info,omitempty"`
// The new image self link this instance will be upgraded to if calling the
// upgrade endpoint. This field will only be populated if field upgradeable
// is true.
UpgradeImage string `protobuf:"bytes,4,opt,name=upgrade_image,json=upgradeImage,proto3" json:"upgrade_image,omitempty"`
// contains filtered or unexported fields
}Response for checking if a notebook instance is upgradeable.
func (*IsInstanceUpgradeableResponse) Descriptor
func (*IsInstanceUpgradeableResponse) Descriptor() ([]byte, []int)Deprecated: Use IsInstanceUpgradeableResponse.ProtoReflect.Descriptor instead.
func (*IsInstanceUpgradeableResponse) GetUpgradeImage
func (x *IsInstanceUpgradeableResponse) GetUpgradeImage() stringfunc (*IsInstanceUpgradeableResponse) GetUpgradeInfo
func (x *IsInstanceUpgradeableResponse) GetUpgradeInfo() stringfunc (*IsInstanceUpgradeableResponse) GetUpgradeVersion
func (x *IsInstanceUpgradeableResponse) GetUpgradeVersion() stringfunc (*IsInstanceUpgradeableResponse) GetUpgradeable
func (x *IsInstanceUpgradeableResponse) GetUpgradeable() boolfunc (*IsInstanceUpgradeableResponse) ProtoMessage
func (*IsInstanceUpgradeableResponse) ProtoMessage()func (*IsInstanceUpgradeableResponse) ProtoReflect
func (x *IsInstanceUpgradeableResponse) ProtoReflect() protoreflect.Messagefunc (*IsInstanceUpgradeableResponse) Reset
func (x *IsInstanceUpgradeableResponse) Reset()func (*IsInstanceUpgradeableResponse) String
func (x *IsInstanceUpgradeableResponse) String() stringListEnvironmentsRequest
type ListEnvironmentsRequest struct {
// Required. Format: `projects/{project_id}/locations/{location}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Maximum return size of the list call.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A previous returned page token that can be used to continue listing from
// the last result.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Request for listing environments.
func (*ListEnvironmentsRequest) Descriptor
func (*ListEnvironmentsRequest) Descriptor() ([]byte, []int)Deprecated: Use ListEnvironmentsRequest.ProtoReflect.Descriptor instead.
func (*ListEnvironmentsRequest) GetPageSize
func (x *ListEnvironmentsRequest) GetPageSize() int32func (*ListEnvironmentsRequest) GetPageToken
func (x *ListEnvironmentsRequest) GetPageToken() stringfunc (*ListEnvironmentsRequest) GetParent
func (x *ListEnvironmentsRequest) GetParent() stringfunc (*ListEnvironmentsRequest) ProtoMessage
func (*ListEnvironmentsRequest) ProtoMessage()func (*ListEnvironmentsRequest) ProtoReflect
func (x *ListEnvironmentsRequest) ProtoReflect() protoreflect.Messagefunc (*ListEnvironmentsRequest) Reset
func (x *ListEnvironmentsRequest) Reset()func (*ListEnvironmentsRequest) String
func (x *ListEnvironmentsRequest) String() stringListEnvironmentsResponse
type ListEnvironmentsResponse struct {
// A list of returned environments.
Environments []*Environment `protobuf:"bytes,1,rep,name=environments,proto3" json:"environments,omitempty"`
// A page token that can be used to continue listing from the last result
// in the next list call.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Locations that could not be reached.
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}Response for listing environments.
func (*ListEnvironmentsResponse) Descriptor
func (*ListEnvironmentsResponse) Descriptor() ([]byte, []int)Deprecated: Use ListEnvironmentsResponse.ProtoReflect.Descriptor instead.
func (*ListEnvironmentsResponse) GetEnvironments
func (x *ListEnvironmentsResponse) GetEnvironments() []*Environmentfunc (*ListEnvironmentsResponse) GetNextPageToken
func (x *ListEnvironmentsResponse) GetNextPageToken() stringfunc (*ListEnvironmentsResponse) GetUnreachable
func (x *ListEnvironmentsResponse) GetUnreachable() []stringfunc (*ListEnvironmentsResponse) ProtoMessage
func (*ListEnvironmentsResponse) ProtoMessage()func (*ListEnvironmentsResponse) ProtoReflect
func (x *ListEnvironmentsResponse) ProtoReflect() protoreflect.Messagefunc (*ListEnvironmentsResponse) Reset
func (x *ListEnvironmentsResponse) Reset()func (*ListEnvironmentsResponse) String
func (x *ListEnvironmentsResponse) String() stringListInstancesRequest
type ListInstancesRequest struct {
// Required. Format:
// `parent=projects/{project_id}/locations/{location}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Maximum return size of the list call.
PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"`
// A previous returned page token that can be used to continue listing
// from the last result.
PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"`
// contains filtered or unexported fields
}Request for listing notebook instances.
func (*ListInstancesRequest) Descriptor
func (*ListInstancesRequest) Descriptor() ([]byte, []int)Deprecated: Use ListInstancesRequest.ProtoReflect.Descriptor instead.
func (*ListInstancesRequest) GetPageSize
func (x *ListInstancesRequest) GetPageSize() int32func (*ListInstancesRequest) GetPageToken
func (x *ListInstancesRequest) GetPageToken() stringfunc (*ListInstancesRequest) GetParent
func (x *ListInstancesRequest) GetParent() stringfunc (*ListInstancesRequest) ProtoMessage
func (*ListInstancesRequest) ProtoMessage()func (*ListInstancesRequest) ProtoReflect
func (x *ListInstancesRequest) ProtoReflect() protoreflect.Messagefunc (*ListInstancesRequest) Reset
func (x *ListInstancesRequest) Reset()func (*ListInstancesRequest) String
func (x *ListInstancesRequest) String() stringListInstancesResponse
type ListInstancesResponse struct {
// A list of returned instances.
Instances []*Instance `protobuf:"bytes,1,rep,name=instances,proto3" json:"instances,omitempty"`
// Page token that can be used to continue listing from the last result in the
// next list call.
NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"`
// Locations that could not be reached. For example,
// `['us-west1-a', 'us-central1-b']`.
// A ListInstancesResponse will only contain either instances or unreachables,
Unreachable []string `protobuf:"bytes,3,rep,name=unreachable,proto3" json:"unreachable,omitempty"`
// contains filtered or unexported fields
}Response for listing notebook instances.
func (*ListInstancesResponse) Descriptor
func (*ListInstancesResponse) Descriptor() ([]byte, []int)Deprecated: Use ListInstancesResponse.ProtoReflect.Descriptor instead.
func (*ListInstancesResponse) GetInstances
func (x *ListInstancesResponse) GetInstances() []*Instancefunc (*ListInstancesResponse) GetNextPageToken
func (x *ListInstancesResponse) GetNextPageToken() stringfunc (*ListInstancesResponse) GetUnreachable
func (x *ListInstancesResponse) GetUnreachable() []stringfunc (*ListInstancesResponse) ProtoMessage
func (*ListInstancesResponse) ProtoMessage()func (*ListInstancesResponse) ProtoReflect
func (x *ListInstancesResponse) ProtoReflect() protoreflect.Messagefunc (*ListInstancesResponse) Reset
func (x *ListInstancesResponse) Reset()func (*ListInstancesResponse) String
func (x *ListInstancesResponse) String() stringNotebookServiceClient
type NotebookServiceClient interface {
// Lists instances in a given project and location.
ListInstances(ctx context.Context, in *ListInstancesRequest, opts ...grpc.CallOption) (*ListInstancesResponse, error)
// Gets details of a single Instance.
GetInstance(ctx context.Context, in *GetInstanceRequest, opts ...grpc.CallOption) (*Instance, error)
// Creates a new Instance in a given project and location.
CreateInstance(ctx context.Context, in *CreateInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Registers an existing legacy notebook instance to the Notebooks API server.
// Legacy instances are instances created with the legacy Compute Engine
// calls. They are not manageable by the Notebooks API out of the box. This
// call makes these instances manageable by the Notebooks API.
RegisterInstance(ctx context.Context, in *RegisterInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Updates the guest accelerators of a single Instance.
SetInstanceAccelerator(ctx context.Context, in *SetInstanceAcceleratorRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Updates the machine type of a single Instance.
SetInstanceMachineType(ctx context.Context, in *SetInstanceMachineTypeRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Updates the labels of an Instance.
SetInstanceLabels(ctx context.Context, in *SetInstanceLabelsRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes a single Instance.
DeleteInstance(ctx context.Context, in *DeleteInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Starts a notebook instance.
StartInstance(ctx context.Context, in *StartInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Stops a notebook instance.
StopInstance(ctx context.Context, in *StopInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Resets a notebook instance.
ResetInstance(ctx context.Context, in *ResetInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Allows notebook instances to
// report their latest instance information to the Notebooks
// API server. The server will merge the reported information to
// the instance metadata store. Do not use this method directly.
ReportInstanceInfo(ctx context.Context, in *ReportInstanceInfoRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deprecated: Do not use.
// Check if a notebook instance is upgradable.
// Deprecated. Please consider using v1.
IsInstanceUpgradeable(ctx context.Context, in *IsInstanceUpgradeableRequest, opts ...grpc.CallOption) (*IsInstanceUpgradeableResponse, error)
// Deprecated: Do not use.
// Upgrades a notebook instance to the latest version.
// Deprecated. Please consider using v1.
UpgradeInstance(ctx context.Context, in *UpgradeInstanceRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deprecated: Do not use.
// Allows notebook instances to
// call this endpoint to upgrade themselves. Do not use this method directly.
// Deprecated. Please consider using v1.
UpgradeInstanceInternal(ctx context.Context, in *UpgradeInstanceInternalRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Lists environments in a project.
ListEnvironments(ctx context.Context, in *ListEnvironmentsRequest, opts ...grpc.CallOption) (*ListEnvironmentsResponse, error)
// Gets details of a single Environment.
GetEnvironment(ctx context.Context, in *GetEnvironmentRequest, opts ...grpc.CallOption) (*Environment, error)
// Creates a new Environment.
CreateEnvironment(ctx context.Context, in *CreateEnvironmentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
// Deletes a single Environment.
DeleteEnvironment(ctx context.Context, in *DeleteEnvironmentRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
}NotebookServiceClient is the client API for NotebookService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewNotebookServiceClient
func NewNotebookServiceClient(cc grpc.ClientConnInterface) NotebookServiceClientNotebookServiceServer
type NotebookServiceServer interface {
// Lists instances in a given project and location.
ListInstances(context.Context, *ListInstancesRequest) (*ListInstancesResponse, error)
// Gets details of a single Instance.
GetInstance(context.Context, *GetInstanceRequest) (*Instance, error)
// Creates a new Instance in a given project and location.
CreateInstance(context.Context, *CreateInstanceRequest) (*longrunningpb.Operation, error)
// Registers an existing legacy notebook instance to the Notebooks API server.
// Legacy instances are instances created with the legacy Compute Engine
// calls. They are not manageable by the Notebooks API out of the box. This
// call makes these instances manageable by the Notebooks API.
RegisterInstance(context.Context, *RegisterInstanceRequest) (*longrunningpb.Operation, error)
// Updates the guest accelerators of a single Instance.
SetInstanceAccelerator(context.Context, *SetInstanceAcceleratorRequest) (*longrunningpb.Operation, error)
// Updates the machine type of a single Instance.
SetInstanceMachineType(context.Context, *SetInstanceMachineTypeRequest) (*longrunningpb.Operation, error)
// Updates the labels of an Instance.
SetInstanceLabels(context.Context, *SetInstanceLabelsRequest) (*longrunningpb.Operation, error)
// Deletes a single Instance.
DeleteInstance(context.Context, *DeleteInstanceRequest) (*longrunningpb.Operation, error)
// Starts a notebook instance.
StartInstance(context.Context, *StartInstanceRequest) (*longrunningpb.Operation, error)
// Stops a notebook instance.
StopInstance(context.Context, *StopInstanceRequest) (*longrunningpb.Operation, error)
// Resets a notebook instance.
ResetInstance(context.Context, *ResetInstanceRequest) (*longrunningpb.Operation, error)
// Allows notebook instances to
// report their latest instance information to the Notebooks
// API server. The server will merge the reported information to
// the instance metadata store. Do not use this method directly.
ReportInstanceInfo(context.Context, *ReportInstanceInfoRequest) (*longrunningpb.Operation, error)
// Deprecated: Do not use.
// Check if a notebook instance is upgradable.
// Deprecated. Please consider using v1.
IsInstanceUpgradeable(context.Context, *IsInstanceUpgradeableRequest) (*IsInstanceUpgradeableResponse, error)
// Deprecated: Do not use.
// Upgrades a notebook instance to the latest version.
// Deprecated. Please consider using v1.
UpgradeInstance(context.Context, *UpgradeInstanceRequest) (*longrunningpb.Operation, error)
// Deprecated: Do not use.
// Allows notebook instances to
// call this endpoint to upgrade themselves. Do not use this method directly.
// Deprecated. Please consider using v1.
UpgradeInstanceInternal(context.Context, *UpgradeInstanceInternalRequest) (*longrunningpb.Operation, error)
// Lists environments in a project.
ListEnvironments(context.Context, *ListEnvironmentsRequest) (*ListEnvironmentsResponse, error)
// Gets details of a single Environment.
GetEnvironment(context.Context, *GetEnvironmentRequest) (*Environment, error)
// Creates a new Environment.
CreateEnvironment(context.Context, *CreateEnvironmentRequest) (*longrunningpb.Operation, error)
// Deletes a single Environment.
DeleteEnvironment(context.Context, *DeleteEnvironmentRequest) (*longrunningpb.Operation, error)
}NotebookServiceServer is the server API for NotebookService service. All implementations should embed UnimplementedNotebookServiceServer for forward compatibility
OperationMetadata
type OperationMetadata struct {
// The time the operation was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// The time the operation finished running.
EndTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
// Server-defined resource path for the target of the operation.
Target string `protobuf:"bytes,3,opt,name=target,proto3" json:"target,omitempty"`
// Name of the verb executed by the operation.
Verb string `protobuf:"bytes,4,opt,name=verb,proto3" json:"verb,omitempty"`
// Human-readable status of the operation, if any.
StatusMessage string `protobuf:"bytes,5,opt,name=status_message,json=statusMessage,proto3" json:"status_message,omitempty"`
// Identifies whether the user has requested cancellation
// of the operation. Operations that have successfully been cancelled
// have [Operation.error][] value with a
// [google.rpc.Status.code][google.rpc.Status.code] of 1, corresponding to `Code.CANCELLED`.
RequestedCancellation bool `protobuf:"varint,6,opt,name=requested_cancellation,json=requestedCancellation,proto3" json:"requested_cancellation,omitempty"`
// API version used to start the operation.
ApiVersion string `protobuf:"bytes,7,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
// API endpoint name of this operation.
Endpoint string `protobuf:"bytes,8,opt,name=endpoint,proto3" json:"endpoint,omitempty"`
// contains filtered or unexported fields
}Represents the metadata of the long-running operation.
func (*OperationMetadata) Descriptor
func (*OperationMetadata) Descriptor() ([]byte, []int)Deprecated: Use OperationMetadata.ProtoReflect.Descriptor instead.
func (*OperationMetadata) GetApiVersion
func (x *OperationMetadata) GetApiVersion() stringfunc (*OperationMetadata) GetCreateTime
func (x *OperationMetadata) GetCreateTime() *timestamppb.Timestampfunc (*OperationMetadata) GetEndTime
func (x *OperationMetadata) GetEndTime() *timestamppb.Timestampfunc (*OperationMetadata) GetEndpoint
func (x *OperationMetadata) GetEndpoint() stringfunc (*OperationMetadata) GetRequestedCancellation
func (x *OperationMetadata) GetRequestedCancellation() boolfunc (*OperationMetadata) GetStatusMessage
func (x *OperationMetadata) GetStatusMessage() stringfunc (*OperationMetadata) GetTarget
func (x *OperationMetadata) GetTarget() stringfunc (*OperationMetadata) GetVerb
func (x *OperationMetadata) GetVerb() stringfunc (*OperationMetadata) ProtoMessage
func (*OperationMetadata) ProtoMessage()func (*OperationMetadata) ProtoReflect
func (x *OperationMetadata) ProtoReflect() protoreflect.Messagefunc (*OperationMetadata) Reset
func (x *OperationMetadata) Reset()func (*OperationMetadata) String
func (x *OperationMetadata) String() stringRegisterInstanceRequest
type RegisterInstanceRequest struct {
// Required. Format:
// `parent=projects/{project_id}/locations/{location}`
Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"`
// Required. User defined unique ID of this instance. The `instance_id` must
// be 1 to 63 characters long and contain only lowercase letters,
// numeric characters, and dashes. The first character must be a lowercase
// letter and the last character cannot be a dash.
InstanceId string `protobuf:"bytes,2,opt,name=instance_id,json=instanceId,proto3" json:"instance_id,omitempty"`
// contains filtered or unexported fields
}Request for registering a notebook instance.
func (*RegisterInstanceRequest) Descriptor
func (*RegisterInstanceRequest) Descriptor() ([]byte, []int)Deprecated: Use RegisterInstanceRequest.ProtoReflect.Descriptor instead.
func (*RegisterInstanceRequest) GetInstanceId
func (x *RegisterInstanceRequest) GetInstanceId() stringfunc (*RegisterInstanceRequest) GetParent
func (x *RegisterInstanceRequest) GetParent() stringfunc (*RegisterInstanceRequest) ProtoMessage
func (*RegisterInstanceRequest) ProtoMessage()func (*RegisterInstanceRequest) ProtoReflect
func (x *RegisterInstanceRequest) ProtoReflect() protoreflect.Messagefunc (*RegisterInstanceRequest) Reset
func (x *RegisterInstanceRequest) Reset()func (*RegisterInstanceRequest) String
func (x *RegisterInstanceRequest) String() stringReportInstanceInfoRequest
type ReportInstanceInfoRequest struct {
// Required. Format:
// `projects/{project_id}/locations/{location}/instances/{instance_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The VM hardware token for authenticating the VM.
// https://cloud.google.com/compute/docs/instances/verifying-instance-identity
VmId string `protobuf:"bytes,2,opt,name=vm_id,json=vmId,proto3" json:"vm_id,omitempty"`
// The metadata reported to Notebooks API. This will be merged to the instance
// metadata store
Metadata map[string]string `protobuf:"bytes,3,rep,name=metadata,proto3" json:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// contains filtered or unexported fields
}Request for notebook instances to report information to Notebooks API.
func (*ReportInstanceInfoRequest) Descriptor
func (*ReportInstanceInfoRequest) Descriptor() ([]byte, []int)Deprecated: Use ReportInstanceInfoRequest.ProtoReflect.Descriptor instead.
func (*ReportInstanceInfoRequest) GetMetadata
func (x *ReportInstanceInfoRequest) GetMetadata() map[string]stringfunc (*ReportInstanceInfoRequest) GetName
func (x *ReportInstanceInfoRequest) GetName() stringfunc (*ReportInstanceInfoRequest) GetVmId
func (x *ReportInstanceInfoRequest) GetVmId() stringfunc (*ReportInstanceInfoRequest) ProtoMessage
func (*ReportInstanceInfoRequest) ProtoMessage()func (*ReportInstanceInfoRequest) ProtoReflect
func (x *ReportInstanceInfoRequest) ProtoReflect() protoreflect.Messagefunc (*ReportInstanceInfoRequest) Reset
func (x *ReportInstanceInfoRequest) Reset()func (*ReportInstanceInfoRequest) String
func (x *ReportInstanceInfoRequest) String() stringReservationAffinity
type ReservationAffinity struct {
// Optional. Type of reservation to consume
ConsumeReservationType ReservationAffinity_Type `protobuf:"varint,1,opt,name=consume_reservation_type,json=consumeReservationType,proto3,enum=google.cloud.notebooks.v1beta1.ReservationAffinity_Type" json:"consume_reservation_type,omitempty"`
// Optional. Corresponds to the label key of reservation resource.
Key string `protobuf:"bytes,2,opt,name=key,proto3" json:"key,omitempty"`
// Optional. Corresponds to the label values of reservation resource.
Values []string `protobuf:"bytes,3,rep,name=values,proto3" json:"values,omitempty"`
// contains filtered or unexported fields
}Reservation Affinity for consuming Zonal reservation.
func (*ReservationAffinity) Descriptor
func (*ReservationAffinity) Descriptor() ([]byte, []int)Deprecated: Use ReservationAffinity.ProtoReflect.Descriptor instead.
func (*ReservationAffinity) GetConsumeReservationType
func (x *ReservationAffinity) GetConsumeReservationType() ReservationAffinity_Typefunc (*ReservationAffinity) GetKey
func (x *ReservationAffinity) GetKey() stringfunc (*ReservationAffinity) GetValues
func (x *ReservationAffinity) GetValues() []stringfunc (*ReservationAffinity) ProtoMessage
func (*ReservationAffinity) ProtoMessage()func (*ReservationAffinity) ProtoReflect
func (x *ReservationAffinity) ProtoReflect() protoreflect.Messagefunc (*ReservationAffinity) Reset
func (x *ReservationAffinity) Reset()func (*ReservationAffinity) String
func (x *ReservationAffinity) String() stringReservationAffinity_Type
type ReservationAffinity_Type int32Indicates whether to consume capacity from an reservation or not.
ReservationAffinity_TYPE_UNSPECIFIED, ReservationAffinity_NO_RESERVATION, ReservationAffinity_ANY_RESERVATION, ReservationAffinity_SPECIFIC_RESERVATION
const (
// Default type.
ReservationAffinity_TYPE_UNSPECIFIED ReservationAffinity_Type = 0
// Do not consume from any allocated capacity.
ReservationAffinity_NO_RESERVATION ReservationAffinity_Type = 1
// Consume any reservation available.
ReservationAffinity_ANY_RESERVATION ReservationAffinity_Type = 2
// Must consume from a specific reservation. Must specify key value fields
// for specifying the reservations.
ReservationAffinity_SPECIFIC_RESERVATION ReservationAffinity_Type = 3
)func (ReservationAffinity_Type) Descriptor
func (ReservationAffinity_Type) Descriptor() protoreflect.EnumDescriptorfunc (ReservationAffinity_Type) Enum
func (x ReservationAffinity_Type) Enum() *ReservationAffinity_Typefunc (ReservationAffinity_Type) EnumDescriptor
func (ReservationAffinity_Type) EnumDescriptor() ([]byte, []int)Deprecated: Use ReservationAffinity_Type.Descriptor instead.
func (ReservationAffinity_Type) Number
func (x ReservationAffinity_Type) Number() protoreflect.EnumNumberfunc (ReservationAffinity_Type) String
func (x ReservationAffinity_Type) String() stringfunc (ReservationAffinity_Type) Type
func (ReservationAffinity_Type) Type() protoreflect.EnumTypeResetInstanceRequest
type ResetInstanceRequest struct {
// Required. Format:
// `projects/{project_id}/locations/{location}/instances/{instance_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request for reseting a notebook instance
func (*ResetInstanceRequest) Descriptor
func (*ResetInstanceRequest) Descriptor() ([]byte, []int)Deprecated: Use ResetInstanceRequest.ProtoReflect.Descriptor instead.
func (*ResetInstanceRequest) GetName
func (x *ResetInstanceRequest) GetName() stringfunc (*ResetInstanceRequest) ProtoMessage
func (*ResetInstanceRequest) ProtoMessage()func (*ResetInstanceRequest) ProtoReflect
func (x *ResetInstanceRequest) ProtoReflect() protoreflect.Messagefunc (*ResetInstanceRequest) Reset
func (x *ResetInstanceRequest) Reset()func (*ResetInstanceRequest) String
func (x *ResetInstanceRequest) String() stringSetInstanceAcceleratorRequest
type SetInstanceAcceleratorRequest struct {
// Required. Format:
// `projects/{project_id}/locations/{location}/instances/{instance_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. Type of this accelerator.
Type Instance_AcceleratorType `protobuf:"varint,2,opt,name=type,proto3,enum=google.cloud.notebooks.v1beta1.Instance_AcceleratorType" json:"type,omitempty"`
// Required. Count of cores of this accelerator. Note that not all combinations
// of `type` and `core_count` are valid. Check [GPUs on
// Compute Engine](https://cloud.google.com/compute/docs/gpus/#gpus-list) to
// find a valid combination. TPUs are not supported.
CoreCount int64 `protobuf:"varint,3,opt,name=core_count,json=coreCount,proto3" json:"core_count,omitempty"`
// contains filtered or unexported fields
}Request for setting instance accelerator.
func (*SetInstanceAcceleratorRequest) Descriptor
func (*SetInstanceAcceleratorRequest) Descriptor() ([]byte, []int)Deprecated: Use SetInstanceAcceleratorRequest.ProtoReflect.Descriptor instead.
func (*SetInstanceAcceleratorRequest) GetCoreCount
func (x *SetInstanceAcceleratorRequest) GetCoreCount() int64func (*SetInstanceAcceleratorRequest) GetName
func (x *SetInstanceAcceleratorRequest) GetName() stringfunc (*SetInstanceAcceleratorRequest) GetType
func (x *SetInstanceAcceleratorRequest) GetType() Instance_AcceleratorTypefunc (*SetInstanceAcceleratorRequest) ProtoMessage
func (*SetInstanceAcceleratorRequest) ProtoMessage()func (*SetInstanceAcceleratorRequest) ProtoReflect
func (x *SetInstanceAcceleratorRequest) ProtoReflect() protoreflect.Messagefunc (*SetInstanceAcceleratorRequest) Reset
func (x *SetInstanceAcceleratorRequest) Reset()func (*SetInstanceAcceleratorRequest) String
func (x *SetInstanceAcceleratorRequest) String() stringSetInstanceLabelsRequest
type SetInstanceLabelsRequest struct {
// Required. Format:
// `projects/{project_id}/locations/{location}/instances/{instance_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Labels to apply to this instance.
// These can be later modified by the setLabels method
Labels map[string]string `protobuf:"bytes,2,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// contains filtered or unexported fields
}Request for setting instance labels.
func (*SetInstanceLabelsRequest) Descriptor
func (*SetInstanceLabelsRequest) Descriptor() ([]byte, []int)Deprecated: Use SetInstanceLabelsRequest.ProtoReflect.Descriptor instead.
func (*SetInstanceLabelsRequest) GetLabels
func (x *SetInstanceLabelsRequest) GetLabels() map[string]stringfunc (*SetInstanceLabelsRequest) GetName
func (x *SetInstanceLabelsRequest) GetName() stringfunc (*SetInstanceLabelsRequest) ProtoMessage
func (*SetInstanceLabelsRequest) ProtoMessage()func (*SetInstanceLabelsRequest) ProtoReflect
func (x *SetInstanceLabelsRequest) ProtoReflect() protoreflect.Messagefunc (*SetInstanceLabelsRequest) Reset
func (x *SetInstanceLabelsRequest) Reset()func (*SetInstanceLabelsRequest) String
func (x *SetInstanceLabelsRequest) String() stringSetInstanceMachineTypeRequest
type SetInstanceMachineTypeRequest struct {
// Required. Format:
// `projects/{project_id}/locations/{location}/instances/{instance_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The [Compute Engine machine
// type](https://cloud.google.com/compute/docs/machine-types).
MachineType string `protobuf:"bytes,2,opt,name=machine_type,json=machineType,proto3" json:"machine_type,omitempty"`
// contains filtered or unexported fields
}Request for setting instance machine type.
func (*SetInstanceMachineTypeRequest) Descriptor
func (*SetInstanceMachineTypeRequest) Descriptor() ([]byte, []int)Deprecated: Use SetInstanceMachineTypeRequest.ProtoReflect.Descriptor instead.
func (*SetInstanceMachineTypeRequest) GetMachineType
func (x *SetInstanceMachineTypeRequest) GetMachineType() stringfunc (*SetInstanceMachineTypeRequest) GetName
func (x *SetInstanceMachineTypeRequest) GetName() stringfunc (*SetInstanceMachineTypeRequest) ProtoMessage
func (*SetInstanceMachineTypeRequest) ProtoMessage()func (*SetInstanceMachineTypeRequest) ProtoReflect
func (x *SetInstanceMachineTypeRequest) ProtoReflect() protoreflect.Messagefunc (*SetInstanceMachineTypeRequest) Reset
func (x *SetInstanceMachineTypeRequest) Reset()func (*SetInstanceMachineTypeRequest) String
func (x *SetInstanceMachineTypeRequest) String() stringStartInstanceRequest
type StartInstanceRequest struct {
// Required. Format:
// `projects/{project_id}/locations/{location}/instances/{instance_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request for starting a notebook instance
func (*StartInstanceRequest) Descriptor
func (*StartInstanceRequest) Descriptor() ([]byte, []int)Deprecated: Use StartInstanceRequest.ProtoReflect.Descriptor instead.
func (*StartInstanceRequest) GetName
func (x *StartInstanceRequest) GetName() stringfunc (*StartInstanceRequest) ProtoMessage
func (*StartInstanceRequest) ProtoMessage()func (*StartInstanceRequest) ProtoReflect
func (x *StartInstanceRequest) ProtoReflect() protoreflect.Messagefunc (*StartInstanceRequest) Reset
func (x *StartInstanceRequest) Reset()func (*StartInstanceRequest) String
func (x *StartInstanceRequest) String() stringStopInstanceRequest
type StopInstanceRequest struct {
// Required. Format:
// `projects/{project_id}/locations/{location}/instances/{instance_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request for stopping a notebook instance
func (*StopInstanceRequest) Descriptor
func (*StopInstanceRequest) Descriptor() ([]byte, []int)Deprecated: Use StopInstanceRequest.ProtoReflect.Descriptor instead.
func (*StopInstanceRequest) GetName
func (x *StopInstanceRequest) GetName() stringfunc (*StopInstanceRequest) ProtoMessage
func (*StopInstanceRequest) ProtoMessage()func (*StopInstanceRequest) ProtoReflect
func (x *StopInstanceRequest) ProtoReflect() protoreflect.Messagefunc (*StopInstanceRequest) Reset
func (x *StopInstanceRequest) Reset()func (*StopInstanceRequest) String
func (x *StopInstanceRequest) String() stringUnimplementedNotebookServiceServer
type UnimplementedNotebookServiceServer struct {
}UnimplementedNotebookServiceServer should be embedded to have forward compatible implementations.
func (UnimplementedNotebookServiceServer) CreateEnvironment
func (UnimplementedNotebookServiceServer) CreateEnvironment(context.Context, *CreateEnvironmentRequest) (*longrunningpb.Operation, error)func (UnimplementedNotebookServiceServer) CreateInstance
func (UnimplementedNotebookServiceServer) CreateInstance(context.Context, *CreateInstanceRequest) (*longrunningpb.Operation, error)func (UnimplementedNotebookServiceServer) DeleteEnvironment
func (UnimplementedNotebookServiceServer) DeleteEnvironment(context.Context, *DeleteEnvironmentRequest) (*longrunningpb.Operation, error)func (UnimplementedNotebookServiceServer) DeleteInstance
func (UnimplementedNotebookServiceServer) DeleteInstance(context.Context, *DeleteInstanceRequest) (*longrunningpb.Operation, error)func (UnimplementedNotebookServiceServer) GetEnvironment
func (UnimplementedNotebookServiceServer) GetEnvironment(context.Context, *GetEnvironmentRequest) (*Environment, error)func (UnimplementedNotebookServiceServer) GetInstance
func (UnimplementedNotebookServiceServer) GetInstance(context.Context, *GetInstanceRequest) (*Instance, error)func (UnimplementedNotebookServiceServer) IsInstanceUpgradeable
func (UnimplementedNotebookServiceServer) IsInstanceUpgradeable(context.Context, *IsInstanceUpgradeableRequest) (*IsInstanceUpgradeableResponse, error)func (UnimplementedNotebookServiceServer) ListEnvironments
func (UnimplementedNotebookServiceServer) ListEnvironments(context.Context, *ListEnvironmentsRequest) (*ListEnvironmentsResponse, error)func (UnimplementedNotebookServiceServer) ListInstances
func (UnimplementedNotebookServiceServer) ListInstances(context.Context, *ListInstancesRequest) (*ListInstancesResponse, error)func (UnimplementedNotebookServiceServer) RegisterInstance
func (UnimplementedNotebookServiceServer) RegisterInstance(context.Context, *RegisterInstanceRequest) (*longrunningpb.Operation, error)func (UnimplementedNotebookServiceServer) ReportInstanceInfo
func (UnimplementedNotebookServiceServer) ReportInstanceInfo(context.Context, *ReportInstanceInfoRequest) (*longrunningpb.Operation, error)func (UnimplementedNotebookServiceServer) ResetInstance
func (UnimplementedNotebookServiceServer) ResetInstance(context.Context, *ResetInstanceRequest) (*longrunningpb.Operation, error)func (UnimplementedNotebookServiceServer) SetInstanceAccelerator
func (UnimplementedNotebookServiceServer) SetInstanceAccelerator(context.Context, *SetInstanceAcceleratorRequest) (*longrunningpb.Operation, error)func (UnimplementedNotebookServiceServer) SetInstanceLabels
func (UnimplementedNotebookServiceServer) SetInstanceLabels(context.Context, *SetInstanceLabelsRequest) (*longrunningpb.Operation, error)func (UnimplementedNotebookServiceServer) SetInstanceMachineType
func (UnimplementedNotebookServiceServer) SetInstanceMachineType(context.Context, *SetInstanceMachineTypeRequest) (*longrunningpb.Operation, error)func (UnimplementedNotebookServiceServer) StartInstance
func (UnimplementedNotebookServiceServer) StartInstance(context.Context, *StartInstanceRequest) (*longrunningpb.Operation, error)func (UnimplementedNotebookServiceServer) StopInstance
func (UnimplementedNotebookServiceServer) StopInstance(context.Context, *StopInstanceRequest) (*longrunningpb.Operation, error)func (UnimplementedNotebookServiceServer) UpgradeInstance
func (UnimplementedNotebookServiceServer) UpgradeInstance(context.Context, *UpgradeInstanceRequest) (*longrunningpb.Operation, error)func (UnimplementedNotebookServiceServer) UpgradeInstanceInternal
func (UnimplementedNotebookServiceServer) UpgradeInstanceInternal(context.Context, *UpgradeInstanceInternalRequest) (*longrunningpb.Operation, error)UnsafeNotebookServiceServer
type UnsafeNotebookServiceServer interface {
// contains filtered or unexported methods
}UnsafeNotebookServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to NotebookServiceServer will result in compilation errors.
UpgradeInstanceInternalRequest
type UpgradeInstanceInternalRequest struct {
// Required. Format:
// `projects/{project_id}/locations/{location}/instances/{instance_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The VM hardware token for authenticating the VM.
// https://cloud.google.com/compute/docs/instances/verifying-instance-identity
VmId string `protobuf:"bytes,2,opt,name=vm_id,json=vmId,proto3" json:"vm_id,omitempty"`
// contains filtered or unexported fields
}Request for upgrading a notebook instance from within the VM
func (*UpgradeInstanceInternalRequest) Descriptor
func (*UpgradeInstanceInternalRequest) Descriptor() ([]byte, []int)Deprecated: Use UpgradeInstanceInternalRequest.ProtoReflect.Descriptor instead.
func (*UpgradeInstanceInternalRequest) GetName
func (x *UpgradeInstanceInternalRequest) GetName() stringfunc (*UpgradeInstanceInternalRequest) GetVmId
func (x *UpgradeInstanceInternalRequest) GetVmId() stringfunc (*UpgradeInstanceInternalRequest) ProtoMessage
func (*UpgradeInstanceInternalRequest) ProtoMessage()func (*UpgradeInstanceInternalRequest) ProtoReflect
func (x *UpgradeInstanceInternalRequest) ProtoReflect() protoreflect.Messagefunc (*UpgradeInstanceInternalRequest) Reset
func (x *UpgradeInstanceInternalRequest) Reset()func (*UpgradeInstanceInternalRequest) String
func (x *UpgradeInstanceInternalRequest) String() stringUpgradeInstanceRequest
type UpgradeInstanceRequest struct {
// Required. Format:
// `projects/{project_id}/locations/{location}/instances/{instance_id}`
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}Request for upgrading a notebook instance
func (*UpgradeInstanceRequest) Descriptor
func (*UpgradeInstanceRequest) Descriptor() ([]byte, []int)Deprecated: Use UpgradeInstanceRequest.ProtoReflect.Descriptor instead.
func (*UpgradeInstanceRequest) GetName
func (x *UpgradeInstanceRequest) GetName() stringfunc (*UpgradeInstanceRequest) ProtoMessage
func (*UpgradeInstanceRequest) ProtoMessage()func (*UpgradeInstanceRequest) ProtoReflect
func (x *UpgradeInstanceRequest) ProtoReflect() protoreflect.Messagefunc (*UpgradeInstanceRequest) Reset
func (x *UpgradeInstanceRequest) Reset()func (*UpgradeInstanceRequest) String
func (x *UpgradeInstanceRequest) String() stringVmImage
type VmImage struct {
// Required. The name of the Google Cloud project that this VM image belongs to.
// Format: `projects/{project_id}`
Project string `protobuf:"bytes,1,opt,name=project,proto3" json:"project,omitempty"`
// The reference to an external Compute Engine VM image.
//
// Types that are valid to be assigned to Image:
//
// *VmImage_ImageName
// *VmImage_ImageFamily
Image isVmImage_Image `protobuf_oneof:"image"`
// contains filtered or unexported fields
}Definition of a custom Compute Engine virtual machine image for starting a notebook instance with the environment installed directly on the VM.
func (*VmImage) Descriptor
Deprecated: Use VmImage.ProtoReflect.Descriptor instead.
func (*VmImage) GetImage
func (x *VmImage) GetImage() isVmImage_Imagefunc (*VmImage) GetImageFamily
func (*VmImage) GetImageName
func (*VmImage) GetProject
func (*VmImage) ProtoMessage
func (*VmImage) ProtoMessage()func (*VmImage) ProtoReflect
func (x *VmImage) ProtoReflect() protoreflect.Messagefunc (*VmImage) Reset
func (x *VmImage) Reset()func (*VmImage) String
VmImage_ImageFamily
type VmImage_ImageFamily struct {
// Use this VM image family to find the image; the newest image in this
// family will be used.
ImageFamily string `protobuf:"bytes,3,opt,name=image_family,json=imageFamily,proto3,oneof"`
}VmImage_ImageName
type VmImage_ImageName struct {
// Use VM image name to find the image.
ImageName string `protobuf:"bytes,2,opt,name=image_name,json=imageName,proto3,oneof"`
}