Class protos.google.iam.v3.AccessPolicyRule (3.1.1)

Represents an AccessPolicyRule.

Implements

Package

@google-cloud/iam

Constructors

(constructor)(properties)

constructor(properties?: google.iam.v3.IAccessPolicyRule);

Constructs a new AccessPolicyRule.

Parameter
Name Description
properties IAccessPolicyRule

Properties to set

Properties

conditions

public conditions: { [k: string]: google.type.IExpr };

AccessPolicyRule conditions.

description

public description?: (string|null);

AccessPolicyRule description.

effect

public effect?: (google.iam.v3.AccessPolicyRule.Effect|keyof typeof google.iam.v3.AccessPolicyRule.Effect|null);

AccessPolicyRule effect.

excludedPrincipals

public excludedPrincipals: string[];

AccessPolicyRule excludedPrincipals.

operation

public operation?: (google.iam.v3.AccessPolicyRule.IOperation|null);

AccessPolicyRule operation.

principals

public principals: string[];

AccessPolicyRule principals.

Methods

create(properties)

public static create(properties?: google.iam.v3.IAccessPolicyRule): google.iam.v3.AccessPolicyRule;

Creates a new AccessPolicyRule instance using the specified properties.

Parameter
Name Description
properties IAccessPolicyRule

Properties to set

Returns
Type Description
AccessPolicyRule

AccessPolicyRule instance

decode(reader, length)

public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v3.AccessPolicyRule;

Decodes an AccessPolicyRule 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
AccessPolicyRule

AccessPolicyRule

decodeDelimited(reader)

public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v3.AccessPolicyRule;

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

Parameter
Name Description
reader (Reader|Uint8Array)

Reader or buffer to decode from

Returns
Type Description
AccessPolicyRule

AccessPolicyRule

encode(message, writer)

public static encode(message: google.iam.v3.IAccessPolicyRule, writer?: $protobuf.Writer): $protobuf.Writer;

Encodes the specified AccessPolicyRule message. Does not implicitly messages.

Parameters
Name Description
message IAccessPolicyRule

AccessPolicyRule 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.iam.v3.IAccessPolicyRule, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
Name Description
message IAccessPolicyRule

AccessPolicyRule 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.iam.v3.AccessPolicyRule;

Creates an AccessPolicyRule 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
AccessPolicyRule

AccessPolicyRule

getTypeUrl(typeUrlPrefix)

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

Gets the default type url for AccessPolicyRule

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

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

JSON object

toObject(message, options)

public static toObject(message: google.iam.v3.AccessPolicyRule, options?: $protobuf.IConversionOptions): { [k: string]: any };

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

Parameters
Name Description
message AccessPolicyRule

AccessPolicyRule

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 an AccessPolicyRule 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