Skip to content

Commit

Permalink
Merge pull request #69 from mkusaka/update-20220819T000358
Browse files Browse the repository at this point in the history
  • Loading branch information
mkusaka authored Aug 19, 2022
2 parents 6b1ed6a + d8d5cdd commit 1e6c650
Show file tree
Hide file tree
Showing 5 changed files with 696 additions and 696 deletions.
66 changes: 33 additions & 33 deletions client/services/ContextService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,39 +219,6 @@ 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 @@ -310,4 +277,37 @@ 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,
},
});
}
}
134 changes: 67 additions & 67 deletions client/services/ProjectService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,39 @@ export class ProjectService {
},
});
}
/**
* Create a new checkout key
* Creates a new checkout key. This API request is only usable with a user API token.
* @returns any Error response.
* @throws ApiError
*/
public static createCheckoutKey({
projectSlug,
requestBody,
}: {
/**
* Project slug in the form `vcs-slug/org-name/repo-name`. The `/` characters may be URL-escaped.
*/
projectSlug: string;
requestBody?: {
/**
* The type of checkout key to create. This may be either `deploy-key` or `user-key`.
*/
type: "user-key" | "deploy-key";
};
}): CancelablePromise<{
message?: string;
}> {
return __request(OpenAPI, {
method: "POST",
url: "/project/{project-slug}/checkout-key",
path: {
"project-slug": projectSlug,
},
body: requestBody,
mediaType: "application/json",
});
}
/**
* Get all checkout keys
* Returns a sequence of checkout keys for `:project`.
Expand Down Expand Up @@ -110,36 +143,36 @@ export class ProjectService {
});
}
/**
* Create a new checkout key
* Creates a new checkout key. This API request is only usable with a user API token.
* @returns any Error response.
* Delete a checkout key
* Deletes the checkout key.
* @returns any A confirmation message.
* @throws ApiError
*/
public static createCheckoutKey({
public static deleteCheckoutKey({
projectSlug,
requestBody,
fingerprint,
}: {
/**
* Project slug in the form `vcs-slug/org-name/repo-name`. The `/` characters may be URL-escaped.
*/
projectSlug: string;
requestBody?: {
/**
* The type of checkout key to create. This may be either `deploy-key` or `user-key`.
*/
type: "user-key" | "deploy-key";
};
/**
* An SSH key fingerprint.
*/
fingerprint: string;
}): CancelablePromise<{
message?: string;
/**
* A human-readable message
*/
message: string;
}> {
return __request(OpenAPI, {
method: "POST",
url: "/project/{project-slug}/checkout-key",
method: "DELETE",
url: "/project/{project-slug}/checkout-key/{fingerprint}",
path: {
"project-slug": projectSlug,
fingerprint: fingerprint,
},
body: requestBody,
mediaType: "application/json",
});
}
/**
Expand Down Expand Up @@ -191,39 +224,6 @@ export class ProjectService {
},
});
}
/**
* Delete a checkout key
* Deletes the checkout key.
* @returns any A confirmation message.
* @throws ApiError
*/
public static deleteCheckoutKey({
projectSlug,
fingerprint,
}: {
/**
* Project slug in the form `vcs-slug/org-name/repo-name`. The `/` characters may be URL-escaped.
*/
projectSlug: string;
/**
* An SSH key fingerprint.
*/
fingerprint: string;
}): CancelablePromise<{
/**
* A human-readable message
*/
message: string;
}> {
return __request(OpenAPI, {
method: "DELETE",
url: "/project/{project-slug}/checkout-key/{fingerprint}",
path: {
"project-slug": projectSlug,
fingerprint: fingerprint,
},
});
}
/**
* Create an environment variable
* Creates a new environment variable.
Expand Down Expand Up @@ -299,12 +299,12 @@ export class ProjectService {
});
}
/**
* Get a masked environment variable
* Returns the masked value of environment variable :name.
* @returns any The environment variable.
* Delete an environment variable
* Deletes the environment variable named :name.
* @returns any A confirmation message.
* @throws ApiError
*/
public static getEnvVar({
public static deleteEnvVar({
projectSlug,
name,
}: {
Expand All @@ -318,16 +318,12 @@ export class ProjectService {
name: string;
}): CancelablePromise<{
/**
* The name of the environment variable.
*/
name: string;
/**
* The value of the environment variable.
* A human-readable message
*/
value: string;
message: string;
}> {
return __request(OpenAPI, {
method: "GET",
method: "DELETE",
url: "/project/{project-slug}/envvar/{name}",
path: {
"project-slug": projectSlug,
Expand All @@ -336,12 +332,12 @@ export class ProjectService {
});
}
/**
* Delete an environment variable
* Deletes the environment variable named :name.
* @returns any A confirmation message.
* Get a masked environment variable
* Returns the masked value of environment variable :name.
* @returns any The environment variable.
* @throws ApiError
*/
public static deleteEnvVar({
public static getEnvVar({
projectSlug,
name,
}: {
Expand All @@ -355,12 +351,16 @@ export class ProjectService {
name: string;
}): CancelablePromise<{
/**
* A human-readable message
* The name of the environment variable.
*/
message: string;
name: string;
/**
* The value of the environment variable.
*/
value: string;
}> {
return __request(OpenAPI, {
method: "DELETE",
method: "GET",
url: "/project/{project-slug}/envvar/{name}",
path: {
"project-slug": projectSlug,
Expand Down
54 changes: 27 additions & 27 deletions client/services/ScheduleService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -285,33 +285,6 @@ export class ScheduleService {
},
});
}
/**
* Delete a schedule
* Deletes the schedule by id.
* @returns any A confirmation message.
* @throws ApiError
*/
public static deleteScheduleById({
scheduleId,
}: {
/**
* The unique ID of the schedule.
*/
scheduleId: string;
}): CancelablePromise<{
/**
* A human-readable message
*/
message: string;
}> {
return __request(OpenAPI, {
method: "DELETE",
url: "/schedule/{schedule-id}",
path: {
"schedule-id": scheduleId,
},
});
}
/**
* Update a schedule
* Updates a schedule and returns the updated schedule.
Expand Down Expand Up @@ -519,6 +492,33 @@ export class ScheduleService {
mediaType: "application/json",
});
}
/**
* Delete a schedule
* Deletes the schedule by id.
* @returns any A confirmation message.
* @throws ApiError
*/
public static deleteScheduleById({
scheduleId,
}: {
/**
* The unique ID of the schedule.
*/
scheduleId: string;
}): CancelablePromise<{
/**
* A human-readable message
*/
message: string;
}> {
return __request(OpenAPI, {
method: "DELETE",
url: "/schedule/{schedule-id}",
path: {
"schedule-id": scheduleId,
},
});
}
/**
* Get a schedule
* Get a schedule by id.
Expand Down
Loading

0 comments on commit 1e6c650

Please sign in to comment.