/** * (C) Copyright IBM Corp. 2025-2026. * * 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 { DefaultParams } from "../../../types/common.mjs"; /** Parameters for the `policies.list` operation. */ export interface ListPolicyParams extends DefaultParams { } /** Parameters for the `policies.create` operation. */ export interface CreatePolicyParams extends DefaultParams { /** The action to perform on the policy, either read or write. */ action: CreatePolicyConstants.Action | string; /** The effect that the policy is to have, either allow or deny. */ effect: CreatePolicyConstants.Effect | string; /** The resource ID that the policy affects. */ resource: string; /** The subject that the policy pertains to. */ subject: string; } /** Constants for the `createPolicy` operation. */ export declare namespace CreatePolicyConstants { /** The action to perform on the policy, either read or write. */ enum Action { READ = "read", WRITE = "write" } /** The effect that the policy is to have, either allow or deny. */ enum Effect { ALLOW = "allow", DENY = "deny" } } /** Parameters for the `policies.getDetails` operation. */ export interface GetPolicyParams extends DefaultParams { /** Policy id */ policyId: string; } /** Parameters for the `policies.delete` operation. */ export interface DeletePolicyParams extends DefaultParams { /** Policy id */ policyId: string; } //# sourceMappingURL=request.d.mts.map