@googleapis/servicecontrol 1.0.0 → 1.1.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/build/v1.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"v1.js","sourceRoot":"","sources":["../v1.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;AACtE,oEAAoE;AACpE,2EAA2E;AAC3E,sEAAsE;AACtE,iCAAiC;;AAEjC,uDAAuD;AACvD,yDAAyD;AACzD,sDAAsD;AACtD,0DAA0D;AAC1D,oDAAoD;AACpD,4CAA4C;AAE5C,yDAe2B;AAG3B,IAAiB,iBAAiB,CA+qDjC;AA/qDD,WAAiB,iBAAiB;IAgEhC;;;;;;;;;;OAUG;IACH,MAAa,cAAc;QAIzB,YAAY,OAAsB,EAAE,MAA2B;YAC7D,IAAI,CAAC,OAAO,GAAG;gBACb,QAAQ,EAAE,OAAO,IAAI,EAAE;gBACvB,MAAM;aACP,CAAC;YAEF,IAAI,CAAC,QAAQ,GAAG,IAAI,iBAAiB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACtD,CAAC;KACF;IAZY,gCAAc,iBAY1B,CAAA;IAmnCD,MAAa,iBAAiB;QAE5B,YAAY,OAA0B;YACpC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACzB,CAAC;QA+FD,aAAa,CACX,gBAGkC,EAClC,iBAIkC,EAClC,QAEkC;YAKlC,IAAI,MAAM,GAAG,CAAC,gBAAgB;gBAC5B,EAAE,CAA2C,CAAC;YAChD,IAAI,OAAO,GAAG,CAAC,iBAAiB,IAAI,EAAE,CAAkB,CAAC;YAEzD,IAAI,OAAO,gBAAgB,KAAK,UAAU,EAAE;gBAC1C,QAAQ,GAAG,gBAAgB,CAAC;gBAC5B,MAAM,GAAG,EAA4C,CAA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UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CACpB;oBACE,GAAG,EAAE,CAAC,OAAO,GAAG,mCAAmC,CAAC,CAAC,OAAO,CAC1D,cAAc,EACd,IAAI,CACL;oBACD,MAAM,EAAE,MAAM;iBACf,EACD,OAAO,CACR;gBACD,MAAM;gBACN,cAAc,EAAE,CAAC,aAAa,CAAC;gBAC/B,UAAU,EAAE,CAAC,aAAa,CAAC;gBAC3B,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE;gBACZ,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,IAAA,oCAAgB,EAAwB,UAAU,CAAC,CAAC;aAC5D;QACH,CAAC;KACF;IAlRY,mCAAiB,oBAkR7B,CAAA;AAoCH,CAAC,EAzvDgB,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAyvDjC"}
package/build/v2.d.ts CHANGED
@@ -157,6 +157,10 @@ export declare namespace servicecontrol_v2 {
157
157
  * The number of items returned from a List or Query API method, if applicable.
158
158
  */
159
159
  numResponseItems?: string | null;
160
+ /**
161
+ * Indicates the policy violations for this request. If the request is denied by the policy, violation information will be logged here.
162
+ */
163
+ policyViolationInfo?: Schema$PolicyViolationInfo;
160
164
  /**
161
165
  * 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.
162
166
  */
@@ -253,6 +257,10 @@ export declare namespace servicecontrol_v2 {
253
257
  * 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\}"
254
258
  */
255
259
  serviceAccountKeyName?: string | null;
260
+ /**
261
+ * Records the history of delegated resource access across Google services.
262
+ */
263
+ serviceDelegationHistory?: Schema$ServiceDelegationHistory;
256
264
  /**
257
265
  * 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.
258
266
  */
@@ -313,7 +321,7 @@ export declare namespace servicecontrol_v2 {
313
321
  [key: string]: string;
314
322
  } | null;
315
323
  /**
316
- * An 'OK' status allows the operation. Any other status indicates a denial; [google.rpc.Status.details]() would contain additional details about the denial.
324
+ * 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.
317
325
  */
318
326
  status?: Schema$Status;
319
327
  }
@@ -332,6 +340,31 @@ export declare namespace servicecontrol_v2 {
332
340
  [key: string]: any;
333
341
  } | null;
334
342
  }
343
+ /**
344
+ * Represents OrgPolicy Violation information.
345
+ */
346
+ export interface Schema$OrgPolicyViolationInfo {
347
+ /**
348
+ * 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.
349
+ */
350
+ payload?: {
351
+ [key: string]: any;
352
+ } | null;
353
+ /**
354
+ * 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.
355
+ */
356
+ resourceTags?: {
357
+ [key: string]: string;
358
+ } | null;
359
+ /**
360
+ * Optional. Resource type that the orgpolicy is checked against. Example: compute.googleapis.com/Instance, store.googleapis.com/bucket
361
+ */
362
+ resourceType?: string | null;
363
+ /**
364
+ * Optional. Policy violations
365
+ */
366
+ violationInfo?: Schema$ViolationInfo[];
367
+ }
335
368
  /**
336
369
  * 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.
337
370
  */
@@ -351,7 +384,7 @@ export declare namespace servicecontrol_v2 {
351
384
  */
352
385
  port?: string | null;
353
386
  /**
354
- * The identity of this peer. Similar to `Request.auth.principal`, but relative to the peer instead of the request. For example, the idenity associated with a load balancer that forwared the request.
387
+ * 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.
355
388
  */
356
389
  principal?: string | null;
357
390
  /**
@@ -359,6 +392,15 @@ export declare namespace servicecontrol_v2 {
359
392
  */
360
393
  regionCode?: string | null;
361
394
  }
395
+ /**
396
+ * Information related to policy violations for this request.
397
+ */
398
+ export interface Schema$PolicyViolationInfo {
399
+ /**
400
+ * Indicates the orgpolicy violations for this resource.
401
+ */
402
+ orgPolicyViolationInfo?: Schema$OrgPolicyViolationInfo;
403
+ }
362
404
  /**
363
405
  * Request message for the Report method.
364
406
  */
@@ -373,7 +415,7 @@ export declare namespace servicecontrol_v2 {
373
415
  serviceConfigId?: string | null;
374
416
  }
375
417
  /**
376
- * Response message for the Report method. If the request contains any invalid data, the server returns an RPC error.
418
+ * Response message for the Report method.
377
419
  */
378
420
  export interface Schema$ReportResponse {
379
421
  }
@@ -404,7 +446,7 @@ export declare namespace servicecontrol_v2 {
404
446
  */
405
447
  method?: string | null;
406
448
  /**
407
- * The HTTP URL path.
449
+ * The HTTP URL path, excluding the query parameters.
408
450
  */
409
451
  path?: string | null;
410
452
  /**
@@ -437,7 +479,7 @@ export declare namespace servicecontrol_v2 {
437
479
  */
438
480
  export interface Schema$RequestMetadata {
439
481
  /**
440
- * 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, this will be the VM's external IP address. For caller from a Compute Engine VM without 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 the `caller_ip` will be redacted to "gce-internal-ip". See https://cloud.google.com/compute/docs/vpc/ for more information.
482
+ * 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.
441
483
  */
442
484
  callerIp?: string | null;
443
485
  /**
@@ -445,7 +487,7 @@ export declare namespace servicecontrol_v2 {
445
487
  */
446
488
  callerNetwork?: string | null;
447
489
  /**
448
- * 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. NOLINT
490
+ * 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.
449
491
  */
450
492
  callerSuppliedUserAgent?: string | null;
451
493
  /**
@@ -462,7 +504,7 @@ export declare namespace servicecontrol_v2 {
462
504
  */
463
505
  export interface Schema$Resource {
464
506
  /**
465
- * 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/user-guide/annotations
507
+ * 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/
466
508
  */
467
509
  annotations?: {
468
510
  [key: string]: string;
@@ -502,7 +544,7 @@ export declare namespace servicecontrol_v2 {
502
544
  */
503
545
  service?: string | null;
504
546
  /**
505
- * 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\}".
547
+ * 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".
506
548
  */
507
549
  type?: string | null;
508
550
  /**
@@ -518,6 +560,14 @@ export declare namespace servicecontrol_v2 {
518
560
  * Describes a resource referenced in the request.
519
561
  */
520
562
  export interface Schema$ResourceInfo {
563
+ /**
564
+ * 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).
565
+ */
566
+ container?: string | null;
567
+ /**
568
+ * 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.
569
+ */
570
+ location?: string | null;
521
571
  /**
522
572
  * The name of the resource referenced in the request.
523
573
  */
@@ -549,7 +599,7 @@ export declare namespace servicecontrol_v2 {
549
599
  */
550
600
  export interface Schema$Response {
551
601
  /**
552
- * The length 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.
602
+ * 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.
553
603
  */
554
604
  backendLatency?: string | null;
555
605
  /**
@@ -580,7 +630,7 @@ export declare namespace servicecontrol_v2 {
580
630
  */
581
631
  firstPartyPrincipal?: Schema$FirstPartyPrincipal;
582
632
  /**
583
- * A string representing the principal_subject associated with the identity. See go/3pical for more info on how principal_subject is formatted.
633
+ * 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\}]`
584
634
  */
585
635
  principalSubject?: string | null;
586
636
  /**
@@ -589,7 +639,39 @@ export declare namespace servicecontrol_v2 {
589
639
  thirdPartyPrincipal?: Schema$ThirdPartyPrincipal;
590
640
  }
591
641
  /**
592
- * The context of a span, attached to Exemplars 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]
642
+ * 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).
643
+ */
644
+ export interface Schema$ServiceDelegationHistory {
645
+ /**
646
+ * The original end user who initiated the request to GCP.
647
+ */
648
+ originalPrincipal?: string | null;
649
+ /**
650
+ * Data identifying the service specific jobs or units of work that were involved in a chain of service calls.
651
+ */
652
+ serviceMetadata?: Schema$ServiceMetadata[];
653
+ }
654
+ /**
655
+ * Metadata describing the service and additional service specific information used to identify the job or unit of work at hand.
656
+ */
657
+ export interface Schema$ServiceMetadata {
658
+ /**
659
+ * Additional metadata provided by service teams to describe service specific job information that was triggered by the original principal.
660
+ */
661
+ jobMetadata?: {
662
+ [key: string]: any;
663
+ } | null;
664
+ /**
665
+ * 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`.
666
+ */
667
+ principalSubject?: string | null;
668
+ /**
669
+ * The service's fully qualified domain name, e.g. "dataproc.googleapis.com".
670
+ */
671
+ serviceDomain?: string | null;
672
+ }
673
+ /**
674
+ * 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]
593
675
  */
594
676
  export interface Schema$SpanContext {
595
677
  /**
@@ -627,68 +709,200 @@ export declare namespace servicecontrol_v2 {
627
709
  [key: string]: any;
628
710
  } | null;
629
711
  }
712
+ /**
713
+ * 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.
714
+ */
715
+ export interface Schema$V2HttpRequest {
716
+ /**
717
+ * The number of HTTP response bytes inserted into cache. Set only when a cache fill was attempted.
718
+ */
719
+ cacheFillBytes?: string | null;
720
+ /**
721
+ * Whether or not an entity was served from cache (with or without validation).
722
+ */
723
+ cacheHit?: boolean | null;
724
+ /**
725
+ * Whether or not a cache lookup was attempted.
726
+ */
727
+ cacheLookup?: boolean | null;
728
+ /**
729
+ * 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.
730
+ */
731
+ cacheValidatedWithOriginServer?: boolean | null;
732
+ /**
733
+ * The request processing latency on the server, from the time the request was received until the response was sent.
734
+ */
735
+ latency?: string | null;
736
+ /**
737
+ * Protocol used for the request. Examples: "HTTP/1.1", "HTTP/2", "websocket"
738
+ */
739
+ protocol?: string | null;
740
+ /**
741
+ * The referer URL of the request, as defined in [HTTP/1.1 Header Field Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).
742
+ */
743
+ referer?: string | null;
744
+ /**
745
+ * The IP address (IPv4 or IPv6) of the client that issued the HTTP request. Examples: `"192.168.1.1"`, `"FE80::0202:B3FF:FE1E:8329"`.
746
+ */
747
+ remoteIp?: string | null;
748
+ /**
749
+ * The request method. Examples: `"GET"`, `"HEAD"`, `"PUT"`, `"POST"`.
750
+ */
751
+ requestMethod?: string | null;
752
+ /**
753
+ * The size of the HTTP request message in bytes, including the request headers and the request body.
754
+ */
755
+ requestSize?: string | null;
756
+ /**
757
+ * 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"`.
758
+ */
759
+ requestUrl?: string | null;
760
+ /**
761
+ * The size of the HTTP response message sent back to the client, in bytes, including the response headers and the response body.
762
+ */
763
+ responseSize?: string | null;
764
+ /**
765
+ * The IP address (IPv4 or IPv6) of the origin server that the request was sent to.
766
+ */
767
+ serverIp?: string | null;
768
+ /**
769
+ * The response code indicating the status of the response. Examples: 200, 404.
770
+ */
771
+ status?: number | null;
772
+ /**
773
+ * The user agent sent by the client. Example: `"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)"`.
774
+ */
775
+ userAgent?: string | null;
776
+ }
777
+ /**
778
+ * An individual log entry.
779
+ */
780
+ export interface Schema$V2LogEntry {
781
+ /**
782
+ * Optional. Information about the HTTP request associated with this log entry, if applicable.
783
+ */
784
+ httpRequest?: Schema$V2HttpRequest;
785
+ /**
786
+ * A unique ID for the log entry used for deduplication. If omitted, the implementation will generate one based on operation_id.
787
+ */
788
+ insertId?: string | null;
789
+ /**
790
+ * A set of user-defined (key, value) data that provides additional information about the log entry.
791
+ */
792
+ labels?: {
793
+ [key: string]: string;
794
+ } | null;
795
+ /**
796
+ * A set of user-defined (key, value) data that provides additional information about the moniotored resource that the log entry belongs to.
797
+ */
798
+ monitoredResourceLabels?: {
799
+ [key: string]: string;
800
+ } | null;
801
+ /**
802
+ * Required. The log to which this log entry belongs. Examples: `"syslog"`, `"book_log"`.
803
+ */
804
+ name?: string | null;
805
+ /**
806
+ * Optional. Information about an operation associated with the log entry, if applicable.
807
+ */
808
+ operation?: Schema$V2LogEntryOperation;
809
+ /**
810
+ * The log entry payload, represented as a protocol buffer that is expressed as a JSON object. The only accepted type currently is AuditLog.
811
+ */
812
+ protoPayload?: {
813
+ [key: string]: any;
814
+ } | null;
815
+ /**
816
+ * The severity of the log entry. The default value is `LogSeverity.DEFAULT`.
817
+ */
818
+ severity?: string | null;
819
+ /**
820
+ * Optional. Source code location information associated with the log entry, if any.
821
+ */
822
+ sourceLocation?: Schema$V2LogEntrySourceLocation;
823
+ /**
824
+ * The log entry payload, represented as a structure that is expressed as a JSON object.
825
+ */
826
+ structPayload?: {
827
+ [key: string]: any;
828
+ } | null;
829
+ /**
830
+ * The log entry payload, represented as a Unicode string (UTF-8).
831
+ */
832
+ textPayload?: string | null;
833
+ /**
834
+ * The time the event described by the log entry occurred. If omitted, defaults to operation start time.
835
+ */
836
+ timestamp?: string | null;
837
+ /**
838
+ * 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`
839
+ */
840
+ trace?: string | null;
841
+ }
842
+ /**
843
+ * Additional information about a potentially long-running operation with which a log entry is associated.
844
+ */
845
+ export interface Schema$V2LogEntryOperation {
846
+ /**
847
+ * Optional. Set this to True if this is the first log entry in the operation.
848
+ */
849
+ first?: boolean | null;
850
+ /**
851
+ * Optional. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operation.
852
+ */
853
+ id?: string | null;
854
+ /**
855
+ * Optional. Set this to True if this is the last log entry in the operation.
856
+ */
857
+ last?: boolean | null;
858
+ /**
859
+ * 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"`.
860
+ */
861
+ producer?: string | null;
862
+ }
863
+ /**
864
+ * Additional information about the source code location that produced the log entry.
865
+ */
866
+ export interface Schema$V2LogEntrySourceLocation {
867
+ /**
868
+ * Optional. Source file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name.
869
+ */
870
+ file?: string | null;
871
+ /**
872
+ * 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).
873
+ */
874
+ function?: string | null;
875
+ /**
876
+ * Optional. Line within the source file. 1-based; 0 indicates no line number available.
877
+ */
878
+ line?: string | null;
879
+ }
880
+ /**
881
+ * Provides information about the Policy violation info for this request.
882
+ */
883
+ export interface Schema$ViolationInfo {
884
+ /**
885
+ * 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
886
+ */
887
+ checkedValue?: string | null;
888
+ /**
889
+ * Optional. Constraint name
890
+ */
891
+ constraint?: string | null;
892
+ /**
893
+ * Optional. Error message that policy is indicating.
894
+ */
895
+ errorMessage?: string | null;
896
+ /**
897
+ * Optional. Indicates the type of the policy.
898
+ */
899
+ policyType?: string | null;
900
+ }
630
901
  export class Resource$Services {
631
902
  context: APIRequestContext;
632
903
  constructor(context: APIRequestContext);
633
904
  /**
634
- * 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).
635
- * @example
636
- * ```js
637
- * // Before running the sample:
638
- * // - Enable the API at:
639
- * // https://console.developers.google.com/apis/api/servicecontrol.googleapis.com
640
- * // - Login into gcloud by running:
641
- * // `$ gcloud auth application-default login`
642
- * // - Install the npm module by running:
643
- * // `$ npm install googleapis`
644
- *
645
- * const {google} = require('googleapis');
646
- * const servicecontrol = google.servicecontrol('v2');
647
- *
648
- * async function main() {
649
- * const auth = new google.auth.GoogleAuth({
650
- * // Scopes can be specified either as an array or as a single, space-delimited string.
651
- * scopes: [
652
- * 'https://www.googleapis.com/auth/cloud-platform',
653
- * 'https://www.googleapis.com/auth/servicecontrol',
654
- * ],
655
- * });
656
- *
657
- * // Acquire an auth client, and bind it to all future calls
658
- * const authClient = await auth.getClient();
659
- * google.options({auth: authClient});
660
- *
661
- * // Do the magic
662
- * const res = await servicecontrol.services.check({
663
- * // 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.
664
- * serviceName: 'placeholder-value',
665
- *
666
- * // Request body metadata
667
- * requestBody: {
668
- * // request body parameters
669
- * // {
670
- * // "attributes": {},
671
- * // "flags": "my_flags",
672
- * // "resources": [],
673
- * // "serviceConfigId": "my_serviceConfigId"
674
- * // }
675
- * },
676
- * });
677
- * console.log(res.data);
678
- *
679
- * // Example response
680
- * // {
681
- * // "headers": {},
682
- * // "status": {}
683
- * // }
684
- * }
685
- *
686
- * main().catch(e => {
687
- * console.error(e);
688
- * throw e;
689
- * });
690
- *
691
- * ```
905
+ * 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).
692
906
  *
693
907
  * @param params - Parameters for request
694
908
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
@@ -702,59 +916,7 @@ export declare namespace servicecontrol_v2 {
702
916
  check(params: Params$Resource$Services$Check, callback: BodyResponseCallback<Schema$CheckResponse>): void;
703
917
  check(callback: BodyResponseCallback<Schema$CheckResponse>): void;
704
918
  /**
705
- * 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).
706
- * @example
707
- * ```js
708
- * // Before running the sample:
709
- * // - Enable the API at:
710
- * // https://console.developers.google.com/apis/api/servicecontrol.googleapis.com
711
- * // - Login into gcloud by running:
712
- * // `$ gcloud auth application-default login`
713
- * // - Install the npm module by running:
714
- * // `$ npm install googleapis`
715
- *
716
- * const {google} = require('googleapis');
717
- * const servicecontrol = google.servicecontrol('v2');
718
- *
719
- * async function main() {
720
- * const auth = new google.auth.GoogleAuth({
721
- * // Scopes can be specified either as an array or as a single, space-delimited string.
722
- * scopes: [
723
- * 'https://www.googleapis.com/auth/cloud-platform',
724
- * 'https://www.googleapis.com/auth/servicecontrol',
725
- * ],
726
- * });
727
- *
728
- * // Acquire an auth client, and bind it to all future calls
729
- * const authClient = await auth.getClient();
730
- * google.options({auth: authClient});
731
- *
732
- * // Do the magic
733
- * const res = await servicecontrol.services.report({
734
- * // 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.
735
- * serviceName: 'placeholder-value',
736
- *
737
- * // Request body metadata
738
- * requestBody: {
739
- * // request body parameters
740
- * // {
741
- * // "operations": [],
742
- * // "serviceConfigId": "my_serviceConfigId"
743
- * // }
744
- * },
745
- * });
746
- * console.log(res.data);
747
- *
748
- * // Example response
749
- * // {}
750
- * }
751
- *
752
- * main().catch(e => {
753
- * console.error(e);
754
- * throw e;
755
- * });
756
- *
757
- * ```
919
+ * 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).
758
920
  *
759
921
  * @param params - Parameters for request
760
922
  * @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
package/build/v2.js CHANGED
@@ -12,8 +12,8 @@
12
12
  // See the License for the specific language governing permissions and
13
13
  // limitations under the License.
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
+ exports.servicecontrol_v2 = void 0;
15
16
  /* eslint-disable @typescript-eslint/no-explicit-any */
16
- /* eslint-disable @typescript-eslint/class-name-casing */
17
17
  /* eslint-disable @typescript-eslint/no-unused-vars */
18
18
  /* eslint-disable @typescript-eslint/no-empty-interface */
19
19
  /* eslint-disable @typescript-eslint/no-namespace */
@@ -70,10 +70,10 @@ var servicecontrol_v2;
70
70
  context: this.context,
71
71
  };
72
72
  if (callback) {
73
- googleapis_common_1.createAPIRequest(parameters, callback);
73
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
74
74
  }
75
75
  else {
76
- return googleapis_common_1.createAPIRequest(parameters);
76
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
77
77
  }
78
78
  }
79
79
  report(paramsOrCallback, optionsOrCallback, callback) {
@@ -100,10 +100,10 @@ var servicecontrol_v2;
100
100
  context: this.context,
101
101
  };
102
102
  if (callback) {
103
- googleapis_common_1.createAPIRequest(parameters, callback);
103
+ (0, googleapis_common_1.createAPIRequest)(parameters, callback);
104
104
  }
105
105
  else {
106
- return googleapis_common_1.createAPIRequest(parameters);
106
+ return (0, googleapis_common_1.createAPIRequest)(parameters);
107
107
  }
108
108
  }
109
109
  }
package/build/v2.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"v2.js","sourceRoot":"","sources":["../v2.ts"],"names":[],"mappings":";AAAA,4BAA4B;AAC5B,kEAAkE;AAClE,mEAAmE;AACnE,0CAA0C;AAC1C,EAAE;AACF,gDAAgD;AAChD,EAAE;AACF,sEAAsE;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,CAAC;gBAC7B,OAAO,GAAG,EAAE,CAAC;aACd;YAED,MAAM,OAAO,GACX,OAAO,CAAC,OAAO,IAAI,wCAAwC,CAAC;YAC9D,MAAM,UAAU,GAAG;gBACjB,OAAO,EAAE,MAAM,CAAC,MAAM,CACpB;oBACE,GAAG,EAAE,CAAC,OAAO,GAAG,mCAAmC,CAAC,CAAC,OAAO,CAC1D,cAAc,EACd,IAAI,CACL;oBACD,MAAM,EAAE,MAAM;iBACf,EACD,OAAO,CACR;gBACD,MAAM;gBACN,cAAc,EAAE,CAAC,aAAa,CAAC;gBAC/B,UAAU,EAAE,CAAC,aAAa,CAAC;gBAC3B,OAAO,EAAE,IAAI,CAAC,OAAO;aACtB,CAAC;YACF,IAAI,QAAQ,EAAE;gBACZ,IAAA,oCAAgB,EACd,UAAU,EACV,QAAyC,CAC1C,CAAC;aACH;iBAAM;gBACL,OAAO,IAAA,oCAAgB,EAAwB,UAAU,CAAC,CAAC;aAC5D;QACH,CAAC;KACF;IAnLY,mCAAiB,oBAmL7B,CAAA;AAwBH,CAAC,EA/iCgB,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QA+iCjC"}
package/index.ts CHANGED
@@ -31,7 +31,7 @@ export function servicecontrol(
31
31
  options: servicecontrol_v2.Options
32
32
  ): servicecontrol_v2.Servicecontrol;
33
33
  export function servicecontrol<
34
- T = servicecontrol_v1.Servicecontrol | servicecontrol_v2.Servicecontrol
34
+ T = servicecontrol_v1.Servicecontrol | servicecontrol_v2.Servicecontrol,
35
35
  >(
36
36
  this: GoogleConfigurable,
37
37
  versionOrOptions:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@googleapis/servicecontrol",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "servicecontrol",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -18,7 +18,7 @@
18
18
  "url": "https://github.com/googleapis/google-api-nodejs-client.git"
19
19
  },
20
20
  "engines": {
21
- "node": ">=10.0.0"
21
+ "node": ">=12.0.0"
22
22
  },
23
23
  "scripts": {
24
24
  "fix": "gts fix",
@@ -28,16 +28,16 @@
28
28
  "webpack": "webpack"
29
29
  },
30
30
  "dependencies": {
31
- "googleapis-common": "^5.0.1"
31
+ "googleapis-common": "^6.0.3"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@microsoft/api-documenter": "^7.8.10",
35
35
  "@microsoft/api-extractor": "^7.8.10",
36
- "gts": "^2.0.0",
36
+ "gts": "^3.1.1",
37
37
  "null-loader": "^4.0.0",
38
- "ts-loader": "^8.0.0",
39
- "typescript": "~3.7.0",
38
+ "ts-loader": "^9.0.0",
39
+ "typescript": "~4.8.4",
40
40
  "webpack": "^5.0.0",
41
- "webpack-cli": "^4.0.0"
41
+ "webpack-cli": "^5.0.0"
42
42
  }
43
43
  }