Class protos.google.cloud.beyondcorp.appgateways.v1.AppGateway (0.2.3)

Represents an AppGateway.

Package

@google-cloud/appgateways

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.beyondcorp.appgateways.v1.IAppGateway);

Constructs a new AppGateway.

Parameter
NameDescription
properties IAppGateway

Properties to set

Properties

allocatedConnections

public allocatedConnections: google.cloud.beyondcorp.appgateways.v1.AppGateway.IAllocatedConnection[];

AppGateway allocatedConnections.

createTime

public createTime?: (google.protobuf.ITimestamp|null);

AppGateway createTime.

displayName

public displayName: string;

AppGateway displayName.

hostType

public hostType: (google.cloud.beyondcorp.appgateways.v1.AppGateway.HostType|keyof typeof google.cloud.beyondcorp.appgateways.v1.AppGateway.HostType);

AppGateway hostType.

labels

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

AppGateway labels.

name

public name: string;

AppGateway name.

state

public state: (google.cloud.beyondcorp.appgateways.v1.AppGateway.State|keyof typeof google.cloud.beyondcorp.appgateways.v1.AppGateway.State);

AppGateway state.

type

public type: (google.cloud.beyondcorp.appgateways.v1.AppGateway.Type|keyof typeof google.cloud.beyondcorp.appgateways.v1.AppGateway.Type);

AppGateway type.

uid

public uid: string;

AppGateway uid.

updateTime

public updateTime?: (google.protobuf.ITimestamp|null);

AppGateway updateTime.

uri

public uri: string;

AppGateway uri.

Methods

create(properties)

public static create(properties?: google.cloud.beyondcorp.appgateways.v1.IAppGateway): google.cloud.beyondcorp.appgateways.v1.AppGateway;

Creates a new AppGateway instance using the specified properties.

Parameter
NameDescription
properties IAppGateway

Properties to set

Returns
TypeDescription
google.cloud.beyondcorp.appgateways.v1.AppGateway

AppGateway instance

decode(reader, length)

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

Decodes an AppGateway 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.beyondcorp.appgateways.v1.AppGateway

AppGateway

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.beyondcorp.appgateways.v1.AppGateway;

Decodes an AppGateway 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.beyondcorp.appgateways.v1.AppGateway

AppGateway

encode(message, writer)

public static encode(message: google.cloud.beyondcorp.appgateways.v1.IAppGateway, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified AppGateway message. Does not implicitly messages.

Parameters
NameDescription
message IAppGateway

AppGateway 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.beyondcorp.appgateways.v1.IAppGateway, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IAppGateway

AppGateway 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.beyondcorp.appgateways.v1.AppGateway;

Creates an AppGateway 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.beyondcorp.appgateways.v1.AppGateway

AppGateway

getTypeUrl(typeUrlPrefix)

public static getTypeUrl(typeUrlPrefix?: string): string;

Gets the default type url for AppGateway

Parameter
NameDescription
typeUrlPrefix string

your custom typeUrlPrefix(default "type.googleapis.com")

Returns
TypeDescription
string

The default type url

toJSON()

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

Converts this AppGateway to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message google.cloud.beyondcorp.appgateways.v1.AppGateway

AppGateway

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 AppGateway 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