@scaleway/sdk 2.68.0 → 2.70.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.
- package/dist/api/account/v3/api.gen.cjs +23 -0
- package/dist/api/account/v3/api.gen.d.ts +11 -1
- package/dist/api/account/v3/api.gen.js +24 -1
- package/dist/api/account/v3/index.gen.d.ts +1 -1
- package/dist/api/account/v3/marshalling.gen.cjs +171 -0
- package/dist/api/account/v3/marshalling.gen.d.ts +3 -1
- package/dist/api/account/v3/marshalling.gen.js +173 -2
- package/dist/api/account/v3/types.gen.d.ts +93 -0
- package/dist/api/applesilicon/v1alpha1/types.gen.d.ts +3 -2
- package/dist/api/audit_trail/v1alpha1/api.gen.cjs +1 -0
- package/dist/api/audit_trail/v1alpha1/api.gen.js +1 -0
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.cjs +5 -0
- package/dist/api/audit_trail/v1alpha1/marshalling.gen.js +5 -0
- package/dist/api/audit_trail/v1alpha1/types.gen.d.ts +50 -14
- package/dist/api/audit_trail/v1alpha1/validation-rules.gen.cjs +3 -0
- package/dist/api/audit_trail/v1alpha1/validation-rules.gen.d.ts +3 -0
- package/dist/api/audit_trail/v1alpha1/validation-rules.gen.js +3 -0
- package/dist/api/billing/v2beta1/api.gen.cjs +9 -2
- package/dist/api/billing/v2beta1/api.gen.d.ts +9 -2
- package/dist/api/billing/v2beta1/api.gen.js +9 -2
- package/dist/api/billing/v2beta1/types.gen.d.ts +1 -1
- package/dist/api/cockpit/v1/marshalling.gen.cjs +4 -4
- package/dist/api/cockpit/v1/marshalling.gen.js +4 -4
- package/dist/api/cockpit/v1/types.gen.d.ts +3 -3
- package/dist/api/edge_services/v1beta1/api.gen.cjs +1 -1
- package/dist/api/edge_services/v1beta1/api.gen.js +1 -1
- package/dist/api/edge_services/v1beta1/marshalling.gen.cjs +1 -0
- package/dist/api/edge_services/v1beta1/marshalling.gen.d.ts +2 -1
- package/dist/api/edge_services/v1beta1/marshalling.gen.js +1 -0
- package/dist/api/edge_services/v1beta1/types.gen.d.ts +104 -104
- package/dist/api/iam/v1alpha1/api.gen.cjs +8 -0
- package/dist/api/iam/v1alpha1/api.gen.d.ts +2 -1
- package/dist/api/iam/v1alpha1/api.gen.js +9 -1
- package/dist/api/iam/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.cjs +46 -0
- package/dist/api/iam/v1alpha1/marshalling.gen.d.ts +2 -1
- package/dist/api/iam/v1alpha1/marshalling.gen.js +46 -0
- package/dist/api/iam/v1alpha1/types.gen.d.ts +26 -0
- package/dist/api/iam/v1alpha1/validation-rules.gen.cjs +23 -12
- package/dist/api/iam/v1alpha1/validation-rules.gen.d.ts +22 -11
- package/dist/api/iam/v1alpha1/validation-rules.gen.js +23 -12
- package/dist/api/inference/index.gen.cjs +4 -2
- package/dist/api/inference/index.gen.d.ts +1 -0
- package/dist/api/inference/index.gen.js +4 -2
- package/dist/api/inference/v1/api.gen.cjs +274 -0
- package/dist/api/inference/v1/api.gen.d.ts +140 -0
- package/dist/api/inference/v1/api.gen.js +274 -0
- package/dist/api/inference/v1/content.gen.cjs +13 -0
- package/dist/api/inference/v1/content.gen.d.ts +5 -0
- package/dist/api/inference/v1/content.gen.js +13 -0
- package/dist/api/inference/v1/index.gen.cjs +9 -0
- package/dist/api/inference/v1/index.gen.d.ts +4 -0
- package/dist/api/inference/v1/index.gen.js +9 -0
- package/dist/api/inference/v1/marshalling.gen.cjs +260 -0
- package/dist/api/inference/v1/marshalling.gen.d.ts +14 -0
- package/dist/api/inference/v1/marshalling.gen.js +260 -0
- package/dist/api/inference/v1/types.gen.d.ts +395 -0
- package/dist/api/inference/v1/validation-rules.gen.cjs +65 -0
- package/dist/api/inference/v1/validation-rules.gen.d.ts +57 -0
- package/dist/api/inference/v1/validation-rules.gen.js +65 -0
- package/dist/api/instance/v1/index.gen.d.ts +1 -1
- package/dist/api/instance/v1/marshalling.gen.cjs +13 -0
- package/dist/api/instance/v1/marshalling.gen.js +13 -0
- package/dist/api/instance/v1/types.gen.d.ts +10 -0
- package/dist/api/mongodb/v1alpha1/types.gen.d.ts +1 -1
- package/dist/api/secret/v1beta1/api.gen.cjs +2 -34
- package/dist/api/secret/v1beta1/api.gen.d.ts +3 -19
- package/dist/api/secret/v1beta1/api.gen.js +2 -34
- package/dist/api/secret/v1beta1/index.gen.d.ts +1 -1
- package/dist/api/secret/v1beta1/types.gen.d.ts +3 -19
- package/dist/api/tem/v1alpha1/api.gen.cjs +93 -0
- package/dist/api/tem/v1alpha1/api.gen.d.ts +44 -1
- package/dist/api/tem/v1alpha1/api.gen.js +94 -1
- package/dist/api/tem/v1alpha1/index.gen.d.ts +1 -1
- package/dist/api/tem/v1alpha1/marshalling.gen.cjs +114 -0
- package/dist/api/tem/v1alpha1/marshalling.gen.d.ts +7 -1
- package/dist/api/tem/v1alpha1/marshalling.gen.js +114 -0
- package/dist/api/tem/v1alpha1/types.gen.d.ts +162 -6
- package/dist/api/tem/v1alpha1/validation-rules.gen.cjs +10 -0
- package/dist/api/tem/v1alpha1/validation-rules.gen.d.ts +9 -0
- package/dist/api/tem/v1alpha1/validation-rules.gen.js +10 -0
- package/dist/api/vpcgw/v1/api.gen.cjs +7 -0
- package/dist/api/vpcgw/v1/api.gen.d.ts +7 -0
- package/dist/api/vpcgw/v1/api.gen.js +7 -0
- package/dist/api/vpcgw/v1/types.gen.d.ts +1 -0
- package/dist/api/webhosting/v1/index.gen.d.ts +1 -1
- package/dist/api/webhosting/v1/marshalling.gen.cjs +23 -1
- package/dist/api/webhosting/v1/marshalling.gen.js +23 -1
- package/dist/api/webhosting/v1/types.gen.d.ts +51 -12
- package/dist/scw/constants.cjs +1 -1
- package/dist/scw/constants.d.ts +2 -2
- package/dist/scw/constants.js +1 -1
- package/dist/scw/errors/standard/quotas-exceeded-error.cjs +1 -1
- package/dist/scw/errors/standard/quotas-exceeded-error.d.ts +4 -4
- package/dist/scw/errors/standard/quotas-exceeded-error.js +1 -1
- package/package.json +2 -2
|
@@ -89,6 +89,7 @@ const unmarshalResource = (data) => {
|
|
|
89
89
|
createdAt: marshalling.unmarshalDate(data.created_at),
|
|
90
90
|
deletedAt: marshalling.unmarshalDate(data.deleted_at),
|
|
91
91
|
id: data.id,
|
|
92
|
+
keyManagerKeyInfo: data.key_manager_key_info ? unmarshalKeyManagerKeyInfo(data.key_manager_key_info) : void 0,
|
|
92
93
|
keymKeyInfo: data.keym_key_info ? unmarshalKeyManagerKeyInfo(data.keym_key_info) : void 0,
|
|
93
94
|
kubeAclInfo: data.kube_acl_info ? unmarshalKubernetesACLInfo(data.kube_acl_info) : void 0,
|
|
94
95
|
kubeClusterInfo: data.kube_cluster_info ? unmarshalKubernetesClusterInfo(data.kube_cluster_info) : void 0,
|
|
@@ -97,6 +98,10 @@ const unmarshalResource = (data) => {
|
|
|
97
98
|
name: data.name,
|
|
98
99
|
secmSecretInfo: data.secm_secret_info ? unmarshalSecretManagerSecretInfo(data.secm_secret_info) : void 0,
|
|
99
100
|
secmSecretVersionInfo: data.secm_secret_version_info ? unmarshalSecretManagerSecretVersionInfo(data.secm_secret_version_info) : void 0,
|
|
101
|
+
secretManagerSecretInfo: data.secret_manager_secret_info ? unmarshalSecretManagerSecretInfo(data.secret_manager_secret_info) : void 0,
|
|
102
|
+
secretManagerVersionInfo: data.secret_manager_version_info ? unmarshalSecretManagerSecretVersionInfo(
|
|
103
|
+
data.secret_manager_version_info
|
|
104
|
+
) : void 0,
|
|
100
105
|
type: data.type,
|
|
101
106
|
updatedAt: marshalling.unmarshalDate(data.updated_at)
|
|
102
107
|
};
|
|
@@ -87,6 +87,7 @@ const unmarshalResource = (data) => {
|
|
|
87
87
|
createdAt: unmarshalDate(data.created_at),
|
|
88
88
|
deletedAt: unmarshalDate(data.deleted_at),
|
|
89
89
|
id: data.id,
|
|
90
|
+
keyManagerKeyInfo: data.key_manager_key_info ? unmarshalKeyManagerKeyInfo(data.key_manager_key_info) : void 0,
|
|
90
91
|
keymKeyInfo: data.keym_key_info ? unmarshalKeyManagerKeyInfo(data.keym_key_info) : void 0,
|
|
91
92
|
kubeAclInfo: data.kube_acl_info ? unmarshalKubernetesACLInfo(data.kube_acl_info) : void 0,
|
|
92
93
|
kubeClusterInfo: data.kube_cluster_info ? unmarshalKubernetesClusterInfo(data.kube_cluster_info) : void 0,
|
|
@@ -95,6 +96,10 @@ const unmarshalResource = (data) => {
|
|
|
95
96
|
name: data.name,
|
|
96
97
|
secmSecretInfo: data.secm_secret_info ? unmarshalSecretManagerSecretInfo(data.secm_secret_info) : void 0,
|
|
97
98
|
secmSecretVersionInfo: data.secm_secret_version_info ? unmarshalSecretManagerSecretVersionInfo(data.secm_secret_version_info) : void 0,
|
|
99
|
+
secretManagerSecretInfo: data.secret_manager_secret_info ? unmarshalSecretManagerSecretInfo(data.secret_manager_secret_info) : void 0,
|
|
100
|
+
secretManagerVersionInfo: data.secret_manager_version_info ? unmarshalSecretManagerSecretVersionInfo(
|
|
101
|
+
data.secret_manager_version_info
|
|
102
|
+
) : void 0,
|
|
98
103
|
type: data.type,
|
|
99
104
|
updatedAt: unmarshalDate(data.updated_at)
|
|
100
105
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Region as ScwRegion } from '../../../bridge';
|
|
2
2
|
export type ListEventsRequestOrderBy = 'recorded_at_desc' | 'recorded_at_asc';
|
|
3
|
-
export type ResourceType = 'unknown_type' | 'secm_secret' | 'secm_secret_version' | 'kube_cluster' | 'kube_pool' | 'kube_node' | 'kube_acl' | 'keym_key' | 'iam_user' | 'iam_application' | 'iam_group' | 'iam_policy' | 'iam_api_key' | 'iam_ssh_key';
|
|
3
|
+
export type ResourceType = 'unknown_type' | 'secm_secret' | 'secm_secret_version' | 'kube_cluster' | 'kube_pool' | 'kube_node' | 'kube_acl' | 'keym_key' | 'iam_user' | 'iam_application' | 'iam_group' | 'iam_policy' | 'iam_api_key' | 'iam_ssh_key' | 'iam_rule' | 'secret_manager_secret' | 'secret_manager_version' | 'key_manager_key';
|
|
4
4
|
export interface KeyManagerKeyInfo {
|
|
5
5
|
}
|
|
6
6
|
export interface KubernetesACLInfo {
|
|
@@ -32,47 +32,81 @@ export interface Resource {
|
|
|
32
32
|
deletedAt?: Date;
|
|
33
33
|
name?: string;
|
|
34
34
|
/**
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* '
|
|
35
|
+
* @deprecated
|
|
36
|
+
*
|
|
37
|
+
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
|
|
38
|
+
* 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
|
|
39
|
+
* 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
|
|
40
|
+
* 'keyManagerKeyInfo' could be set.
|
|
38
41
|
*/
|
|
39
42
|
secmSecretInfo?: SecretManagerSecretInfo;
|
|
40
43
|
/**
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* '
|
|
44
|
+
* @deprecated
|
|
45
|
+
*
|
|
46
|
+
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
|
|
47
|
+
* 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
|
|
48
|
+
* 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
|
|
49
|
+
* 'keyManagerKeyInfo' could be set.
|
|
44
50
|
*/
|
|
45
51
|
secmSecretVersionInfo?: SecretManagerSecretVersionInfo;
|
|
46
52
|
/**
|
|
47
53
|
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
|
|
48
54
|
* 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
|
|
49
|
-
* 'keymKeyInfo'
|
|
55
|
+
* 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
|
|
56
|
+
* 'keyManagerKeyInfo' could be set.
|
|
50
57
|
*/
|
|
51
58
|
kubeClusterInfo?: KubernetesClusterInfo;
|
|
52
59
|
/**
|
|
53
60
|
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
|
|
54
61
|
* 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
|
|
55
|
-
* 'keymKeyInfo'
|
|
62
|
+
* 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
|
|
63
|
+
* 'keyManagerKeyInfo' could be set.
|
|
56
64
|
*/
|
|
57
65
|
kubePoolInfo?: KubernetesPoolInfo;
|
|
58
66
|
/**
|
|
59
67
|
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
|
|
60
68
|
* 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
|
|
61
|
-
* 'keymKeyInfo'
|
|
69
|
+
* 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
|
|
70
|
+
* 'keyManagerKeyInfo' could be set.
|
|
62
71
|
*/
|
|
63
72
|
kubeNodeInfo?: KubernetesNodeInfo;
|
|
64
73
|
/**
|
|
65
74
|
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
|
|
66
75
|
* 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
|
|
67
|
-
* 'keymKeyInfo'
|
|
76
|
+
* 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
|
|
77
|
+
* 'keyManagerKeyInfo' could be set.
|
|
68
78
|
*/
|
|
69
79
|
kubeAclInfo?: KubernetesACLInfo;
|
|
80
|
+
/**
|
|
81
|
+
* @deprecated
|
|
82
|
+
*
|
|
83
|
+
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
|
|
84
|
+
* 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
|
|
85
|
+
* 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
|
|
86
|
+
* 'keyManagerKeyInfo' could be set.
|
|
87
|
+
*/
|
|
88
|
+
keymKeyInfo?: KeyManagerKeyInfo;
|
|
70
89
|
/**
|
|
71
90
|
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
|
|
72
91
|
* 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
|
|
73
|
-
* 'keymKeyInfo'
|
|
92
|
+
* 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
|
|
93
|
+
* 'keyManagerKeyInfo' could be set.
|
|
74
94
|
*/
|
|
75
|
-
|
|
95
|
+
secretManagerSecretInfo?: SecretManagerSecretInfo;
|
|
96
|
+
/**
|
|
97
|
+
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
|
|
98
|
+
* 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
|
|
99
|
+
* 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
|
|
100
|
+
* 'keyManagerKeyInfo' could be set.
|
|
101
|
+
*/
|
|
102
|
+
secretManagerVersionInfo?: SecretManagerSecretVersionInfo;
|
|
103
|
+
/**
|
|
104
|
+
* One-of ('info'): at most one of 'secmSecretInfo', 'secmSecretVersionInfo',
|
|
105
|
+
* 'kubeClusterInfo', 'kubePoolInfo', 'kubeNodeInfo', 'kubeAclInfo',
|
|
106
|
+
* 'keymKeyInfo', 'secretManagerSecretInfo', 'secretManagerVersionInfo',
|
|
107
|
+
* 'keyManagerKeyInfo' could be set.
|
|
108
|
+
*/
|
|
109
|
+
keyManagerKeyInfo?: KeyManagerKeyInfo;
|
|
76
110
|
}
|
|
77
111
|
export interface ProductService {
|
|
78
112
|
name: string;
|
|
@@ -135,7 +169,7 @@ export type ListEventsRequest = {
|
|
|
135
169
|
organizationId?: string;
|
|
136
170
|
/** (Optional) Returns a paginated list of Scaleway resources' features. */
|
|
137
171
|
resourceType?: ResourceType;
|
|
138
|
-
/** (Optional) Name of the method
|
|
172
|
+
/** (Optional) Name of the method of the API call performed. */
|
|
139
173
|
methodName?: string;
|
|
140
174
|
/**
|
|
141
175
|
* (Optional) HTTP status code of the request. Returns either `200` if the
|
|
@@ -158,6 +192,8 @@ export type ListEventsRequest = {
|
|
|
158
192
|
pageToken?: string;
|
|
159
193
|
/** (Optional) Name of the Scaleway resource in a hyphenated format. */
|
|
160
194
|
productName?: string;
|
|
195
|
+
/** (Optional) Name of the service of the API call performed. */
|
|
196
|
+
serviceName?: string;
|
|
161
197
|
};
|
|
162
198
|
export interface ListEventsResponse {
|
|
163
199
|
/** Single page of events matching the requested criteria. */
|
|
@@ -164,9 +164,16 @@ class API extends api.API {
|
|
|
164
164
|
marshalling_gen.unmarshalListDiscountsResponse
|
|
165
165
|
);
|
|
166
166
|
/**
|
|
167
|
-
* List discounts. List all discounts for your
|
|
167
|
+
* List discounts. List all discounts for your Organization and usable
|
|
168
168
|
* categories, products, offers, references, regions and zones where the
|
|
169
|
-
* discount can be applied.
|
|
169
|
+
* discount can be applied. As a reseller:
|
|
170
|
+
*
|
|
171
|
+
* - If you do not specify an `organization_id` you will list the discounts
|
|
172
|
+
* applied to your own Organization and your customers
|
|
173
|
+
* - If you indicate your `organization_id` you will list only the discounts
|
|
174
|
+
* applied to your Organization
|
|
175
|
+
* - If you indicate `the organization_id` of one of your customers, you will
|
|
176
|
+
* list the discounts applied to their Organization.
|
|
170
177
|
*
|
|
171
178
|
* @param request - The request {@link ListDiscountsRequest}
|
|
172
179
|
* @returns A Promise of ListDiscountsResponse
|
|
@@ -66,9 +66,16 @@ export declare class API extends ParentAPI {
|
|
|
66
66
|
downloadInvoice: (request: Readonly<DownloadInvoiceRequest>) => Promise<Blob>;
|
|
67
67
|
protected pageOfListDiscounts: (request?: Readonly<ListDiscountsRequest>) => Promise<ListDiscountsResponse>;
|
|
68
68
|
/**
|
|
69
|
-
* List discounts. List all discounts for your
|
|
69
|
+
* List discounts. List all discounts for your Organization and usable
|
|
70
70
|
* categories, products, offers, references, regions and zones where the
|
|
71
|
-
* discount can be applied.
|
|
71
|
+
* discount can be applied. As a reseller:
|
|
72
|
+
*
|
|
73
|
+
* - If you do not specify an `organization_id` you will list the discounts
|
|
74
|
+
* applied to your own Organization and your customers
|
|
75
|
+
* - If you indicate your `organization_id` you will list only the discounts
|
|
76
|
+
* applied to your Organization
|
|
77
|
+
* - If you indicate `the organization_id` of one of your customers, you will
|
|
78
|
+
* list the discounts applied to their Organization.
|
|
72
79
|
*
|
|
73
80
|
* @param request - The request {@link ListDiscountsRequest}
|
|
74
81
|
* @returns A Promise of ListDiscountsResponse
|
|
@@ -162,9 +162,16 @@ class API extends API$1 {
|
|
|
162
162
|
unmarshalListDiscountsResponse
|
|
163
163
|
);
|
|
164
164
|
/**
|
|
165
|
-
* List discounts. List all discounts for your
|
|
165
|
+
* List discounts. List all discounts for your Organization and usable
|
|
166
166
|
* categories, products, offers, references, regions and zones where the
|
|
167
|
-
* discount can be applied.
|
|
167
|
+
* discount can be applied. As a reseller:
|
|
168
|
+
*
|
|
169
|
+
* - If you do not specify an `organization_id` you will list the discounts
|
|
170
|
+
* applied to your own Organization and your customers
|
|
171
|
+
* - If you indicate your `organization_id` you will list only the discounts
|
|
172
|
+
* applied to your Organization
|
|
173
|
+
* - If you indicate `the organization_id` of one of your customers, you will
|
|
174
|
+
* list the discounts applied to their Organization.
|
|
168
175
|
*
|
|
169
176
|
* @param request - The request {@link ListDiscountsRequest}
|
|
170
177
|
* @returns A Promise of ListDiscountsResponse
|
|
@@ -50,7 +50,7 @@ export interface Discount {
|
|
|
50
50
|
id: string;
|
|
51
51
|
/** The creation date of the discount. */
|
|
52
52
|
creationDate?: Date;
|
|
53
|
-
/** The
|
|
53
|
+
/** The Organization ID of the discount. */
|
|
54
54
|
organizationId: string;
|
|
55
55
|
/** The description of the discount. */
|
|
56
56
|
description: string;
|
|
@@ -21,8 +21,8 @@ const unmarshalContactPoint = (data) => {
|
|
|
21
21
|
}
|
|
22
22
|
return {
|
|
23
23
|
email: data.email ? unmarshalContactPointEmail(data.email) : void 0,
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
region: data.region,
|
|
25
|
+
sendResolvedNotifications: data.send_resolved_notifications
|
|
26
26
|
};
|
|
27
27
|
};
|
|
28
28
|
const unmarshalDataSource = (data) => {
|
|
@@ -311,7 +311,7 @@ const marshalContactPointEmail = (request, defaults) => ({
|
|
|
311
311
|
});
|
|
312
312
|
const marshalRegionalApiCreateContactPointRequest = (request, defaults) => ({
|
|
313
313
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
314
|
-
|
|
314
|
+
send_resolved_notifications: request.sendResolvedNotifications,
|
|
315
315
|
...marshalling.resolveOneOf([
|
|
316
316
|
{
|
|
317
317
|
param: "email",
|
|
@@ -356,7 +356,7 @@ const marshalRegionalApiTriggerTestAlertRequest = (request, defaults) => ({
|
|
|
356
356
|
});
|
|
357
357
|
const marshalRegionalApiUpdateContactPointRequest = (request, defaults) => ({
|
|
358
358
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
359
|
-
|
|
359
|
+
send_resolved_notifications: request.sendResolvedNotifications,
|
|
360
360
|
...marshalling.resolveOneOf([
|
|
361
361
|
{
|
|
362
362
|
param: "email",
|
|
@@ -19,8 +19,8 @@ const unmarshalContactPoint = (data) => {
|
|
|
19
19
|
}
|
|
20
20
|
return {
|
|
21
21
|
email: data.email ? unmarshalContactPointEmail(data.email) : void 0,
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
region: data.region,
|
|
23
|
+
sendResolvedNotifications: data.send_resolved_notifications
|
|
24
24
|
};
|
|
25
25
|
};
|
|
26
26
|
const unmarshalDataSource = (data) => {
|
|
@@ -309,7 +309,7 @@ const marshalContactPointEmail = (request, defaults) => ({
|
|
|
309
309
|
});
|
|
310
310
|
const marshalRegionalApiCreateContactPointRequest = (request, defaults) => ({
|
|
311
311
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
312
|
-
|
|
312
|
+
send_resolved_notifications: request.sendResolvedNotifications,
|
|
313
313
|
...resolveOneOf([
|
|
314
314
|
{
|
|
315
315
|
param: "email",
|
|
@@ -354,7 +354,7 @@ const marshalRegionalApiTriggerTestAlertRequest = (request, defaults) => ({
|
|
|
354
354
|
});
|
|
355
355
|
const marshalRegionalApiUpdateContactPointRequest = (request, defaults) => ({
|
|
356
356
|
project_id: request.projectId ?? defaults.defaultProjectId,
|
|
357
|
-
|
|
357
|
+
send_resolved_notifications: request.sendResolvedNotifications,
|
|
358
358
|
...resolveOneOf([
|
|
359
359
|
{
|
|
360
360
|
param: "email",
|
|
@@ -43,7 +43,7 @@ export interface ContactPoint {
|
|
|
43
43
|
/** Region. */
|
|
44
44
|
region: ScwRegion;
|
|
45
45
|
/** Send an email notification when an alert is marked as resolved. */
|
|
46
|
-
|
|
46
|
+
sendResolvedNotifications: boolean;
|
|
47
47
|
}
|
|
48
48
|
/** Data source. */
|
|
49
49
|
export interface DataSource {
|
|
@@ -343,7 +343,7 @@ export type RegionalApiCreateContactPointRequest = {
|
|
|
343
343
|
*/
|
|
344
344
|
email?: ContactPointEmail;
|
|
345
345
|
/** Send an email notification when an alert is marked as resolved. */
|
|
346
|
-
|
|
346
|
+
sendResolvedNotifications?: boolean;
|
|
347
347
|
};
|
|
348
348
|
/** Create a data source. */
|
|
349
349
|
export type RegionalApiCreateDataSourceRequest = {
|
|
@@ -612,7 +612,7 @@ export type RegionalApiUpdateContactPointRequest = {
|
|
|
612
612
|
*/
|
|
613
613
|
email?: ContactPointEmail;
|
|
614
614
|
/** Enable or disable notifications when alert is resolved. */
|
|
615
|
-
|
|
615
|
+
sendResolvedNotifications?: boolean;
|
|
616
616
|
};
|
|
617
617
|
/** Update a data source name. */
|
|
618
618
|
export type RegionalApiUpdateDataSourceRequest = {
|
|
@@ -719,7 +719,7 @@ class API extends api.API {
|
|
|
719
719
|
listRouteRules = (request) => this.client.fetch(
|
|
720
720
|
{
|
|
721
721
|
method: "GET",
|
|
722
|
-
path: `/edge-services/v1beta1/${marshalling.validatePathParam("routeStageId", request.routeStageId)}/route-rules`
|
|
722
|
+
path: `/edge-services/v1beta1/route-stages/${marshalling.validatePathParam("routeStageId", request.routeStageId)}/route-rules`
|
|
723
723
|
},
|
|
724
724
|
marshalling_gen.unmarshalListRouteRulesResponse
|
|
725
725
|
);
|
|
@@ -717,7 +717,7 @@ class API extends API$1 {
|
|
|
717
717
|
listRouteRules = (request) => this.client.fetch(
|
|
718
718
|
{
|
|
719
719
|
method: "GET",
|
|
720
|
-
path: `/edge-services/v1beta1/${validatePathParam("routeStageId", request.routeStageId)}/route-rules`
|
|
720
|
+
path: `/edge-services/v1beta1/route-stages/${validatePathParam("routeStageId", request.routeStageId)}/route-rules`
|
|
721
721
|
},
|
|
722
722
|
unmarshalListRouteRulesResponse
|
|
723
723
|
);
|
|
@@ -770,6 +770,7 @@ exports.marshalCreateWafStageRequest = marshalCreateWafStageRequest;
|
|
|
770
770
|
exports.marshalSelectPlanRequest = marshalSelectPlanRequest;
|
|
771
771
|
exports.marshalSetHeadStageRequest = marshalSetHeadStageRequest;
|
|
772
772
|
exports.marshalSetRouteRulesRequest = marshalSetRouteRulesRequest;
|
|
773
|
+
exports.marshalSetRouteRulesRequestRouteRule = marshalSetRouteRulesRequestRouteRule;
|
|
773
774
|
exports.marshalUpdateBackendStageRequest = marshalUpdateBackendStageRequest;
|
|
774
775
|
exports.marshalUpdateCacheStageRequest = marshalUpdateCacheStageRequest;
|
|
775
776
|
exports.marshalUpdateDNSStageRequest = marshalUpdateDNSStageRequest;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { DefaultValues } from '../../../bridge';
|
|
2
|
-
import type { AddRouteRulesRequest, AddRouteRulesResponse, BackendStage, CacheStage, CheckDomainRequest, CheckDomainResponse, CheckLbOriginRequest, CheckLbOriginResponse, CheckPEMChainRequest, CheckPEMChainResponse, CreateBackendStageRequest, CreateCacheStageRequest, CreateDNSStageRequest, CreatePipelineRequest, CreatePurgeRequestRequest, CreateRouteStageRequest, CreateTLSStageRequest, CreateWafStageRequest, DNSStage, GetBillingResponse, HeadStageResponse, ListBackendStagesResponse, ListCacheStagesResponse, ListDNSStagesResponse, ListHeadStagesResponse, ListPipelinesResponse, ListPipelinesWithStagesResponse, ListPlansResponse, ListPurgeRequestsResponse, ListRouteRulesResponse, ListRouteStagesResponse, ListTLSStagesResponse, ListWafStagesResponse, Pipeline, PipelineStages, Plan, PurgeRequest, RouteStage, SelectPlanRequest, SetHeadStageRequest, SetRouteRulesRequest, SetRouteRulesResponse, TLSStage, UpdateBackendStageRequest, UpdateCacheStageRequest, UpdateDNSStageRequest, UpdatePipelineRequest, UpdateRouteStageRequest, UpdateTLSStageRequest, UpdateWafStageRequest, WafStage } from './types.gen';
|
|
2
|
+
import type { AddRouteRulesRequest, AddRouteRulesResponse, BackendStage, CacheStage, CheckDomainRequest, CheckDomainResponse, CheckLbOriginRequest, CheckLbOriginResponse, CheckPEMChainRequest, CheckPEMChainResponse, CreateBackendStageRequest, CreateCacheStageRequest, CreateDNSStageRequest, CreatePipelineRequest, CreatePurgeRequestRequest, CreateRouteStageRequest, CreateTLSStageRequest, CreateWafStageRequest, DNSStage, GetBillingResponse, HeadStageResponse, ListBackendStagesResponse, ListCacheStagesResponse, ListDNSStagesResponse, ListHeadStagesResponse, ListPipelinesResponse, ListPipelinesWithStagesResponse, ListPlansResponse, ListPurgeRequestsResponse, ListRouteRulesResponse, ListRouteStagesResponse, ListTLSStagesResponse, ListWafStagesResponse, Pipeline, PipelineStages, Plan, PurgeRequest, RouteStage, SelectPlanRequest, SetHeadStageRequest, SetRouteRulesRequest, SetRouteRulesRequestRouteRule, SetRouteRulesResponse, TLSStage, UpdateBackendStageRequest, UpdateCacheStageRequest, UpdateDNSStageRequest, UpdatePipelineRequest, UpdateRouteStageRequest, UpdateTLSStageRequest, UpdateWafStageRequest, WafStage } from './types.gen';
|
|
3
3
|
export declare const unmarshalBackendStage: (data: unknown) => BackendStage;
|
|
4
4
|
export declare const unmarshalCacheStage: (data: unknown) => CacheStage;
|
|
5
5
|
export declare const unmarshalDNSStage: (data: unknown) => DNSStage;
|
|
@@ -29,6 +29,7 @@ export declare const unmarshalListTLSStagesResponse: (data: unknown) => ListTLSS
|
|
|
29
29
|
export declare const unmarshalListWafStagesResponse: (data: unknown) => ListWafStagesResponse;
|
|
30
30
|
export declare const unmarshalPlan: (data: unknown) => Plan;
|
|
31
31
|
export declare const unmarshalSetRouteRulesResponse: (data: unknown) => SetRouteRulesResponse;
|
|
32
|
+
export declare const marshalSetRouteRulesRequestRouteRule: (request: SetRouteRulesRequestRouteRule, defaults: DefaultValues) => Record<string, unknown>;
|
|
32
33
|
export declare const marshalAddRouteRulesRequest: (request: AddRouteRulesRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
33
34
|
export declare const marshalCheckDomainRequest: (request: CheckDomainRequest, defaults: DefaultValues) => Record<string, unknown>;
|
|
34
35
|
export declare const marshalCheckLbOriginRequest: (request: CheckLbOriginRequest, defaults: DefaultValues) => Record<string, unknown>;
|