Skip to content

Commit

Permalink
Merge pull request #47 from mkusaka/update-20220714T000248
Browse files Browse the repository at this point in the history
  • Loading branch information
mkusaka authored Jul 14, 2022
2 parents ce9ca89 + 390372a commit dac45a9
Show file tree
Hide file tree
Showing 5 changed files with 877 additions and 877 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,
},
});
}
}
66 changes: 33 additions & 33 deletions client/services/ProjectService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,39 +60,6 @@ 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 @@ -142,6 +109,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",
});
}
/**
* Delete a checkout key
* Deletes the checkout key.
Expand Down
Loading

0 comments on commit dac45a9

Please sign in to comment.