Class protos.google.cloud.notebooks.v1.ExecutionTemplate (1.3.1)

Represents an ExecutionTemplate.

Package

@google-cloud/notebooks

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.notebooks.v1.IExecutionTemplate);

Constructs a new ExecutionTemplate.

Parameter
NameDescription
properties IExecutionTemplate

Properties to set

Properties

acceleratorConfig

public acceleratorConfig?: (google.cloud.notebooks.v1.ExecutionTemplate.ISchedulerAcceleratorConfig|null);

ExecutionTemplate acceleratorConfig.

containerImageUri

public containerImageUri: string;

ExecutionTemplate containerImageUri.

dataprocParameters

public dataprocParameters?: (google.cloud.notebooks.v1.ExecutionTemplate.IDataprocParameters|null);

ExecutionTemplate dataprocParameters.

inputNotebookFile

public inputNotebookFile: string;

ExecutionTemplate inputNotebookFile.

jobParameters

public jobParameters?: "dataprocParameters";

ExecutionTemplate jobParameters.

jobType

public jobType: (google.cloud.notebooks.v1.ExecutionTemplate.JobType|keyof typeof google.cloud.notebooks.v1.ExecutionTemplate.JobType);

ExecutionTemplate jobType.

labels

public labels: { [k: string]: string };

ExecutionTemplate labels.

masterType

public masterType: string;

ExecutionTemplate masterType.

outputNotebookFolder

public outputNotebookFolder: string;

ExecutionTemplate outputNotebookFolder.

parameters

public parameters: string;

ExecutionTemplate parameters.

paramsYamlFile

public paramsYamlFile: string;

ExecutionTemplate paramsYamlFile.

scaleTier

public scaleTier: (google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier|keyof typeof google.cloud.notebooks.v1.ExecutionTemplate.ScaleTier);

ExecutionTemplate scaleTier.

serviceAccount

public serviceAccount: string;

ExecutionTemplate serviceAccount.

Methods

create(properties)

public static create(properties?: google.cloud.notebooks.v1.IExecutionTemplate): google.cloud.notebooks.v1.ExecutionTemplate;

Creates a new ExecutionTemplate instance using the specified properties.

Parameter
NameDescription
properties IExecutionTemplate

Properties to set

Returns
TypeDescription
google.cloud.notebooks.v1.ExecutionTemplate

ExecutionTemplate instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.notebooks.v1.ExecutionTemplate;

Decodes an ExecutionTemplate message from the specified reader or buffer.

Parameters
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
google.cloud.notebooks.v1.ExecutionTemplate

ExecutionTemplate

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.notebooks.v1.ExecutionTemplate;

Decodes an ExecutionTemplate message from the specified reader or buffer, length delimited.

Parameter
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
google.cloud.notebooks.v1.ExecutionTemplate

ExecutionTemplate

encode(message, writer)

public static encode(message: google.cloud.notebooks.v1.IExecutionTemplate, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified ExecutionTemplate message. Does not implicitly messages.

Parameters
NameDescription
message IExecutionTemplate

ExecutionTemplate message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.cloud.notebooks.v1.IExecutionTemplate, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified ExecutionTemplate message, length delimited. Does not implicitly messages.

Parameters
NameDescription
message IExecutionTemplate

ExecutionTemplate message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
TypeDescription
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.notebooks.v1.ExecutionTemplate;

Creates an ExecutionTemplate message from a plain object. Also converts values to their respective internal types.

Parameter
NameDescription
object { [k: string]: any }

Plain object

Returns
TypeDescription
google.cloud.notebooks.v1.ExecutionTemplate

ExecutionTemplate

toJSON()

public toJSON(): { [k: string]: any };

Converts this ExecutionTemplate to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

public static toObject(message: google.cloud.notebooks.v1.ExecutionTemplate, options?: $protobuf.IConversionOptions): { [k: string]: any };

Creates a plain object from an ExecutionTemplate message. Also converts values to other types if specified.

Parameters
NameDescription
message google.cloud.notebooks.v1.ExecutionTemplate

ExecutionTemplate

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

public static verify(message: { [k: string]: any }): (string|null);

Verifies an ExecutionTemplate message.

Parameter
NameDescription
message { [k: string]: any }

Plain object to verify

Returns
TypeDescription
(string|null)

null if valid, otherwise the reason why it is not