@sylphx/sdk 0.27.0 → 0.30.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/LICENSE +21 -0
- package/README.md +30 -73
- package/dist/access.d.ts +659 -0
- package/dist/access.js +638 -0
- package/dist/access.js.map +1 -0
- package/dist/ai.d.ts +176 -0
- package/dist/ai.js +112 -0
- package/dist/ai.js.map +1 -0
- package/dist/artifacts.d.ts +165 -0
- package/dist/artifacts.js +129 -0
- package/dist/artifacts.js.map +1 -0
- package/dist/auth.d.ts +896 -0
- package/dist/auth.js +828 -0
- package/dist/auth.js.map +1 -0
- package/dist/billing.d.ts +758 -0
- package/dist/billing.js +553 -0
- package/dist/billing.js.map +1 -0
- package/dist/broker.d.ts +226 -0
- package/dist/broker.js +187 -0
- package/dist/broker.js.map +1 -0
- package/dist/build.d.ts +313 -0
- package/dist/build.js +271 -0
- package/dist/build.js.map +1 -0
- package/dist/common.d.ts +162 -0
- package/dist/common.js +41 -0
- package/dist/common.js.map +1 -0
- package/dist/config.d.ts +198 -0
- package/dist/config.js +168 -0
- package/dist/config.js.map +1 -0
- package/dist/connections.d.ts +354 -0
- package/dist/connections.js +313 -0
- package/dist/connections.js.map +1 -0
- package/dist/data.d.ts +858 -0
- package/dist/data.js +814 -0
- package/dist/data.js.map +1 -0
- package/dist/entitlement.d.ts +172 -0
- package/dist/entitlement.js +116 -0
- package/dist/entitlement.js.map +1 -0
- package/dist/events.d.ts +1324 -0
- package/dist/events.js +1227 -0
- package/dist/events.js.map +1 -0
- package/dist/hosting.d.ts +709 -0
- package/dist/hosting.js +611 -0
- package/dist/hosting.js.map +1 -0
- package/dist/index.d.ts +79 -11493
- package/dist/index.js +113 -0
- package/dist/index.js.map +1 -0
- package/dist/keys.d.ts +438 -0
- package/dist/keys.js +406 -0
- package/dist/keys.js.map +1 -0
- package/dist/methods.d.ts +2 -0
- package/dist/methods.js +3995 -0
- package/dist/methods.js.map +1 -0
- package/dist/network.d.ts +733 -0
- package/dist/network.js +711 -0
- package/dist/network.js.map +1 -0
- package/dist/notify.d.ts +1359 -0
- package/dist/notify.js +1282 -0
- package/dist/notify.js.map +1 -0
- package/dist/observability.d.ts +509 -0
- package/dist/observability.js +437 -0
- package/dist/observability.js.map +1 -0
- package/dist/release.d.ts +303 -0
- package/dist/release.js +214 -0
- package/dist/release.js.map +1 -0
- package/dist/runners.d.ts +262 -0
- package/dist/runners.js +238 -0
- package/dist/runners.js.map +1 -0
- package/dist/runtime.d.ts +88 -0
- package/dist/runtime.js +226 -0
- package/dist/runtime.js.map +1 -0
- package/dist/sandboxes.d.ts +1705 -0
- package/dist/sandboxes.js +1226 -0
- package/dist/sandboxes.js.map +1 -0
- package/dist/secrets.d.ts +508 -0
- package/dist/secrets.js +474 -0
- package/dist/secrets.js.map +1 -0
- package/dist/workflows.d.ts +678 -0
- package/dist/workflows.js +595 -0
- package/dist/workflows.js.map +1 -0
- package/package.json +33 -106
- package/dist/health/index.d.ts +0 -1394
- package/dist/health/index.mjs +0 -1394
- package/dist/health/index.mjs.map +0 -1
- package/dist/index.mjs +0 -10386
- package/dist/index.mjs.map +0 -1
- package/dist/nextjs/index.d.ts +0 -724
- package/dist/nextjs/index.mjs +0 -3329
- package/dist/nextjs/index.mjs.map +0 -1
- package/dist/react/index.d.ts +0 -14168
- package/dist/react/index.mjs +0 -37002
- package/dist/react/index.mjs.map +0 -1
- package/dist/server/index.d.ts +0 -2017
- package/dist/server/index.mjs +0 -3446
- package/dist/server/index.mjs.map +0 -1
- package/dist/tasks.d.ts +0 -1463
- package/dist/tasks.mjs +0 -1907
- package/dist/tasks.mjs.map +0 -1
- package/dist/web-analytics.d.ts +0 -90
- package/dist/web-analytics.mjs +0 -225
- package/dist/web-analytics.mjs.map +0 -1
|
@@ -0,0 +1,733 @@
|
|
|
1
|
+
import * as runtime from './runtime.js';
|
|
2
|
+
import './common.js';
|
|
3
|
+
import type * as common from './common.js';
|
|
4
|
+
/**
|
|
5
|
+
* A Certificate covers names Sylphx terminates itself (the data door and
|
|
6
|
+
* origin). It is read-only to customers; customer hostnames on the web door
|
|
7
|
+
* are served by the edge without one. Its private key is a Kernel Secret
|
|
8
|
+
* nobody reads back.
|
|
9
|
+
*/
|
|
10
|
+
export interface Certificate {
|
|
11
|
+
/** `orgs/{org}/projects/{project}/certificates/{certificate}`. */
|
|
12
|
+
name?: string;
|
|
13
|
+
/** `crt_<cell><ulid>`; never reused. */
|
|
14
|
+
readonly uid?: string;
|
|
15
|
+
/** Resource metadata. */
|
|
16
|
+
meta?: common.ResourceMeta;
|
|
17
|
+
/** Desired state. */
|
|
18
|
+
spec?: CertificateSpec;
|
|
19
|
+
/** Observed state. */
|
|
20
|
+
readonly status?: CertificateStatus;
|
|
21
|
+
}
|
|
22
|
+
/** CertificateSpec is the caller-writable state of a Certificate. */
|
|
23
|
+
export interface CertificateSpec {
|
|
24
|
+
/** The names covered. */
|
|
25
|
+
dnsNames?: string[];
|
|
26
|
+
/** Who signs it. */
|
|
27
|
+
issuer?: CertificateIssuer;
|
|
28
|
+
}
|
|
29
|
+
/** CertificateStatus is the observed state of a Certificate. */
|
|
30
|
+
export interface CertificateStatus {
|
|
31
|
+
/** The generation this status was computed from. */
|
|
32
|
+
readonly observedGeneration?: string;
|
|
33
|
+
/** Ready, Reconciling, Stalled. */
|
|
34
|
+
readonly conditions?: common.Condition[];
|
|
35
|
+
/** When the served certificate expires. */
|
|
36
|
+
readonly expireTime?: string;
|
|
37
|
+
/** When it was last renewed. */
|
|
38
|
+
readonly renewTime?: string;
|
|
39
|
+
/** When the CA's renewal window opens. */
|
|
40
|
+
readonly renewalWindowStartTime?: string;
|
|
41
|
+
/** When the CA's renewal window closes. */
|
|
42
|
+
readonly renewalWindowEndTime?: string;
|
|
43
|
+
}
|
|
44
|
+
/** The request of CreateDomain. */
|
|
45
|
+
export interface CreateDomainRequest {
|
|
46
|
+
/** The parent to create in. */
|
|
47
|
+
parent: string;
|
|
48
|
+
/** The domain to create; only spec and caller-writable metadata are read. */
|
|
49
|
+
domain: Domain;
|
|
50
|
+
/** The id segment of the name; the server assigns one when unset. */
|
|
51
|
+
domainId?: string;
|
|
52
|
+
/** Validate and return the result without writing anything. */
|
|
53
|
+
validateOnly?: boolean;
|
|
54
|
+
}
|
|
55
|
+
/** The request of CreateEgressIdentity. */
|
|
56
|
+
export interface CreateEgressIdentityRequest {
|
|
57
|
+
/** The parent to create in. */
|
|
58
|
+
parent: string;
|
|
59
|
+
/**
|
|
60
|
+
* The egress identity to create; only spec and caller-writable metadata are
|
|
61
|
+
* read.
|
|
62
|
+
*/
|
|
63
|
+
egressIdentity: EgressIdentity;
|
|
64
|
+
/** The id segment of the name; the server assigns one when unset. */
|
|
65
|
+
egressIdentityId?: string;
|
|
66
|
+
/** Validate and return the result without writing anything. */
|
|
67
|
+
validateOnly?: boolean;
|
|
68
|
+
}
|
|
69
|
+
/** The request of CreatePrivateLink. */
|
|
70
|
+
export interface CreatePrivateLinkRequest {
|
|
71
|
+
/** The parent to create in. */
|
|
72
|
+
parent: string;
|
|
73
|
+
/**
|
|
74
|
+
* The private link to create; only spec and caller-writable metadata are
|
|
75
|
+
* read.
|
|
76
|
+
*/
|
|
77
|
+
privateLink: PrivateLink;
|
|
78
|
+
/** The id segment of the name; the server assigns one when unset. */
|
|
79
|
+
privateLinkId?: string;
|
|
80
|
+
/** Validate and return the result without writing anything. */
|
|
81
|
+
validateOnly?: boolean;
|
|
82
|
+
}
|
|
83
|
+
/** The request of CreateRoute. */
|
|
84
|
+
export interface CreateRouteRequest {
|
|
85
|
+
/** The parent to create in. */
|
|
86
|
+
parent: string;
|
|
87
|
+
/** The route to create; only spec and caller-writable metadata are read. */
|
|
88
|
+
route: Route;
|
|
89
|
+
/** The id segment of the name; the server assigns one when unset. */
|
|
90
|
+
routeId?: string;
|
|
91
|
+
/** Validate and return the result without writing anything. */
|
|
92
|
+
validateOnly?: boolean;
|
|
93
|
+
}
|
|
94
|
+
/** The request of DeleteDomain. */
|
|
95
|
+
export interface DeleteDomainRequest {
|
|
96
|
+
/** The name of the domain to delete. */
|
|
97
|
+
name: string;
|
|
98
|
+
/** Delete only if the current etag matches. */
|
|
99
|
+
etag?: string;
|
|
100
|
+
/** Succeed when the Resource does not exist. */
|
|
101
|
+
allowMissing?: boolean;
|
|
102
|
+
/** Validate without deleting anything. */
|
|
103
|
+
validateOnly?: boolean;
|
|
104
|
+
}
|
|
105
|
+
/** The request of DeleteEgressIdentity. */
|
|
106
|
+
export interface DeleteEgressIdentityRequest {
|
|
107
|
+
/** The name of the egress identity to delete. */
|
|
108
|
+
name: string;
|
|
109
|
+
/** Delete only if the current etag matches. */
|
|
110
|
+
etag?: string;
|
|
111
|
+
/** Succeed when the Resource does not exist. */
|
|
112
|
+
allowMissing?: boolean;
|
|
113
|
+
/** Validate without deleting anything. */
|
|
114
|
+
validateOnly?: boolean;
|
|
115
|
+
}
|
|
116
|
+
/** The request of DeletePrivateLink. */
|
|
117
|
+
export interface DeletePrivateLinkRequest {
|
|
118
|
+
/** The name of the private link to delete. */
|
|
119
|
+
name: string;
|
|
120
|
+
/** Delete only if the current etag matches. */
|
|
121
|
+
etag?: string;
|
|
122
|
+
/** Succeed when the Resource does not exist. */
|
|
123
|
+
allowMissing?: boolean;
|
|
124
|
+
/** Validate without deleting anything. */
|
|
125
|
+
validateOnly?: boolean;
|
|
126
|
+
}
|
|
127
|
+
/** The request of DeleteRoute. */
|
|
128
|
+
export interface DeleteRouteRequest {
|
|
129
|
+
/** The name of the route to delete. */
|
|
130
|
+
name: string;
|
|
131
|
+
/** Delete only if the current etag matches. */
|
|
132
|
+
etag?: string;
|
|
133
|
+
/** Succeed when the Resource does not exist. */
|
|
134
|
+
allowMissing?: boolean;
|
|
135
|
+
/** Validate without deleting anything. */
|
|
136
|
+
validateOnly?: boolean;
|
|
137
|
+
}
|
|
138
|
+
/**
|
|
139
|
+
* A Domain is a name a project controls. It is verified once, before any
|
|
140
|
+
* certificate or Route uses it; verification is fail-closed. The id is the
|
|
141
|
+
* domain with dots as dashes; `spec.domain_name` is the name itself.
|
|
142
|
+
*/
|
|
143
|
+
export interface Domain {
|
|
144
|
+
/** `orgs/{org}/projects/{project}/domains/{domain}`. */
|
|
145
|
+
name?: string;
|
|
146
|
+
/** `dom_<cell><ulid>`; never reused. */
|
|
147
|
+
readonly uid?: string;
|
|
148
|
+
/** Resource metadata. */
|
|
149
|
+
meta?: common.ResourceMeta;
|
|
150
|
+
/** Desired state. */
|
|
151
|
+
spec?: DomainSpec;
|
|
152
|
+
/** Observed state. */
|
|
153
|
+
readonly status?: DomainStatus;
|
|
154
|
+
}
|
|
155
|
+
/** DomainSpec is the caller-writable state of a Domain. */
|
|
156
|
+
export interface DomainSpec {
|
|
157
|
+
/**
|
|
158
|
+
* The fully qualified name, for example `example.com`. Wildcards are
|
|
159
|
+
* refused.
|
|
160
|
+
*/
|
|
161
|
+
domainName?: string;
|
|
162
|
+
/** How control is proven; default TXT. */
|
|
163
|
+
verificationMethod?: VerificationMethod;
|
|
164
|
+
}
|
|
165
|
+
/** DomainStatus is the observed state of a Domain. */
|
|
166
|
+
export interface DomainStatus {
|
|
167
|
+
/** The generation this status was computed from. */
|
|
168
|
+
readonly observedGeneration?: string;
|
|
169
|
+
/** Ready, Reconciling, Stalled. */
|
|
170
|
+
readonly conditions?: common.Condition[];
|
|
171
|
+
/** Whether control was proven. */
|
|
172
|
+
readonly verified?: boolean;
|
|
173
|
+
/** When control was last proven. */
|
|
174
|
+
readonly verifyTime?: string;
|
|
175
|
+
/** The record to publish. */
|
|
176
|
+
readonly verification?: DomainVerification;
|
|
177
|
+
}
|
|
178
|
+
/**
|
|
179
|
+
* DomainVerification is the record a caller publishes to prove control of a
|
|
180
|
+
* domain.
|
|
181
|
+
*/
|
|
182
|
+
export interface DomainVerification {
|
|
183
|
+
/** The DNS name to publish, for example `_sylphx-verify.example.com`. */
|
|
184
|
+
readonly recordName?: string;
|
|
185
|
+
/** `TXT` or `CNAME`. */
|
|
186
|
+
readonly recordType?: string;
|
|
187
|
+
/** The value to publish. */
|
|
188
|
+
readonly recordValue?: string;
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* An EgressIdentity is a declared, stable address set per region that a
|
|
192
|
+
* project's outbound traffic leaves from, so third parties can allowlist it.
|
|
193
|
+
* Traffic never leaves under an undeclared address: when the identity cannot
|
|
194
|
+
* serve, selected traffic is dropped.
|
|
195
|
+
*/
|
|
196
|
+
export interface EgressIdentity {
|
|
197
|
+
/** `orgs/{org}/projects/{project}/egress_identities/{egress_identity}`. */
|
|
198
|
+
name?: string;
|
|
199
|
+
/** `egr_<cell><ulid>`; never reused. */
|
|
200
|
+
readonly uid?: string;
|
|
201
|
+
/** Resource metadata. */
|
|
202
|
+
meta?: common.ResourceMeta;
|
|
203
|
+
/** Desired state. */
|
|
204
|
+
spec?: EgressIdentitySpec;
|
|
205
|
+
/** Observed state. */
|
|
206
|
+
readonly status?: EgressIdentityStatus;
|
|
207
|
+
}
|
|
208
|
+
/** EgressIdentitySpec is the caller-writable state of a EgressIdentity. */
|
|
209
|
+
export interface EgressIdentitySpec {
|
|
210
|
+
/** The region the addresses live in. */
|
|
211
|
+
region?: string;
|
|
212
|
+
}
|
|
213
|
+
/** EgressIdentityStatus is the observed state of a EgressIdentity. */
|
|
214
|
+
export interface EgressIdentityStatus {
|
|
215
|
+
/** The generation this status was computed from. */
|
|
216
|
+
readonly observedGeneration?: string;
|
|
217
|
+
/** Ready, Reconciling, Stalled. */
|
|
218
|
+
readonly conditions?: common.Condition[];
|
|
219
|
+
/** The IPv4 and IPv6 addresses traffic leaves from. */
|
|
220
|
+
readonly addresses?: string[];
|
|
221
|
+
}
|
|
222
|
+
/** The request of GetCertificate. */
|
|
223
|
+
export interface GetCertificateRequest {
|
|
224
|
+
/** The name of the certificate to get. */
|
|
225
|
+
name: string;
|
|
226
|
+
}
|
|
227
|
+
/** The request of GetDomain. */
|
|
228
|
+
export interface GetDomainRequest {
|
|
229
|
+
/** The name of the domain to get. */
|
|
230
|
+
name: string;
|
|
231
|
+
}
|
|
232
|
+
/** The request of GetEgressIdentity. */
|
|
233
|
+
export interface GetEgressIdentityRequest {
|
|
234
|
+
/** The name of the egress identity to get. */
|
|
235
|
+
name: string;
|
|
236
|
+
}
|
|
237
|
+
/** The request of GetPrivateLink. */
|
|
238
|
+
export interface GetPrivateLinkRequest {
|
|
239
|
+
/** The name of the private link to get. */
|
|
240
|
+
name: string;
|
|
241
|
+
}
|
|
242
|
+
/** The request of GetRoute. */
|
|
243
|
+
export interface GetRouteRequest {
|
|
244
|
+
/** The name of the route to get. */
|
|
245
|
+
name: string;
|
|
246
|
+
}
|
|
247
|
+
/** The request of ListCertificates. */
|
|
248
|
+
export interface ListCertificatesRequest {
|
|
249
|
+
/** The parent to list in. */
|
|
250
|
+
parent: string;
|
|
251
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
252
|
+
pageSize?: number;
|
|
253
|
+
/** `next_page_token` of the previous page. */
|
|
254
|
+
pageToken?: string;
|
|
255
|
+
/** AIP-160 filter over labels, filterable fields, and Ready. */
|
|
256
|
+
filter?: string;
|
|
257
|
+
/** AIP-132 ordering over filterable fields. */
|
|
258
|
+
orderBy?: string;
|
|
259
|
+
}
|
|
260
|
+
/** The response of ListCertificates. */
|
|
261
|
+
export interface ListCertificatesResponse {
|
|
262
|
+
/** The page. */
|
|
263
|
+
certificates?: Certificate[];
|
|
264
|
+
/** The token of the next page; empty on the last page. */
|
|
265
|
+
nextPageToken?: string;
|
|
266
|
+
}
|
|
267
|
+
/** The request of ListDomains. */
|
|
268
|
+
export interface ListDomainsRequest {
|
|
269
|
+
/** The parent to list in. */
|
|
270
|
+
parent: string;
|
|
271
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
272
|
+
pageSize?: number;
|
|
273
|
+
/** `next_page_token` of the previous page. */
|
|
274
|
+
pageToken?: string;
|
|
275
|
+
/** AIP-160 filter over labels, filterable fields, and Ready. */
|
|
276
|
+
filter?: string;
|
|
277
|
+
/** AIP-132 ordering over filterable fields. */
|
|
278
|
+
orderBy?: string;
|
|
279
|
+
}
|
|
280
|
+
/** The response of ListDomains. */
|
|
281
|
+
export interface ListDomainsResponse {
|
|
282
|
+
/** The page. */
|
|
283
|
+
domains?: Domain[];
|
|
284
|
+
/** The token of the next page; empty on the last page. */
|
|
285
|
+
nextPageToken?: string;
|
|
286
|
+
}
|
|
287
|
+
/** The request of ListEgressIdentities. */
|
|
288
|
+
export interface ListEgressIdentitiesRequest {
|
|
289
|
+
/** The parent to list in. */
|
|
290
|
+
parent: string;
|
|
291
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
292
|
+
pageSize?: number;
|
|
293
|
+
/** `next_page_token` of the previous page. */
|
|
294
|
+
pageToken?: string;
|
|
295
|
+
/** AIP-160 filter over labels, filterable fields, and Ready. */
|
|
296
|
+
filter?: string;
|
|
297
|
+
/** AIP-132 ordering over filterable fields. */
|
|
298
|
+
orderBy?: string;
|
|
299
|
+
}
|
|
300
|
+
/** The response of ListEgressIdentities. */
|
|
301
|
+
export interface ListEgressIdentitiesResponse {
|
|
302
|
+
/** The page. */
|
|
303
|
+
egressIdentities?: EgressIdentity[];
|
|
304
|
+
/** The token of the next page; empty on the last page. */
|
|
305
|
+
nextPageToken?: string;
|
|
306
|
+
}
|
|
307
|
+
/** The request of ListPrivateLinks. */
|
|
308
|
+
export interface ListPrivateLinksRequest {
|
|
309
|
+
/** The parent to list in. */
|
|
310
|
+
parent: string;
|
|
311
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
312
|
+
pageSize?: number;
|
|
313
|
+
/** `next_page_token` of the previous page. */
|
|
314
|
+
pageToken?: string;
|
|
315
|
+
/** AIP-160 filter over labels, filterable fields, and Ready. */
|
|
316
|
+
filter?: string;
|
|
317
|
+
/** AIP-132 ordering over filterable fields. */
|
|
318
|
+
orderBy?: string;
|
|
319
|
+
}
|
|
320
|
+
/** The response of ListPrivateLinks. */
|
|
321
|
+
export interface ListPrivateLinksResponse {
|
|
322
|
+
/** The page. */
|
|
323
|
+
privateLinks?: PrivateLink[];
|
|
324
|
+
/** The token of the next page; empty on the last page. */
|
|
325
|
+
nextPageToken?: string;
|
|
326
|
+
}
|
|
327
|
+
/** The request of ListRoutes. */
|
|
328
|
+
export interface ListRoutesRequest {
|
|
329
|
+
/** The parent to list in. */
|
|
330
|
+
parent: string;
|
|
331
|
+
/** At most this many; default 50, clamped to 1000. */
|
|
332
|
+
pageSize?: number;
|
|
333
|
+
/** `next_page_token` of the previous page. */
|
|
334
|
+
pageToken?: string;
|
|
335
|
+
/** AIP-160 filter over labels, filterable fields, and Ready. */
|
|
336
|
+
filter?: string;
|
|
337
|
+
/** AIP-132 ordering over filterable fields. */
|
|
338
|
+
orderBy?: string;
|
|
339
|
+
}
|
|
340
|
+
/** The response of ListRoutes. */
|
|
341
|
+
export interface ListRoutesResponse {
|
|
342
|
+
/** The page. */
|
|
343
|
+
routes?: Route[];
|
|
344
|
+
/** The token of the next page; empty on the last page. */
|
|
345
|
+
nextPageToken?: string;
|
|
346
|
+
}
|
|
347
|
+
/**
|
|
348
|
+
* A PrivateLink lets a customer network reach a Service without the public
|
|
349
|
+
* internet. Established links keep carrying traffic while the control plane is
|
|
350
|
+
* impaired; only changes wait.
|
|
351
|
+
*/
|
|
352
|
+
export interface PrivateLink {
|
|
353
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/private_links/{private_link}`. */
|
|
354
|
+
name?: string;
|
|
355
|
+
/** `plk_<cell><ulid>`; never reused. */
|
|
356
|
+
readonly uid?: string;
|
|
357
|
+
/** Resource metadata. */
|
|
358
|
+
meta?: common.ResourceMeta;
|
|
359
|
+
/** Desired state. */
|
|
360
|
+
spec?: PrivateLinkSpec;
|
|
361
|
+
/** Observed state. */
|
|
362
|
+
readonly status?: PrivateLinkStatus;
|
|
363
|
+
}
|
|
364
|
+
/** PrivateLinkSpec is the caller-writable state of a PrivateLink. */
|
|
365
|
+
export interface PrivateLinkSpec {
|
|
366
|
+
/** The Hosting Service exposed. */
|
|
367
|
+
service?: string;
|
|
368
|
+
/** The region of the link. */
|
|
369
|
+
region?: string;
|
|
370
|
+
/** The customer network accounts allowed to connect. */
|
|
371
|
+
allowedConsumers?: string[];
|
|
372
|
+
}
|
|
373
|
+
/** PrivateLinkStatus is the observed state of a PrivateLink. */
|
|
374
|
+
export interface PrivateLinkStatus {
|
|
375
|
+
/** The generation this status was computed from. */
|
|
376
|
+
readonly observedGeneration?: string;
|
|
377
|
+
/** Ready, Reconciling, Stalled. */
|
|
378
|
+
readonly conditions?: common.Condition[];
|
|
379
|
+
/** The lifecycle state. */
|
|
380
|
+
readonly state?: PrivateLinkState;
|
|
381
|
+
/** The endpoint the consumer connects its network to. */
|
|
382
|
+
readonly endpointService?: string;
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* A Route sends one exact host and path prefix to one backend. Every
|
|
386
|
+
* destination has its own Route; a wildcard grants no authority. Overlapping
|
|
387
|
+
* (host, path prefix) pairs are refused.
|
|
388
|
+
*/
|
|
389
|
+
export interface Route {
|
|
390
|
+
/** `orgs/{org}/projects/{project}/envs/{env}/routes/{route}`. */
|
|
391
|
+
name?: string;
|
|
392
|
+
/** `rte_<cell><ulid>`; never reused. */
|
|
393
|
+
readonly uid?: string;
|
|
394
|
+
/** Resource metadata. */
|
|
395
|
+
meta?: common.ResourceMeta;
|
|
396
|
+
/** Desired state. */
|
|
397
|
+
spec?: RouteSpec;
|
|
398
|
+
/** Observed state. */
|
|
399
|
+
readonly status?: RouteStatus;
|
|
400
|
+
}
|
|
401
|
+
/** RouteEdge is the edge's view of a Route on a customer domain. */
|
|
402
|
+
export interface RouteEdge {
|
|
403
|
+
/** Whether the edge accepts the hostname. */
|
|
404
|
+
readonly hostnameState?: EdgeState;
|
|
405
|
+
/** Whether the edge serves TLS for the hostname. */
|
|
406
|
+
readonly tlsState?: EdgeState;
|
|
407
|
+
}
|
|
408
|
+
/** RouteRedirect answers a Route with a redirect instead of a backend. */
|
|
409
|
+
export interface RouteRedirect {
|
|
410
|
+
/** The absolute URL to redirect to. */
|
|
411
|
+
targetUri?: string;
|
|
412
|
+
/** 301, 302, 307, or 308; default 308. */
|
|
413
|
+
statusCode?: number;
|
|
414
|
+
}
|
|
415
|
+
/** RouteSpec is the caller-writable state of a Route. */
|
|
416
|
+
export interface RouteSpec {
|
|
417
|
+
/** The exact host: a verified Domain or a subdomain of one. */
|
|
418
|
+
host?: string;
|
|
419
|
+
/** The path prefix; default `/`. */
|
|
420
|
+
pathPrefix?: string;
|
|
421
|
+
/** A Hosting Service. */
|
|
422
|
+
service?: string;
|
|
423
|
+
/** A redirect. */
|
|
424
|
+
redirect?: RouteRedirect;
|
|
425
|
+
}
|
|
426
|
+
/** RouteStatus is the observed state of a Route. */
|
|
427
|
+
export interface RouteStatus {
|
|
428
|
+
/** The generation this status was computed from. */
|
|
429
|
+
readonly observedGeneration?: string;
|
|
430
|
+
/** Ready, Reconciling, Stalled. */
|
|
431
|
+
readonly conditions?: common.Condition[];
|
|
432
|
+
/** The edge's view of the hostname. */
|
|
433
|
+
readonly edge?: RouteEdge;
|
|
434
|
+
}
|
|
435
|
+
/** The request of UpdateDomain. */
|
|
436
|
+
export interface UpdateDomainRequest {
|
|
437
|
+
/** The domain to update; `name` identifies it. */
|
|
438
|
+
domain: Domain;
|
|
439
|
+
/** The fields to write; unset writes every populated field. */
|
|
440
|
+
updateMask?: string;
|
|
441
|
+
/** Create the Resource when it does not exist (declarative upsert). */
|
|
442
|
+
allowMissing?: boolean;
|
|
443
|
+
/** Validate and return the result without writing anything. */
|
|
444
|
+
validateOnly?: boolean;
|
|
445
|
+
}
|
|
446
|
+
/** The request of UpdateEgressIdentity. */
|
|
447
|
+
export interface UpdateEgressIdentityRequest {
|
|
448
|
+
/** The egress identity to update; `name` identifies it. */
|
|
449
|
+
egressIdentity: EgressIdentity;
|
|
450
|
+
/** The fields to write; unset writes every populated field. */
|
|
451
|
+
updateMask?: string;
|
|
452
|
+
/** Create the Resource when it does not exist (declarative upsert). */
|
|
453
|
+
allowMissing?: boolean;
|
|
454
|
+
/** Validate and return the result without writing anything. */
|
|
455
|
+
validateOnly?: boolean;
|
|
456
|
+
}
|
|
457
|
+
/** The request of UpdatePrivateLink. */
|
|
458
|
+
export interface UpdatePrivateLinkRequest {
|
|
459
|
+
/** The private link to update; `name` identifies it. */
|
|
460
|
+
privateLink: PrivateLink;
|
|
461
|
+
/** The fields to write; unset writes every populated field. */
|
|
462
|
+
updateMask?: string;
|
|
463
|
+
/** Create the Resource when it does not exist (declarative upsert). */
|
|
464
|
+
allowMissing?: boolean;
|
|
465
|
+
/** Validate and return the result without writing anything. */
|
|
466
|
+
validateOnly?: boolean;
|
|
467
|
+
}
|
|
468
|
+
/** The request of UpdateRoute. */
|
|
469
|
+
export interface UpdateRouteRequest {
|
|
470
|
+
/** The route to update; `name` identifies it. */
|
|
471
|
+
route: Route;
|
|
472
|
+
/** The fields to write; unset writes every populated field. */
|
|
473
|
+
updateMask?: string;
|
|
474
|
+
/** Create the Resource when it does not exist (declarative upsert). */
|
|
475
|
+
allowMissing?: boolean;
|
|
476
|
+
/** Validate and return the result without writing anything. */
|
|
477
|
+
validateOnly?: boolean;
|
|
478
|
+
}
|
|
479
|
+
/** The request of VerifyDomain. */
|
|
480
|
+
export interface VerifyDomainRequest {
|
|
481
|
+
/** The name of the domain. */
|
|
482
|
+
name: string;
|
|
483
|
+
}
|
|
484
|
+
/** CertificateIssuer is who signs a certificate. */
|
|
485
|
+
export type CertificateIssuer = 'acme' | 'origin' | (string & {});
|
|
486
|
+
/** EdgeState is the progress of a hostname at the edge. */
|
|
487
|
+
export type EdgeState = 'pending' | 'active' | 'error' | (string & {});
|
|
488
|
+
/** PrivateLinkState is the lifecycle of a PrivateLink. */
|
|
489
|
+
export type PrivateLinkState = 'pending' | 'established' | 'rejected' | (string & {});
|
|
490
|
+
/** VerificationMethod is how a domain proves control. */
|
|
491
|
+
export type VerificationMethod = 'txt' | 'cname' | (string & {});
|
|
492
|
+
/**
|
|
493
|
+
* NetworkService is Sylphx Network: verified domains, exact routes served by
|
|
494
|
+
* each Cell's edge from its snapshot, certificates Sylphx terminates, declared
|
|
495
|
+
* egress addresses, and private links (docs/specs/one-platform/network-front-
|
|
496
|
+
* door.md §6).
|
|
497
|
+
*
|
|
498
|
+
* Namespace of Sylphx Network on `Sylphx`.
|
|
499
|
+
*/
|
|
500
|
+
export declare class NetworkApi {
|
|
501
|
+
/** The `domains` collection. */
|
|
502
|
+
readonly domains: DomainsCollection;
|
|
503
|
+
/** The `certificates` collection. */
|
|
504
|
+
readonly certificates: CertificatesCollection;
|
|
505
|
+
/** The `routes` collection. */
|
|
506
|
+
readonly routes: RoutesCollection;
|
|
507
|
+
/** The `egress_identities` collection. */
|
|
508
|
+
readonly egressIdentities: EgressIdentitiesCollection;
|
|
509
|
+
/** The `private_links` collection. */
|
|
510
|
+
readonly privateLinks: PrivateLinksCollection;
|
|
511
|
+
constructor(client: runtime.Client);
|
|
512
|
+
}
|
|
513
|
+
/** `domains` of Sylphx Network: Resource type `network.sylphx.com/Domain`. */
|
|
514
|
+
export declare class DomainsCollection {
|
|
515
|
+
private readonly client;
|
|
516
|
+
constructor(client: runtime.Client);
|
|
517
|
+
/**
|
|
518
|
+
* Gets a domain.
|
|
519
|
+
*
|
|
520
|
+
* `GET /v1/{name=orgs/*\/projects/*\/domains/*}` · permission `network:read` · effect `read`
|
|
521
|
+
*
|
|
522
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
523
|
+
*/
|
|
524
|
+
get(request: GetDomainRequest): Promise<Domain>;
|
|
525
|
+
/**
|
|
526
|
+
* Lists domains in a project.
|
|
527
|
+
*
|
|
528
|
+
* `GET /v1/{parent=orgs/*\/projects/*}/domains` · permission `network:read` · effect `read`
|
|
529
|
+
*
|
|
530
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
531
|
+
*/
|
|
532
|
+
list(request: ListDomainsRequest): Promise<ListDomainsResponse>;
|
|
533
|
+
/** Every item of every page of `list`. */
|
|
534
|
+
listAll(request: ListDomainsRequest): AsyncGenerator<Domain>;
|
|
535
|
+
/**
|
|
536
|
+
* Creates a domain. The Operation is done when the controller settles it.
|
|
537
|
+
*
|
|
538
|
+
* `POST /v1/{parent=orgs/*\/projects/*}/domains` · permission `network:write` · effect `write`
|
|
539
|
+
*
|
|
540
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`, `SPEND_LIMIT_REACHED`.
|
|
541
|
+
*/
|
|
542
|
+
create(request: CreateDomainRequest): Promise<runtime.Operation<Domain>>;
|
|
543
|
+
/**
|
|
544
|
+
* Updates a domain.
|
|
545
|
+
*
|
|
546
|
+
* `PATCH /v1/{domain.name=orgs/*\/projects/*\/domains/*}` · permission `network:write` · effect `write`
|
|
547
|
+
*
|
|
548
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
549
|
+
*/
|
|
550
|
+
update(request: UpdateDomainRequest): Promise<runtime.Operation<Domain>>;
|
|
551
|
+
/**
|
|
552
|
+
* Deletes a domain.
|
|
553
|
+
*
|
|
554
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/domains/*}` · permission `network:write` · effect `destructive`
|
|
555
|
+
*
|
|
556
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
557
|
+
*/
|
|
558
|
+
delete(request: DeleteDomainRequest): Promise<runtime.Operation<Record<string, never>>>;
|
|
559
|
+
/**
|
|
560
|
+
* Checks the verification record now instead of at the next sweep.
|
|
561
|
+
*
|
|
562
|
+
* `POST /v1/{name=orgs/*\/projects/*\/domains/*}:verify` · permission `network:write` · effect `write`
|
|
563
|
+
*
|
|
564
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
565
|
+
*/
|
|
566
|
+
verify(request: VerifyDomainRequest): Promise<runtime.Operation<Domain>>;
|
|
567
|
+
}
|
|
568
|
+
/** `certificates` of Sylphx Network: Resource type `network.sylphx.com/Certificate`. */
|
|
569
|
+
export declare class CertificatesCollection {
|
|
570
|
+
private readonly client;
|
|
571
|
+
constructor(client: runtime.Client);
|
|
572
|
+
/**
|
|
573
|
+
* Gets a certificate.
|
|
574
|
+
*
|
|
575
|
+
* `GET /v1/{name=orgs/*\/projects/*\/certificates/*}` · permission `network:read` · effect `read`
|
|
576
|
+
*
|
|
577
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
578
|
+
*/
|
|
579
|
+
get(request: GetCertificateRequest): Promise<Certificate>;
|
|
580
|
+
/**
|
|
581
|
+
* Lists certificates in a project.
|
|
582
|
+
*
|
|
583
|
+
* `GET /v1/{parent=orgs/*\/projects/*}/certificates` · permission `network:read` · effect `read`
|
|
584
|
+
*
|
|
585
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
586
|
+
*/
|
|
587
|
+
list(request: ListCertificatesRequest): Promise<ListCertificatesResponse>;
|
|
588
|
+
/** Every item of every page of `list`. */
|
|
589
|
+
listAll(request: ListCertificatesRequest): AsyncGenerator<Certificate>;
|
|
590
|
+
}
|
|
591
|
+
/** `routes` of Sylphx Network: Resource type `network.sylphx.com/Route`. */
|
|
592
|
+
export declare class RoutesCollection {
|
|
593
|
+
private readonly client;
|
|
594
|
+
constructor(client: runtime.Client);
|
|
595
|
+
/**
|
|
596
|
+
* Gets a route.
|
|
597
|
+
*
|
|
598
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/routes/*}` · permission `network:read` · effect `read`
|
|
599
|
+
*
|
|
600
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
601
|
+
*/
|
|
602
|
+
get(request: GetRouteRequest): Promise<Route>;
|
|
603
|
+
/**
|
|
604
|
+
* Lists routes in a environment.
|
|
605
|
+
*
|
|
606
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/routes` · permission `network:read` · effect `read`
|
|
607
|
+
*
|
|
608
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
609
|
+
*/
|
|
610
|
+
list(request: ListRoutesRequest): Promise<ListRoutesResponse>;
|
|
611
|
+
/** Every item of every page of `list`. */
|
|
612
|
+
listAll(request: ListRoutesRequest): AsyncGenerator<Route>;
|
|
613
|
+
/**
|
|
614
|
+
* Creates a route. The Operation is done when the controller settles it.
|
|
615
|
+
*
|
|
616
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/routes` · permission `network:write` · effect `write`
|
|
617
|
+
*
|
|
618
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`, `SPEND_LIMIT_REACHED`.
|
|
619
|
+
*/
|
|
620
|
+
create(request: CreateRouteRequest): Promise<runtime.Operation<Route>>;
|
|
621
|
+
/**
|
|
622
|
+
* Updates a route.
|
|
623
|
+
*
|
|
624
|
+
* `PATCH /v1/{route.name=orgs/*\/projects/*\/envs/*\/routes/*}` · permission `network:write` · effect `write`
|
|
625
|
+
*
|
|
626
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
627
|
+
*/
|
|
628
|
+
update(request: UpdateRouteRequest): Promise<runtime.Operation<Route>>;
|
|
629
|
+
/**
|
|
630
|
+
* Deletes a route.
|
|
631
|
+
*
|
|
632
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/routes/*}` · permission `network:write` · effect `destructive`
|
|
633
|
+
*
|
|
634
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
635
|
+
*/
|
|
636
|
+
delete(request: DeleteRouteRequest): Promise<runtime.Operation<Record<string, never>>>;
|
|
637
|
+
}
|
|
638
|
+
/** `egress_identities` of Sylphx Network: Resource type `network.sylphx.com/EgressIdentity`. */
|
|
639
|
+
export declare class EgressIdentitiesCollection {
|
|
640
|
+
private readonly client;
|
|
641
|
+
constructor(client: runtime.Client);
|
|
642
|
+
/**
|
|
643
|
+
* Gets an egress identity.
|
|
644
|
+
*
|
|
645
|
+
* `GET /v1/{name=orgs/*\/projects/*\/egress_identities/*}` · permission `network:read` · effect `read`
|
|
646
|
+
*
|
|
647
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
648
|
+
*/
|
|
649
|
+
get(request: GetEgressIdentityRequest): Promise<EgressIdentity>;
|
|
650
|
+
/**
|
|
651
|
+
* Lists egress identitys in a project.
|
|
652
|
+
*
|
|
653
|
+
* `GET /v1/{parent=orgs/*\/projects/*}/egress_identities` · permission `network:read` · effect `read`
|
|
654
|
+
*
|
|
655
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
656
|
+
*/
|
|
657
|
+
list(request: ListEgressIdentitiesRequest): Promise<ListEgressIdentitiesResponse>;
|
|
658
|
+
/** Every item of every page of `list`. */
|
|
659
|
+
listAll(request: ListEgressIdentitiesRequest): AsyncGenerator<EgressIdentity>;
|
|
660
|
+
/**
|
|
661
|
+
* Creates an egress identity. The Operation is done when the controller
|
|
662
|
+
* settles it.
|
|
663
|
+
*
|
|
664
|
+
* `POST /v1/{parent=orgs/*\/projects/*}/egress_identities` · permission `network:write` · effect `write`
|
|
665
|
+
*
|
|
666
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`, `SPEND_LIMIT_REACHED`.
|
|
667
|
+
*/
|
|
668
|
+
create(request: CreateEgressIdentityRequest): Promise<runtime.Operation<EgressIdentity>>;
|
|
669
|
+
/**
|
|
670
|
+
* Updates an egress identity.
|
|
671
|
+
*
|
|
672
|
+
* `PATCH /v1/{egress_identity.name=orgs/*\/projects/*\/egress_identities/*}` · permission `network:write` · effect `write`
|
|
673
|
+
*
|
|
674
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
675
|
+
*/
|
|
676
|
+
update(request: UpdateEgressIdentityRequest): Promise<runtime.Operation<EgressIdentity>>;
|
|
677
|
+
/**
|
|
678
|
+
* Deletes an egress identity.
|
|
679
|
+
*
|
|
680
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/egress_identities/*}` · permission `network:write` · effect `destructive`
|
|
681
|
+
*
|
|
682
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
683
|
+
*/
|
|
684
|
+
delete(request: DeleteEgressIdentityRequest): Promise<runtime.Operation<Record<string, never>>>;
|
|
685
|
+
}
|
|
686
|
+
/** `private_links` of Sylphx Network: Resource type `network.sylphx.com/PrivateLink`. */
|
|
687
|
+
export declare class PrivateLinksCollection {
|
|
688
|
+
private readonly client;
|
|
689
|
+
constructor(client: runtime.Client);
|
|
690
|
+
/**
|
|
691
|
+
* Gets a private link.
|
|
692
|
+
*
|
|
693
|
+
* `GET /v1/{name=orgs/*\/projects/*\/envs/*\/private_links/*}` · permission `network:read` · effect `read`
|
|
694
|
+
*
|
|
695
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`.
|
|
696
|
+
*/
|
|
697
|
+
get(request: GetPrivateLinkRequest): Promise<PrivateLink>;
|
|
698
|
+
/**
|
|
699
|
+
* Lists private links in a environment.
|
|
700
|
+
*
|
|
701
|
+
* `GET /v1/{parent=orgs/*\/projects/*\/envs/*}/private_links` · permission `network:read` · effect `read`
|
|
702
|
+
*
|
|
703
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `INVALID_FIELD`, `PAGE_TOKEN_MISMATCH`.
|
|
704
|
+
*/
|
|
705
|
+
list(request: ListPrivateLinksRequest): Promise<ListPrivateLinksResponse>;
|
|
706
|
+
/** Every item of every page of `list`. */
|
|
707
|
+
listAll(request: ListPrivateLinksRequest): AsyncGenerator<PrivateLink>;
|
|
708
|
+
/**
|
|
709
|
+
* Creates a private link. The Operation is done when the controller settles
|
|
710
|
+
* it.
|
|
711
|
+
*
|
|
712
|
+
* `POST /v1/{parent=orgs/*\/projects/*\/envs/*}/private_links` · permission `network:write` · effect `write`
|
|
713
|
+
*
|
|
714
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `RESOURCE_ALREADY_EXISTS`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`, `PLAN_LIMIT_REACHED`, `SPEND_LIMIT_REACHED`.
|
|
715
|
+
*/
|
|
716
|
+
create(request: CreatePrivateLinkRequest): Promise<runtime.Operation<PrivateLink>>;
|
|
717
|
+
/**
|
|
718
|
+
* Updates a private link.
|
|
719
|
+
*
|
|
720
|
+
* `PATCH /v1/{private_link.name=orgs/*\/projects/*\/envs/*\/private_links/*}` · permission `network:write` · effect `write`
|
|
721
|
+
*
|
|
722
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `UNKNOWN_FIELD`, `INVALID_FIELD`, `ETAG_MISMATCH`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
723
|
+
*/
|
|
724
|
+
update(request: UpdatePrivateLinkRequest): Promise<runtime.Operation<PrivateLink>>;
|
|
725
|
+
/**
|
|
726
|
+
* Deletes a private link.
|
|
727
|
+
*
|
|
728
|
+
* `DELETE /v1/{name=orgs/*\/projects/*\/envs/*\/private_links/*}` · permission `network:write` · effect `destructive`
|
|
729
|
+
*
|
|
730
|
+
* Errors: `UNAUTHENTICATED`, `PERMISSION_DENIED`, `RESOURCE_NOT_FOUND`, `ETAG_MISMATCH`, `INVALID_STATE`, `IDEMPOTENCY_KEY_REUSED`, `IDEMPOTENCY_IN_PROGRESS`.
|
|
731
|
+
*/
|
|
732
|
+
delete(request: DeletePrivateLinkRequest): Promise<runtime.Operation<Record<string, never>>>;
|
|
733
|
+
}
|