Class protos.google.cloud.compute.v1.LogConfig (4.1.0)

Represents a LogConfig.

Package

@google-cloud/compute

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.compute.v1.ILogConfig);

Constructs a new LogConfig.

Parameter
NameDescription
properties ILogConfig

Properties to set

Properties

_cloudAudit

public _cloudAudit?: "cloudAudit";

LogConfig _cloudAudit.

_counter

public _counter?: "counter";

LogConfig _counter.

_dataAccess

public _dataAccess?: "dataAccess";

LogConfig _dataAccess.

cloudAudit

public cloudAudit?: (google.cloud.compute.v1.ILogConfigCloudAuditOptions|null);

LogConfig cloudAudit.

counter

public counter?: (google.cloud.compute.v1.ILogConfigCounterOptions|null);

LogConfig counter.

dataAccess

public dataAccess?: (google.cloud.compute.v1.ILogConfigDataAccessOptions|null);

LogConfig dataAccess.

Methods

create(properties)

public static create(properties?: google.cloud.compute.v1.ILogConfig): google.cloud.compute.v1.LogConfig;

Creates a new LogConfig instance using the specified properties.

Parameter
NameDescription
properties ILogConfig

Properties to set

Returns
TypeDescription
LogConfig

LogConfig instance

decode(reader, length)

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

Decodes a LogConfig 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
LogConfig

LogConfig

decodeDelimited(reader)

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

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

Parameter
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
LogConfig

LogConfig

encode(message, writer)

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

Encodes the specified LogConfig message. Does not implicitly messages.

Parameters
NameDescription
message ILogConfig

LogConfig 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.compute.v1.ILogConfig, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message ILogConfig

LogConfig 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.compute.v1.LogConfig;

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

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

Plain object

Returns
TypeDescription
LogConfig

LogConfig

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for LogConfig

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

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message LogConfig

LogConfig

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