Skip to content

Commit

Permalink
daily update 20220721T000324
Browse files Browse the repository at this point in the history
  • Loading branch information
actions-user committed Jul 21, 2022
1 parent 8d4aaf8 commit 3b6e0ab
Show file tree
Hide file tree
Showing 6 changed files with 644 additions and 644 deletions.
178 changes: 89 additions & 89 deletions client/services/ContextService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,62 +2,6 @@ import type { CancelablePromise } from "../core/CancelablePromise.ts";
import { OpenAPI } from "../core/OpenAPI.ts";
import { request as __request } from "../core/request.ts";
export class ContextService {
/**
* Create a new context
* @returns any The new context
* @throws ApiError
*/
public static createContext({
requestBody,
}: {
requestBody?: {
/**
* The user defined name of the context.
*/
name: string;
owner:
| {
/**
* The unique ID of the owner of the context. Specify either this or slug.
*/
id: string;
/**
* The type of the owner. Defaults to "organization". Accounts are only used as context owners in server.
*/
type?: "account" | "organization";
}
| {
/**
* A string that represents an organization. Specify either this or id. Cannot be used for accounts.
*/
slug: string;
/**
* The type of owner. Defaults to "organization". Accounts are only used as context owners in server and must be specified by an id instead of a slug.
*/
type?: "organization";
};
};
}): 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.
*/
created_at: string;
}> {
return __request(OpenAPI, {
method: "POST",
url: "/context",
body: requestBody,
mediaType: "application/json",
});
}
/**
* List contexts
* List all contexts for an owner.
Expand Down Expand Up @@ -117,6 +61,62 @@ export class ContextService {
},
});
}
/**
* Create a new context
* @returns any The new context
* @throws ApiError
*/
public static createContext({
requestBody,
}: {
requestBody?: {
/**
* The user defined name of the context.
*/
name: string;
owner:
| {
/**
* The unique ID of the owner of the context. Specify either this or slug.
*/
id: string;
/**
* The type of the owner. Defaults to "organization". Accounts are only used as context owners in server.
*/
type?: "account" | "organization";
}
| {
/**
* A string that represents an organization. Specify either this or id. Cannot be used for accounts.
*/
slug: string;
/**
* The type of owner. Defaults to "organization". Accounts are only used as context owners in server and must be specified by an id instead of a slug.
*/
type?: "organization";
};
};
}): 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.
*/
created_at: string;
}> {
return __request(OpenAPI, {
method: "POST",
url: "/context",
body: requestBody,
mediaType: "application/json",
});
}
/**
* Delete a context
* @returns any A confirmation message
Expand Down 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,
},
});
}
}
10 changes: 5 additions & 5 deletions client/services/InsightsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ export class InsightsService {
projectSlug,
workflowName,
branch,
timeseriesGranularity,
granularity,
startDate,
endDate,
}: {
Expand All @@ -252,7 +252,7 @@ export class InsightsService {
/**
* The granularity for which to query timeseries data.
*/
timeseriesGranularity?: "daily" | "hourly";
granularity?: "daily" | "hourly";
/**
* Include only executions that started at or after this date. This must be specified if an end-date is provided.
*/
Expand Down Expand Up @@ -351,7 +351,7 @@ export class InsightsService {
},
query: {
branch: branch,
"timeseries-granularity": timeseriesGranularity,
granularity: granularity,
"start-date": startDate,
"end-date": endDate,
},
Expand Down Expand Up @@ -1010,7 +1010,7 @@ export class InsightsService {
branches?: any;
}): CancelablePromise<{
/**
* Metrics aggregated acrooss a workflow for a given time window.
* Metrics aggregated across a workflow for a given time window.
*/
metrics: {
/**
Expand Down Expand Up @@ -1077,7 +1077,7 @@ export class InsightsService {
throughput: number;
};
/**
* Trends for aggregated metrics acrooss a workflow for a given time window.
* Trends for aggregated metrics across a workflow for a given time window.
*/
trends: {
/**
Expand Down
Loading

0 comments on commit 3b6e0ab

Please sign in to comment.