@maxim_mazurok/gapi.client.eventarc-v1 0.0.20231027 → 0.0.20231129
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/index.d.ts +1566 -2447
- package/package.json +6 -6
- package/readme.md +17 -12
- package/tests.ts +0 -468
- package/tsconfig.json +0 -18
- package/tslint.json +0 -6
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maxim_mazurok/gapi.client.eventarc-v1",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.20231129",
|
|
4
4
|
"description": "TypeScript typings for Eventarc API v1",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
|
|
8
|
+
},
|
|
5
9
|
"license": "MIT",
|
|
6
10
|
"author": {
|
|
7
|
-
"email": "maxim@mazurok.com",
|
|
8
11
|
"name": "Maxim Mazurok",
|
|
12
|
+
"email": "maxim@mazurok.com",
|
|
9
13
|
"url": "https://maxim.mazurok.com"
|
|
10
14
|
},
|
|
11
|
-
"repository": {
|
|
12
|
-
"type": "git",
|
|
13
|
-
"url": "https://github.com/Maxim-Mazurok/google-api-typings-generator.git"
|
|
14
|
-
},
|
|
15
15
|
"types": "index.d.ts",
|
|
16
16
|
"dependencies": {
|
|
17
17
|
"@types/gapi.client": "*",
|
package/readme.md
CHANGED
|
@@ -25,10 +25,13 @@ gapi.load('client', () => {
|
|
|
25
25
|
Then load api client wrapper:
|
|
26
26
|
|
|
27
27
|
```typescript
|
|
28
|
-
gapi.client.load(
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
28
|
+
gapi.client.load(
|
|
29
|
+
'https://eventarc.googleapis.com/$discovery/rest?version=v1',
|
|
30
|
+
() => {
|
|
31
|
+
// now we can use:
|
|
32
|
+
// gapi.client.eventarc
|
|
33
|
+
}
|
|
34
|
+
);
|
|
32
35
|
```
|
|
33
36
|
|
|
34
37
|
```typescript
|
|
@@ -45,24 +48,26 @@ Don't forget to authenticate your client before sending any request to resources
|
|
|
45
48
|
// declare client_id registered in Google Developers Console
|
|
46
49
|
var client_id = '',
|
|
47
50
|
scope = [
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
51
|
+
// See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account.
|
|
52
|
+
'https://www.googleapis.com/auth/cloud-platform',
|
|
53
|
+
],
|
|
54
|
+
immediate = true;
|
|
52
55
|
// ...
|
|
53
56
|
|
|
54
57
|
gapi.auth.authorize(
|
|
55
|
-
{
|
|
58
|
+
{client_id: client_id, scope: scope, immediate: immediate},
|
|
56
59
|
authResult => {
|
|
57
60
|
if (authResult && !authResult.error) {
|
|
58
|
-
|
|
61
|
+
/* handle successful authorization */
|
|
59
62
|
} else {
|
|
60
|
-
|
|
63
|
+
/* handle authorization error */
|
|
61
64
|
}
|
|
62
|
-
}
|
|
65
|
+
}
|
|
66
|
+
);
|
|
63
67
|
```
|
|
64
68
|
|
|
65
69
|
After that you can use Eventarc API resources: <!-- TODO: make this work for multiple namespaces -->
|
|
66
70
|
|
|
67
71
|
```typescript
|
|
72
|
+
|
|
68
73
|
```
|
package/tests.ts
DELETED
|
@@ -1,468 +0,0 @@
|
|
|
1
|
-
/* This is stub file for gapi.client.eventarc-v1 definition tests */
|
|
2
|
-
// IMPORTANT
|
|
3
|
-
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
|
-
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
|
-
|
|
6
|
-
// Revision: 20231027
|
|
7
|
-
|
|
8
|
-
gapi.load('client', async () => {
|
|
9
|
-
/** now we can use gapi.client */
|
|
10
|
-
|
|
11
|
-
await gapi.client.load('https://eventarc.googleapis.com/$discovery/rest?version=v1');
|
|
12
|
-
/** now we can use gapi.client.eventarc */
|
|
13
|
-
|
|
14
|
-
/** don't forget to authenticate your client before sending any request to resources: */
|
|
15
|
-
/** declare client_id registered in Google Developers Console */
|
|
16
|
-
const client_id = '<<PUT YOUR CLIENT ID HERE>>';
|
|
17
|
-
const scope = [
|
|
18
|
-
/** See, edit, configure, and delete your Google Cloud data and see the email address for your Google Account. */
|
|
19
|
-
'https://www.googleapis.com/auth/cloud-platform',
|
|
20
|
-
];
|
|
21
|
-
const immediate = false;
|
|
22
|
-
gapi.auth.authorize({ client_id, scope, immediate }, authResult => {
|
|
23
|
-
if (authResult && !authResult.error) {
|
|
24
|
-
/** handle successful authorization */
|
|
25
|
-
run();
|
|
26
|
-
} else {
|
|
27
|
-
/** handle authorization error */
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
|
|
31
|
-
async function run() {
|
|
32
|
-
/** Gets information about a location. */
|
|
33
|
-
await gapi.client.eventarc.projects.locations.get({
|
|
34
|
-
name: "Test string",
|
|
35
|
-
});
|
|
36
|
-
/** Get a GoogleChannelConfig */
|
|
37
|
-
await gapi.client.eventarc.projects.locations.getGoogleChannelConfig({
|
|
38
|
-
name: "Test string",
|
|
39
|
-
});
|
|
40
|
-
/** Lists information about the supported locations for this service. */
|
|
41
|
-
await gapi.client.eventarc.projects.locations.list({
|
|
42
|
-
filter: "Test string",
|
|
43
|
-
name: "Test string",
|
|
44
|
-
pageSize: 42,
|
|
45
|
-
pageToken: "Test string",
|
|
46
|
-
});
|
|
47
|
-
/** Update a single GoogleChannelConfig */
|
|
48
|
-
await gapi.client.eventarc.projects.locations.updateGoogleChannelConfig({
|
|
49
|
-
name: "Test string",
|
|
50
|
-
updateMask: "Test string",
|
|
51
|
-
}, {
|
|
52
|
-
cryptoKeyName: "Test string",
|
|
53
|
-
name: "Test string",
|
|
54
|
-
updateTime: "Test string",
|
|
55
|
-
});
|
|
56
|
-
/** Create a new ChannelConnection in a particular project and location. */
|
|
57
|
-
await gapi.client.eventarc.projects.locations.channelConnections.create({
|
|
58
|
-
channelConnectionId: "Test string",
|
|
59
|
-
parent: "Test string",
|
|
60
|
-
}, {
|
|
61
|
-
activationToken: "Test string",
|
|
62
|
-
channel: "Test string",
|
|
63
|
-
createTime: "Test string",
|
|
64
|
-
name: "Test string",
|
|
65
|
-
uid: "Test string",
|
|
66
|
-
updateTime: "Test string",
|
|
67
|
-
});
|
|
68
|
-
/** Delete a single ChannelConnection. */
|
|
69
|
-
await gapi.client.eventarc.projects.locations.channelConnections.delete({
|
|
70
|
-
name: "Test string",
|
|
71
|
-
});
|
|
72
|
-
/** Get a single ChannelConnection. */
|
|
73
|
-
await gapi.client.eventarc.projects.locations.channelConnections.get({
|
|
74
|
-
name: "Test string",
|
|
75
|
-
});
|
|
76
|
-
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
77
|
-
await gapi.client.eventarc.projects.locations.channelConnections.getIamPolicy({
|
|
78
|
-
"options.requestedPolicyVersion": 42,
|
|
79
|
-
resource: "Test string",
|
|
80
|
-
});
|
|
81
|
-
/** List channel connections. */
|
|
82
|
-
await gapi.client.eventarc.projects.locations.channelConnections.list({
|
|
83
|
-
pageSize: 42,
|
|
84
|
-
pageToken: "Test string",
|
|
85
|
-
parent: "Test string",
|
|
86
|
-
});
|
|
87
|
-
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
88
|
-
await gapi.client.eventarc.projects.locations.channelConnections.setIamPolicy({
|
|
89
|
-
resource: "Test string",
|
|
90
|
-
}, {
|
|
91
|
-
policy: {
|
|
92
|
-
auditConfigs: [
|
|
93
|
-
{
|
|
94
|
-
auditLogConfigs: [
|
|
95
|
-
{
|
|
96
|
-
exemptedMembers: [
|
|
97
|
-
"Test string"
|
|
98
|
-
],
|
|
99
|
-
logType: "Test string",
|
|
100
|
-
}
|
|
101
|
-
],
|
|
102
|
-
service: "Test string",
|
|
103
|
-
}
|
|
104
|
-
],
|
|
105
|
-
bindings: [
|
|
106
|
-
{
|
|
107
|
-
condition: {
|
|
108
|
-
description: "Test string",
|
|
109
|
-
expression: "Test string",
|
|
110
|
-
location: "Test string",
|
|
111
|
-
title: "Test string",
|
|
112
|
-
},
|
|
113
|
-
members: [
|
|
114
|
-
"Test string"
|
|
115
|
-
],
|
|
116
|
-
role: "Test string",
|
|
117
|
-
}
|
|
118
|
-
],
|
|
119
|
-
etag: "Test string",
|
|
120
|
-
version: 42,
|
|
121
|
-
},
|
|
122
|
-
updateMask: "Test string",
|
|
123
|
-
});
|
|
124
|
-
/**
|
|
125
|
-
* Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This
|
|
126
|
-
* operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
|
|
127
|
-
*/
|
|
128
|
-
await gapi.client.eventarc.projects.locations.channelConnections.testIamPermissions({
|
|
129
|
-
resource: "Test string",
|
|
130
|
-
}, {
|
|
131
|
-
permissions: [
|
|
132
|
-
"Test string"
|
|
133
|
-
],
|
|
134
|
-
});
|
|
135
|
-
/** Create a new channel in a particular project and location. */
|
|
136
|
-
await gapi.client.eventarc.projects.locations.channels.create({
|
|
137
|
-
channelId: "Test string",
|
|
138
|
-
parent: "Test string",
|
|
139
|
-
validateOnly: true,
|
|
140
|
-
}, {
|
|
141
|
-
activationToken: "Test string",
|
|
142
|
-
createTime: "Test string",
|
|
143
|
-
cryptoKeyName: "Test string",
|
|
144
|
-
name: "Test string",
|
|
145
|
-
provider: "Test string",
|
|
146
|
-
pubsubTopic: "Test string",
|
|
147
|
-
state: "Test string",
|
|
148
|
-
uid: "Test string",
|
|
149
|
-
updateTime: "Test string",
|
|
150
|
-
});
|
|
151
|
-
/** Delete a single channel. */
|
|
152
|
-
await gapi.client.eventarc.projects.locations.channels.delete({
|
|
153
|
-
name: "Test string",
|
|
154
|
-
validateOnly: true,
|
|
155
|
-
});
|
|
156
|
-
/** Get a single Channel. */
|
|
157
|
-
await gapi.client.eventarc.projects.locations.channels.get({
|
|
158
|
-
name: "Test string",
|
|
159
|
-
});
|
|
160
|
-
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
161
|
-
await gapi.client.eventarc.projects.locations.channels.getIamPolicy({
|
|
162
|
-
"options.requestedPolicyVersion": 42,
|
|
163
|
-
resource: "Test string",
|
|
164
|
-
});
|
|
165
|
-
/** List channels. */
|
|
166
|
-
await gapi.client.eventarc.projects.locations.channels.list({
|
|
167
|
-
orderBy: "Test string",
|
|
168
|
-
pageSize: 42,
|
|
169
|
-
pageToken: "Test string",
|
|
170
|
-
parent: "Test string",
|
|
171
|
-
});
|
|
172
|
-
/** Update a single channel. */
|
|
173
|
-
await gapi.client.eventarc.projects.locations.channels.patch({
|
|
174
|
-
name: "Test string",
|
|
175
|
-
updateMask: "Test string",
|
|
176
|
-
validateOnly: true,
|
|
177
|
-
}, {
|
|
178
|
-
activationToken: "Test string",
|
|
179
|
-
createTime: "Test string",
|
|
180
|
-
cryptoKeyName: "Test string",
|
|
181
|
-
name: "Test string",
|
|
182
|
-
provider: "Test string",
|
|
183
|
-
pubsubTopic: "Test string",
|
|
184
|
-
state: "Test string",
|
|
185
|
-
uid: "Test string",
|
|
186
|
-
updateTime: "Test string",
|
|
187
|
-
});
|
|
188
|
-
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
189
|
-
await gapi.client.eventarc.projects.locations.channels.setIamPolicy({
|
|
190
|
-
resource: "Test string",
|
|
191
|
-
}, {
|
|
192
|
-
policy: {
|
|
193
|
-
auditConfigs: [
|
|
194
|
-
{
|
|
195
|
-
auditLogConfigs: [
|
|
196
|
-
{
|
|
197
|
-
exemptedMembers: [
|
|
198
|
-
"Test string"
|
|
199
|
-
],
|
|
200
|
-
logType: "Test string",
|
|
201
|
-
}
|
|
202
|
-
],
|
|
203
|
-
service: "Test string",
|
|
204
|
-
}
|
|
205
|
-
],
|
|
206
|
-
bindings: [
|
|
207
|
-
{
|
|
208
|
-
condition: {
|
|
209
|
-
description: "Test string",
|
|
210
|
-
expression: "Test string",
|
|
211
|
-
location: "Test string",
|
|
212
|
-
title: "Test string",
|
|
213
|
-
},
|
|
214
|
-
members: [
|
|
215
|
-
"Test string"
|
|
216
|
-
],
|
|
217
|
-
role: "Test string",
|
|
218
|
-
}
|
|
219
|
-
],
|
|
220
|
-
etag: "Test string",
|
|
221
|
-
version: 42,
|
|
222
|
-
},
|
|
223
|
-
updateMask: "Test string",
|
|
224
|
-
});
|
|
225
|
-
/**
|
|
226
|
-
* Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This
|
|
227
|
-
* operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
|
|
228
|
-
*/
|
|
229
|
-
await gapi.client.eventarc.projects.locations.channels.testIamPermissions({
|
|
230
|
-
resource: "Test string",
|
|
231
|
-
}, {
|
|
232
|
-
permissions: [
|
|
233
|
-
"Test string"
|
|
234
|
-
],
|
|
235
|
-
});
|
|
236
|
-
/**
|
|
237
|
-
* Starts asynchronous cancellation on a long-running operation. The server makes a best effort to cancel the operation, but success is not guaranteed. If the server doesn't support this
|
|
238
|
-
* method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the operation
|
|
239
|
-
* completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a google.rpc.Status.code of
|
|
240
|
-
* 1, corresponding to `Code.CANCELLED`.
|
|
241
|
-
*/
|
|
242
|
-
await gapi.client.eventarc.projects.locations.operations.cancel({
|
|
243
|
-
name: "Test string",
|
|
244
|
-
}, {
|
|
245
|
-
});
|
|
246
|
-
/**
|
|
247
|
-
* Deletes a long-running operation. This method indicates that the client is no longer interested in the operation result. It does not cancel the operation. If the server doesn't support
|
|
248
|
-
* this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
249
|
-
*/
|
|
250
|
-
await gapi.client.eventarc.projects.locations.operations.delete({
|
|
251
|
-
name: "Test string",
|
|
252
|
-
});
|
|
253
|
-
/** Gets the latest state of a long-running operation. Clients can use this method to poll the operation result at intervals as recommended by the API service. */
|
|
254
|
-
await gapi.client.eventarc.projects.locations.operations.get({
|
|
255
|
-
name: "Test string",
|
|
256
|
-
});
|
|
257
|
-
/** Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. */
|
|
258
|
-
await gapi.client.eventarc.projects.locations.operations.list({
|
|
259
|
-
filter: "Test string",
|
|
260
|
-
name: "Test string",
|
|
261
|
-
pageSize: 42,
|
|
262
|
-
pageToken: "Test string",
|
|
263
|
-
});
|
|
264
|
-
/** Get a single Provider. */
|
|
265
|
-
await gapi.client.eventarc.projects.locations.providers.get({
|
|
266
|
-
name: "Test string",
|
|
267
|
-
});
|
|
268
|
-
/** List providers. */
|
|
269
|
-
await gapi.client.eventarc.projects.locations.providers.list({
|
|
270
|
-
filter: "Test string",
|
|
271
|
-
orderBy: "Test string",
|
|
272
|
-
pageSize: 42,
|
|
273
|
-
pageToken: "Test string",
|
|
274
|
-
parent: "Test string",
|
|
275
|
-
});
|
|
276
|
-
/** Create a new trigger in a particular project and location. */
|
|
277
|
-
await gapi.client.eventarc.projects.locations.triggers.create({
|
|
278
|
-
parent: "Test string",
|
|
279
|
-
triggerId: "Test string",
|
|
280
|
-
validateOnly: true,
|
|
281
|
-
}, {
|
|
282
|
-
channel: "Test string",
|
|
283
|
-
conditions: {
|
|
284
|
-
A: {
|
|
285
|
-
code: "Test string",
|
|
286
|
-
message: "Test string",
|
|
287
|
-
}
|
|
288
|
-
},
|
|
289
|
-
createTime: "Test string",
|
|
290
|
-
destination: {
|
|
291
|
-
cloudFunction: "Test string",
|
|
292
|
-
cloudRun: {
|
|
293
|
-
path: "Test string",
|
|
294
|
-
region: "Test string",
|
|
295
|
-
service: "Test string",
|
|
296
|
-
},
|
|
297
|
-
gke: {
|
|
298
|
-
cluster: "Test string",
|
|
299
|
-
location: "Test string",
|
|
300
|
-
namespace: "Test string",
|
|
301
|
-
path: "Test string",
|
|
302
|
-
service: "Test string",
|
|
303
|
-
},
|
|
304
|
-
httpEndpoint: {
|
|
305
|
-
uri: "Test string",
|
|
306
|
-
},
|
|
307
|
-
networkConfig: {
|
|
308
|
-
networkAttachment: "Test string",
|
|
309
|
-
},
|
|
310
|
-
workflow: "Test string",
|
|
311
|
-
},
|
|
312
|
-
etag: "Test string",
|
|
313
|
-
eventDataContentType: "Test string",
|
|
314
|
-
eventFilters: [
|
|
315
|
-
{
|
|
316
|
-
attribute: "Test string",
|
|
317
|
-
operator: "Test string",
|
|
318
|
-
value: "Test string",
|
|
319
|
-
}
|
|
320
|
-
],
|
|
321
|
-
labels: {
|
|
322
|
-
A: "Test string"
|
|
323
|
-
},
|
|
324
|
-
name: "Test string",
|
|
325
|
-
serviceAccount: "Test string",
|
|
326
|
-
transport: {
|
|
327
|
-
pubsub: {
|
|
328
|
-
subscription: "Test string",
|
|
329
|
-
topic: "Test string",
|
|
330
|
-
},
|
|
331
|
-
},
|
|
332
|
-
uid: "Test string",
|
|
333
|
-
updateTime: "Test string",
|
|
334
|
-
});
|
|
335
|
-
/** Delete a single trigger. */
|
|
336
|
-
await gapi.client.eventarc.projects.locations.triggers.delete({
|
|
337
|
-
allowMissing: true,
|
|
338
|
-
etag: "Test string",
|
|
339
|
-
name: "Test string",
|
|
340
|
-
validateOnly: true,
|
|
341
|
-
});
|
|
342
|
-
/** Get a single trigger. */
|
|
343
|
-
await gapi.client.eventarc.projects.locations.triggers.get({
|
|
344
|
-
name: "Test string",
|
|
345
|
-
});
|
|
346
|
-
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
347
|
-
await gapi.client.eventarc.projects.locations.triggers.getIamPolicy({
|
|
348
|
-
"options.requestedPolicyVersion": 42,
|
|
349
|
-
resource: "Test string",
|
|
350
|
-
});
|
|
351
|
-
/** List triggers. */
|
|
352
|
-
await gapi.client.eventarc.projects.locations.triggers.list({
|
|
353
|
-
filter: "Test string",
|
|
354
|
-
orderBy: "Test string",
|
|
355
|
-
pageSize: 42,
|
|
356
|
-
pageToken: "Test string",
|
|
357
|
-
parent: "Test string",
|
|
358
|
-
});
|
|
359
|
-
/** Update a single trigger. */
|
|
360
|
-
await gapi.client.eventarc.projects.locations.triggers.patch({
|
|
361
|
-
allowMissing: true,
|
|
362
|
-
name: "Test string",
|
|
363
|
-
updateMask: "Test string",
|
|
364
|
-
validateOnly: true,
|
|
365
|
-
}, {
|
|
366
|
-
channel: "Test string",
|
|
367
|
-
conditions: {
|
|
368
|
-
A: {
|
|
369
|
-
code: "Test string",
|
|
370
|
-
message: "Test string",
|
|
371
|
-
}
|
|
372
|
-
},
|
|
373
|
-
createTime: "Test string",
|
|
374
|
-
destination: {
|
|
375
|
-
cloudFunction: "Test string",
|
|
376
|
-
cloudRun: {
|
|
377
|
-
path: "Test string",
|
|
378
|
-
region: "Test string",
|
|
379
|
-
service: "Test string",
|
|
380
|
-
},
|
|
381
|
-
gke: {
|
|
382
|
-
cluster: "Test string",
|
|
383
|
-
location: "Test string",
|
|
384
|
-
namespace: "Test string",
|
|
385
|
-
path: "Test string",
|
|
386
|
-
service: "Test string",
|
|
387
|
-
},
|
|
388
|
-
httpEndpoint: {
|
|
389
|
-
uri: "Test string",
|
|
390
|
-
},
|
|
391
|
-
networkConfig: {
|
|
392
|
-
networkAttachment: "Test string",
|
|
393
|
-
},
|
|
394
|
-
workflow: "Test string",
|
|
395
|
-
},
|
|
396
|
-
etag: "Test string",
|
|
397
|
-
eventDataContentType: "Test string",
|
|
398
|
-
eventFilters: [
|
|
399
|
-
{
|
|
400
|
-
attribute: "Test string",
|
|
401
|
-
operator: "Test string",
|
|
402
|
-
value: "Test string",
|
|
403
|
-
}
|
|
404
|
-
],
|
|
405
|
-
labels: {
|
|
406
|
-
A: "Test string"
|
|
407
|
-
},
|
|
408
|
-
name: "Test string",
|
|
409
|
-
serviceAccount: "Test string",
|
|
410
|
-
transport: {
|
|
411
|
-
pubsub: {
|
|
412
|
-
subscription: "Test string",
|
|
413
|
-
topic: "Test string",
|
|
414
|
-
},
|
|
415
|
-
},
|
|
416
|
-
uid: "Test string",
|
|
417
|
-
updateTime: "Test string",
|
|
418
|
-
});
|
|
419
|
-
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
420
|
-
await gapi.client.eventarc.projects.locations.triggers.setIamPolicy({
|
|
421
|
-
resource: "Test string",
|
|
422
|
-
}, {
|
|
423
|
-
policy: {
|
|
424
|
-
auditConfigs: [
|
|
425
|
-
{
|
|
426
|
-
auditLogConfigs: [
|
|
427
|
-
{
|
|
428
|
-
exemptedMembers: [
|
|
429
|
-
"Test string"
|
|
430
|
-
],
|
|
431
|
-
logType: "Test string",
|
|
432
|
-
}
|
|
433
|
-
],
|
|
434
|
-
service: "Test string",
|
|
435
|
-
}
|
|
436
|
-
],
|
|
437
|
-
bindings: [
|
|
438
|
-
{
|
|
439
|
-
condition: {
|
|
440
|
-
description: "Test string",
|
|
441
|
-
expression: "Test string",
|
|
442
|
-
location: "Test string",
|
|
443
|
-
title: "Test string",
|
|
444
|
-
},
|
|
445
|
-
members: [
|
|
446
|
-
"Test string"
|
|
447
|
-
],
|
|
448
|
-
role: "Test string",
|
|
449
|
-
}
|
|
450
|
-
],
|
|
451
|
-
etag: "Test string",
|
|
452
|
-
version: 42,
|
|
453
|
-
},
|
|
454
|
-
updateMask: "Test string",
|
|
455
|
-
});
|
|
456
|
-
/**
|
|
457
|
-
* Returns permissions that a caller has on the specified resource. If the resource does not exist, this will return an empty set of permissions, not a `NOT_FOUND` error. Note: This
|
|
458
|
-
* operation is designed to be used for building permission-aware UIs and command-line tools, not for authorization checking. This operation may "fail open" without warning.
|
|
459
|
-
*/
|
|
460
|
-
await gapi.client.eventarc.projects.locations.triggers.testIamPermissions({
|
|
461
|
-
resource: "Test string",
|
|
462
|
-
}, {
|
|
463
|
-
permissions: [
|
|
464
|
-
"Test string"
|
|
465
|
-
],
|
|
466
|
-
});
|
|
467
|
-
}
|
|
468
|
-
});
|
package/tsconfig.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"module": "commonjs",
|
|
4
|
-
"lib": ["es6", "dom"],
|
|
5
|
-
"noImplicitAny": true,
|
|
6
|
-
"noImplicitThis": true,
|
|
7
|
-
"strictNullChecks": true,
|
|
8
|
-
"baseUrl": "../",
|
|
9
|
-
"typeRoots": [
|
|
10
|
-
"../"
|
|
11
|
-
],
|
|
12
|
-
"types": [],
|
|
13
|
-
"noEmit": true,
|
|
14
|
-
"forceConsistentCasingInFileNames": true,
|
|
15
|
-
"strictFunctionTypes": true
|
|
16
|
-
},
|
|
17
|
-
"files": ["index.d.ts", "tests.ts"]
|
|
18
|
-
}
|