Class protos.google.appengine.v1.UrlMap (3.2.0)

Represents an UrlMap.

Package

@google-cloud/appengine-admin

Constructors

(constructor)(properties)

constructor(properties?: google.appengine.v1.IUrlMap);

Constructs a new UrlMap.

Parameter
NameDescription
properties IUrlMap

Properties to set

Properties

apiEndpoint

public apiEndpoint?: (google.appengine.v1.IApiEndpointHandler|null);

UrlMap apiEndpoint.

authFailAction

public authFailAction: (google.appengine.v1.AuthFailAction|keyof typeof google.appengine.v1.AuthFailAction);

UrlMap authFailAction.

handlerType

public handlerType?: ("staticFiles"|"script"|"apiEndpoint");

UrlMap handlerType.

login

public login: (google.appengine.v1.LoginRequirement|keyof typeof google.appengine.v1.LoginRequirement);

UrlMap login.

redirectHttpResponseCode

public redirectHttpResponseCode: (google.appengine.v1.UrlMap.RedirectHttpResponseCode|keyof typeof google.appengine.v1.UrlMap.RedirectHttpResponseCode);

UrlMap redirectHttpResponseCode.

script

public script?: (google.appengine.v1.IScriptHandler|null);

UrlMap script.

securityLevel

public securityLevel: (google.appengine.v1.SecurityLevel|keyof typeof google.appengine.v1.SecurityLevel);

UrlMap securityLevel.

staticFiles

public staticFiles?: (google.appengine.v1.IStaticFilesHandler|null);

UrlMap staticFiles.

urlRegex

public urlRegex: string;

UrlMap urlRegex.

Methods

create(properties)

public static create(properties?: google.appengine.v1.IUrlMap): google.appengine.v1.UrlMap;

Creates a new UrlMap instance using the specified properties.

Parameter
NameDescription
properties IUrlMap

Properties to set

Returns
TypeDescription
UrlMap

UrlMap instance

decode(reader, length)

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

Decodes an UrlMap message from the specified reader or buffer.

Parameters
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
UrlMap

UrlMap

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.appengine.v1.UrlMap;

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

Parameter
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
UrlMap

UrlMap

encode(message, writer)

public static encode(message: google.appengine.v1.IUrlMap, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified UrlMap message. Does not implicitly messages.

Parameters
NameDescription
message IUrlMap

UrlMap 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.appengine.v1.IUrlMap, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IUrlMap

UrlMap 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.appengine.v1.UrlMap;

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

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

Plain object

Returns
TypeDescription
UrlMap

UrlMap

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for UrlMap

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 UrlMap to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message UrlMap

UrlMap

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