/** * incident.io * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: 1.0.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { ExpressionPayloadV2 } from './ExpressionPayloadV2.js'; import type { PolicyAssignmentRulesPayloadV2 } from './PolicyAssignmentRulesPayloadV2.js'; import type { PolicyScheduleV2 } from './PolicyScheduleV2.js'; import type { PolicyPostMortemPayloadV2 } from './PolicyPostMortemPayloadV2.js'; import type { ConditionGroupPayloadV2 } from './ConditionGroupPayloadV2.js'; import type { PolicyDebriefPayloadV2 } from './PolicyDebriefPayloadV2.js'; import type { PolicyFollowUpPayloadV2 } from './PolicyFollowUpPayloadV2.js'; import type { PolicyOnCallReadinessV2 } from './PolicyOnCallReadinessV2.js'; /** * * @export * @interface PoliciesCreatePayloadV2 */ export interface PoliciesCreatePayloadV2 { /** * */ assignment_rules?: PolicyAssignmentRulesPayloadV2; /** * Conditions which determine which resources are in scope for this policy */ conditions: Array; /** * */ debrief?: PolicyDebriefPayloadV2; /** * Human readable description of the policy */ description: string; /** * The expressions to use in this policy */ expressions?: Array; /** * */ follow_up?: PolicyFollowUpPayloadV2; /** * Human readable name of the policy */ name: string; /** * */ on_call_readiness?: PolicyOnCallReadinessV2; /** * Type of the policy, specifying what this applies to. Cannot be changed after the policy is created. */ policy_type: PoliciesCreatePayloadV2PolicyTypeEnum; /** * */ post_mortem?: PolicyPostMortemPayloadV2; /** * */ schedule?: PolicyScheduleV2; /** * Defaults to enabled on create. Settable on update — there is no separate disable endpoint. */ status?: PoliciesCreatePayloadV2StatusEnum; } /** * @export */ export declare const PoliciesCreatePayloadV2PolicyTypeEnum: { readonly Debrief: "debrief"; readonly FollowUp: "follow_up"; readonly OnCallReadiness: "on_call_readiness"; readonly PostMortem: "post_mortem"; readonly Schedule: "schedule"; readonly ShiftConflict: "shift_conflict"; readonly VacationConflict: "vacation_conflict"; }; export type PoliciesCreatePayloadV2PolicyTypeEnum = typeof PoliciesCreatePayloadV2PolicyTypeEnum[keyof typeof PoliciesCreatePayloadV2PolicyTypeEnum]; /** * @export */ export declare const PoliciesCreatePayloadV2StatusEnum: { readonly Enabled: "enabled"; readonly Disabled: "disabled"; }; export type PoliciesCreatePayloadV2StatusEnum = typeof PoliciesCreatePayloadV2StatusEnum[keyof typeof PoliciesCreatePayloadV2StatusEnum]; /** * Check if a given object implements the PoliciesCreatePayloadV2 interface. */ export declare function instanceOfPoliciesCreatePayloadV2(value: object): value is PoliciesCreatePayloadV2; export declare function PoliciesCreatePayloadV2FromJSON(json: any): PoliciesCreatePayloadV2; export declare function PoliciesCreatePayloadV2FromJSONTyped(json: any, ignoreDiscriminator: boolean): PoliciesCreatePayloadV2; export declare function PoliciesCreatePayloadV2ToJSON(json: any): PoliciesCreatePayloadV2; export declare function PoliciesCreatePayloadV2ToJSONTyped(value?: PoliciesCreatePayloadV2 | null, ignoreDiscriminator?: boolean): any;