UNPKG

@apistudio/apim-cli

Version:

CLI for API Management Products

54 lines (48 loc) 1.55 kB
// Code generated by protoc-gen-ts_proto. DO NOT EDIT. // versions: // protoc-gen-ts_proto v1.181.1 // protoc v3.12.4 // source: policy/ResProcessing/CORS.proto /* eslint-disable */ import { type Metadata } from "../../common/Metadata.js"; /** Copyright Super iPaaS Integration LLC, an IBM Company 2024 */ /** The CORS related information is captured in the message CORS */ export interface CORS { kind?: string | undefined; apiVersion?: | string | undefined; /** common metadata to identify a specific asset in the files */ metadata?: Metadata | undefined; kindEnums?: CORS_KindEnums | undefined; spec?: CORS_Spec | undefined; } /** Kind id supported for CORS */ export enum CORS_KindEnums { CORS = "CORS", } /** The Spec is used to define the list of allowed origins, headers, exposed headers, allows credentials, methods and maximum age */ export interface CORS_Spec { /** Multiple instances of allowed origins can be given */ allowedOrigins?: | string[] | undefined; /** Multiple instances of allowed headers can be given */ allowedHeaders?: | string[] | undefined; /** Multiple instances of exposed headers can be given */ exposedHeaders?: | string[] | undefined; /** Credential can be allowed or not allowed */ allowCredentials?: | boolean | undefined; /** Multiple instances allowed methods can be given */ allowedMethods?: | string[] | undefined; /** Single instance of maximum age can be given */ maxAge?: number | undefined; }