// 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. // @generated by protoc-gen-es v1.10.0 // @generated from file google/iam/v1/iam_policy.proto (package google.iam.v1, syntax proto3) /* eslint-disable */ // @ts-nocheck import type { BinaryReadOptions, FieldList, FieldMask, JsonReadOptions, JsonValue, PartialMessage, PlainMessage } from "@bufbuild/protobuf"; import { Message, proto3 } from "@bufbuild/protobuf"; import type { Policy } from "./policy_pb.js"; import type { GetPolicyOptions } from "./options_pb.js"; /** * Request message for `SetIamPolicy` method. * * @generated from message google.iam.v1.SetIamPolicyRequest */ export declare class SetIamPolicyRequest extends Message { /** * REQUIRED: The resource for which the policy is being specified. * See the operation documentation for the appropriate value for this field. * * @generated from field: string resource = 1; */ resource: string; /** * REQUIRED: The complete policy to be applied to the `resource`. The size of * the policy is limited to a few 10s of KB. An empty policy is a * valid policy but certain Cloud Platform services (such as Projects) * might reject them. * * @generated from field: google.iam.v1.Policy policy = 2; */ policy?: Policy; /** * OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only * the fields in the mask will be modified. If no mask is provided, the * following default mask is used: * * `paths: "bindings, etag"` * * @generated from field: google.protobuf.FieldMask update_mask = 3; */ updateMask?: FieldMask; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "google.iam.v1.SetIamPolicyRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): SetIamPolicyRequest; static fromJson(jsonValue: JsonValue, options?: Partial): SetIamPolicyRequest; static fromJsonString(jsonString: string, options?: Partial): SetIamPolicyRequest; static equals(a: SetIamPolicyRequest | PlainMessage | undefined, b: SetIamPolicyRequest | PlainMessage | undefined): boolean; } /** * Request message for `GetIamPolicy` method. * * @generated from message google.iam.v1.GetIamPolicyRequest */ export declare class GetIamPolicyRequest extends Message { /** * REQUIRED: The resource for which the policy is being requested. * See the operation documentation for the appropriate value for this field. * * @generated from field: string resource = 1; */ resource: string; /** * OPTIONAL: A `GetPolicyOptions` object for specifying options to * `GetIamPolicy`. * * @generated from field: google.iam.v1.GetPolicyOptions options = 2; */ options?: GetPolicyOptions; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "google.iam.v1.GetIamPolicyRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): GetIamPolicyRequest; static fromJson(jsonValue: JsonValue, options?: Partial): GetIamPolicyRequest; static fromJsonString(jsonString: string, options?: Partial): GetIamPolicyRequest; static equals(a: GetIamPolicyRequest | PlainMessage | undefined, b: GetIamPolicyRequest | PlainMessage | undefined): boolean; } /** * Request message for `TestIamPermissions` method. * * @generated from message google.iam.v1.TestIamPermissionsRequest */ export declare class TestIamPermissionsRequest extends Message { /** * REQUIRED: The resource for which the policy detail is being requested. * See the operation documentation for the appropriate value for this field. * * @generated from field: string resource = 1; */ resource: string; /** * The set of permissions to check for the `resource`. Permissions with * wildcards (such as '*' or 'storage.*') are not allowed. For more * information see * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). * * @generated from field: repeated string permissions = 2; */ permissions: string[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "google.iam.v1.TestIamPermissionsRequest"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TestIamPermissionsRequest; static fromJson(jsonValue: JsonValue, options?: Partial): TestIamPermissionsRequest; static fromJsonString(jsonString: string, options?: Partial): TestIamPermissionsRequest; static equals(a: TestIamPermissionsRequest | PlainMessage | undefined, b: TestIamPermissionsRequest | PlainMessage | undefined): boolean; } /** * Response message for `TestIamPermissions` method. * * @generated from message google.iam.v1.TestIamPermissionsResponse */ export declare class TestIamPermissionsResponse extends Message { /** * A subset of `TestPermissionsRequest.permissions` that the caller is * allowed. * * @generated from field: repeated string permissions = 1; */ permissions: string[]; constructor(data?: PartialMessage); static readonly runtime: typeof proto3; static readonly typeName = "google.iam.v1.TestIamPermissionsResponse"; static readonly fields: FieldList; static fromBinary(bytes: Uint8Array, options?: Partial): TestIamPermissionsResponse; static fromJson(jsonValue: JsonValue, options?: Partial): TestIamPermissionsResponse; static fromJsonString(jsonString: string, options?: Partial): TestIamPermissionsResponse; static equals(a: TestIamPermissionsResponse | PlainMessage | undefined, b: TestIamPermissionsResponse | PlainMessage | undefined): boolean; }