Class protos.google.cloud.dataproc.v1beta2.GceClusterConfig (2.4.4)

Represents a GceClusterConfig.

Package

@google-cloud/dataproc!

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.dataproc.v1beta2.IGceClusterConfig);

Constructs a new GceClusterConfig.

Parameter
NameDescription
properties IGceClusterConfig

Properties to set

Properties

internalIpOnly

public internalIpOnly: boolean;

GceClusterConfig internalIpOnly.

Property Value
TypeDescription
boolean

metadata

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

GceClusterConfig metadata.

Property Value
TypeDescription
{ [k: string]: string }

networkUri

public networkUri: string;

GceClusterConfig networkUri.

Property Value
TypeDescription
string

reservationAffinity

public reservationAffinity?: (google.cloud.dataproc.v1beta2.IReservationAffinity|null);

GceClusterConfig reservationAffinity.

Property Value
TypeDescription
(google.cloud.dataproc.v1beta2.IReservationAffinity|null)

serviceAccount

public serviceAccount: string;

GceClusterConfig serviceAccount.

Property Value
TypeDescription
string

serviceAccountScopes

public serviceAccountScopes: string[];

GceClusterConfig serviceAccountScopes.

Property Value
TypeDescription
string[]

subnetworkUri

public subnetworkUri: string;

GceClusterConfig subnetworkUri.

Property Value
TypeDescription
string

tags

public tags: string[];

GceClusterConfig tags.

Property Value
TypeDescription
string[]

zoneUri

public zoneUri: string;

GceClusterConfig zoneUri.

Property Value
TypeDescription
string

Methods

create(properties)

public static create(properties?: google.cloud.dataproc.v1beta2.IGceClusterConfig): google.cloud.dataproc.v1beta2.GceClusterConfig;

Creates a new GceClusterConfig instance using the specified properties.

Parameter
NameDescription
properties IGceClusterConfig

Properties to set

Returns
TypeDescription
google.cloud.dataproc.v1beta2.GceClusterConfig

GceClusterConfig instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.dataproc.v1beta2.GceClusterConfig;

Decodes a GceClusterConfig 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.dataproc.v1beta2.GceClusterConfig

GceClusterConfig

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.dataproc.v1beta2.GceClusterConfig;

Decodes a GceClusterConfig 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.dataproc.v1beta2.GceClusterConfig

GceClusterConfig

encode(message, writer)

public static encode(message: google.cloud.dataproc.v1beta2.IGceClusterConfig, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified GceClusterConfig message. Does not implicitly messages.

Parameters
NameDescription
message IGceClusterConfig

GceClusterConfig 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.dataproc.v1beta2.IGceClusterConfig, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IGceClusterConfig

GceClusterConfig 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.dataproc.v1beta2.GceClusterConfig;

Creates a GceClusterConfig 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.dataproc.v1beta2.GceClusterConfig

GceClusterConfig

toJSON()

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

Converts this GceClusterConfig to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message google.cloud.dataproc.v1beta2.GceClusterConfig

GceClusterConfig

options $protobuf.IConversionOptions

Conversion options

Returns
TypeDescription
{ [k: string]: any }

Plain object

verify(message)

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

Verifies a GceClusterConfig 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