@googleapis/servicecontrol 1.0.0 → 1.1.1
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/CHANGELOG.md +32 -0
- package/README.md +13 -23
- package/build/index.js +5 -4
- package/build/index.js.map +1 -1
- package/build/v1.d.ts +278 -192
- package/build/v1.js +7 -7
- package/build/v1.js.map +1 -1
- package/build/v2.d.ts +284 -122
- package/build/v2.js +5 -5
- package/build/v2.js.map +1 -1
- package/index.ts +1 -1
- package/package.json +7 -7
- package/v1.ts +264 -191
- package/v2.ts +270 -123
package/v2.ts
CHANGED
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
// limitations under the License.
|
|
13
13
|
|
|
14
14
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
15
|
-
/* eslint-disable @typescript-eslint/class-name-casing */
|
|
16
15
|
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
17
16
|
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
18
17
|
/* eslint-disable @typescript-eslint/no-namespace */
|
|
@@ -207,6 +206,10 @@ export namespace servicecontrol_v2 {
|
|
|
207
206
|
* The number of items returned from a List or Query API method, if applicable.
|
|
208
207
|
*/
|
|
209
208
|
numResponseItems?: string | null;
|
|
209
|
+
/**
|
|
210
|
+
* Indicates the policy violations for this request. If the request is denied by the policy, violation information will be logged here.
|
|
211
|
+
*/
|
|
212
|
+
policyViolationInfo?: Schema$PolicyViolationInfo;
|
|
210
213
|
/**
|
|
211
214
|
* The operation request. This may not include all request parameters, such as those that are too large, privacy-sensitive, or duplicated elsewhere in the log record. It should never include user-generated data, such as file contents. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the `@type` property.
|
|
212
215
|
*/
|
|
@@ -293,6 +296,10 @@ export namespace servicecontrol_v2 {
|
|
|
293
296
|
* The name of the service account key used to create or exchange credentials for authenticating the service account making the request. This is a scheme-less URI full resource name. For example: "//iam.googleapis.com/projects/{PROJECT_ID\}/serviceAccounts/{ACCOUNT\}/keys/{key\}"
|
|
294
297
|
*/
|
|
295
298
|
serviceAccountKeyName?: string | null;
|
|
299
|
+
/**
|
|
300
|
+
* Records the history of delegated resource access across Google services.
|
|
301
|
+
*/
|
|
302
|
+
serviceDelegationHistory?: Schema$ServiceDelegationHistory;
|
|
296
303
|
/**
|
|
297
304
|
* The third party identification (if any) of the authenticated user making the request. When the JSON object represented here has a proto equivalent, the proto name will be indicated in the `@type` property.
|
|
298
305
|
*/
|
|
@@ -349,7 +356,7 @@ export namespace servicecontrol_v2 {
|
|
|
349
356
|
*/
|
|
350
357
|
headers?: {[key: string]: string} | null;
|
|
351
358
|
/**
|
|
352
|
-
*
|
|
359
|
+
* Operation is allowed when this field is not set. Any non-'OK' status indicates a denial; google.rpc.Status.details would contain additional details about the denial.
|
|
353
360
|
*/
|
|
354
361
|
status?: Schema$Status;
|
|
355
362
|
}
|
|
@@ -366,6 +373,27 @@ export namespace servicecontrol_v2 {
|
|
|
366
373
|
*/
|
|
367
374
|
serviceMetadata?: {[key: string]: any} | null;
|
|
368
375
|
}
|
|
376
|
+
/**
|
|
377
|
+
* Represents OrgPolicy Violation information.
|
|
378
|
+
*/
|
|
379
|
+
export interface Schema$OrgPolicyViolationInfo {
|
|
380
|
+
/**
|
|
381
|
+
* Optional. Resource payload that is currently in scope and is subjected to orgpolicy conditions. This payload may be the subset of the actual Resource that may come in the request. This payload should not contain any core content.
|
|
382
|
+
*/
|
|
383
|
+
payload?: {[key: string]: any} | null;
|
|
384
|
+
/**
|
|
385
|
+
* Optional. Tags referenced on the resource at the time of evaluation. These also include the federated tags, if they are supplied in the CheckOrgPolicy or CheckCustomConstraints Requests. Optional field as of now. These tags are the Cloud tags that are available on the resource during the policy evaluation and will be available as part of the OrgPolicy check response for logging purposes.
|
|
386
|
+
*/
|
|
387
|
+
resourceTags?: {[key: string]: string} | null;
|
|
388
|
+
/**
|
|
389
|
+
* Optional. Resource type that the orgpolicy is checked against. Example: compute.googleapis.com/Instance, store.googleapis.com/bucket
|
|
390
|
+
*/
|
|
391
|
+
resourceType?: string | null;
|
|
392
|
+
/**
|
|
393
|
+
* Optional. Policy violations
|
|
394
|
+
*/
|
|
395
|
+
violationInfo?: Schema$ViolationInfo[];
|
|
396
|
+
}
|
|
369
397
|
/**
|
|
370
398
|
* This message defines attributes for a node that handles a network request. The node can be either a service or an application that sends, forwards, or receives the request. Service peers should fill in `principal` and `labels` as appropriate.
|
|
371
399
|
*/
|
|
@@ -383,7 +411,7 @@ export namespace servicecontrol_v2 {
|
|
|
383
411
|
*/
|
|
384
412
|
port?: string | null;
|
|
385
413
|
/**
|
|
386
|
-
* The identity of this peer. Similar to `Request.auth.principal`, but relative to the peer instead of the request. For example, the
|
|
414
|
+
* The identity of this peer. Similar to `Request.auth.principal`, but relative to the peer instead of the request. For example, the identity associated with a load balancer that forwarded the request.
|
|
387
415
|
*/
|
|
388
416
|
principal?: string | null;
|
|
389
417
|
/**
|
|
@@ -391,6 +419,15 @@ export namespace servicecontrol_v2 {
|
|
|
391
419
|
*/
|
|
392
420
|
regionCode?: string | null;
|
|
393
421
|
}
|
|
422
|
+
/**
|
|
423
|
+
* Information related to policy violations for this request.
|
|
424
|
+
*/
|
|
425
|
+
export interface Schema$PolicyViolationInfo {
|
|
426
|
+
/**
|
|
427
|
+
* Indicates the orgpolicy violations for this resource.
|
|
428
|
+
*/
|
|
429
|
+
orgPolicyViolationInfo?: Schema$OrgPolicyViolationInfo;
|
|
430
|
+
}
|
|
394
431
|
/**
|
|
395
432
|
* Request message for the Report method.
|
|
396
433
|
*/
|
|
@@ -405,7 +442,7 @@ export namespace servicecontrol_v2 {
|
|
|
405
442
|
serviceConfigId?: string | null;
|
|
406
443
|
}
|
|
407
444
|
/**
|
|
408
|
-
* Response message for the Report method.
|
|
445
|
+
* Response message for the Report method.
|
|
409
446
|
*/
|
|
410
447
|
export interface Schema$ReportResponse {}
|
|
411
448
|
/**
|
|
@@ -433,7 +470,7 @@ export namespace servicecontrol_v2 {
|
|
|
433
470
|
*/
|
|
434
471
|
method?: string | null;
|
|
435
472
|
/**
|
|
436
|
-
* The HTTP URL path.
|
|
473
|
+
* The HTTP URL path, excluding the query parameters.
|
|
437
474
|
*/
|
|
438
475
|
path?: string | null;
|
|
439
476
|
/**
|
|
@@ -466,7 +503,7 @@ export namespace servicecontrol_v2 {
|
|
|
466
503
|
*/
|
|
467
504
|
export interface Schema$RequestMetadata {
|
|
468
505
|
/**
|
|
469
|
-
* The IP address of the caller. For caller from internet, this will be public IPv4 or IPv6 address. For caller from a Compute Engine VM with external IP address,
|
|
506
|
+
* The IP address of the caller. For a caller from the internet, this will be the public IPv4 or IPv6 address. For calls made from inside Google's internal production network from one GCP service to another, `caller_ip` will be redacted to "private". For a caller from a Compute Engine VM with a external IP address, `caller_ip` will be the VM's external IP address. For a caller from a Compute Engine VM without a external IP address, if the VM is in the same organization (or project) as the accessed resource, `caller_ip` will be the VM's internal IPv4 address, otherwise `caller_ip` will be redacted to "gce-internal-ip". See https://cloud.google.com/compute/docs/vpc/ for more information.
|
|
470
507
|
*/
|
|
471
508
|
callerIp?: string | null;
|
|
472
509
|
/**
|
|
@@ -474,7 +511,7 @@ export namespace servicecontrol_v2 {
|
|
|
474
511
|
*/
|
|
475
512
|
callerNetwork?: string | null;
|
|
476
513
|
/**
|
|
477
|
-
* The user agent of the caller. This information is not authenticated and should be treated accordingly. For example: + `google-api-python-client/1.4.0`: The request was made by the Google API client for Python. + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: The request was made by the Google Cloud SDK CLI (gcloud). + `AppEngine-Google; (+http://code.google.com/appengine; appid: s~my-project`: The request was made from the `my-project` App Engine app.
|
|
514
|
+
* The user agent of the caller. This information is not authenticated and should be treated accordingly. For example: + `google-api-python-client/1.4.0`: The request was made by the Google API client for Python. + `Cloud SDK Command Line Tool apitools-client/1.0 gcloud/0.9.62`: The request was made by the Google Cloud SDK CLI (gcloud). + `AppEngine-Google; (+http://code.google.com/appengine; appid: s~my-project`: The request was made from the `my-project` App Engine app.
|
|
478
515
|
*/
|
|
479
516
|
callerSuppliedUserAgent?: string | null;
|
|
480
517
|
/**
|
|
@@ -491,7 +528,7 @@ export namespace servicecontrol_v2 {
|
|
|
491
528
|
*/
|
|
492
529
|
export interface Schema$Resource {
|
|
493
530
|
/**
|
|
494
|
-
* Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/
|
|
531
|
+
* Annotations is an unstructured key-value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations/
|
|
495
532
|
*/
|
|
496
533
|
annotations?: {[key: string]: string} | null;
|
|
497
534
|
/**
|
|
@@ -527,7 +564,7 @@ export namespace servicecontrol_v2 {
|
|
|
527
564
|
*/
|
|
528
565
|
service?: string | null;
|
|
529
566
|
/**
|
|
530
|
-
* The type of the resource. The syntax is platform-specific because different platforms define their resources differently. For Google APIs, the type format must be "{service\}/{kind\}".
|
|
567
|
+
* The type of the resource. The syntax is platform-specific because different platforms define their resources differently. For Google APIs, the type format must be "{service\}/{kind\}", such as "pubsub.googleapis.com/Topic".
|
|
531
568
|
*/
|
|
532
569
|
type?: string | null;
|
|
533
570
|
/**
|
|
@@ -543,6 +580,14 @@ export namespace servicecontrol_v2 {
|
|
|
543
580
|
* Describes a resource referenced in the request.
|
|
544
581
|
*/
|
|
545
582
|
export interface Schema$ResourceInfo {
|
|
583
|
+
/**
|
|
584
|
+
* Optional. The identifier of the container of this resource. For Google Cloud APIs, the resource container must be one of the following formats: - `projects/` - `folders/` - `organizations/` Required for the policy enforcement on the container level (e.g. VPCSC, Location Policy check, Org Policy check).
|
|
585
|
+
*/
|
|
586
|
+
container?: string | null;
|
|
587
|
+
/**
|
|
588
|
+
* Optional. The location of the resource, it must be a valid zone, region or multiregion, for example: "europe-west4", "northamerica-northeast1-a". Required for location policy check.
|
|
589
|
+
*/
|
|
590
|
+
location?: string | null;
|
|
546
591
|
/**
|
|
547
592
|
* The name of the resource referenced in the request.
|
|
548
593
|
*/
|
|
@@ -574,7 +619,7 @@ export namespace servicecontrol_v2 {
|
|
|
574
619
|
*/
|
|
575
620
|
export interface Schema$Response {
|
|
576
621
|
/**
|
|
577
|
-
* The
|
|
622
|
+
* The amount of time it takes the backend service to fully respond to a request. Measured from when the destination service starts to send the request to the backend until when the destination service receives the complete response from the backend.
|
|
578
623
|
*/
|
|
579
624
|
backendLatency?: string | null;
|
|
580
625
|
/**
|
|
@@ -603,7 +648,7 @@ export namespace servicecontrol_v2 {
|
|
|
603
648
|
*/
|
|
604
649
|
firstPartyPrincipal?: Schema$FirstPartyPrincipal;
|
|
605
650
|
/**
|
|
606
|
-
* A string representing the principal_subject associated with the identity.
|
|
651
|
+
* A string representing the principal_subject associated with the identity. For most identities, the format will be `principal://iam.googleapis.com/{identity pool name\}/subject/{subject)` except for some GKE identities (GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the legacy format `serviceAccount:{identity pool name\}[{subject\}]`
|
|
607
652
|
*/
|
|
608
653
|
principalSubject?: string | null;
|
|
609
654
|
/**
|
|
@@ -612,7 +657,37 @@ export namespace servicecontrol_v2 {
|
|
|
612
657
|
thirdPartyPrincipal?: Schema$ThirdPartyPrincipal;
|
|
613
658
|
}
|
|
614
659
|
/**
|
|
615
|
-
* The
|
|
660
|
+
* The history of delegation across multiple services as the result of the original user's action. Such as "service A uses its own account to do something for user B". This differs from ServiceAccountDelegationInfo, which only tracks the history of direct token exchanges (impersonation).
|
|
661
|
+
*/
|
|
662
|
+
export interface Schema$ServiceDelegationHistory {
|
|
663
|
+
/**
|
|
664
|
+
* The original end user who initiated the request to GCP.
|
|
665
|
+
*/
|
|
666
|
+
originalPrincipal?: string | null;
|
|
667
|
+
/**
|
|
668
|
+
* Data identifying the service specific jobs or units of work that were involved in a chain of service calls.
|
|
669
|
+
*/
|
|
670
|
+
serviceMetadata?: Schema$ServiceMetadata[];
|
|
671
|
+
}
|
|
672
|
+
/**
|
|
673
|
+
* Metadata describing the service and additional service specific information used to identify the job or unit of work at hand.
|
|
674
|
+
*/
|
|
675
|
+
export interface Schema$ServiceMetadata {
|
|
676
|
+
/**
|
|
677
|
+
* Additional metadata provided by service teams to describe service specific job information that was triggered by the original principal.
|
|
678
|
+
*/
|
|
679
|
+
jobMetadata?: {[key: string]: any} | null;
|
|
680
|
+
/**
|
|
681
|
+
* A string representing the principal_subject associated with the identity. For most identities, the format will be `principal://iam.googleapis.com/{identity pool name\}/subject/{subject)` except for some GKE identities (GKE_WORKLOAD, FREEFORM, GKE_HUB_WORKLOAD) that are still in the legacy format `serviceAccount:{identity pool name\}[{subject\}]` If the identity is a Google account (e.g. workspace user account or service account), this will be the email of the prefixed by `serviceAccount:`. For example: `serviceAccount:my-service-account@project-1.iam.gserviceaccount.com`. If the identity is an individual user, the identity will be formatted as: `user:user_ABC@email.com`.
|
|
682
|
+
*/
|
|
683
|
+
principalSubject?: string | null;
|
|
684
|
+
/**
|
|
685
|
+
* The service's fully qualified domain name, e.g. "dataproc.googleapis.com".
|
|
686
|
+
*/
|
|
687
|
+
serviceDomain?: string | null;
|
|
688
|
+
}
|
|
689
|
+
/**
|
|
690
|
+
* The context of a span. This is attached to an Exemplar in Distribution values during aggregation. It contains the name of a span with format: projects/[PROJECT_ID_OR_NUMBER]/traces/[TRACE_ID]/spans/[SPAN_ID]
|
|
616
691
|
*/
|
|
617
692
|
export interface Schema$SpanContext {
|
|
618
693
|
/**
|
|
@@ -646,6 +721,187 @@ export namespace servicecontrol_v2 {
|
|
|
646
721
|
*/
|
|
647
722
|
thirdPartyClaims?: {[key: string]: any} | null;
|
|
648
723
|
}
|
|
724
|
+
/**
|
|
725
|
+
* A common proto for logging HTTP requests. Only contains semantics defined by the HTTP specification. Product-specific logging information MUST be defined in a separate message.
|
|
726
|
+
*/
|
|
727
|
+
export interface Schema$V2HttpRequest {
|
|
728
|
+
/**
|
|
729
|
+
* The number of HTTP response bytes inserted into cache. Set only when a cache fill was attempted.
|
|
730
|
+
*/
|
|
731
|
+
cacheFillBytes?: string | null;
|
|
732
|
+
/**
|
|
733
|
+
* Whether or not an entity was served from cache (with or without validation).
|
|
734
|
+
*/
|
|
735
|
+
cacheHit?: boolean | null;
|
|
736
|
+
/**
|
|
737
|
+
* Whether or not a cache lookup was attempted.
|
|
738
|
+
*/
|
|
739
|
+
cacheLookup?: boolean | null;
|
|
740
|
+
/**
|
|
741
|
+
* Whether or not the response was validated with the origin server before being served from cache. This field is only meaningful if `cache_hit` is True.
|
|
742
|
+
*/
|
|
743
|
+
cacheValidatedWithOriginServer?: boolean | null;
|
|
744
|
+
/**
|
|
745
|
+
* The request processing latency on the server, from the time the request was received until the response was sent.
|
|
746
|
+
*/
|
|
747
|
+
latency?: string | null;
|
|
748
|
+
/**
|
|
749
|
+
* Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
|
|
750
|
+
*/
|
|
751
|
+
protocol?: string | null;
|
|
752
|
+
/**
|
|
753
|
+
* The referer URL of the request, as defined in [HTTP/1.1 Header Field Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
|
|
754
|
+
*/
|
|
755
|
+
referer?: string | null;
|
|
756
|
+
/**
|
|
757
|
+
* The IP address (IPv4 or IPv6) of the client that issued the HTTP request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
|
|
758
|
+
*/
|
|
759
|
+
remoteIp?: string | null;
|
|
760
|
+
/**
|
|
761
|
+
* The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
|
|
762
|
+
*/
|
|
763
|
+
requestMethod?: string | null;
|
|
764
|
+
/**
|
|
765
|
+
* The size of the HTTP request message in bytes, including the request headers and the request body.
|
|
766
|
+
*/
|
|
767
|
+
requestSize?: string | null;
|
|
768
|
+
/**
|
|
769
|
+
* The scheme (http, https), the host name, the path, and the query portion of the URL that was requested. Example: `"http://example.com/some/info?color=red"`.
|
|
770
|
+
*/
|
|
771
|
+
requestUrl?: string | null;
|
|
772
|
+
/**
|
|
773
|
+
* The size of the HTTP response message sent back to the client, in bytes, including the response headers and the response body.
|
|
774
|
+
*/
|
|
775
|
+
responseSize?: string | null;
|
|
776
|
+
/**
|
|
777
|
+
* The IP address (IPv4 or IPv6) of the origin server that the request was sent to.
|
|
778
|
+
*/
|
|
779
|
+
serverIp?: string | null;
|
|
780
|
+
/**
|
|
781
|
+
* The response code indicating the status of the response. Examples: 200, 404.
|
|
782
|
+
*/
|
|
783
|
+
status?: number | null;
|
|
784
|
+
/**
|
|
785
|
+
* The user agent sent by the client. Example: `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)"`.
|
|
786
|
+
*/
|
|
787
|
+
userAgent?: string | null;
|
|
788
|
+
}
|
|
789
|
+
/**
|
|
790
|
+
* An individual log entry.
|
|
791
|
+
*/
|
|
792
|
+
export interface Schema$V2LogEntry {
|
|
793
|
+
/**
|
|
794
|
+
* Optional. Information about the HTTP request associated with this log entry, if applicable.
|
|
795
|
+
*/
|
|
796
|
+
httpRequest?: Schema$V2HttpRequest;
|
|
797
|
+
/**
|
|
798
|
+
* A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.
|
|
799
|
+
*/
|
|
800
|
+
insertId?: string | null;
|
|
801
|
+
/**
|
|
802
|
+
* A set of user-defined (key, value) data that provides additional information about the log entry.
|
|
803
|
+
*/
|
|
804
|
+
labels?: {[key: string]: string} | null;
|
|
805
|
+
/**
|
|
806
|
+
* A set of user-defined (key, value) data that provides additional information about the moniotored resource that the log entry belongs to.
|
|
807
|
+
*/
|
|
808
|
+
monitoredResourceLabels?: {[key: string]: string} | null;
|
|
809
|
+
/**
|
|
810
|
+
* Required. The log to which this log entry belongs. Examples: `"syslog"`, `"book_log"`.
|
|
811
|
+
*/
|
|
812
|
+
name?: string | null;
|
|
813
|
+
/**
|
|
814
|
+
* Optional. Information about an operation associated with the log entry, if applicable.
|
|
815
|
+
*/
|
|
816
|
+
operation?: Schema$V2LogEntryOperation;
|
|
817
|
+
/**
|
|
818
|
+
* The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog.
|
|
819
|
+
*/
|
|
820
|
+
protoPayload?: {[key: string]: any} | null;
|
|
821
|
+
/**
|
|
822
|
+
* The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
|
|
823
|
+
*/
|
|
824
|
+
severity?: string | null;
|
|
825
|
+
/**
|
|
826
|
+
* Optional. Source code location information associated with the log entry, if any.
|
|
827
|
+
*/
|
|
828
|
+
sourceLocation?: Schema$V2LogEntrySourceLocation;
|
|
829
|
+
/**
|
|
830
|
+
* The log entry payload, represented as a structure that is expressed as a JSON object.
|
|
831
|
+
*/
|
|
832
|
+
structPayload?: {[key: string]: any} | null;
|
|
833
|
+
/**
|
|
834
|
+
* The log entry payload, represented as a Unicode string (UTF-8).
|
|
835
|
+
*/
|
|
836
|
+
textPayload?: string | null;
|
|
837
|
+
/**
|
|
838
|
+
* The time the event described by the log entry occurred. If omitted, defaults to operation start time.
|
|
839
|
+
*/
|
|
840
|
+
timestamp?: string | null;
|
|
841
|
+
/**
|
|
842
|
+
* Optional. Resource name of the trace associated with the log entry, if any. If this field contains a relative resource name, you can assume the name is relative to `//tracing.googleapis.com`. Example: `projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824`
|
|
843
|
+
*/
|
|
844
|
+
trace?: string | null;
|
|
845
|
+
}
|
|
846
|
+
/**
|
|
847
|
+
* Additional information about a potentially long-running operation with which a log entry is associated.
|
|
848
|
+
*/
|
|
849
|
+
export interface Schema$V2LogEntryOperation {
|
|
850
|
+
/**
|
|
851
|
+
* Optional. Set this to True if this is the first log entry in the operation.
|
|
852
|
+
*/
|
|
853
|
+
first?: boolean | null;
|
|
854
|
+
/**
|
|
855
|
+
* Optional. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operation.
|
|
856
|
+
*/
|
|
857
|
+
id?: string | null;
|
|
858
|
+
/**
|
|
859
|
+
* Optional. Set this to True if this is the last log entry in the operation.
|
|
860
|
+
*/
|
|
861
|
+
last?: boolean | null;
|
|
862
|
+
/**
|
|
863
|
+
* Optional. An arbitrary producer identifier. The combination of `id` and `producer` must be globally unique. Examples for `producer`: `"MyDivision.MyBigCompany.com"`, `"github.com/MyProject/MyApplication"`.
|
|
864
|
+
*/
|
|
865
|
+
producer?: string | null;
|
|
866
|
+
}
|
|
867
|
+
/**
|
|
868
|
+
* Additional information about the source code location that produced the log entry.
|
|
869
|
+
*/
|
|
870
|
+
export interface Schema$V2LogEntrySourceLocation {
|
|
871
|
+
/**
|
|
872
|
+
* Optional. Source file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name.
|
|
873
|
+
*/
|
|
874
|
+
file?: string | null;
|
|
875
|
+
/**
|
|
876
|
+
* Optional. Human-readable name of the function or method being invoked, with optional context such as the class or package name. This information may be used in contexts such as the logs viewer, where a file and line number are less meaningful. The format can vary by language. For example: `qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function` (Python).
|
|
877
|
+
*/
|
|
878
|
+
function?: string | null;
|
|
879
|
+
/**
|
|
880
|
+
* Optional. Line within the source file. 1-based; 0 indicates no line number available.
|
|
881
|
+
*/
|
|
882
|
+
line?: string | null;
|
|
883
|
+
}
|
|
884
|
+
/**
|
|
885
|
+
* Provides information about the Policy violation info for this request.
|
|
886
|
+
*/
|
|
887
|
+
export interface Schema$ViolationInfo {
|
|
888
|
+
/**
|
|
889
|
+
* 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
|
|
890
|
+
*/
|
|
891
|
+
checkedValue?: string | null;
|
|
892
|
+
/**
|
|
893
|
+
* Optional. Constraint name
|
|
894
|
+
*/
|
|
895
|
+
constraint?: string | null;
|
|
896
|
+
/**
|
|
897
|
+
* Optional. Error message that policy is indicating.
|
|
898
|
+
*/
|
|
899
|
+
errorMessage?: string | null;
|
|
900
|
+
/**
|
|
901
|
+
* Optional. Indicates the type of the policy.
|
|
902
|
+
*/
|
|
903
|
+
policyType?: string | null;
|
|
904
|
+
}
|
|
649
905
|
|
|
650
906
|
export class Resource$Services {
|
|
651
907
|
context: APIRequestContext;
|
|
@@ -654,64 +910,7 @@ export namespace servicecontrol_v2 {
|
|
|
654
910
|
}
|
|
655
911
|
|
|
656
912
|
/**
|
|
657
|
-
* Private Preview. This feature is only available for approved services. This method provides admission control for services that are integrated with [Service Infrastructure](/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](/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).
|
|
658
|
-
* @example
|
|
659
|
-
* ```js
|
|
660
|
-
* // Before running the sample:
|
|
661
|
-
* // - Enable the API at:
|
|
662
|
-
* // https://console.developers.google.com/apis/api/servicecontrol.googleapis.com
|
|
663
|
-
* // - Login into gcloud by running:
|
|
664
|
-
* // `$ gcloud auth application-default login`
|
|
665
|
-
* // - Install the npm module by running:
|
|
666
|
-
* // `$ npm install googleapis`
|
|
667
|
-
*
|
|
668
|
-
* const {google} = require('googleapis');
|
|
669
|
-
* const servicecontrol = google.servicecontrol('v2');
|
|
670
|
-
*
|
|
671
|
-
* async function main() {
|
|
672
|
-
* const auth = new google.auth.GoogleAuth({
|
|
673
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
674
|
-
* scopes: [
|
|
675
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
676
|
-
* 'https://www.googleapis.com/auth/servicecontrol',
|
|
677
|
-
* ],
|
|
678
|
-
* });
|
|
679
|
-
*
|
|
680
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
681
|
-
* const authClient = await auth.getClient();
|
|
682
|
-
* google.options({auth: authClient});
|
|
683
|
-
*
|
|
684
|
-
* // Do the magic
|
|
685
|
-
* const res = await servicecontrol.services.check({
|
|
686
|
-
* // The service name as specified in its service configuration. For example, `"pubsub.googleapis.com"`. See [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service) for the definition of a service name.
|
|
687
|
-
* serviceName: 'placeholder-value',
|
|
688
|
-
*
|
|
689
|
-
* // Request body metadata
|
|
690
|
-
* requestBody: {
|
|
691
|
-
* // request body parameters
|
|
692
|
-
* // {
|
|
693
|
-
* // "attributes": {},
|
|
694
|
-
* // "flags": "my_flags",
|
|
695
|
-
* // "resources": [],
|
|
696
|
-
* // "serviceConfigId": "my_serviceConfigId"
|
|
697
|
-
* // }
|
|
698
|
-
* },
|
|
699
|
-
* });
|
|
700
|
-
* console.log(res.data);
|
|
701
|
-
*
|
|
702
|
-
* // Example response
|
|
703
|
-
* // {
|
|
704
|
-
* // "headers": {},
|
|
705
|
-
* // "status": {}
|
|
706
|
-
* // }
|
|
707
|
-
* }
|
|
708
|
-
*
|
|
709
|
-
* main().catch(e => {
|
|
710
|
-
* console.error(e);
|
|
711
|
-
* throw e;
|
|
712
|
-
* });
|
|
713
|
-
*
|
|
714
|
-
* ```
|
|
913
|
+
* Private Preview. This feature is only available for approved services. 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).
|
|
715
914
|
*
|
|
716
915
|
* @param params - Parameters for request
|
|
717
916
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -798,59 +997,7 @@ export namespace servicecontrol_v2 {
|
|
|
798
997
|
}
|
|
799
998
|
|
|
800
999
|
/**
|
|
801
|
-
* Private Preview. This feature is only available for approved services. This method provides telemetry reporting for services that are integrated with [Service Infrastructure](/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](/service-infrastructure/docs/telemetry-reporting). NOTE: The telemetry reporting has a hard limit of 1000 operations and 1MB per Report call. It is recommended to have no more than 100 operations per 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).
|
|
802
|
-
* @example
|
|
803
|
-
* ```js
|
|
804
|
-
* // Before running the sample:
|
|
805
|
-
* // - Enable the API at:
|
|
806
|
-
* // https://console.developers.google.com/apis/api/servicecontrol.googleapis.com
|
|
807
|
-
* // - Login into gcloud by running:
|
|
808
|
-
* // `$ gcloud auth application-default login`
|
|
809
|
-
* // - Install the npm module by running:
|
|
810
|
-
* // `$ npm install googleapis`
|
|
811
|
-
*
|
|
812
|
-
* const {google} = require('googleapis');
|
|
813
|
-
* const servicecontrol = google.servicecontrol('v2');
|
|
814
|
-
*
|
|
815
|
-
* async function main() {
|
|
816
|
-
* const auth = new google.auth.GoogleAuth({
|
|
817
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
818
|
-
* scopes: [
|
|
819
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
820
|
-
* 'https://www.googleapis.com/auth/servicecontrol',
|
|
821
|
-
* ],
|
|
822
|
-
* });
|
|
823
|
-
*
|
|
824
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
825
|
-
* const authClient = await auth.getClient();
|
|
826
|
-
* google.options({auth: authClient});
|
|
827
|
-
*
|
|
828
|
-
* // Do the magic
|
|
829
|
-
* const res = await servicecontrol.services.report({
|
|
830
|
-
* // The service name as specified in its service configuration. For example, `"pubsub.googleapis.com"`. See [google.api.Service](https://cloud.google.com/service-management/reference/rpc/google.api#google.api.Service) for the definition of a service name.
|
|
831
|
-
* serviceName: 'placeholder-value',
|
|
832
|
-
*
|
|
833
|
-
* // Request body metadata
|
|
834
|
-
* requestBody: {
|
|
835
|
-
* // request body parameters
|
|
836
|
-
* // {
|
|
837
|
-
* // "operations": [],
|
|
838
|
-
* // "serviceConfigId": "my_serviceConfigId"
|
|
839
|
-
* // }
|
|
840
|
-
* },
|
|
841
|
-
* });
|
|
842
|
-
* console.log(res.data);
|
|
843
|
-
*
|
|
844
|
-
* // Example response
|
|
845
|
-
* // {}
|
|
846
|
-
* }
|
|
847
|
-
*
|
|
848
|
-
* main().catch(e => {
|
|
849
|
-
* console.error(e);
|
|
850
|
-
* throw e;
|
|
851
|
-
* });
|
|
852
|
-
*
|
|
853
|
-
* ```
|
|
1000
|
+
* Private Preview. This feature is only available for approved services. 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 1000 operations and 1MB per Report call. It is recommended to have no more than 100 operations per 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).
|
|
854
1001
|
*
|
|
855
1002
|
* @param params - Parameters for request
|
|
856
1003
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|