Class protos.google.cloud.apigateway.v1.Api (1.1.6)

Represents an Api.

Package

@google-cloud/api-gateway!

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.apigateway.v1.IApi);

Constructs a new Api.

Parameter
NameDescription
properties IApi

Properties to set

Properties

createTime

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

Api createTime.

Property Value
TypeDescription
(google.protobuf.ITimestamp|null)

displayName

public displayName: string;

Api displayName.

Property Value
TypeDescription
string

labels

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

Api labels.

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

managedService

public managedService: string;

Api managedService.

Property Value
TypeDescription
string

name

public name: string;

Api name.

Property Value
TypeDescription
string

state

public state: (google.cloud.apigateway.v1.Api.State|keyof typeof google.cloud.apigateway.v1.Api.State);

Api state.

Property Value
TypeDescription
(google.cloud.apigateway.v1.Api.State|keyof typeof google.cloud.apigateway.v1.Api.State)

updateTime

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

Api updateTime.

Property Value
TypeDescription
(google.protobuf.ITimestamp|null)

Methods

create(properties)

public static create(properties?: google.cloud.apigateway.v1.IApi): google.cloud.apigateway.v1.Api;

Creates a new Api instance using the specified properties.

Parameter
NameDescription
properties IApi

Properties to set

Returns
TypeDescription
google.cloud.apigateway.v1.Api

Api instance

decode(reader, length)

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

Decodes an Api 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.apigateway.v1.Api

Api

decodeDelimited(reader)

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

Decodes an Api 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.apigateway.v1.Api

Api

encode(message, writer)

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

Encodes the specified Api message. Does not implicitly messages.

Parameters
NameDescription
message IApi

Api 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.apigateway.v1.IApi, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IApi

Api 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.apigateway.v1.Api;

Creates an Api 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.apigateway.v1.Api

Api

toJSON()

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

Converts this Api to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message google.cloud.apigateway.v1.Api

Api

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