@scaleway/sdk-search 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This file is automatically generated
|
|
3
|
+
* PLEASE DO NOT EDIT HERE
|
|
4
|
+
*/
|
|
5
|
+
export declare const pkgMetadata: {
|
|
6
|
+
readonly name: "@scaleway/sdk-search";
|
|
7
|
+
readonly namespace: "search";
|
|
8
|
+
readonly displayName: "Search";
|
|
9
|
+
readonly versions: readonly ["v1alpha1"];
|
|
10
|
+
};
|
|
11
|
+
export type Metadata = typeof pkgMetadata;
|
|
12
|
+
export default pkgMetadata;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
//#region src/metadata.gen.ts
|
|
2
|
+
/**
|
|
3
|
+
* This file is automatically generated
|
|
4
|
+
* PLEASE DO NOT EDIT HERE
|
|
5
|
+
*/
|
|
6
|
+
const pkgMetadata = {
|
|
7
|
+
name: "@scaleway/sdk-search",
|
|
8
|
+
namespace: "search",
|
|
9
|
+
displayName: "Search",
|
|
10
|
+
versions: ["v1alpha1"]
|
|
11
|
+
};
|
|
12
|
+
//#endregion
|
|
13
|
+
export { pkgMetadata as default, pkgMetadata };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { API, } from './api.gen.js';
|
|
2
2
|
export * from './marshalling.gen.js';
|
|
3
|
-
export type { BrmServerInfo, Resource, ResourceType, SearchResourcesRequest, SearchResourcesResponse, ServerlessContainersContainerInfo, ServerlessFunctionsFunctionInfo, ServerlessSqldbBackupInfo, VpcPrivateNetworkInfo, } from './types.gen.js';
|
|
3
|
+
export type { BrmServerInfo, ObsDatasourceInfo, ObsDatasourceInfoDataType, ObsExporterInfo, ObsExporterInfoDestinationType, Resource, ResourceType, SearchResourcesRequest, SearchResourcesResponse, ServerlessContainersContainerInfo, ServerlessFunctionsFunctionInfo, ServerlessSqldbBackupInfo, VpcPrivateNetworkInfo, } from './types.gen.js';
|
|
4
4
|
export * as ValidationRules from './validation-rules.gen.js';
|
|
@@ -4,6 +4,14 @@ const unmarshalBrmServerInfo = (data) => {
|
|
|
4
4
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'BrmServerInfo' failed as data isn't a dictionary.`);
|
|
5
5
|
return { ip: data.ip };
|
|
6
6
|
};
|
|
7
|
+
const unmarshalObsDatasourceInfo = (data) => {
|
|
8
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ObsDatasourceInfo' failed as data isn't a dictionary.`);
|
|
9
|
+
return { type: data.type };
|
|
10
|
+
};
|
|
11
|
+
const unmarshalObsExporterInfo = (data) => {
|
|
12
|
+
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ObsExporterInfo' failed as data isn't a dictionary.`);
|
|
13
|
+
return { destinationType: data.destination_type };
|
|
14
|
+
};
|
|
7
15
|
const unmarshalServerlessContainersContainerInfo = (data) => {
|
|
8
16
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'ServerlessContainersContainerInfo' failed as data isn't a dictionary.`);
|
|
9
17
|
return { namespaceId: data.namespace_id };
|
|
@@ -27,6 +35,8 @@ const unmarshalResource = (data) => {
|
|
|
27
35
|
global: data.global,
|
|
28
36
|
id: data.id,
|
|
29
37
|
name: data.name,
|
|
38
|
+
obsDatasourceInfo: data.obs_datasource_info ? unmarshalObsDatasourceInfo(data.obs_datasource_info) : void 0,
|
|
39
|
+
obsExporterInfo: data.obs_exporter_info ? unmarshalObsExporterInfo(data.obs_exporter_info) : void 0,
|
|
30
40
|
organizationId: data.organization_id,
|
|
31
41
|
projectId: data.project_id,
|
|
32
42
|
region: data.region,
|
|
@@ -1,8 +1,16 @@
|
|
|
1
1
|
import type { Region as ScwRegion, Zone as ScwZone } from '@scaleway/sdk-client';
|
|
2
|
-
export type
|
|
2
|
+
export type ObsDatasourceInfoDataType = 'unknown_data_type' | 'metrics' | 'logs' | 'traces';
|
|
3
|
+
export type ObsExporterInfoDestinationType = 'unknown_destination_type' | 'datadog' | 'otlp';
|
|
4
|
+
export type ResourceType = 'unknown_type' | 'instance_server' | 'instance_volume' | 'instance_image' | 'instance_security_group' | 'instance_private_nic' | 'instance_snapshot' | 'instance_placement_group' | 'k8s_cluster' | 'k8s_pool' | 'k8s_node' | 'domain_domain' | 'dns_zone' | 'vpc_private_network' | 'vpc_vpc' | 'vpg_gateway' | 'apple_silicon_server' | 'rdb_instance' | 'rdb_snapshot' | 'rdb_backup' | 'baremetal_server' | 'tem_domain' | 'lb_server' | 'serverless_functions_function' | 'serverless_containers_container' | 'wbh_hosting' | 'redis_cluster' | 'sm_secret' | 'kms_key' | 'edg_pipeline' | 'mnq_nats_account' | 'sbs_volume' | 'sbs_snapshot' | 'serverless_job_definition' | 'serverless_sqldb_database' | 'serverless_sqldb_backup' | 'ddl_datalab' | 'mgdb_instance' | 'mgdb_snapshot' | 'ifr_deployment' | 'ifr_model' | 'gapi_batch' | 'dtwh_deployment' | 'obs_datasource' | 'obs_exporter' | 'svpn_vpn_gateway' | 'svpn_customer_gateway' | 'svpn_connection' | 'svpn_routing_policy';
|
|
3
5
|
export interface BrmServerInfo {
|
|
4
6
|
ip: string;
|
|
5
7
|
}
|
|
8
|
+
export interface ObsDatasourceInfo {
|
|
9
|
+
type: ObsDatasourceInfoDataType;
|
|
10
|
+
}
|
|
11
|
+
export interface ObsExporterInfo {
|
|
12
|
+
destinationType: ObsExporterInfoDestinationType;
|
|
13
|
+
}
|
|
6
14
|
export interface ServerlessContainersContainerInfo {
|
|
7
15
|
/**
|
|
8
16
|
* ID of the Namespace the Serverless Container belongs to.
|
|
@@ -66,31 +74,41 @@ export interface Resource {
|
|
|
66
74
|
/**
|
|
67
75
|
* Additional information for a VPC Private Network.
|
|
68
76
|
*
|
|
69
|
-
* One-of ('info'): at most one of 'vpcPrivateNetworkInfo', 'serverlessFunctionsFunctionInfo', 'serverlessContainersContainerInfo', 'baremetalServerInfo', 'serverlessSqldbBackupInfo' could be set.
|
|
77
|
+
* One-of ('info'): at most one of 'vpcPrivateNetworkInfo', 'serverlessFunctionsFunctionInfo', 'serverlessContainersContainerInfo', 'baremetalServerInfo', 'serverlessSqldbBackupInfo', 'obsDatasourceInfo', 'obsExporterInfo' could be set.
|
|
70
78
|
*/
|
|
71
79
|
vpcPrivateNetworkInfo?: VpcPrivateNetworkInfo;
|
|
72
80
|
/**
|
|
73
81
|
* Additional information for a Serverless Function.
|
|
74
82
|
*
|
|
75
|
-
* One-of ('info'): at most one of 'vpcPrivateNetworkInfo', 'serverlessFunctionsFunctionInfo', 'serverlessContainersContainerInfo', 'baremetalServerInfo', 'serverlessSqldbBackupInfo' could be set.
|
|
83
|
+
* One-of ('info'): at most one of 'vpcPrivateNetworkInfo', 'serverlessFunctionsFunctionInfo', 'serverlessContainersContainerInfo', 'baremetalServerInfo', 'serverlessSqldbBackupInfo', 'obsDatasourceInfo', 'obsExporterInfo' could be set.
|
|
76
84
|
*/
|
|
77
85
|
serverlessFunctionsFunctionInfo?: ServerlessFunctionsFunctionInfo;
|
|
78
86
|
/**
|
|
79
87
|
* Additional information for a Serverless Container.
|
|
80
88
|
*
|
|
81
|
-
* One-of ('info'): at most one of 'vpcPrivateNetworkInfo', 'serverlessFunctionsFunctionInfo', 'serverlessContainersContainerInfo', 'baremetalServerInfo', 'serverlessSqldbBackupInfo' could be set.
|
|
89
|
+
* One-of ('info'): at most one of 'vpcPrivateNetworkInfo', 'serverlessFunctionsFunctionInfo', 'serverlessContainersContainerInfo', 'baremetalServerInfo', 'serverlessSqldbBackupInfo', 'obsDatasourceInfo', 'obsExporterInfo' could be set.
|
|
82
90
|
*/
|
|
83
91
|
serverlessContainersContainerInfo?: ServerlessContainersContainerInfo;
|
|
84
92
|
/**
|
|
85
93
|
*
|
|
86
|
-
* One-of ('info'): at most one of 'vpcPrivateNetworkInfo', 'serverlessFunctionsFunctionInfo', 'serverlessContainersContainerInfo', 'baremetalServerInfo', 'serverlessSqldbBackupInfo' could be set.
|
|
94
|
+
* One-of ('info'): at most one of 'vpcPrivateNetworkInfo', 'serverlessFunctionsFunctionInfo', 'serverlessContainersContainerInfo', 'baremetalServerInfo', 'serverlessSqldbBackupInfo', 'obsDatasourceInfo', 'obsExporterInfo' could be set.
|
|
87
95
|
*/
|
|
88
96
|
baremetalServerInfo?: BrmServerInfo;
|
|
89
97
|
/**
|
|
90
98
|
*
|
|
91
|
-
* One-of ('info'): at most one of 'vpcPrivateNetworkInfo', 'serverlessFunctionsFunctionInfo', 'serverlessContainersContainerInfo', 'baremetalServerInfo', 'serverlessSqldbBackupInfo' could be set.
|
|
99
|
+
* One-of ('info'): at most one of 'vpcPrivateNetworkInfo', 'serverlessFunctionsFunctionInfo', 'serverlessContainersContainerInfo', 'baremetalServerInfo', 'serverlessSqldbBackupInfo', 'obsDatasourceInfo', 'obsExporterInfo' could be set.
|
|
92
100
|
*/
|
|
93
101
|
serverlessSqldbBackupInfo?: ServerlessSqldbBackupInfo;
|
|
102
|
+
/**
|
|
103
|
+
*
|
|
104
|
+
* One-of ('info'): at most one of 'vpcPrivateNetworkInfo', 'serverlessFunctionsFunctionInfo', 'serverlessContainersContainerInfo', 'baremetalServerInfo', 'serverlessSqldbBackupInfo', 'obsDatasourceInfo', 'obsExporterInfo' could be set.
|
|
105
|
+
*/
|
|
106
|
+
obsDatasourceInfo?: ObsDatasourceInfo;
|
|
107
|
+
/**
|
|
108
|
+
*
|
|
109
|
+
* One-of ('info'): at most one of 'vpcPrivateNetworkInfo', 'serverlessFunctionsFunctionInfo', 'serverlessContainersContainerInfo', 'baremetalServerInfo', 'serverlessSqldbBackupInfo', 'obsDatasourceInfo', 'obsExporterInfo' could be set.
|
|
110
|
+
*/
|
|
111
|
+
obsExporterInfo?: ObsExporterInfo;
|
|
94
112
|
}
|
|
95
113
|
export type SearchResourcesRequest = {
|
|
96
114
|
/**
|