Skip to content

Commit

Permalink
Merge pull request #70 from mkusaka/update-20220824T000301
Browse files Browse the repository at this point in the history
update 20220824T000301
  • Loading branch information
mkusaka authored Aug 24, 2022
2 parents 1e6c650 + 0aba6c2 commit b3b6a2d
Show file tree
Hide file tree
Showing 5 changed files with 1,048 additions and 1,038 deletions.
66 changes: 33 additions & 33 deletions client/services/ContextService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,39 @@ export class ContextService {
},
});
}
/**
* Remove an environment variable
* Delete an environment variable from a context.
* @returns any A confirmation message
* @throws ApiError
*/
public static deleteEnvironmentVariableFromContext({
envVarName,
contextId,
}: {
/**
* The name of the environment variable
*/
envVarName: string;
/**
* ID of the context (UUID)
*/
contextId: string;
}): CancelablePromise<{
/**
* A human-readable message
*/
message: string;
}> {
return __request(OpenAPI, {
method: "DELETE",
url: "/context/{context-id}/environment-variable/{env-var-name}",
path: {
"env-var-name": envVarName,
"context-id": contextId,
},
});
}
/**
* Add or update an environment variable
* Create or update an environment variable within a context. Returns information about the environment variable, not including its value.
Expand Down Expand Up @@ -277,37 +310,4 @@ export class ContextService {
mediaType: "application/json",
});
}
/**
* Remove an environment variable
* Delete an environment variable from a context.
* @returns any A confirmation message
* @throws ApiError
*/
public static deleteEnvironmentVariableFromContext({
envVarName,
contextId,
}: {
/**
* The name of the environment variable
*/
envVarName: string;
/**
* ID of the context (UUID)
*/
contextId: string;
}): CancelablePromise<{
/**
* A human-readable message
*/
message: string;
}> {
return __request(OpenAPI, {
method: "DELETE",
url: "/context/{context-id}/environment-variable/{env-var-name}",
path: {
"env-var-name": envVarName,
"context-id": contextId,
},
});
}
}
6 changes: 5 additions & 1 deletion client/services/InsightsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -550,7 +550,7 @@ export class InsightsService {
projectSlug: string;
}): CancelablePromise<{
/**
* A list of flaky tests
* A list of all instances of flakes. Note that a test is no longer considered flaky after 2 weeks have passed without a flake. Each flake resets this timer.
*/
"flaky-tests": Array<{
"time-wasted"?: number;
Expand Down Expand Up @@ -599,6 +599,10 @@ export class InsightsService {
*/
file: string;
}>;
/**
* A count of unique tests that have failed. If your project has N tests that have flaked multiple times each, this will be equal to N.
*/
"total-flaky-tests": number;
}> {
return __request(OpenAPI, {
method: "GET",
Expand Down
142 changes: 71 additions & 71 deletions client/services/ScheduleService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,29 @@ import { OpenAPI } from "../core/OpenAPI.ts";
import { request as __request } from "../core/request.ts";
export class ScheduleService {
/**
* Create a schedule
* Creates a schedule and returns the created schedule.
* @returns any Error response.
* Get all schedules
* Returns all schedules for this project.
* @returns any A sequence of schedules.
* @throws ApiError
*/
public static createSchedule({
public static listSchedulesForProject({
projectSlug,
requestBody,
pageToken,
}: {
/**
* Project slug in the form `vcs-slug/org-name/repo-name`. The `/` characters may be URL-escaped.
*/
projectSlug: string;
requestBody?: {
/**
* A token to retrieve the next page of results.
*/
pageToken?: string;
}): CancelablePromise<{
items: Array<{
/**
* Name of the schedule.
* The unique ID of the schedule.
*/
name: string;
id: string;
/**
* Timetable that specifies when a schedule triggers.
*/
Expand Down Expand Up @@ -100,55 +105,82 @@ export class ScheduleService {
>;
};
/**
* The attribution-actor of the scheduled pipeline.
* The date and time the pipeline was last updated.
*/
"attribution-actor": "current" | "system";
"updated-at": string;
/**
* Name of the schedule.
*/
name: string;
/**
* The date and time the pipeline was created.
*/
"created-at": string;
/**
* The project-slug for the schedule
*/
"project-slug": string;
/**
* Pipeline parameters represented as key-value pairs. Must contain branch or tag.
*/
parameters: Record<string, number | string | boolean>;
/**
* The attribution actor who will run the scheduled pipeline.
*/
actor: {
/**
* The unique ID of the user.
*/
id: string;
/**
* The login information for the user on the VCS.
*/
login: string;
/**
* The name of the user.
*/
name: string;
};
/**
* Description of the schedule.
*/
description?: string;
};
}): CancelablePromise<{
message?: string;
description: string;
}>;
/**
* A token to pass as a `page-token` query parameter to return the next page of results.
*/
next_page_token: string;
}> {
return __request(OpenAPI, {
method: "POST",
method: "GET",
url: "/project/{project-slug}/schedule",
path: {
"project-slug": projectSlug,
},
body: requestBody,
mediaType: "application/json",
query: {
"page-token": pageToken,
},
});
}
/**
* Get all schedules
* Returns all schedules for this project.
* @returns any A sequence of schedules.
* Create a schedule
* Creates a schedule and returns the created schedule.
* @returns any Error response.
* @throws ApiError
*/
public static listSchedulesForProject({
public static createSchedule({
projectSlug,
pageToken,
requestBody,
}: {
/**
* Project slug in the form `vcs-slug/org-name/repo-name`. The `/` characters may be URL-escaped.
*/
projectSlug: string;
/**
* A token to retrieve the next page of results.
*/
pageToken?: string;
}): CancelablePromise<{
items: Array<{
requestBody?: {
/**
* The unique ID of the schedule.
* Name of the schedule.
*/
id: string;
name: string;
/**
* Timetable that specifies when a schedule triggers.
*/
Expand Down Expand Up @@ -228,61 +260,29 @@ export class ScheduleService {
>;
};
/**
* The date and time the pipeline was last updated.
*/
"updated-at": string;
/**
* Name of the schedule.
*/
name: string;
/**
* The date and time the pipeline was created.
*/
"created-at": string;
/**
* The project-slug for the schedule
* The attribution-actor of the scheduled pipeline.
*/
"project-slug": string;
"attribution-actor": "current" | "system";
/**
* Pipeline parameters represented as key-value pairs. Must contain branch or tag.
*/
parameters: Record<string, number | string | boolean>;
/**
* The attribution actor who will run the scheduled pipeline.
*/
actor: {
/**
* The unique ID of the user.
*/
id: string;
/**
* The login information for the user on the VCS.
*/
login: string;
/**
* The name of the user.
*/
name: string;
};
/**
* Description of the schedule.
*/
description: string;
}>;
/**
* A token to pass as a `page-token` query parameter to return the next page of results.
*/
next_page_token: string;
description?: string;
};
}): CancelablePromise<{
message?: string;
}> {
return __request(OpenAPI, {
method: "GET",
method: "POST",
url: "/project/{project-slug}/schedule",
path: {
"project-slug": projectSlug,
},
query: {
"page-token": pageToken,
},
body: requestBody,
mediaType: "application/json",
});
}
/**
Expand Down
Loading

0 comments on commit b3b6a2d

Please sign in to comment.