Skip to content

Commit

Permalink
Merge pull request #31 from mkusaka/update-20220608T000303
Browse files Browse the repository at this point in the history
  • Loading branch information
mkusaka authored Jun 8, 2022
2 parents fdbca51 + 02f5930 commit 3e73d48
Show file tree
Hide file tree
Showing 6 changed files with 1,086 additions and 1,086 deletions.
42 changes: 21 additions & 21 deletions client/services/ContextService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,56 +110,56 @@ 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,
}: {
/** ID of the context (UUID) **/
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,
}: {
/** ID of the context (UUID) **/
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
88 changes: 44 additions & 44 deletions client/services/PipelineService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export class PipelineService {
* The number of the pipeline.
*/
number: number;
trigger_parameters?: Record<string, number | string | boolean>;
trigger_parameters?: Record<string, string | number | boolean>;
/**
* The current state of the pipeline.
*/
Expand Down Expand Up @@ -240,7 +240,7 @@ export class PipelineService {
* The number of the pipeline.
*/
number: number;
trigger_parameters?: Record<string, number | string | boolean>;
trigger_parameters?: Record<string, string | number | boolean>;
/**
* The current state of the pipeline.
*/
Expand Down Expand Up @@ -455,45 +455,6 @@ export class PipelineService {
},
});
}
/**
* Trigger a new pipeline
* Triggers a new pipeline on the project.
* @returns any Error response.
* @throws ApiError
*/
public static triggerPipeline({
projectSlug,
requestBody,
}: {
/** Project slug in the form `vcs-slug/org-name/repo-name`. The `/` characters may be URL-escaped. **/
projectSlug: string;
requestBody?: {
/**
* The branch where the pipeline ran. The HEAD commit on this branch was used for the pipeline. Note that `branch` and `tag` are mutually exclusive. To trigger a pipeline for a PR by number use `pull/<number>/head` for the PR ref or `pull/<number>/merge` for the merge ref (GitHub only).
*/
branch?: string;
/**
* The tag used by the pipeline. The commit that this tag points to was used for the pipeline. Note that `branch` and `tag` are mutually exclusive.
*/
tag?: string;
/**
* An object containing pipeline parameters and their values.
*/
parameters?: Record<string, number | string | boolean>;
};
}): CancelablePromise<{
message?: string;
}> {
return __request(OpenAPI, {
method: "POST",
url: "/project/{project-slug}/pipeline",
path: {
"project-slug": projectSlug,
},
body: requestBody,
mediaType: "application/json",
});
}
/**
* Get all pipelines
* Returns all pipelines for this project.
Expand Down Expand Up @@ -548,7 +509,7 @@ export class PipelineService {
* The number of the pipeline.
*/
number: number;
trigger_parameters?: Record<string, number | string | boolean>;
trigger_parameters?: Record<string, string | number | boolean>;
/**
* The current state of the pipeline.
*/
Expand Down Expand Up @@ -651,6 +612,45 @@ export class PipelineService {
},
});
}
/**
* Trigger a new pipeline
* Triggers a new pipeline on the project.
* @returns any Error response.
* @throws ApiError
*/
public static triggerPipeline({
projectSlug,
requestBody,
}: {
/** Project slug in the form `vcs-slug/org-name/repo-name`. The `/` characters may be URL-escaped. **/
projectSlug: string;
requestBody?: {
/**
* The branch where the pipeline ran. The HEAD commit on this branch was used for the pipeline. Note that `branch` and `tag` are mutually exclusive. To trigger a pipeline for a PR by number use `pull/<number>/head` for the PR ref or `pull/<number>/merge` for the merge ref (GitHub only).
*/
branch?: string;
/**
* The tag used by the pipeline. The commit that this tag points to was used for the pipeline. Note that `branch` and `tag` are mutually exclusive.
*/
tag?: string;
/**
* An object containing pipeline parameters and their values.
*/
parameters?: Record<string, number | string | boolean>;
};
}): CancelablePromise<{
message?: string;
}> {
return __request(OpenAPI, {
method: "POST",
url: "/project/{project-slug}/pipeline",
path: {
"project-slug": projectSlug,
},
body: requestBody,
mediaType: "application/json",
});
}
/**
* Get your pipelines
* Returns a sequence of all pipelines for this project triggered by the user.
Expand Down Expand Up @@ -702,7 +702,7 @@ export class PipelineService {
* The number of the pipeline.
*/
number: number;
trigger_parameters?: Record<string, number | string | boolean>;
trigger_parameters?: Record<string, string | number | boolean>;
/**
* The current state of the pipeline.
*/
Expand Down Expand Up @@ -854,7 +854,7 @@ export class PipelineService {
* The number of the pipeline.
*/
number: number;
trigger_parameters?: Record<string, number | string | boolean>;
trigger_parameters?: Record<string, string | number | boolean>;
/**
* The current state of the pipeline.
*/
Expand Down
84 changes: 42 additions & 42 deletions client/services/ProjectService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -211,18 +211,18 @@ export class ProjectService {
});
}
/**
* 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 @@ -231,33 +231,33 @@ 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",
});
}
/**
* 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 @@ -266,27 +266,27 @@ 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",
});
}
/**
* 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 @@ -296,12 +296,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 All @@ -310,12 +314,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 @@ -325,16 +329,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 Down
Loading

0 comments on commit 3e73d48

Please sign in to comment.