@scaleway/sdk-search 1.7.0 → 1.9.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.
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export { API, } from './api.gen.js';
|
|
2
2
|
export * from './marshalling.gen.js';
|
|
3
|
-
export type { BrmServerInfo,
|
|
3
|
+
export type { BrmServerInfo, ObsDatasourceInfo, ObsDatasourceInfoDataType, ObsExporterInfo, ObsExporterInfoDestinationType, Resource, ResourceType, SearchResourcesRequest, SearchResourcesRequestOrderBy, SearchResourcesResponse, ServerlessContainersContainerInfo, ServerlessFunctionsFunctionInfo, ServerlessSqldbBackupInfo, VpcPrivateNetworkInfo, } from './types.gen.js';
|
|
4
4
|
export * as ValidationRules from './validation-rules.gen.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { isJSONObject, unmarshalArrayOfObject } from "@scaleway/sdk-client";
|
|
1
|
+
import { isJSONObject, unmarshalArrayOfObject, unmarshalDate } from "@scaleway/sdk-client";
|
|
2
2
|
//#region src/v1alpha1/marshalling.gen.ts
|
|
3
3
|
const unmarshalBrmServerInfo = (data) => {
|
|
4
4
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'BrmServerInfo' failed as data isn't a dictionary.`);
|
|
@@ -32,6 +32,7 @@ const unmarshalResource = (data) => {
|
|
|
32
32
|
if (!isJSONObject(data)) throw new TypeError(`Unmarshalling the type 'Resource' failed as data isn't a dictionary.`);
|
|
33
33
|
return {
|
|
34
34
|
baremetalServerInfo: data.baremetal_server_info ? unmarshalBrmServerInfo(data.baremetal_server_info) : void 0,
|
|
35
|
+
createdAt: unmarshalDate(data.created_at),
|
|
35
36
|
global: data.global,
|
|
36
37
|
id: data.id,
|
|
37
38
|
name: data.name,
|
|
@@ -44,6 +45,7 @@ const unmarshalResource = (data) => {
|
|
|
44
45
|
serverlessFunctionsFunctionInfo: data.serverless_functions_function_info ? unmarshalServerlessFunctionsFunctionInfo(data.serverless_functions_function_info) : void 0,
|
|
45
46
|
serverlessSqldbBackupInfo: data.serverless_sqldb_backup_info ? unmarshalServerlessSqldbBackupInfo(data.serverless_sqldb_backup_info) : void 0,
|
|
46
47
|
type: data.type,
|
|
48
|
+
updatedAt: unmarshalDate(data.updated_at),
|
|
47
49
|
vpcPrivateNetworkInfo: data.vpc_private_network_info ? unmarshalVpcPrivateNetworkInfo(data.vpc_private_network_info) : void 0,
|
|
48
50
|
zone: data.zone
|
|
49
51
|
};
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import type { Region as ScwRegion, Zone as ScwZone } from '@scaleway/sdk-client';
|
|
2
|
-
export type Locality = 'unknown_locality' | 'global' | 'fr_rz' | 'fr_srr' | 'fr_srr_1' | 'fr_par' | 'fr_par_1' | 'fr_par_2' | 'fr_par_3' | 'fr_par_4' | 'nl_ams' | 'nl_ams_1' | 'nl_ams_2' | 'nl_ams_3' | 'pl_waw' | 'pl_waw_1' | 'pl_waw_2' | 'pl_waw_3' | 'fr_int' | 'fr_int_1' | 'fr_lab' | 'fr_lab_1' | 'it_mil' | 'it_mil_1';
|
|
3
2
|
export type ObsDatasourceInfoDataType = 'unknown_data_type' | 'metrics' | 'logs' | 'traces';
|
|
4
3
|
export type ObsExporterInfoDestinationType = 'unknown_destination_type' | 'datadog' | 'otlp';
|
|
5
|
-
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' | 'kafk_cluster' | 'iam_api_key' | 'iam_application' | 'iam_user' | 'iam_group' | 'iam_policy' | 'sedb_cluster' | 'autoscaling_group';
|
|
4
|
+
export type ResourceType = 'unknown_type' | 'instance_server' | 'instance_volume' | 'instance_image' | 'instance_security_group' | 'instance_private_nic' | 'instance_snapshot' | 'instance_placement_group' | 'instance_template' | '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' | 'kafk_cluster' | 'iam_api_key' | 'iam_application' | 'iam_user' | 'iam_group' | 'iam_policy' | 'sedb_cluster' | 'autoscaling_group';
|
|
6
5
|
export type SearchResourcesRequestOrderBy = 'relevance' | 'created_at_asc' | 'created_at_desc' | 'modified_at_asc' | 'modified_at_desc' | 'name_asc' | 'name_desc' | 'type_asc' | 'type_desc';
|
|
7
6
|
export interface BrmServerInfo {
|
|
8
7
|
ip: string;
|
|
@@ -91,6 +90,14 @@ export interface Resource {
|
|
|
91
90
|
* One-of ('info'): at most one of 'vpcPrivateNetworkInfo', 'serverlessFunctionsFunctionInfo', 'serverlessContainersContainerInfo', 'baremetalServerInfo', 'serverlessSqldbBackupInfo', 'obsDatasourceInfo', 'obsExporterInfo' could be set.
|
|
92
91
|
*/
|
|
93
92
|
serverlessContainersContainerInfo?: ServerlessContainersContainerInfo;
|
|
93
|
+
/**
|
|
94
|
+
* Creation date.
|
|
95
|
+
*/
|
|
96
|
+
createdAt?: Date;
|
|
97
|
+
/**
|
|
98
|
+
* Last update date.
|
|
99
|
+
*/
|
|
100
|
+
updatedAt?: Date;
|
|
94
101
|
/**
|
|
95
102
|
*
|
|
96
103
|
* One-of ('info'): at most one of 'vpcPrivateNetworkInfo', 'serverlessFunctionsFunctionInfo', 'serverlessContainersContainerInfo', 'baremetalServerInfo', 'serverlessSqldbBackupInfo', 'obsDatasourceInfo', 'obsExporterInfo' could be set.
|
|
@@ -132,7 +139,7 @@ export type SearchResourcesRequest = {
|
|
|
132
139
|
/**
|
|
133
140
|
* List of scopes (zones, regions, or global) to filter the resources by.
|
|
134
141
|
*/
|
|
135
|
-
localities?:
|
|
142
|
+
localities?: string[];
|
|
136
143
|
/**
|
|
137
144
|
* Filter resources created after this timestamp.
|
|
138
145
|
*/
|