@maxim_mazurok/gapi.client.networksecurity-v1beta1 0.0.20221027 → 0.0.20221205
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 +273 -1
- package/package.json +1 -1
- package/tests.ts +87 -1
package/index.d.ts
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
10
10
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
11
11
|
// Generated from: https://networksecurity.googleapis.com/$discovery/rest?version=v1beta1
|
|
12
|
-
// Revision:
|
|
12
|
+
// Revision: 20221205
|
|
13
13
|
|
|
14
14
|
/// <reference types="gapi.client" />
|
|
15
15
|
|
|
@@ -380,6 +380,275 @@ declare namespace gapi.client {
|
|
|
380
380
|
/** gRPC specific configuration to access the gRPC server to obtain the CA certificate. */
|
|
381
381
|
grpcEndpoint?: GoogleCloudNetworksecurityV1beta1GrpcEndpoint;
|
|
382
382
|
}
|
|
383
|
+
interface OperationsResource {
|
|
384
|
+
/**
|
|
385
|
+
* 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
|
|
386
|
+
* this method, it returns `google.rpc.Code.UNIMPLEMENTED`. Clients can use Operations.GetOperation or other methods to check whether the cancellation succeeded or whether the
|
|
387
|
+
* operation completed despite cancellation. On successful cancellation, the operation is not deleted; instead, it becomes an operation with an Operation.error value with a
|
|
388
|
+
* google.rpc.Status.code of 1, corresponding to `Code.CANCELLED`.
|
|
389
|
+
*/
|
|
390
|
+
cancel(request: {
|
|
391
|
+
/** V1 error format. */
|
|
392
|
+
"$.xgafv"?: string;
|
|
393
|
+
/** OAuth access token. */
|
|
394
|
+
access_token?: string;
|
|
395
|
+
/** Data format for response. */
|
|
396
|
+
alt?: string;
|
|
397
|
+
/** JSONP */
|
|
398
|
+
callback?: string;
|
|
399
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
400
|
+
fields?: string;
|
|
401
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
402
|
+
key?: string;
|
|
403
|
+
/** The name of the operation resource to be cancelled. */
|
|
404
|
+
name: string;
|
|
405
|
+
/** OAuth 2.0 token for the current user. */
|
|
406
|
+
oauth_token?: string;
|
|
407
|
+
/** Returns response with indentations and line breaks. */
|
|
408
|
+
prettyPrint?: boolean;
|
|
409
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
410
|
+
quotaUser?: string;
|
|
411
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
412
|
+
upload_protocol?: string;
|
|
413
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
414
|
+
uploadType?: string;
|
|
415
|
+
/** Request body */
|
|
416
|
+
resource: CancelOperationRequest;
|
|
417
|
+
}): Request<{}>;
|
|
418
|
+
cancel(request: {
|
|
419
|
+
/** V1 error format. */
|
|
420
|
+
"$.xgafv"?: string;
|
|
421
|
+
/** OAuth access token. */
|
|
422
|
+
access_token?: string;
|
|
423
|
+
/** Data format for response. */
|
|
424
|
+
alt?: string;
|
|
425
|
+
/** JSONP */
|
|
426
|
+
callback?: string;
|
|
427
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
428
|
+
fields?: string;
|
|
429
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
430
|
+
key?: string;
|
|
431
|
+
/** The name of the operation resource to be cancelled. */
|
|
432
|
+
name: string;
|
|
433
|
+
/** OAuth 2.0 token for the current user. */
|
|
434
|
+
oauth_token?: string;
|
|
435
|
+
/** Returns response with indentations and line breaks. */
|
|
436
|
+
prettyPrint?: boolean;
|
|
437
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
438
|
+
quotaUser?: string;
|
|
439
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
440
|
+
upload_protocol?: string;
|
|
441
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
442
|
+
uploadType?: string;
|
|
443
|
+
},
|
|
444
|
+
body: CancelOperationRequest): Request<{}>;
|
|
445
|
+
/**
|
|
446
|
+
* 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
|
|
447
|
+
* support this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
448
|
+
*/
|
|
449
|
+
delete(request?: {
|
|
450
|
+
/** V1 error format. */
|
|
451
|
+
"$.xgafv"?: string;
|
|
452
|
+
/** OAuth access token. */
|
|
453
|
+
access_token?: string;
|
|
454
|
+
/** Data format for response. */
|
|
455
|
+
alt?: string;
|
|
456
|
+
/** JSONP */
|
|
457
|
+
callback?: string;
|
|
458
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
459
|
+
fields?: string;
|
|
460
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
461
|
+
key?: string;
|
|
462
|
+
/** The name of the operation resource to be deleted. */
|
|
463
|
+
name: string;
|
|
464
|
+
/** OAuth 2.0 token for the current user. */
|
|
465
|
+
oauth_token?: string;
|
|
466
|
+
/** Returns response with indentations and line breaks. */
|
|
467
|
+
prettyPrint?: boolean;
|
|
468
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
469
|
+
quotaUser?: string;
|
|
470
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
471
|
+
upload_protocol?: string;
|
|
472
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
473
|
+
uploadType?: string;
|
|
474
|
+
}): Request<{}>;
|
|
475
|
+
/** 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. */
|
|
476
|
+
get(request?: {
|
|
477
|
+
/** V1 error format. */
|
|
478
|
+
"$.xgafv"?: string;
|
|
479
|
+
/** OAuth access token. */
|
|
480
|
+
access_token?: string;
|
|
481
|
+
/** Data format for response. */
|
|
482
|
+
alt?: string;
|
|
483
|
+
/** JSONP */
|
|
484
|
+
callback?: string;
|
|
485
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
486
|
+
fields?: string;
|
|
487
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
488
|
+
key?: string;
|
|
489
|
+
/** The name of the operation resource. */
|
|
490
|
+
name: string;
|
|
491
|
+
/** OAuth 2.0 token for the current user. */
|
|
492
|
+
oauth_token?: string;
|
|
493
|
+
/** Returns response with indentations and line breaks. */
|
|
494
|
+
prettyPrint?: boolean;
|
|
495
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
496
|
+
quotaUser?: string;
|
|
497
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
498
|
+
upload_protocol?: string;
|
|
499
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
500
|
+
uploadType?: string;
|
|
501
|
+
}): Request<Operation>;
|
|
502
|
+
/**
|
|
503
|
+
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services
|
|
504
|
+
* to override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as
|
|
505
|
+
* `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
|
|
506
|
+
* ensure the name binding is the parent resource, without the operations collection id.
|
|
507
|
+
*/
|
|
508
|
+
list(request?: {
|
|
509
|
+
/** V1 error format. */
|
|
510
|
+
"$.xgafv"?: string;
|
|
511
|
+
/** OAuth access token. */
|
|
512
|
+
access_token?: string;
|
|
513
|
+
/** Data format for response. */
|
|
514
|
+
alt?: string;
|
|
515
|
+
/** JSONP */
|
|
516
|
+
callback?: string;
|
|
517
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
518
|
+
fields?: string;
|
|
519
|
+
/** The standard list filter. */
|
|
520
|
+
filter?: string;
|
|
521
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
522
|
+
key?: string;
|
|
523
|
+
/** The name of the operation's parent resource. */
|
|
524
|
+
name: string;
|
|
525
|
+
/** OAuth 2.0 token for the current user. */
|
|
526
|
+
oauth_token?: string;
|
|
527
|
+
/** The standard list page size. */
|
|
528
|
+
pageSize?: number;
|
|
529
|
+
/** The standard list page token. */
|
|
530
|
+
pageToken?: string;
|
|
531
|
+
/** Returns response with indentations and line breaks. */
|
|
532
|
+
prettyPrint?: boolean;
|
|
533
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
534
|
+
quotaUser?: string;
|
|
535
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
536
|
+
upload_protocol?: string;
|
|
537
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
538
|
+
uploadType?: string;
|
|
539
|
+
}): Request<ListOperationsResponse>;
|
|
540
|
+
}
|
|
541
|
+
interface LocationsResource {
|
|
542
|
+
operations: OperationsResource;
|
|
543
|
+
}
|
|
544
|
+
interface OrganizationsResource {
|
|
545
|
+
locations: LocationsResource;
|
|
546
|
+
}
|
|
547
|
+
interface AddressGroupsResource {
|
|
548
|
+
/** Gets the access control policy for a resource. Returns an empty policy if the resource exists and does not have a policy set. */
|
|
549
|
+
getIamPolicy(request?: {
|
|
550
|
+
/** V1 error format. */
|
|
551
|
+
"$.xgafv"?: string;
|
|
552
|
+
/** OAuth access token. */
|
|
553
|
+
access_token?: string;
|
|
554
|
+
/** Data format for response. */
|
|
555
|
+
alt?: string;
|
|
556
|
+
/** JSONP */
|
|
557
|
+
callback?: string;
|
|
558
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
559
|
+
fields?: string;
|
|
560
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
561
|
+
key?: string;
|
|
562
|
+
/** OAuth 2.0 token for the current user. */
|
|
563
|
+
oauth_token?: string;
|
|
564
|
+
/**
|
|
565
|
+
* Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for
|
|
566
|
+
* policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy
|
|
567
|
+
* in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional
|
|
568
|
+
* role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM
|
|
569
|
+
* documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
|
|
570
|
+
*/
|
|
571
|
+
"options.requestedPolicyVersion"?: number;
|
|
572
|
+
/** Returns response with indentations and line breaks. */
|
|
573
|
+
prettyPrint?: boolean;
|
|
574
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
575
|
+
quotaUser?: string;
|
|
576
|
+
/**
|
|
577
|
+
* REQUIRED: The resource for which the policy is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
|
|
578
|
+
* field.
|
|
579
|
+
*/
|
|
580
|
+
resource: string;
|
|
581
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
582
|
+
upload_protocol?: string;
|
|
583
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
584
|
+
uploadType?: string;
|
|
585
|
+
}): Request<GoogleIamV1Policy>;
|
|
586
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
587
|
+
setIamPolicy(request: {
|
|
588
|
+
/** V1 error format. */
|
|
589
|
+
"$.xgafv"?: string;
|
|
590
|
+
/** OAuth access token. */
|
|
591
|
+
access_token?: string;
|
|
592
|
+
/** Data format for response. */
|
|
593
|
+
alt?: string;
|
|
594
|
+
/** JSONP */
|
|
595
|
+
callback?: string;
|
|
596
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
597
|
+
fields?: string;
|
|
598
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
599
|
+
key?: string;
|
|
600
|
+
/** OAuth 2.0 token for the current user. */
|
|
601
|
+
oauth_token?: string;
|
|
602
|
+
/** Returns response with indentations and line breaks. */
|
|
603
|
+
prettyPrint?: boolean;
|
|
604
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
605
|
+
quotaUser?: string;
|
|
606
|
+
/**
|
|
607
|
+
* REQUIRED: The resource for which the policy is being specified. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for this
|
|
608
|
+
* field.
|
|
609
|
+
*/
|
|
610
|
+
resource: string;
|
|
611
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
612
|
+
upload_protocol?: string;
|
|
613
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
614
|
+
uploadType?: string;
|
|
615
|
+
},
|
|
616
|
+
body: GoogleIamV1SetIamPolicyRequest): Request<GoogleIamV1Policy>;
|
|
617
|
+
/**
|
|
618
|
+
* 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
|
|
619
|
+
* 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.
|
|
620
|
+
*/
|
|
621
|
+
testIamPermissions(request: {
|
|
622
|
+
/** V1 error format. */
|
|
623
|
+
"$.xgafv"?: string;
|
|
624
|
+
/** OAuth access token. */
|
|
625
|
+
access_token?: string;
|
|
626
|
+
/** Data format for response. */
|
|
627
|
+
alt?: string;
|
|
628
|
+
/** JSONP */
|
|
629
|
+
callback?: string;
|
|
630
|
+
/** Selector specifying which fields to include in a partial response. */
|
|
631
|
+
fields?: string;
|
|
632
|
+
/** API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token. */
|
|
633
|
+
key?: string;
|
|
634
|
+
/** OAuth 2.0 token for the current user. */
|
|
635
|
+
oauth_token?: string;
|
|
636
|
+
/** Returns response with indentations and line breaks. */
|
|
637
|
+
prettyPrint?: boolean;
|
|
638
|
+
/** Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. */
|
|
639
|
+
quotaUser?: string;
|
|
640
|
+
/**
|
|
641
|
+
* REQUIRED: The resource for which the policy detail is being requested. See [Resource names](https://cloud.google.com/apis/design/resource_names) for the appropriate value for
|
|
642
|
+
* this field.
|
|
643
|
+
*/
|
|
644
|
+
resource: string;
|
|
645
|
+
/** Upload protocol for media (e.g. "raw", "multipart"). */
|
|
646
|
+
upload_protocol?: string;
|
|
647
|
+
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
648
|
+
uploadType?: string;
|
|
649
|
+
},
|
|
650
|
+
body: GoogleIamV1TestIamPermissionsRequest): Request<GoogleIamV1TestIamPermissionsResponse>;
|
|
651
|
+
}
|
|
383
652
|
interface AuthorizationPoliciesResource {
|
|
384
653
|
/** Creates a new AuthorizationPolicy in a given project and location. */
|
|
385
654
|
create(request: {
|
|
@@ -1577,6 +1846,7 @@ declare namespace gapi.client {
|
|
|
1577
1846
|
/** Legacy upload protocol for media (e.g. "media", "multipart"). */
|
|
1578
1847
|
uploadType?: string;
|
|
1579
1848
|
}): Request<ListLocationsResponse>;
|
|
1849
|
+
addressGroups: AddressGroupsResource;
|
|
1580
1850
|
authorizationPolicies: AuthorizationPoliciesResource;
|
|
1581
1851
|
clientTlsPolicies: ClientTlsPoliciesResource;
|
|
1582
1852
|
operations: OperationsResource;
|
|
@@ -1586,6 +1856,8 @@ declare namespace gapi.client {
|
|
|
1586
1856
|
locations: LocationsResource;
|
|
1587
1857
|
}
|
|
1588
1858
|
|
|
1859
|
+
const organizations: OrganizationsResource;
|
|
1860
|
+
|
|
1589
1861
|
const projects: ProjectsResource;
|
|
1590
1862
|
}
|
|
1591
1863
|
}
|
package/package.json
CHANGED
package/tests.ts
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
// This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
|
|
4
4
|
// In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
|
|
5
5
|
|
|
6
|
-
// Revision:
|
|
6
|
+
// Revision: 20221205
|
|
7
7
|
|
|
8
8
|
gapi.load('client', async () => {
|
|
9
9
|
/** now we can use gapi.client */
|
|
@@ -29,6 +29,39 @@ gapi.load('client', async () => {
|
|
|
29
29
|
});
|
|
30
30
|
|
|
31
31
|
async function run() {
|
|
32
|
+
/**
|
|
33
|
+
* 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
|
|
34
|
+
* 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
|
|
35
|
+
* 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
|
|
36
|
+
* 1, corresponding to `Code.CANCELLED`.
|
|
37
|
+
*/
|
|
38
|
+
await gapi.client.networksecurity.organizations.locations.operations.cancel({
|
|
39
|
+
name: "Test string",
|
|
40
|
+
}, {
|
|
41
|
+
});
|
|
42
|
+
/**
|
|
43
|
+
* 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
|
|
44
|
+
* this method, it returns `google.rpc.Code.UNIMPLEMENTED`.
|
|
45
|
+
*/
|
|
46
|
+
await gapi.client.networksecurity.organizations.locations.operations.delete({
|
|
47
|
+
name: "Test string",
|
|
48
|
+
});
|
|
49
|
+
/** 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. */
|
|
50
|
+
await gapi.client.networksecurity.organizations.locations.operations.get({
|
|
51
|
+
name: "Test string",
|
|
52
|
+
});
|
|
53
|
+
/**
|
|
54
|
+
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` binding allows API services to
|
|
55
|
+
* override the binding to use different resource name schemes, such as `users/*/operations`. To override the binding, API services can add a binding such as
|
|
56
|
+
* `"/v1/{name=users/*}/operations"` to their service configuration. For backwards compatibility, the default name includes the operations collection id, however overriding users must
|
|
57
|
+
* ensure the name binding is the parent resource, without the operations collection id.
|
|
58
|
+
*/
|
|
59
|
+
await gapi.client.networksecurity.organizations.locations.operations.list({
|
|
60
|
+
filter: "Test string",
|
|
61
|
+
name: "Test string",
|
|
62
|
+
pageSize: 42,
|
|
63
|
+
pageToken: "Test string",
|
|
64
|
+
});
|
|
32
65
|
/** Gets information about a location. */
|
|
33
66
|
await gapi.client.networksecurity.projects.locations.get({
|
|
34
67
|
name: "Test string",
|
|
@@ -40,6 +73,59 @@ gapi.load('client', async () => {
|
|
|
40
73
|
pageSize: 42,
|
|
41
74
|
pageToken: "Test string",
|
|
42
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.networksecurity.projects.locations.addressGroups.getIamPolicy({
|
|
78
|
+
"options.requestedPolicyVersion": 42,
|
|
79
|
+
resource: "Test string",
|
|
80
|
+
});
|
|
81
|
+
/** Sets the access control policy on the specified resource. Replaces any existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and `PERMISSION_DENIED` errors. */
|
|
82
|
+
await gapi.client.networksecurity.projects.locations.addressGroups.setIamPolicy({
|
|
83
|
+
resource: "Test string",
|
|
84
|
+
}, {
|
|
85
|
+
policy: {
|
|
86
|
+
auditConfigs: [
|
|
87
|
+
{
|
|
88
|
+
auditLogConfigs: [
|
|
89
|
+
{
|
|
90
|
+
exemptedMembers: [
|
|
91
|
+
"Test string"
|
|
92
|
+
],
|
|
93
|
+
logType: "Test string",
|
|
94
|
+
}
|
|
95
|
+
],
|
|
96
|
+
service: "Test string",
|
|
97
|
+
}
|
|
98
|
+
],
|
|
99
|
+
bindings: [
|
|
100
|
+
{
|
|
101
|
+
condition: {
|
|
102
|
+
description: "Test string",
|
|
103
|
+
expression: "Test string",
|
|
104
|
+
location: "Test string",
|
|
105
|
+
title: "Test string",
|
|
106
|
+
},
|
|
107
|
+
members: [
|
|
108
|
+
"Test string"
|
|
109
|
+
],
|
|
110
|
+
role: "Test string",
|
|
111
|
+
}
|
|
112
|
+
],
|
|
113
|
+
etag: "Test string",
|
|
114
|
+
version: 42,
|
|
115
|
+
},
|
|
116
|
+
updateMask: "Test string",
|
|
117
|
+
});
|
|
118
|
+
/**
|
|
119
|
+
* 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
|
|
120
|
+
* 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.
|
|
121
|
+
*/
|
|
122
|
+
await gapi.client.networksecurity.projects.locations.addressGroups.testIamPermissions({
|
|
123
|
+
resource: "Test string",
|
|
124
|
+
}, {
|
|
125
|
+
permissions: [
|
|
126
|
+
"Test string"
|
|
127
|
+
],
|
|
128
|
+
});
|
|
43
129
|
/** Creates a new AuthorizationPolicy in a given project and location. */
|
|
44
130
|
await gapi.client.networksecurity.projects.locations.authorizationPolicies.create({
|
|
45
131
|
authorizationPolicyId: "Test string",
|