Skip to content

Commit 97def5d

Browse files
authored
cloud + sls autogenerated code (#70)
* cloud autogenerated code * sls autogenerated code
1 parent 495a6b5 commit 97def5d

24 files changed

Lines changed: 2054 additions & 90 deletions

src/cloud/apis.ts

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
/**
2+
* Copyright Elasticsearch B.V. and contributors
3+
* SPDX-License-Identifier: Apache-2.0
4+
*
5+
* This file was auto generated by elastic/elastic-client-generator-js.
6+
* DO NOT MODIFY IT BY HAND. Instead, modify the source open API file,
7+
* and elastic/elastic-client-generator-js to regenerate this file again.
8+
*/
9+
10+
import { accountsApis } from './apis/accounts.ts'
11+
import { authenticationApis } from './apis/authentication.ts'
12+
import { billingCostsAnalysisApis } from './apis/billing-costs-analysis.ts'
13+
import { deploymentTemplatesApis } from './apis/deployment-templates.ts'
14+
import { deploymentsApis } from './apis/deployments.ts'
15+
import { deploymentsTrafficFilterApis } from './apis/deployments-traffic-filter.ts'
16+
import { extensionsApis } from './apis/extensions.ts'
17+
import { organizationsApis } from './apis/organizations.ts'
18+
import { stackApis } from './apis/stack.ts'
19+
import { trustedEnvironmentsApis } from './apis/trusted-environments.ts'
20+
import { userRoleAssignmentsApis } from './apis/user-role-assignments.ts'
21+
import type { CloudApiDefinition } from './types.ts'
22+
23+
/** All Cloud control plane API definitions. */
24+
export const allCloudApis: CloudApiDefinition[] = [
25+
...accountsApis,
26+
...authenticationApis,
27+
...billingCostsAnalysisApis,
28+
...deploymentTemplatesApis,
29+
...deploymentsApis,
30+
...deploymentsTrafficFilterApis,
31+
...extensionsApis,
32+
...organizationsApis,
33+
...stackApis,
34+
...trustedEnvironmentsApis,
35+
...userRoleAssignmentsApis,
36+
]

src/cloud/apis/accounts.ts

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/**
2+
* Copyright Elasticsearch B.V. and contributors
3+
* SPDX-License-Identifier: Apache-2.0
4+
*
5+
* This file was auto generated by elastic/elastic-client-generator-js.
6+
* DO NOT MODIFY IT BY HAND. Instead, modify the source open API file,
7+
* and elastic/elastic-client-generator-js to regenerate this file again.
8+
*/
9+
10+
import type { CloudApiDefinition } from '../types.ts'
11+
12+
export const accountsApis: CloudApiDefinition[] = [
13+
{
14+
name: "get-current-account",
15+
namespace: "accounts",
16+
description: "Fetch current account information",
17+
method: "GET",
18+
path: "/api/v1/account",
19+
},
20+
{
21+
name: "update-current-account",
22+
namespace: "accounts",
23+
description: "Updates the current account",
24+
method: "PUT",
25+
path: "/api/v1/account",
26+
},
27+
{
28+
name: "patch-current-account",
29+
namespace: "accounts",
30+
description: "Updates the current account",
31+
method: "PATCH",
32+
path: "/api/v1/account",
33+
},
34+
]

src/cloud/apis/authentication.ts

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
/**
2+
* Copyright Elasticsearch B.V. and contributors
3+
* SPDX-License-Identifier: Apache-2.0
4+
*
5+
* This file was auto generated by elastic/elastic-client-generator-js.
6+
* DO NOT MODIFY IT BY HAND. Instead, modify the source open API file,
7+
* and elastic/elastic-client-generator-js to regenerate this file again.
8+
*/
9+
10+
import type { CloudApiDefinition } from '../types.ts'
11+
12+
export const authenticationApis: CloudApiDefinition[] = [
13+
{
14+
name: "get-api-keys",
15+
namespace: "authentication",
16+
description: "Get all API keys",
17+
method: "GET",
18+
path: "/api/v1/users/auth/keys",
19+
queryParams: [
20+
{ name: "next_page", type: "string", description: "Pagination cursor to get the next page of records" },
21+
],
22+
},
23+
{
24+
name: "create-api-key",
25+
namespace: "authentication",
26+
description: "Create API key",
27+
method: "POST",
28+
path: "/api/v1/users/auth/keys",
29+
},
30+
{
31+
name: "delete-api-keys",
32+
namespace: "authentication",
33+
description: "Delete API keys",
34+
method: "DELETE",
35+
path: "/api/v1/users/auth/keys",
36+
},
37+
{
38+
name: "get-api-key",
39+
namespace: "authentication",
40+
description: "Get API key",
41+
method: "GET",
42+
path: "/api/v1/users/auth/keys/{api_key_id}",
43+
pathParams: [
44+
{ name: "api_key_id", description: "The API Key ID.", required: true },
45+
],
46+
},
47+
{
48+
name: "delete-api-key",
49+
namespace: "authentication",
50+
description: "Delete API key",
51+
method: "DELETE",
52+
path: "/api/v1/users/auth/keys/{api_key_id}",
53+
pathParams: [
54+
{ name: "api_key_id", description: "The API Key ID.", required: true },
55+
],
56+
},
57+
]
Lines changed: 101 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
/**
2+
* Copyright Elasticsearch B.V. and contributors
3+
* SPDX-License-Identifier: Apache-2.0
4+
*
5+
* This file was auto generated by elastic/elastic-client-generator-js.
6+
* DO NOT MODIFY IT BY HAND. Instead, modify the source open API file,
7+
* and elastic/elastic-client-generator-js to regenerate this file again.
8+
*/
9+
10+
import type { CloudApiDefinition } from '../types.ts'
11+
12+
export const billingCostsAnalysisApis: CloudApiDefinition[] = [
13+
{
14+
name: "get-costs-overview",
15+
namespace: "billing-costs-analysis",
16+
description: "Get costs overview for the organization. Currently unavailable in self-hosted ECE.",
17+
method: "GET",
18+
path: "/api/v1/billing/costs/{organization_id}",
19+
pathParams: [
20+
{ name: "organization_id", description: "Identifier for the organization", required: true },
21+
],
22+
queryParams: [
23+
{ name: "from", type: "string", description: "A datetime for the beginning of the desired range for which to fetch costs. Defaults to start of current month." },
24+
{ name: "to", type: "string", description: "A datetime for the end of the desired range for which to fetch costs. Defaults to the current date." },
25+
],
26+
},
27+
{
28+
name: "get-costs-charts",
29+
namespace: "billing-costs-analysis",
30+
description: "Get charts for the organization. Currently unavailable in self-hosted ECE.",
31+
method: "GET",
32+
path: "/api/v1/billing/costs/{organization_id}/charts",
33+
pathParams: [
34+
{ name: "organization_id", description: "Identifier for the organization", required: true },
35+
],
36+
queryParams: [
37+
{ name: "from", type: "string", description: "A datetime for the beginning of the desired range for which to fetch costs. Defaults to start of current month." },
38+
{ name: "to", type: "string", description: "A datetime for the end of the desired range for which to fetch costs. Defaults to the current date." },
39+
{ name: "bucketing_strategy", type: "string", description: "The desired bucketing strategy for the charts. Defaults to `daily`." },
40+
],
41+
},
42+
{
43+
name: "get-costs-deployments",
44+
namespace: "billing-costs-analysis",
45+
description: "Get deployments costs for the organization. Currently unavailable in self-hosted ECE.",
46+
method: "GET",
47+
path: "/api/v1/billing/costs/{organization_id}/deployments",
48+
pathParams: [
49+
{ name: "organization_id", description: "Identifier for the organization", required: true },
50+
],
51+
queryParams: [
52+
{ name: "from", type: "string", description: "A datetime for the beginning of the desired range for which to fetch activity. Defaults to start of current month." },
53+
{ name: "to", type: "string", description: "A datetime for the end of the desired range for which to fetch activity. Defaults to the current date." },
54+
],
55+
},
56+
{
57+
name: "get-costs-charts-by-deployment",
58+
namespace: "billing-costs-analysis",
59+
description: "Get charts by deployment. Currently unavailable in self-hosted ECE.",
60+
method: "GET",
61+
path: "/api/v1/billing/costs/{organization_id}/deployments/{deployment_id}/charts",
62+
pathParams: [
63+
{ name: "organization_id", description: "Identifier for the organization", required: true },
64+
{ name: "deployment_id", description: "Id of a Deployment", required: true },
65+
],
66+
queryParams: [
67+
{ name: "from", type: "string", description: "A datetime for the beginning of the desired range for which to fetch costs. Defaults to start of current month." },
68+
{ name: "to", type: "string", description: "A datetime for the end of the desired range for which to fetch costs. Defaults to the current date." },
69+
{ name: "bucketing_strategy", type: "string", description: "The desired bucketing strategy for the charts. Defaults to `daily`." },
70+
],
71+
},
72+
{
73+
name: "get-costs-items-by-deployment",
74+
namespace: "billing-costs-analysis",
75+
description: "Get itemized costs by deployments. Currently unavailable in self-hosted ECE.",
76+
method: "GET",
77+
path: "/api/v1/billing/costs/{organization_id}/deployments/{deployment_id}/items",
78+
pathParams: [
79+
{ name: "organization_id", description: "Identifier for the organization", required: true },
80+
{ name: "deployment_id", description: "Id of a Deployment", required: true },
81+
],
82+
queryParams: [
83+
{ name: "from", type: "string", description: "A datetime for the beginning of the desired range for which to fetch costs. Defaults to start of current month." },
84+
{ name: "to", type: "string", description: "A datetime for the end of the desired range for which to fetch costs. Defaults to the current date." },
85+
],
86+
},
87+
{
88+
name: "get-costs-items",
89+
namespace: "billing-costs-analysis",
90+
description: "Get itemized costs for the organization. Currently unavailable in self-hosted ECE.",
91+
method: "GET",
92+
path: "/api/v1/billing/costs/{organization_id}/items",
93+
pathParams: [
94+
{ name: "organization_id", description: "Identifier for the organization", required: true },
95+
],
96+
queryParams: [
97+
{ name: "from", type: "string", description: "A datetime for the beginning of the desired range for which to fetch costs. Defaults to start of current month." },
98+
{ name: "to", type: "string", description: "A datetime for the end of the desired range for which to fetch costs. Defaults to the current date." },
99+
],
100+
},
101+
]
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/**
2+
* Copyright Elasticsearch B.V. and contributors
3+
* SPDX-License-Identifier: Apache-2.0
4+
*
5+
* This file was auto generated by elastic/elastic-client-generator-js.
6+
* DO NOT MODIFY IT BY HAND. Instead, modify the source open API file,
7+
* and elastic/elastic-client-generator-js to regenerate this file again.
8+
*/
9+
10+
import type { CloudApiDefinition } from '../types.ts'
11+
12+
export const deploymentTemplatesApis: CloudApiDefinition[] = [
13+
{
14+
name: "get-deployment-templates-v2",
15+
namespace: "deployment-templates",
16+
description: "Get deployment templates",
17+
method: "GET",
18+
path: "/api/v1/deployments/templates",
19+
queryParams: [
20+
{ name: "metadata", type: "string", description: "An optional key/value pair in the form of (key:value) that will act as a filter and exclude any templates that do not have a matching metadata item associated." },
21+
{ name: "show_instance_configurations", type: "boolean", description: "If true, will return details for each instance configuration referenced by the template." },
22+
{ name: "show_max_zones", type: "boolean", description: "If true, will populate the max_zones field in the instance configurations. Only relevant if show_instance_configurations=true." },
23+
{ name: "stack_version", type: "string", description: "If present, it will cause the returned deployment templates to be adapted to return only the elements allowed in that version." },
24+
{ name: "hide_deprecated", type: "boolean", description: "If true, templates flagged as deprecated will NOT be returned." },
25+
{ name: "region", type: "string", description: "Region of the deployment templates", required: true },
26+
],
27+
},
28+
{
29+
name: "get-deployment-template-v2",
30+
namespace: "deployment-templates",
31+
description: "Get deployment template",
32+
method: "GET",
33+
path: "/api/v1/deployments/templates/{template_id}",
34+
pathParams: [
35+
{ name: "template_id", description: "The identifier for the deployment template.", required: true },
36+
],
37+
queryParams: [
38+
{ name: "show_instance_configurations", type: "boolean", description: "If true, will return details for each instance configuration referenced by the template." },
39+
{ name: "show_max_zones", type: "boolean", description: "If true, will populate the max_zones field in the instance configurations. Only relevant if show_instance_configurations=true." },
40+
{ name: "stack_version", type: "string", description: "If present, it will cause the returned deployment template to be adapted to return only the elements allowed in that version." },
41+
{ name: "region", type: "string", description: "Region of the deployment template", required: true },
42+
],
43+
},
44+
]

0 commit comments

Comments
 (0)