@daocloud-proto/kairship 0.7.0-363 → 0.7.0-367

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.
@@ -20,4 +20,16 @@ export type GVR = {
20
20
  group?: string
21
21
  version?: string
22
22
  resource?: string
23
+ }
24
+
25
+ export type ClusterAggregationResource = {
26
+ resources?: string[]
27
+ clusterpopagrationpolicies?: string[]
28
+ clusteroverridepolicies?: string[]
29
+ }
30
+
31
+ export type CreateClusterAggregationResourceRequest = {
32
+ instance?: string
33
+ data?: ClusterAggregationResource
34
+ gvr?: GVR[]
23
35
  }
@@ -30,6 +30,7 @@ export type ObjectMeta = {
30
30
  ownerReferences?: OwnerReference[]
31
31
  cluster?: string
32
32
  workspaceAlias?: string
33
+ finalizers?: string[]
33
34
  }
34
35
 
35
36
  export type Selector = {
@@ -29,6 +29,9 @@ export class Aggregation {
29
29
  static CreateAggregationResource(req: KairshipIoApiAggregationV1alpha1Aggregation.CreateAggregationResourceRequest, initReq?: fm.InitReq): Promise<KairshipIoApiAggregationV1alpha1Aggregation.AggregationResource> {
30
30
  return fm.fetchReq<KairshipIoApiAggregationV1alpha1Aggregation.CreateAggregationResourceRequest, KairshipIoApiAggregationV1alpha1Aggregation.AggregationResource>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/namespaces/${req["namespace"]}/aggregationresource`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
31
31
  }
32
+ static CreateClusterAggregationResource(req: KairshipIoApiAggregationV1alpha1Aggregation.CreateClusterAggregationResourceRequest, initReq?: fm.InitReq): Promise<KairshipIoApiAggregationV1alpha1Aggregation.ClusterAggregationResource> {
33
+ return fm.fetchReq<KairshipIoApiAggregationV1alpha1Aggregation.CreateClusterAggregationResourceRequest, KairshipIoApiAggregationV1alpha1Aggregation.ClusterAggregationResource>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/aggregationresource`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
34
+ }
32
35
  }
33
36
  export class Apiextensions {
34
37
  static ListCustomResourceDefinitions(req: KairshipIoApiApiextensionsV1alpha1Custom_resource_definition.ListCustomResourceDefinitionsRequest, initReq?: fm.InitReq): Promise<KairshipIoApiApiextensionsV1alpha1Custom_resource_definition.ListCustomResourceDefinitionsResponse> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kairship",
3
- "version":"0.7.0-363",
3
+ "version":"0.7.0-367",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {