Class protos.google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig (4.3.0)

Represents a SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig.

Package

@google-cloud/compute

Constructors

(constructor)(properties)

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

Constructs a new SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig.

Parameter
NameDescription
properties ISecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig

Properties to set

Properties

_enable

public _enable?: "enable";

SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig _enable.

_ruleVisibility

public _ruleVisibility?: "ruleVisibility";

SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig _ruleVisibility.

enable

public enable?: (boolean|null);

SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig enable.

ruleVisibility

public ruleVisibility?: (string|null);

SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig ruleVisibility.

thresholdConfigs

public thresholdConfigs: google.cloud.compute.v1.ISecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfigThresholdConfig[];

SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig thresholdConfigs.

Methods

create(properties)

public static create(properties?: google.cloud.compute.v1.ISecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig): google.cloud.compute.v1.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig;

Creates a new SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig instance using the specified properties.

Parameter
NameDescription
properties ISecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig

Properties to set

Returns
TypeDescription
SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig

SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig instance

decode(reader, length)

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

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

SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig

decodeDelimited(reader)

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

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

Parameter
NameDescription
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig

SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig

encode(message, writer)

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

Encodes the specified SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig message. Does not implicitly messages.

Parameters
NameDescription
message ISecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig

SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig 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.ISecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message ISecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig

SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig 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.SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig;

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

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

Plain object

Returns
TypeDescription
SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig

SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig

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

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig

SecurityPolicyAdaptiveProtectionConfigLayer7DdosDefenseConfig

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