Skip to content

Commit

Permalink
Merge pull request #81 from mkusaka/update-20220914T000329
Browse files Browse the repository at this point in the history
  • Loading branch information
mkusaka authored Sep 14, 2022
2 parents 596dfb9 + 294a8bb commit f248f28
Show file tree
Hide file tree
Showing 5 changed files with 1,279 additions and 1,279 deletions.
108 changes: 54 additions & 54 deletions client/services/ContextService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,12 @@ export class ContextService {
});
}
/**
* Delete a context
* @returns any A confirmation message
* Get a context
* Returns basic information about a context.
* @returns any The context
* @throws ApiError
*/
public static deleteContext({
public static getContext({
contextId,
}: {
/**
Expand All @@ -131,25 +132,32 @@ export class ContextService {
contextId: string;
}): CancelablePromise<{
/**
* A human-readable message
* The unique ID of the context.
*/
message: string;
id: string;
/**
* The user defined name of the context.
*/
name: string;
/**
* The date and time the context was created.
*/
created_at: string;
}> {
return __request(OpenAPI, {
method: "DELETE",
method: "GET",
url: "/context/{context-id}",
path: {
"context-id": contextId,
},
});
}
/**
* Get a context
* Returns basic information about a context.
* @returns any The context
* Delete a context
* @returns any A confirmation message
* @throws ApiError
*/
public static getContext({
public static deleteContext({
contextId,
}: {
/**
Expand All @@ -158,20 +166,12 @@ export class ContextService {
contextId: string;
}): CancelablePromise<{
/**
* The unique ID of the context.
*/
id: string;
/**
* The user defined name of the context.
*/
name: string;
/**
* The date and time the context was created.
* A human-readable message
*/
created_at: string;
message: string;
}> {
return __request(OpenAPI, {
method: "GET",
method: "DELETE",
url: "/context/{context-id}",
path: {
"context-id": contextId,
Expand Down 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,
},
});
}
}
48 changes: 24 additions & 24 deletions client/services/ProjectService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -225,20 +225,20 @@ export class ProjectService {
});
}
/**
* Create an environment variable
* Creates a new environment variable.
* @returns any Error response.
* List all environment variables
* Returns four 'x' characters, in addition to the last four ASCII characters of the value, consistent with the display of environment variable values on the CircleCI website.
* @returns any A sequence of environment variables.
* @throws ApiError
*/
public static createEnvVar({
public static listEnvVars({
projectSlug,
requestBody,
}: {
/**
* Project slug in the form `vcs-slug/org-name/repo-name`. The `/` characters may be URL-escaped.
*/
projectSlug: string;
requestBody?: {
}): CancelablePromise<{
items: Array<{
/**
* The name of the environment variable.
*/
Expand All @@ -247,35 +247,35 @@ export class ProjectService {
* The value of the environment variable.
*/
value: string;
};
}): CancelablePromise<{
message?: 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}/envvar",
path: {
"project-slug": projectSlug,
},
body: requestBody,
mediaType: "application/json",
});
}
/**
* List all environment variables
* Returns four 'x' characters, in addition to the last four ASCII characters of the value, consistent with the display of environment variable values on the CircleCI website.
* @returns any A sequence of environment variables.
* Create an environment variable
* Creates a new environment variable.
* @returns any Error response.
* @throws ApiError
*/
public static listEnvVars({
public static createEnvVar({
projectSlug,
requestBody,
}: {
/**
* Project slug in the form `vcs-slug/org-name/repo-name`. The `/` characters may be URL-escaped.
*/
projectSlug: string;
}): CancelablePromise<{
items: Array<{
requestBody?: {
/**
* The name of the environment variable.
*/
Expand All @@ -284,18 +284,18 @@ export class ProjectService {
* The value of the environment variable.
*/
value: string;
}>;
/**
* A token to pass as a `page-token` query parameter to return the next page of results.
*/
next_page_token: string;
};
}): CancelablePromise<{
message?: string;
}> {
return __request(OpenAPI, {
method: "GET",
method: "POST",
url: "/project/{project-slug}/envvar",
path: {
"project-slug": projectSlug,
},
body: requestBody,
mediaType: "application/json",
});
}
/**
Expand Down
Loading

0 comments on commit f248f28

Please sign in to comment.