@google-cloud/iam
Version:
Identity and Access Management client for Node.js
1,061 lines (875 loc) • 572 kB
TypeScript
// Copyright 2025 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
import type {protobuf as $protobuf} from "google-gax";
import Long = require("long");
/** Namespace google. */
export namespace google {
/** Namespace iam. */
namespace iam {
/** Namespace v2. */
namespace v2 {
/** Properties of a DenyRule. */
interface IDenyRule {
/** DenyRule deniedPrincipals */
deniedPrincipals?: (string[]|null);
/** DenyRule exceptionPrincipals */
exceptionPrincipals?: (string[]|null);
/** DenyRule deniedPermissions */
deniedPermissions?: (string[]|null);
/** DenyRule exceptionPermissions */
exceptionPermissions?: (string[]|null);
/** DenyRule denialCondition */
denialCondition?: (google.type.IExpr|null);
}
/** Represents a DenyRule. */
class DenyRule implements IDenyRule {
/**
* Constructs a new DenyRule.
* @param [properties] Properties to set
*/
constructor(properties?: google.iam.v2.IDenyRule);
/** DenyRule deniedPrincipals. */
public deniedPrincipals: string[];
/** DenyRule exceptionPrincipals. */
public exceptionPrincipals: string[];
/** DenyRule deniedPermissions. */
public deniedPermissions: string[];
/** DenyRule exceptionPermissions. */
public exceptionPermissions: string[];
/** DenyRule denialCondition. */
public denialCondition?: (google.type.IExpr|null);
/**
* Creates a new DenyRule instance using the specified properties.
* @param [properties] Properties to set
* @returns DenyRule instance
*/
public static create(properties?: google.iam.v2.IDenyRule): google.iam.v2.DenyRule;
/**
* Encodes the specified DenyRule message. Does not implicitly {@link google.iam.v2.DenyRule.verify|verify} messages.
* @param message DenyRule message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.iam.v2.IDenyRule, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified DenyRule message, length delimited. Does not implicitly {@link google.iam.v2.DenyRule.verify|verify} messages.
* @param message DenyRule message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.iam.v2.IDenyRule, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a DenyRule message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns DenyRule
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v2.DenyRule;
/**
* Decodes a DenyRule message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns DenyRule
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v2.DenyRule;
/**
* Verifies a DenyRule message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a DenyRule message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns DenyRule
*/
public static fromObject(object: { [k: string]: any }): google.iam.v2.DenyRule;
/**
* Creates a plain object from a DenyRule message. Also converts values to other types if specified.
* @param message DenyRule
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.iam.v2.DenyRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this DenyRule to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for DenyRule
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Represents a Policies */
class Policies extends $protobuf.rpc.Service {
/**
* Constructs a new Policies service.
* @param rpcImpl RPC implementation
* @param [requestDelimited=false] Whether requests are length-delimited
* @param [responseDelimited=false] Whether responses are length-delimited
*/
constructor(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean);
/**
* Creates new Policies service using the specified rpc implementation.
* @param rpcImpl RPC implementation
* @param [requestDelimited=false] Whether requests are length-delimited
* @param [responseDelimited=false] Whether responses are length-delimited
* @returns RPC service. Useful where requests and/or responses are streamed.
*/
public static create(rpcImpl: $protobuf.RPCImpl, requestDelimited?: boolean, responseDelimited?: boolean): Policies;
/**
* Calls ListPolicies.
* @param request ListPoliciesRequest message or plain object
* @param callback Node-style callback called with the error, if any, and ListPoliciesResponse
*/
public listPolicies(request: google.iam.v2.IListPoliciesRequest, callback: google.iam.v2.Policies.ListPoliciesCallback): void;
/**
* Calls ListPolicies.
* @param request ListPoliciesRequest message or plain object
* @returns Promise
*/
public listPolicies(request: google.iam.v2.IListPoliciesRequest): Promise<google.iam.v2.ListPoliciesResponse>;
/**
* Calls GetPolicy.
* @param request GetPolicyRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Policy
*/
public getPolicy(request: google.iam.v2.IGetPolicyRequest, callback: google.iam.v2.Policies.GetPolicyCallback): void;
/**
* Calls GetPolicy.
* @param request GetPolicyRequest message or plain object
* @returns Promise
*/
public getPolicy(request: google.iam.v2.IGetPolicyRequest): Promise<google.iam.v2.Policy>;
/**
* Calls CreatePolicy.
* @param request CreatePolicyRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Operation
*/
public createPolicy(request: google.iam.v2.ICreatePolicyRequest, callback: google.iam.v2.Policies.CreatePolicyCallback): void;
/**
* Calls CreatePolicy.
* @param request CreatePolicyRequest message or plain object
* @returns Promise
*/
public createPolicy(request: google.iam.v2.ICreatePolicyRequest): Promise<google.longrunning.Operation>;
/**
* Calls UpdatePolicy.
* @param request UpdatePolicyRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Operation
*/
public updatePolicy(request: google.iam.v2.IUpdatePolicyRequest, callback: google.iam.v2.Policies.UpdatePolicyCallback): void;
/**
* Calls UpdatePolicy.
* @param request UpdatePolicyRequest message or plain object
* @returns Promise
*/
public updatePolicy(request: google.iam.v2.IUpdatePolicyRequest): Promise<google.longrunning.Operation>;
/**
* Calls DeletePolicy.
* @param request DeletePolicyRequest message or plain object
* @param callback Node-style callback called with the error, if any, and Operation
*/
public deletePolicy(request: google.iam.v2.IDeletePolicyRequest, callback: google.iam.v2.Policies.DeletePolicyCallback): void;
/**
* Calls DeletePolicy.
* @param request DeletePolicyRequest message or plain object
* @returns Promise
*/
public deletePolicy(request: google.iam.v2.IDeletePolicyRequest): Promise<google.longrunning.Operation>;
}
namespace Policies {
/**
* Callback as used by {@link google.iam.v2.Policies|listPolicies}.
* @param error Error, if any
* @param [response] ListPoliciesResponse
*/
type ListPoliciesCallback = (error: (Error|null), response?: google.iam.v2.ListPoliciesResponse) => void;
/**
* Callback as used by {@link google.iam.v2.Policies|getPolicy}.
* @param error Error, if any
* @param [response] Policy
*/
type GetPolicyCallback = (error: (Error|null), response?: google.iam.v2.Policy) => void;
/**
* Callback as used by {@link google.iam.v2.Policies|createPolicy}.
* @param error Error, if any
* @param [response] Operation
*/
type CreatePolicyCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
/**
* Callback as used by {@link google.iam.v2.Policies|updatePolicy}.
* @param error Error, if any
* @param [response] Operation
*/
type UpdatePolicyCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
/**
* Callback as used by {@link google.iam.v2.Policies|deletePolicy}.
* @param error Error, if any
* @param [response] Operation
*/
type DeletePolicyCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
}
/** Properties of a Policy. */
interface IPolicy {
/** Policy name */
name?: (string|null);
/** Policy uid */
uid?: (string|null);
/** Policy kind */
kind?: (string|null);
/** Policy displayName */
displayName?: (string|null);
/** Policy annotations */
annotations?: ({ [k: string]: string }|null);
/** Policy etag */
etag?: (string|null);
/** Policy createTime */
createTime?: (google.protobuf.ITimestamp|null);
/** Policy updateTime */
updateTime?: (google.protobuf.ITimestamp|null);
/** Policy deleteTime */
deleteTime?: (google.protobuf.ITimestamp|null);
/** Policy rules */
rules?: (google.iam.v2.IPolicyRule[]|null);
/** Policy managingAuthority */
managingAuthority?: (string|null);
}
/** Represents a Policy. */
class Policy implements IPolicy {
/**
* Constructs a new Policy.
* @param [properties] Properties to set
*/
constructor(properties?: google.iam.v2.IPolicy);
/** Policy name. */
public name: string;
/** Policy uid. */
public uid: string;
/** Policy kind. */
public kind: string;
/** Policy displayName. */
public displayName: string;
/** Policy annotations. */
public annotations: { [k: string]: string };
/** Policy etag. */
public etag: string;
/** Policy createTime. */
public createTime?: (google.protobuf.ITimestamp|null);
/** Policy updateTime. */
public updateTime?: (google.protobuf.ITimestamp|null);
/** Policy deleteTime. */
public deleteTime?: (google.protobuf.ITimestamp|null);
/** Policy rules. */
public rules: google.iam.v2.IPolicyRule[];
/** Policy managingAuthority. */
public managingAuthority: string;
/**
* Creates a new Policy instance using the specified properties.
* @param [properties] Properties to set
* @returns Policy instance
*/
public static create(properties?: google.iam.v2.IPolicy): google.iam.v2.Policy;
/**
* Encodes the specified Policy message. Does not implicitly {@link google.iam.v2.Policy.verify|verify} messages.
* @param message Policy message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.iam.v2.IPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified Policy message, length delimited. Does not implicitly {@link google.iam.v2.Policy.verify|verify} messages.
* @param message Policy message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.iam.v2.IPolicy, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a Policy message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns Policy
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v2.Policy;
/**
* Decodes a Policy message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns Policy
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v2.Policy;
/**
* Verifies a Policy message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a Policy message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns Policy
*/
public static fromObject(object: { [k: string]: any }): google.iam.v2.Policy;
/**
* Creates a plain object from a Policy message. Also converts values to other types if specified.
* @param message Policy
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.iam.v2.Policy, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this Policy to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for Policy
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a PolicyRule. */
interface IPolicyRule {
/** PolicyRule denyRule */
denyRule?: (google.iam.v2.IDenyRule|null);
/** PolicyRule description */
description?: (string|null);
}
/** Represents a PolicyRule. */
class PolicyRule implements IPolicyRule {
/**
* Constructs a new PolicyRule.
* @param [properties] Properties to set
*/
constructor(properties?: google.iam.v2.IPolicyRule);
/** PolicyRule denyRule. */
public denyRule?: (google.iam.v2.IDenyRule|null);
/** PolicyRule description. */
public description: string;
/** PolicyRule kind. */
public kind?: "denyRule";
/**
* Creates a new PolicyRule instance using the specified properties.
* @param [properties] Properties to set
* @returns PolicyRule instance
*/
public static create(properties?: google.iam.v2.IPolicyRule): google.iam.v2.PolicyRule;
/**
* Encodes the specified PolicyRule message. Does not implicitly {@link google.iam.v2.PolicyRule.verify|verify} messages.
* @param message PolicyRule message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.iam.v2.IPolicyRule, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified PolicyRule message, length delimited. Does not implicitly {@link google.iam.v2.PolicyRule.verify|verify} messages.
* @param message PolicyRule message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.iam.v2.IPolicyRule, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a PolicyRule message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns PolicyRule
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v2.PolicyRule;
/**
* Decodes a PolicyRule message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns PolicyRule
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v2.PolicyRule;
/**
* Verifies a PolicyRule message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a PolicyRule message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns PolicyRule
*/
public static fromObject(object: { [k: string]: any }): google.iam.v2.PolicyRule;
/**
* Creates a plain object from a PolicyRule message. Also converts values to other types if specified.
* @param message PolicyRule
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.iam.v2.PolicyRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this PolicyRule to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for PolicyRule
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a ListPoliciesRequest. */
interface IListPoliciesRequest {
/** ListPoliciesRequest parent */
parent?: (string|null);
/** ListPoliciesRequest pageSize */
pageSize?: (number|null);
/** ListPoliciesRequest pageToken */
pageToken?: (string|null);
}
/** Represents a ListPoliciesRequest. */
class ListPoliciesRequest implements IListPoliciesRequest {
/**
* Constructs a new ListPoliciesRequest.
* @param [properties] Properties to set
*/
constructor(properties?: google.iam.v2.IListPoliciesRequest);
/** ListPoliciesRequest parent. */
public parent: string;
/** ListPoliciesRequest pageSize. */
public pageSize: number;
/** ListPoliciesRequest pageToken. */
public pageToken: string;
/**
* Creates a new ListPoliciesRequest instance using the specified properties.
* @param [properties] Properties to set
* @returns ListPoliciesRequest instance
*/
public static create(properties?: google.iam.v2.IListPoliciesRequest): google.iam.v2.ListPoliciesRequest;
/**
* Encodes the specified ListPoliciesRequest message. Does not implicitly {@link google.iam.v2.ListPoliciesRequest.verify|verify} messages.
* @param message ListPoliciesRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.iam.v2.IListPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ListPoliciesRequest message, length delimited. Does not implicitly {@link google.iam.v2.ListPoliciesRequest.verify|verify} messages.
* @param message ListPoliciesRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.iam.v2.IListPoliciesRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a ListPoliciesRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ListPoliciesRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v2.ListPoliciesRequest;
/**
* Decodes a ListPoliciesRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ListPoliciesRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v2.ListPoliciesRequest;
/**
* Verifies a ListPoliciesRequest message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a ListPoliciesRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ListPoliciesRequest
*/
public static fromObject(object: { [k: string]: any }): google.iam.v2.ListPoliciesRequest;
/**
* Creates a plain object from a ListPoliciesRequest message. Also converts values to other types if specified.
* @param message ListPoliciesRequest
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.iam.v2.ListPoliciesRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ListPoliciesRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for ListPoliciesRequest
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a ListPoliciesResponse. */
interface IListPoliciesResponse {
/** ListPoliciesResponse policies */
policies?: (google.iam.v2.IPolicy[]|null);
/** ListPoliciesResponse nextPageToken */
nextPageToken?: (string|null);
}
/** Represents a ListPoliciesResponse. */
class ListPoliciesResponse implements IListPoliciesResponse {
/**
* Constructs a new ListPoliciesResponse.
* @param [properties] Properties to set
*/
constructor(properties?: google.iam.v2.IListPoliciesResponse);
/** ListPoliciesResponse policies. */
public policies: google.iam.v2.IPolicy[];
/** ListPoliciesResponse nextPageToken. */
public nextPageToken: string;
/**
* Creates a new ListPoliciesResponse instance using the specified properties.
* @param [properties] Properties to set
* @returns ListPoliciesResponse instance
*/
public static create(properties?: google.iam.v2.IListPoliciesResponse): google.iam.v2.ListPoliciesResponse;
/**
* Encodes the specified ListPoliciesResponse message. Does not implicitly {@link google.iam.v2.ListPoliciesResponse.verify|verify} messages.
* @param message ListPoliciesResponse message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.iam.v2.IListPoliciesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified ListPoliciesResponse message, length delimited. Does not implicitly {@link google.iam.v2.ListPoliciesResponse.verify|verify} messages.
* @param message ListPoliciesResponse message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.iam.v2.IListPoliciesResponse, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a ListPoliciesResponse message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns ListPoliciesResponse
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v2.ListPoliciesResponse;
/**
* Decodes a ListPoliciesResponse message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns ListPoliciesResponse
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v2.ListPoliciesResponse;
/**
* Verifies a ListPoliciesResponse message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a ListPoliciesResponse message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns ListPoliciesResponse
*/
public static fromObject(object: { [k: string]: any }): google.iam.v2.ListPoliciesResponse;
/**
* Creates a plain object from a ListPoliciesResponse message. Also converts values to other types if specified.
* @param message ListPoliciesResponse
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.iam.v2.ListPoliciesResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this ListPoliciesResponse to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for ListPoliciesResponse
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a GetPolicyRequest. */
interface IGetPolicyRequest {
/** GetPolicyRequest name */
name?: (string|null);
}
/** Represents a GetPolicyRequest. */
class GetPolicyRequest implements IGetPolicyRequest {
/**
* Constructs a new GetPolicyRequest.
* @param [properties] Properties to set
*/
constructor(properties?: google.iam.v2.IGetPolicyRequest);
/** GetPolicyRequest name. */
public name: string;
/**
* Creates a new GetPolicyRequest instance using the specified properties.
* @param [properties] Properties to set
* @returns GetPolicyRequest instance
*/
public static create(properties?: google.iam.v2.IGetPolicyRequest): google.iam.v2.GetPolicyRequest;
/**
* Encodes the specified GetPolicyRequest message. Does not implicitly {@link google.iam.v2.GetPolicyRequest.verify|verify} messages.
* @param message GetPolicyRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.iam.v2.IGetPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified GetPolicyRequest message, length delimited. Does not implicitly {@link google.iam.v2.GetPolicyRequest.verify|verify} messages.
* @param message GetPolicyRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.iam.v2.IGetPolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a GetPolicyRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns GetPolicyRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v2.GetPolicyRequest;
/**
* Decodes a GetPolicyRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns GetPolicyRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v2.GetPolicyRequest;
/**
* Verifies a GetPolicyRequest message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a GetPolicyRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns GetPolicyRequest
*/
public static fromObject(object: { [k: string]: any }): google.iam.v2.GetPolicyRequest;
/**
* Creates a plain object from a GetPolicyRequest message. Also converts values to other types if specified.
* @param message GetPolicyRequest
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.iam.v2.GetPolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this GetPolicyRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for GetPolicyRequest
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a CreatePolicyRequest. */
interface ICreatePolicyRequest {
/** CreatePolicyRequest parent */
parent?: (string|null);
/** CreatePolicyRequest policy */
policy?: (google.iam.v2.IPolicy|null);
/** CreatePolicyRequest policyId */
policyId?: (string|null);
}
/** Represents a CreatePolicyRequest. */
class CreatePolicyRequest implements ICreatePolicyRequest {
/**
* Constructs a new CreatePolicyRequest.
* @param [properties] Properties to set
*/
constructor(properties?: google.iam.v2.ICreatePolicyRequest);
/** CreatePolicyRequest parent. */
public parent: string;
/** CreatePolicyRequest policy. */
public policy?: (google.iam.v2.IPolicy|null);
/** CreatePolicyRequest policyId. */
public policyId: string;
/**
* Creates a new CreatePolicyRequest instance using the specified properties.
* @param [properties] Properties to set
* @returns CreatePolicyRequest instance
*/
public static create(properties?: google.iam.v2.ICreatePolicyRequest): google.iam.v2.CreatePolicyRequest;
/**
* Encodes the specified CreatePolicyRequest message. Does not implicitly {@link google.iam.v2.CreatePolicyRequest.verify|verify} messages.
* @param message CreatePolicyRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.iam.v2.ICreatePolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified CreatePolicyRequest message, length delimited. Does not implicitly {@link google.iam.v2.CreatePolicyRequest.verify|verify} messages.
* @param message CreatePolicyRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.iam.v2.ICreatePolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes a CreatePolicyRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns CreatePolicyRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v2.CreatePolicyRequest;
/**
* Decodes a CreatePolicyRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns CreatePolicyRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v2.CreatePolicyRequest;
/**
* Verifies a CreatePolicyRequest message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates a CreatePolicyRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns CreatePolicyRequest
*/
public static fromObject(object: { [k: string]: any }): google.iam.v2.CreatePolicyRequest;
/**
* Creates a plain object from a CreatePolicyRequest message. Also converts values to other types if specified.
* @param message CreatePolicyRequest
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.iam.v2.CreatePolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this CreatePolicyRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for CreatePolicyRequest
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of an UpdatePolicyRequest. */
interface IUpdatePolicyRequest {
/** UpdatePolicyRequest policy */
policy?: (google.iam.v2.IPolicy|null);
}
/** Represents an UpdatePolicyRequest. */
class UpdatePolicyRequest implements IUpdatePolicyRequest {
/**
* Constructs a new UpdatePolicyRequest.
* @param [properties] Properties to set
*/
constructor(properties?: google.iam.v2.IUpdatePolicyRequest);
/** UpdatePolicyRequest policy. */
public policy?: (google.iam.v2.IPolicy|null);
/**
* Creates a new UpdatePolicyRequest instance using the specified properties.
* @param [properties] Properties to set
* @returns UpdatePolicyRequest instance
*/
public static create(properties?: google.iam.v2.IUpdatePolicyRequest): google.iam.v2.UpdatePolicyRequest;
/**
* Encodes the specified UpdatePolicyRequest message. Does not implicitly {@link google.iam.v2.UpdatePolicyRequest.verify|verify} messages.
* @param message UpdatePolicyRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encode(message: google.iam.v2.IUpdatePolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Encodes the specified UpdatePolicyRequest message, length delimited. Does not implicitly {@link google.iam.v2.UpdatePolicyRequest.verify|verify} messages.
* @param message UpdatePolicyRequest message or plain object to encode
* @param [writer] Writer to encode to
* @returns Writer
*/
public static encodeDelimited(message: google.iam.v2.IUpdatePolicyRequest, writer?: $protobuf.Writer): $protobuf.Writer;
/**
* Decodes an UpdatePolicyRequest message from the specified reader or buffer.
* @param reader Reader or buffer to decode from
* @param [length] Message length if known beforehand
* @returns UpdatePolicyRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.iam.v2.UpdatePolicyRequest;
/**
* Decodes an UpdatePolicyRequest message from the specified reader or buffer, length delimited.
* @param reader Reader or buffer to decode from
* @returns UpdatePolicyRequest
* @throws {Error} If the payload is not a reader or valid buffer
* @throws {$protobuf.util.ProtocolError} If required fields are missing
*/
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.iam.v2.UpdatePolicyRequest;
/**
* Verifies an UpdatePolicyRequest message.
* @param message Plain object to verify
* @returns `null` if valid, otherwise the reason why it is not
*/
public static verify(message: { [k: string]: any }): (string|null);
/**
* Creates an UpdatePolicyRequest message from a plain object. Also converts values to their respective internal types.
* @param object Plain object
* @returns UpdatePolicyRequest
*/
public static fromObject(object: { [k: string]: any }): google.iam.v2.UpdatePolicyRequest;
/**
* Creates a plain object from an UpdatePolicyRequest message. Also converts values to other types if specified.
* @param message UpdatePolicyRequest
* @param [options] Conversion options
* @returns Plain object
*/
public static toObject(message: google.iam.v2.UpdatePolicyRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
/**
* Converts this UpdatePolicyRequest to JSON.
* @returns JSON object
*/
public toJSON(): { [k: string]: any };
/**
* Gets the default type url for UpdatePolicyRequest
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
* @returns The default type url
*/
public static getTypeUrl(typeUrlPrefix?: string): string;
}
/** Properties of a DeletePolicyRequest. */
interface IDeletePolicyRequest {
/** DeletePolicyRequest name */
name?: (string|null);
/** DeletePolicyRequest etag */
etag?: (string|nul