Class protos.google.cloud.policytroubleshooter.v1.BindingExplanation

Represents a BindingExplanation.

Package

@google-cloud/policy-troubleshooter

Constructors

(constructor)(properties)

constructor(properties?: google.cloud.policytroubleshooter.v1.IBindingExplanation);

Constructs a new BindingExplanation.

Parameter
NameDescription
properties IBindingExplanation

Properties to set

Properties

access

public access: (google.cloud.policytroubleshooter.v1.AccessState|keyof typeof google.cloud.policytroubleshooter.v1.AccessState);

BindingExplanation access.

condition

public condition?: (google.type.IExpr|null);

BindingExplanation condition.

memberships

public memberships: { [k: string]: google.cloud.policytroubleshooter.v1.BindingExplanation.IAnnotatedMembership };

BindingExplanation memberships.

relevance

public relevance: (google.cloud.policytroubleshooter.v1.HeuristicRelevance|keyof typeof google.cloud.policytroubleshooter.v1.HeuristicRelevance);

BindingExplanation relevance.

role

public role: string;

BindingExplanation role.

rolePermission

public rolePermission: (google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission|keyof typeof google.cloud.policytroubleshooter.v1.BindingExplanation.RolePermission);

BindingExplanation rolePermission.

rolePermissionRelevance

public rolePermissionRelevance: (google.cloud.policytroubleshooter.v1.HeuristicRelevance|keyof typeof google.cloud.policytroubleshooter.v1.HeuristicRelevance);

BindingExplanation rolePermissionRelevance.

Methods

create(properties)

public static create(properties?: google.cloud.policytroubleshooter.v1.IBindingExplanation): google.cloud.policytroubleshooter.v1.BindingExplanation;

Creates a new BindingExplanation instance using the specified properties.

Parameter
NameDescription
properties IBindingExplanation

Properties to set

Returns
TypeDescription
google.cloud.policytroubleshooter.v1.BindingExplanation

BindingExplanation instance

decode(reader, length)

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

Decodes a BindingExplanation message from the specified reader or buffer.

Parameters
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

length number

Message length if known beforehand

Returns
TypeDescription
google.cloud.policytroubleshooter.v1.BindingExplanation

BindingExplanation

decodeDelimited(reader)

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

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

Parameter
NameDescription
reader ($protobuf.Reader|Uint8Array)

Reader or buffer to decode from

Returns
TypeDescription
google.cloud.policytroubleshooter.v1.BindingExplanation

BindingExplanation

encode(message, writer)

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

Encodes the specified BindingExplanation message. Does not implicitly messages.

Parameters
NameDescription
message IBindingExplanation

BindingExplanation 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.policytroubleshooter.v1.IBindingExplanation, writer?: $protobuf.Writer): $protobuf.Writer;

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

Parameters
NameDescription
message IBindingExplanation

BindingExplanation 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.policytroubleshooter.v1.BindingExplanation;

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

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

Plain object

Returns
TypeDescription
google.cloud.policytroubleshooter.v1.BindingExplanation

BindingExplanation

toJSON()

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

Converts this BindingExplanation to JSON.

Returns
TypeDescription
{ [k: string]: any }

JSON object

toObject(message, options)

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

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

Parameters
NameDescription
message google.cloud.policytroubleshooter.v1.BindingExplanation

BindingExplanation

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