import { BaseResource } from '@gitbeaker/requester-utils' ; import { PipelineVariableSchema } from './Pipelines' ; import { BaseRequestOptions , endpoint , PaginatedRequestOptions , RequestHelper , } from '../infrastructure' ; export class PipelineScheduleVariables < C extends boolean = false > extends BaseResource < C > { all ( projectId , pipelineScheduleId , options ? ) { return RequestHelper . get < PipelineVariableSchema [ ] > ( ) ( this , endpoint `projects/${ projectId }/pipeline_schedules/${ pipelineScheduleId }/variables` , options ) ; } create ( projectId , pipelineScheduleId , options ? ) { return RequestHelper . post < PipelineVariableSchema > ( ) ( this , endpoint `projects/${ projectId }/pipeline_schedules/${ pipelineScheduleId }/variables` , options ) ; } edit ( projectId , pipelineScheduleId , keyId , options ? ) { return RequestHelper . put < PipelineVariableSchema > ( ) ( this , endpoint `projects/${ projectId }/pipeline_schedules/${ pipelineScheduleId }/variables/${ keyId }` , options ) ; } show ( projectId , pipelineScheduleId , keyId , options ? ) { return RequestHelper . get < PipelineVariableSchema > ( ) ( this , endpoint `projects/${ projectId }/pipeline_schedules/${ pipelineScheduleId }/variables/${ keyId }` , options ) ; } remove ( projectId , pipelineScheduleId , keyId , options ? ) { return RequestHelper . del < PipelineVariableSchema > ( ) ( this , endpoint `projects/${ projectId }/pipeline_schedules/${ pipelineScheduleId }/variables/${ keyId }` , options ) ; } }