Class protos.google.cloud.sql.v1beta4.DnsNameMapping (0.25.0)

Represents a DnsNameMapping.

Implements

Package

@google-cloud/sql

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.sql.v1beta4.IDnsNameMapping);

Constructs a new DnsNameMapping.

Parameter
Name Description
properties IDnsNameMapping

Properties to set

Properties

connectionType

public connectionType: (google.cloud.sql.v1beta4.DnsNameMapping.ConnectionType|keyof typeof google.cloud.sql.v1beta4.DnsNameMapping.ConnectionType);

DnsNameMapping connectionType.

dnsScope

public dnsScope: (google.cloud.sql.v1beta4.DnsNameMapping.DnsScope|keyof typeof google.cloud.sql.v1beta4.DnsNameMapping.DnsScope);

DnsNameMapping dnsScope.

name

public name: string;

DnsNameMapping name.

recordManager

public recordManager: (google.cloud.sql.v1beta4.DnsNameMapping.RecordManager|keyof typeof google.cloud.sql.v1beta4.DnsNameMapping.RecordManager);

DnsNameMapping recordManager.

Methods

create(properties)

public static create(properties?: google.cloud.sql.v1beta4.IDnsNameMapping): google.cloud.sql.v1beta4.DnsNameMapping;

Creates a new DnsNameMapping instance using the specified properties.

Parameter
Name Description
properties IDnsNameMapping

Properties to set

Returns
Type Description
DnsNameMapping

DnsNameMapping instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.cloud.sql.v1beta4.DnsNameMapping;

Decodes a DnsNameMapping message from the specified reader or buffer.

Parameters
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
Type Description
DnsNameMapping

DnsNameMapping

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.cloud.sql.v1beta4.DnsNameMapping;

Decodes a DnsNameMapping message from the specified reader or buffer, length delimited.

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
DnsNameMapping

DnsNameMapping

encode(message, writer)

public static encode(message: google.cloud.sql.v1beta4.IDnsNameMapping, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified DnsNameMapping message. Does not implicitly messages.

Parameters
Name Description
message IDnsNameMapping

DnsNameMapping message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
Type Description
$protobuf.Writer

Writer

encodeDelimited(message, writer)

public static encodeDelimited(message: google.cloud.sql.v1beta4.IDnsNameMapping, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
Name Description
message IDnsNameMapping

DnsNameMapping message or plain object to encode

writer $protobuf.Writer

Writer to encode to

Returns
Type Description
$protobuf.Writer

Writer

fromObject(object)

public static fromObject(object: { [k: string]: any }): google.cloud.sql.v1beta4.DnsNameMapping;

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

Parameter
Name Description
object { [k: string]: any }

Plain object

Returns
Type Description
DnsNameMapping

DnsNameMapping

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for DnsNameMapping

Parameter
Name Description
typeUrlPrefix string

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

Returns
Type Description
string

The default type url

toJSON()

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

Converts this DnsNameMapping to JSON.

Returns
Type Description
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
Name Description
message DnsNameMapping

DnsNameMapping

options $protobuf.IConversionOptions

Conversion options

Returns
Type Description
{ [k: string]: any }

Plain object

verify(message)

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

Verifies a DnsNameMapping message.

Parameter
Name Description
message { [k: string]: any }

Plain object to verify

Returns
Type Description
(string|null)

null if valid, otherwise the reason why it is not