@maxim_mazurok/gapi.client.servicecontrol-v2 0.1.20260220 → 0.2.20260220
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 +31 -13
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -128,7 +128,12 @@ declare namespace gapi.client {
|
|
|
128
128
|
/** The required IAM permission. */
|
|
129
129
|
permission?: string;
|
|
130
130
|
/** The type of the permission that was checked. For data access audit logs this corresponds with the permission type that must be enabled in the project/folder/organization IAM policy in order for the log to be written. */
|
|
131
|
-
permissionType?:
|
|
131
|
+
permissionType?:
|
|
132
|
+
| 'PERMISSION_TYPE_UNSPECIFIED'
|
|
133
|
+
| 'ADMIN_READ'
|
|
134
|
+
| 'ADMIN_WRITE'
|
|
135
|
+
| 'DATA_READ'
|
|
136
|
+
| 'DATA_WRITE';
|
|
132
137
|
/** The resource being accessed, as a REST-style or cloud resource string. For example: bigquery.googleapis.com/projects/PROJECTID/datasets/DATASETID or projects/PROJECTID/datasets/DATASETID */
|
|
133
138
|
resource?: string;
|
|
134
139
|
/** Resource attributes used in IAM condition evaluation. This field contains resource attributes like resource type and resource name. To get the whole view of the attributes used in IAM condition evaluation, the user must also look into `AuditLog.request_metadata.request_attributes`. */
|
|
@@ -384,7 +389,16 @@ declare namespace gapi.client {
|
|
|
384
389
|
/** The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog. */
|
|
385
390
|
protoPayload?: {[P in string]: any};
|
|
386
391
|
/** The severity of the log entry. The default value is `LogSeverity.DEFAULT`. */
|
|
387
|
-
severity?:
|
|
392
|
+
severity?:
|
|
393
|
+
| 'DEFAULT'
|
|
394
|
+
| 'DEBUG'
|
|
395
|
+
| 'INFO'
|
|
396
|
+
| 'NOTICE'
|
|
397
|
+
| 'WARNING'
|
|
398
|
+
| 'ERROR'
|
|
399
|
+
| 'CRITICAL'
|
|
400
|
+
| 'ALERT'
|
|
401
|
+
| 'EMERGENCY';
|
|
388
402
|
/** Optional. Source code location information associated with the log entry, if any. */
|
|
389
403
|
sourceLocation?: V2LogEntrySourceLocation;
|
|
390
404
|
/** The log entry payload, represented as a structure that is expressed as a JSON object. */
|
|
@@ -422,13 +436,13 @@ declare namespace gapi.client {
|
|
|
422
436
|
/** The parent resource for the resource. */
|
|
423
437
|
parent?: Resource;
|
|
424
438
|
/** The api path the resource event was created in. This should match the source of the `payload` field. For direct integrations with Chemist, this should generally be the RESPONSE. go/resource-event-pipeline-type */
|
|
425
|
-
path?:
|
|
439
|
+
path?: 'API_PATH_UNSPECIFIED' | 'REQUEST' | 'RESPONSE';
|
|
426
440
|
/** The payload contains metadata associated with the resource event. A ResourceEventPayloadStatus is provided instead if the original payload cannot be returned due to a limitation (e.g. size limit). */
|
|
427
441
|
payload?: {[P in string]: any};
|
|
428
442
|
/** The resource associated with the event. */
|
|
429
443
|
resource?: Resource;
|
|
430
444
|
/** The resource event type determines how the backend service should process the event. */
|
|
431
|
-
type?:
|
|
445
|
+
type?: 'TYPE_UNSPECIFIED' | 'CREATE' | 'UPDATE' | 'DELETE' | 'UNDELETE';
|
|
432
446
|
}
|
|
433
447
|
interface ViolationInfo {
|
|
434
448
|
/** Optional. Value that is being checked for the policy. This could be in encrypted form (if pii sensitive). This field will only be emitted in LIST_POLICY types */
|
|
@@ -440,17 +454,21 @@ declare namespace gapi.client {
|
|
|
440
454
|
/** Optional. Error message that policy is indicating. */
|
|
441
455
|
errorMessage?: string;
|
|
442
456
|
/** Optional. Indicates the type of the policy. */
|
|
443
|
-
policyType?:
|
|
457
|
+
policyType?:
|
|
458
|
+
| 'POLICY_TYPE_UNSPECIFIED'
|
|
459
|
+
| 'BOOLEAN_CONSTRAINT'
|
|
460
|
+
| 'LIST_CONSTRAINT'
|
|
461
|
+
| 'CUSTOM_CONSTRAINT';
|
|
444
462
|
}
|
|
445
463
|
interface ServicesResource {
|
|
446
464
|
/** This method provides admission control for services that are integrated with [Service Infrastructure](https://cloud.google.com/service-infrastructure). It checks whether an operation should be allowed based on the service configuration and relevant policies. It must be called before the operation is executed. For more information, see [Admission Control](https://cloud.google.com/service-infrastructure/docs/admission-control). NOTE: The admission control has an expected policy propagation delay of 60s. The caller **must** not depend on the most recent policy changes. NOTE: The admission control has a hard limit of 1 referenced resources per call. If an operation refers to more than 1 resources, the caller must call the Check method multiple times. This method requires the `servicemanagement.services.check` permission on the specified service. For more information, see [Service Control API Access Control](https://cloud.google.com/service-infrastructure/docs/service-control/access-control). */
|
|
447
465
|
check(request: {
|
|
448
466
|
/** V1 error format. */
|
|
449
|
-
'$.xgafv'?:
|
|
467
|
+
'$.xgafv'?: '1' | '2';
|
|
450
468
|
/** OAuth access token. */
|
|
451
469
|
access_token?: string;
|
|
452
470
|
/** Data format for response. */
|
|
453
|
-
alt?:
|
|
471
|
+
alt?: 'json' | 'media' | 'proto';
|
|
454
472
|
/** JSONP */
|
|
455
473
|
callback?: string;
|
|
456
474
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -475,11 +493,11 @@ declare namespace gapi.client {
|
|
|
475
493
|
check(
|
|
476
494
|
request: {
|
|
477
495
|
/** V1 error format. */
|
|
478
|
-
'$.xgafv'?:
|
|
496
|
+
'$.xgafv'?: '1' | '2';
|
|
479
497
|
/** OAuth access token. */
|
|
480
498
|
access_token?: string;
|
|
481
499
|
/** Data format for response. */
|
|
482
|
-
alt?:
|
|
500
|
+
alt?: 'json' | 'media' | 'proto';
|
|
483
501
|
/** JSONP */
|
|
484
502
|
callback?: string;
|
|
485
503
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -504,11 +522,11 @@ declare namespace gapi.client {
|
|
|
504
522
|
/** This method provides telemetry reporting for services that are integrated with [Service Infrastructure](https://cloud.google.com/service-infrastructure). It reports a list of operations that have occurred on a service. It must be called after the operations have been executed. For more information, see [Telemetry Reporting](https://cloud.google.com/service-infrastructure/docs/telemetry-reporting). NOTE: The telemetry reporting has a hard limit of 100 operations and 1MB per Report call. This method requires the `servicemanagement.services.report` permission on the specified service. For more information, see [Service Control API Access Control](https://cloud.google.com/service-infrastructure/docs/service-control/access-control). */
|
|
505
523
|
report(request: {
|
|
506
524
|
/** V1 error format. */
|
|
507
|
-
'$.xgafv'?:
|
|
525
|
+
'$.xgafv'?: '1' | '2';
|
|
508
526
|
/** OAuth access token. */
|
|
509
527
|
access_token?: string;
|
|
510
528
|
/** Data format for response. */
|
|
511
|
-
alt?:
|
|
529
|
+
alt?: 'json' | 'media' | 'proto';
|
|
512
530
|
/** JSONP */
|
|
513
531
|
callback?: string;
|
|
514
532
|
/** Selector specifying which fields to include in a partial response. */
|
|
@@ -533,11 +551,11 @@ declare namespace gapi.client {
|
|
|
533
551
|
report(
|
|
534
552
|
request: {
|
|
535
553
|
/** V1 error format. */
|
|
536
|
-
'$.xgafv'?:
|
|
554
|
+
'$.xgafv'?: '1' | '2';
|
|
537
555
|
/** OAuth access token. */
|
|
538
556
|
access_token?: string;
|
|
539
557
|
/** Data format for response. */
|
|
540
|
-
alt?:
|
|
558
|
+
alt?: 'json' | 'media' | 'proto';
|
|
541
559
|
/** JSONP */
|
|
542
560
|
callback?: string;
|
|
543
561
|
/** Selector specifying which fields to include in a partial response. */
|