Skip to content

Commit 7b6726f

Browse files
authored
feat(edge_services): add GetPipelineStages endpoint (#1449)
1 parent 3f36eb5 commit 7b6726f

File tree

2 files changed

+54
-54
lines changed

2 files changed

+54
-54
lines changed

packages/clients/src/api/edge_services/v1alpha1/marshalling.gen.ts

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -193,24 +193,6 @@ export const unmarshalPipeline = (data: unknown): Pipeline => {
193193
} as Pipeline
194194
}
195195

196-
export const unmarshalPurgeRequest = (data: unknown): PurgeRequest => {
197-
if (!isJSONObject(data)) {
198-
throw new TypeError(
199-
`Unmarshalling the type 'PurgeRequest' failed as data isn't a dictionary.`,
200-
)
201-
}
202-
203-
return {
204-
all: data.all,
205-
assets: data.assets,
206-
createdAt: unmarshalDate(data.created_at),
207-
id: data.id,
208-
pipelineId: data.pipeline_id,
209-
status: data.status,
210-
updatedAt: unmarshalDate(data.updated_at),
211-
} as PurgeRequest
212-
}
213-
214196
const unmarshalTLSSecret = (data: unknown): TLSSecret => {
215197
if (!isJSONObject(data)) {
216198
throw new TypeError(
@@ -245,6 +227,24 @@ export const unmarshalTLSStage = (data: unknown): TLSStage => {
245227
} as TLSStage
246228
}
247229

230+
export const unmarshalPurgeRequest = (data: unknown): PurgeRequest => {
231+
if (!isJSONObject(data)) {
232+
throw new TypeError(
233+
`Unmarshalling the type 'PurgeRequest' failed as data isn't a dictionary.`,
234+
)
235+
}
236+
237+
return {
238+
all: data.all,
239+
assets: data.assets,
240+
createdAt: unmarshalDate(data.created_at),
241+
id: data.id,
242+
pipelineId: data.pipeline_id,
243+
status: data.status,
244+
updatedAt: unmarshalDate(data.updated_at),
245+
} as PurgeRequest
246+
}
247+
248248
export const unmarshalCheckDomainResponse = (
249249
data: unknown,
250250
): CheckDomainResponse => {

packages/clients/src/api/edge_services/v1alpha1/types.gen.ts

Lines changed: 36 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -126,11 +126,6 @@ export interface TLSSecret {
126126
region: Region
127127
}
128128

129-
export interface CheckPEMChainRequestSecretChain {
130-
secretId: string
131-
secretRegion: string
132-
}
133-
134129
export interface BackendStage {
135130
/** ID of the backend stage. */
136131
id: string
@@ -242,37 +237,6 @@ export interface Pipeline {
242237
dnsStageId?: string
243238
}
244239

245-
export interface PlanDetails {
246-
planName: PlanName
247-
packageGb: number
248-
pipelineLimit: number
249-
}
250-
251-
export interface PurgeRequest {
252-
/** ID of the purge request. */
253-
id: string
254-
/** Pipeline ID the purge request belongs to. */
255-
pipelineId: string
256-
/** Status of the purge request. */
257-
status: PurgeRequestStatus
258-
/**
259-
* List of asserts to purge.
260-
*
261-
* One-of ('target'): at most one of 'assets', 'all' could be set.
262-
*/
263-
assets?: string[]
264-
/**
265-
* Defines whether to purge all content.
266-
*
267-
* One-of ('target'): at most one of 'assets', 'all' could be set.
268-
*/
269-
all?: boolean
270-
/** Date the purge request was created. */
271-
createdAt?: Date
272-
/** Date the purge request was last updated. */
273-
updatedAt?: Date
274-
}
275-
276240
export interface TLSStage {
277241
/** ID of the TLS stage. */
278242
id: string
@@ -309,6 +273,42 @@ export interface TLSStage {
309273
backendStageId?: string
310274
}
311275

276+
export interface CheckPEMChainRequestSecretChain {
277+
secretId: string
278+
secretRegion: string
279+
}
280+
281+
export interface PlanDetails {
282+
planName: PlanName
283+
packageGb: number
284+
pipelineLimit: number
285+
}
286+
287+
export interface PurgeRequest {
288+
/** ID of the purge request. */
289+
id: string
290+
/** Pipeline ID the purge request belongs to. */
291+
pipelineId: string
292+
/** Status of the purge request. */
293+
status: PurgeRequestStatus
294+
/**
295+
* List of asserts to purge.
296+
*
297+
* One-of ('target'): at most one of 'assets', 'all' could be set.
298+
*/
299+
assets?: string[]
300+
/**
301+
* Defines whether to purge all content.
302+
*
303+
* One-of ('target'): at most one of 'assets', 'all' could be set.
304+
*/
305+
all?: boolean
306+
/** Date the purge request was created. */
307+
createdAt?: Date
308+
/** Date the purge request was last updated. */
309+
updatedAt?: Date
310+
}
311+
312312
export interface TLSSecretsConfig {
313313
/** Secret information (from Secret Manager). */
314314
tlsSecrets: TLSSecret[]

0 commit comments

Comments
 (0)