Class protos.google.cloud.netapp.v1.BackupPolicy (0.2.0)

Represents a BackupPolicy.

Package

@google-cloud/netapp

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.netapp.v1.IBackupPolicy);

Constructs a new BackupPolicy.

Parameter
NameDescription
properties IBackupPolicy

Properties to set

Properties

_assignedVolumeCount

public _assignedVolumeCount?: "assignedVolumeCount";

BackupPolicy _assignedVolumeCount.

_dailyBackupLimit

public _dailyBackupLimit?: "dailyBackupLimit";

BackupPolicy _dailyBackupLimit.

_description

public _description?: "description";

BackupPolicy _description.

_enabled

public _enabled?: "enabled";

BackupPolicy _enabled.

_monthlyBackupLimit

public _monthlyBackupLimit?: "monthlyBackupLimit";

BackupPolicy _monthlyBackupLimit.

_weeklyBackupLimit

public _weeklyBackupLimit?: "weeklyBackupLimit";

BackupPolicy _weeklyBackupLimit.

assignedVolumeCount

public assignedVolumeCount?: (number|null);

BackupPolicy assignedVolumeCount.

createTime

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

BackupPolicy createTime.

dailyBackupLimit

public dailyBackupLimit?: (number|null);

BackupPolicy dailyBackupLimit.

description

public description?: (string|null);

BackupPolicy description.

enabled

public enabled?: (boolean|null);

BackupPolicy enabled.

labels

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

BackupPolicy labels.

monthlyBackupLimit

public monthlyBackupLimit?: (number|null);

BackupPolicy monthlyBackupLimit.

name

public name: string;

BackupPolicy name.

state

public state: (google.cloud.netapp.v1.BackupPolicy.State|keyof typeof google.cloud.netapp.v1.BackupPolicy.State);

BackupPolicy state.

weeklyBackupLimit

public weeklyBackupLimit?: (number|null);

BackupPolicy weeklyBackupLimit.

Methods

create(properties)

public static create(properties?: google.cloud.netapp.v1.IBackupPolicy): google.cloud.netapp.v1.BackupPolicy;

Creates a new BackupPolicy instance using the specified properties.

Parameter
NameDescription
properties IBackupPolicy

Properties to set

Returns
TypeDescription
BackupPolicy

BackupPolicy instance

decode(reader, length)

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

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

BackupPolicy

decodeDelimited(reader)

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

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

Parameter
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
BackupPolicy

BackupPolicy

encode(message, writer)

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

Encodes the specified BackupPolicy message. Does not implicitly messages.

Parameters
NameDescription
message IBackupPolicy

BackupPolicy 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.netapp.v1.IBackupPolicy, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IBackupPolicy

BackupPolicy 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.netapp.v1.BackupPolicy;

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

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

Plain object

Returns
TypeDescription
BackupPolicy

BackupPolicy

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for BackupPolicy

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

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message BackupPolicy

BackupPolicy

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