@scaleway/sdk-search 1.2.0 → 1.3.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.
@@ -10,7 +10,7 @@ var API = class extends API$1 {
10
10
  this.searchResources = (request) => this.client.fetch({
11
11
  method: "GET",
12
12
  path: `/search/v1alpha1/resources`,
13
- urlParams: urlParams(["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId], ["query", request.query])
13
+ urlParams: urlParams(["created_after", request.createdAfter], ["created_before", request.createdBefore], ["localities", request.localities], ["modified_after", request.modifiedAfter], ["modified_before", request.modifiedBefore], ["organization_id", request.organizationId ?? this.client.settings.defaultOrganizationId], ["project_ids", request.projectIds], ["query", request.query], ["types", request.types])
14
14
  }, unmarshalSearchResourcesResponse);
15
15
  }
16
16
  };
@@ -1,4 +1,4 @@
1
1
  export { API, } from './api.gen.js';
2
2
  export * from './marshalling.gen.js';
3
- export type { BrmServerInfo, ObsDatasourceInfo, ObsDatasourceInfoDataType, ObsExporterInfo, ObsExporterInfoDestinationType, Resource, ResourceType, SearchResourcesRequest, SearchResourcesResponse, ServerlessContainersContainerInfo, ServerlessFunctionsFunctionInfo, ServerlessSqldbBackupInfo, VpcPrivateNetworkInfo, } from './types.gen.js';
3
+ export type { BrmServerInfo, Locality, 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';
@@ -1,7 +1,8 @@
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';
2
3
  export type ObsDatasourceInfoDataType = 'unknown_data_type' | 'metrics' | 'logs' | 'traces';
3
4
  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';
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';
5
6
  export interface BrmServerInfo {
6
7
  ip: string;
7
8
  }
@@ -119,6 +120,34 @@ export type SearchResourcesRequest = {
119
120
  * ID of the Organization to search in.
120
121
  */
121
122
  organizationId?: string;
123
+ /**
124
+ * List of Project IDs to filter the resources by.
125
+ */
126
+ projectIds?: string[];
127
+ /**
128
+ * List of resource types to filter the resources by.
129
+ */
130
+ types?: ResourceType[];
131
+ /**
132
+ * List of scopes (zones, regions, or global) to filter the resources by.
133
+ */
134
+ localities?: Locality[];
135
+ /**
136
+ * Filter resources created after this timestamp.
137
+ */
138
+ createdAfter?: Date;
139
+ /**
140
+ * Filter resources created before this timestamp.
141
+ */
142
+ createdBefore?: Date;
143
+ /**
144
+ * Filter resources modified after this timestamp.
145
+ */
146
+ modifiedAfter?: Date;
147
+ /**
148
+ * Filter resources modified before this timestamp.
149
+ */
150
+ modifiedBefore?: Date;
122
151
  };
123
152
  export interface SearchResourcesResponse {
124
153
  /**
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@scaleway/sdk-search",
3
- "version": "1.2.0",
3
+ "version": "1.3.0",
4
4
  "description": "Scaleway SDK search",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {