@googleapis/serviceusage 7.0.0 → 8.0.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/CHANGELOG.md +15 -0
- package/build/v1.d.ts +410 -516
- package/build/v1.js.map +1 -1
- package/build/v1beta1.d.ts +446 -1203
- package/build/v1beta1.js.map +1 -1
- package/index.ts +1 -1
- package/package.json +2 -2
- package/v1.ts +397 -516
- package/v1beta1.ts +431 -1203
package/v1beta1.ts
CHANGED
|
@@ -126,6 +126,23 @@ export namespace serviceusage_v1beta1 {
|
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
|
|
129
|
+
/**
|
|
130
|
+
* Metadata for the `AddEnableRules` method.
|
|
131
|
+
*/
|
|
132
|
+
export interface Schema$AddEnableRulesMetadata {}
|
|
133
|
+
/**
|
|
134
|
+
* The response message of "AddEnableRules" method.
|
|
135
|
+
*/
|
|
136
|
+
export interface Schema$AddEnableRulesResponse {
|
|
137
|
+
/**
|
|
138
|
+
* The values added to the parent consumer policy.
|
|
139
|
+
*/
|
|
140
|
+
addedValues?: string[] | null;
|
|
141
|
+
/**
|
|
142
|
+
* The parent consumer policy. It can be `projects/12345/consumerPolicies/default`, or `folders/12345/consumerPolicies/default`, or `organizations/12345/consumerPolicies/default`.
|
|
143
|
+
*/
|
|
144
|
+
parent?: string | null;
|
|
145
|
+
}
|
|
129
146
|
/**
|
|
130
147
|
* Quota policy created by quota administrator.
|
|
131
148
|
*/
|
|
@@ -135,7 +152,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
135
152
|
*/
|
|
136
153
|
container?: string | null;
|
|
137
154
|
/**
|
|
138
|
-
* If this map is nonempty, then this policy applies only to specific values for dimensions defined in the limit unit. For example,
|
|
155
|
+
* If this map is nonempty, then this policy applies only to specific values for dimensions defined in the limit unit. For example, a policy on a limit with the unit `1/{project\}/{region\}` could contain an entry with the key `region` and the value `us-east-1`; the policy is only applied to quota consumed in that region. This map has the following restrictions: * If `region` appears as a key, its value must be a valid Cloud region. * If `zone` appears as a key, its value must be a valid Cloud zone. * Keys other than `region` or `zone` are not valid.
|
|
139
156
|
*/
|
|
140
157
|
dimensions?: {[key: string]: string} | null;
|
|
141
158
|
/**
|
|
@@ -293,10 +310,18 @@ export namespace serviceusage_v1beta1 {
|
|
|
293
310
|
* The JWT audience is used when generating a JWT ID token for the backend. This ID token will be added in the HTTP "authorization" header, and sent to the backend.
|
|
294
311
|
*/
|
|
295
312
|
jwtAudience?: string | null;
|
|
313
|
+
/**
|
|
314
|
+
* Deprecated, do not use.
|
|
315
|
+
*/
|
|
316
|
+
minDeadline?: number | null;
|
|
296
317
|
/**
|
|
297
318
|
* The number of seconds to wait for the completion of a long running operation. The default is no deadline.
|
|
298
319
|
*/
|
|
299
320
|
operationDeadline?: number | null;
|
|
321
|
+
/**
|
|
322
|
+
* The map between request protocol and the backend address.
|
|
323
|
+
*/
|
|
324
|
+
overridesByRequestProtocol?: {[key: string]: Schema$BackendRule} | null;
|
|
300
325
|
pathTranslation?: string | null;
|
|
301
326
|
/**
|
|
302
327
|
* The protocol used for sending a request to the backend. The supported values are "http/1.1" and "h2". The default value is inferred from the scheme in the address field: SCHEME PROTOCOL http:// http/1.1 https:// http/1.1 grpc:// h2 grpcs:// h2 For secure HTTP backends (https://) that support HTTP/2, set this field to "h2" for improved performance. Configuring this field to non-default values is only supported for secure HTTP backends. This field will be ignored for all other backends. See https://www.iana.org/assignments/tls-extensiontype-values/tls-extensiontype-values.xhtml#alpn-protocol-ids for more details on the supported values.
|
|
@@ -369,6 +394,93 @@ export namespace serviceusage_v1beta1 {
|
|
|
369
394
|
*/
|
|
370
395
|
monitoredResource?: string | null;
|
|
371
396
|
}
|
|
397
|
+
/**
|
|
398
|
+
* Details about how and where to publish client libraries.
|
|
399
|
+
*/
|
|
400
|
+
export interface Schema$ClientLibrarySettings {
|
|
401
|
+
/**
|
|
402
|
+
* Settings for C++ client libraries.
|
|
403
|
+
*/
|
|
404
|
+
cppSettings?: Schema$CppSettings;
|
|
405
|
+
/**
|
|
406
|
+
* Settings for .NET client libraries.
|
|
407
|
+
*/
|
|
408
|
+
dotnetSettings?: Schema$DotnetSettings;
|
|
409
|
+
/**
|
|
410
|
+
* Settings for Go client libraries.
|
|
411
|
+
*/
|
|
412
|
+
goSettings?: Schema$GoSettings;
|
|
413
|
+
/**
|
|
414
|
+
* Settings for legacy Java features, supported in the Service YAML.
|
|
415
|
+
*/
|
|
416
|
+
javaSettings?: Schema$JavaSettings;
|
|
417
|
+
/**
|
|
418
|
+
* Launch stage of this version of the API.
|
|
419
|
+
*/
|
|
420
|
+
launchStage?: string | null;
|
|
421
|
+
/**
|
|
422
|
+
* Settings for Node client libraries.
|
|
423
|
+
*/
|
|
424
|
+
nodeSettings?: Schema$NodeSettings;
|
|
425
|
+
/**
|
|
426
|
+
* Settings for PHP client libraries.
|
|
427
|
+
*/
|
|
428
|
+
phpSettings?: Schema$PhpSettings;
|
|
429
|
+
/**
|
|
430
|
+
* Settings for Python client libraries.
|
|
431
|
+
*/
|
|
432
|
+
pythonSettings?: Schema$PythonSettings;
|
|
433
|
+
/**
|
|
434
|
+
* When using transport=rest, the client request will encode enums as numbers rather than strings.
|
|
435
|
+
*/
|
|
436
|
+
restNumericEnums?: boolean | null;
|
|
437
|
+
/**
|
|
438
|
+
* Settings for Ruby client libraries.
|
|
439
|
+
*/
|
|
440
|
+
rubySettings?: Schema$RubySettings;
|
|
441
|
+
/**
|
|
442
|
+
* Version of the API to apply these settings to. This is the full protobuf package for the API, ending in the version element. Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
|
|
443
|
+
*/
|
|
444
|
+
version?: string | null;
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* Required information for every language.
|
|
448
|
+
*/
|
|
449
|
+
export interface Schema$CommonLanguageSettings {
|
|
450
|
+
/**
|
|
451
|
+
* The destination where API teams want this client library to be published.
|
|
452
|
+
*/
|
|
453
|
+
destinations?: string[] | null;
|
|
454
|
+
/**
|
|
455
|
+
* Link to automatically generated reference documentation. Example: https://cloud.google.com/nodejs/docs/reference/asset/latest
|
|
456
|
+
*/
|
|
457
|
+
referenceDocsUri?: string | null;
|
|
458
|
+
}
|
|
459
|
+
/**
|
|
460
|
+
* Consumer Policy is a set of rules that define what services or service groups can be used for a cloud resource hierarchy.
|
|
461
|
+
*/
|
|
462
|
+
export interface Schema$ConsumerPolicy {
|
|
463
|
+
/**
|
|
464
|
+
* Optional. Annotations is an unstructured key-value map stored with a policy that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. [AIP-128](https://google.aip.dev/128#annotations)
|
|
465
|
+
*/
|
|
466
|
+
annotations?: {[key: string]: string} | null;
|
|
467
|
+
/**
|
|
468
|
+
* Enable rules define usable services and service groups.
|
|
469
|
+
*/
|
|
470
|
+
enableRules?: Schema$EnableRule[];
|
|
471
|
+
/**
|
|
472
|
+
* An opaque tag indicating the current version of the policy, used for concurrency control.
|
|
473
|
+
*/
|
|
474
|
+
etag?: string | null;
|
|
475
|
+
/**
|
|
476
|
+
* Output only. The resource name of the policy. For example, We only allow consumer policy name as "default" for now: `projects/12345/consumerPolicies/default`, `folders/12345/consumerPolicies/default`, `organizations/12345/consumerPolicies/default`. Legacy format: `projects/12345/consumerPoly`
|
|
477
|
+
*/
|
|
478
|
+
name?: string | null;
|
|
479
|
+
/**
|
|
480
|
+
* The last-modified time.
|
|
481
|
+
*/
|
|
482
|
+
updateTime?: string | null;
|
|
483
|
+
}
|
|
372
484
|
/**
|
|
373
485
|
* Consumer quota settings for a quota limit.
|
|
374
486
|
*/
|
|
@@ -466,13 +578,26 @@ export namespace serviceusage_v1beta1 {
|
|
|
466
578
|
selector?: string | null;
|
|
467
579
|
}
|
|
468
580
|
/**
|
|
469
|
-
* Selects and configures the service controller used by the service.
|
|
581
|
+
* Selects and configures the service controller used by the service. Example: control: environment: servicecontrol.googleapis.com
|
|
470
582
|
*/
|
|
471
583
|
export interface Schema$Control {
|
|
472
584
|
/**
|
|
473
585
|
* The service controller environment to use. If empty, no control plane feature (like quota and billing) will be enabled. The recommended value for most services is servicecontrol.googleapis.com
|
|
474
586
|
*/
|
|
475
587
|
environment?: string | null;
|
|
588
|
+
/**
|
|
589
|
+
* Defines policies applying to the API methods of the service.
|
|
590
|
+
*/
|
|
591
|
+
methodPolicies?: Schema$MethodPolicy[];
|
|
592
|
+
}
|
|
593
|
+
/**
|
|
594
|
+
* Settings for C++ client libraries.
|
|
595
|
+
*/
|
|
596
|
+
export interface Schema$CppSettings {
|
|
597
|
+
/**
|
|
598
|
+
* Some settings.
|
|
599
|
+
*/
|
|
600
|
+
common?: Schema$CommonLanguageSettings;
|
|
476
601
|
}
|
|
477
602
|
/**
|
|
478
603
|
* Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by CreateAdminQuotaPolicy.
|
|
@@ -535,7 +660,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
535
660
|
service?: Schema$GoogleApiServiceusageV1Service;
|
|
536
661
|
}
|
|
537
662
|
/**
|
|
538
|
-
* `Documentation` provides the information for describing a service. Example: documentation: summary: \> The Google Calendar API gives access to most calendar features. pages: - name: Overview content: (== include google/foo/overview.md ==) - name: Tutorial content: (== include google/foo/tutorial.md ==) subpages
|
|
663
|
+
* `Documentation` provides the information for describing a service. Example: documentation: summary: \> The Google Calendar API gives access to most calendar features. pages: - name: Overview content: (== include google/foo/overview.md ==) - name: Tutorial content: (== include google/foo/tutorial.md ==) subpages: - name: Java content: (== include google/foo/tutorial_java.md ==) rules: - selector: google.calendar.Calendar.Get description: \> ... - selector: google.calendar.Calendar.Put description: \> ... Documentation is provided in markdown syntax. In addition to standard markdown features, definition lists, tables and fenced code blocks are supported. Section headers can be provided and are interpreted relative to the section nesting of the context where a documentation fragment is embedded. Documentation from the IDL is merged with documentation defined via the config at normalization time, where documentation provided by config rules overrides IDL provided. A number of constructs specific to the API platform are supported in documentation text. In order to reference a proto element, the following notation can be used: [fully.qualified.proto.name][] To override the display text used for the link, this can be used: [display text][fully.qualified.proto.name] Text can be excluded from doc using the following notation: (-- internal comment --) A few directives are available in documentation. Note that directives must appear on a single line to be properly identified. The `include` directive includes a markdown file from an external source: (== include path/to/file ==) The `resource_for` directive marks a message to be the resource of a collection in REST view. If it is not specified, tools attempt to infer the resource from the operations in a collection: (== resource_for v1.shelves.books ==) The directive `suppress_warning` does not directly affect documentation and is documented together with service config validation.
|
|
539
664
|
*/
|
|
540
665
|
export interface Schema$Documentation {
|
|
541
666
|
/**
|
|
@@ -554,6 +679,10 @@ export namespace serviceusage_v1beta1 {
|
|
|
554
679
|
* A list of documentation rules that apply to individual API elements. **NOTE:** All service configuration rules follow "last one wins" order.
|
|
555
680
|
*/
|
|
556
681
|
rules?: Schema$DocumentationRule[];
|
|
682
|
+
/**
|
|
683
|
+
* Specifies section and content to override boilerplate content provided by go/api-docgen. Currently overrides following sections: 1. rest.service.client_libraries
|
|
684
|
+
*/
|
|
685
|
+
sectionOverrides?: Schema$Page[];
|
|
557
686
|
/**
|
|
558
687
|
* Specifies the service root url if the default one (the service name from the yaml file) is not suitable. This can be seen in any fully specified service urls as well as sections that show a base that other urls are relative to.
|
|
559
688
|
*/
|
|
@@ -575,11 +704,44 @@ export namespace serviceusage_v1beta1 {
|
|
|
575
704
|
* Description of the selected proto element (e.g. a message, a method, a 'service' definition, or a field). Defaults to leading & trailing comments taken from the proto source definition of the proto element.
|
|
576
705
|
*/
|
|
577
706
|
description?: string | null;
|
|
707
|
+
/**
|
|
708
|
+
* String of comma or space separated case-sensitive words for which method/field name replacement will be disabled by go/api-docgen.
|
|
709
|
+
*/
|
|
710
|
+
disableReplacementWords?: string | null;
|
|
578
711
|
/**
|
|
579
712
|
* The selector is a comma-separated list of patterns for any element such as a method, a field, an enum value. Each pattern is a qualified name of the element which may end in "*", indicating a wildcard. Wildcards are only allowed at the end and for a whole component of the qualified name, i.e. "foo.*" is ok, but not "foo.b*" or "foo.*.bar". A wildcard will match one or more components. To specify a default for all applicable elements, the whole pattern "*" is used.
|
|
580
713
|
*/
|
|
581
714
|
selector?: string | null;
|
|
582
715
|
}
|
|
716
|
+
/**
|
|
717
|
+
* Settings for Dotnet client libraries.
|
|
718
|
+
*/
|
|
719
|
+
export interface Schema$DotnetSettings {
|
|
720
|
+
/**
|
|
721
|
+
* Some settings.
|
|
722
|
+
*/
|
|
723
|
+
common?: Schema$CommonLanguageSettings;
|
|
724
|
+
/**
|
|
725
|
+
* Namespaces which must be aliased in snippets due to a known (but non-generator-predictable) naming collision
|
|
726
|
+
*/
|
|
727
|
+
forcedNamespaceAliases?: string[] | null;
|
|
728
|
+
/**
|
|
729
|
+
* Method signatures (in the form "service.method(signature)") which are provided separately, so shouldn't be generated. Snippets *calling* these methods are still generated, however.
|
|
730
|
+
*/
|
|
731
|
+
handwrittenSignatures?: string[] | null;
|
|
732
|
+
/**
|
|
733
|
+
* List of full resource types to ignore during generation. This is typically used for API-specific Location resources, which should be handled by the generator as if they were actually the common Location resources. Example entry: "documentai.googleapis.com/Location"
|
|
734
|
+
*/
|
|
735
|
+
ignoredResources?: string[] | null;
|
|
736
|
+
/**
|
|
737
|
+
* Map from full resource types to the effective short name for the resource. This is used when otherwise resource named from different services would cause naming collisions. Example entry: "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
|
|
738
|
+
*/
|
|
739
|
+
renamedResources?: {[key: string]: string} | null;
|
|
740
|
+
/**
|
|
741
|
+
* Map from original service names to renamed versions. This is used when the default generated types would cause a naming conflict. (Neither name is fully-qualified.) Example: Subscriber to SubscriberServiceApi.
|
|
742
|
+
*/
|
|
743
|
+
renamedServices?: {[key: string]: string} | null;
|
|
744
|
+
}
|
|
583
745
|
/**
|
|
584
746
|
* A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); \}
|
|
585
747
|
*/
|
|
@@ -597,6 +759,27 @@ export namespace serviceusage_v1beta1 {
|
|
|
597
759
|
*/
|
|
598
760
|
serviceId?: string | null;
|
|
599
761
|
}
|
|
762
|
+
/**
|
|
763
|
+
* The consumer policy rule that defines usable services and service groups.
|
|
764
|
+
*/
|
|
765
|
+
export interface Schema$EnableRule {
|
|
766
|
+
/**
|
|
767
|
+
* Client and resource project enable type.
|
|
768
|
+
*/
|
|
769
|
+
enableType?: string | null;
|
|
770
|
+
/**
|
|
771
|
+
* DEPRECATED: Please use field `values`. Service group should have prefix `groups/`. The names of the service groups that are enabled (Not Implemented). go/predefined-service-groups. Example: `groups/googleServices`.
|
|
772
|
+
*/
|
|
773
|
+
groups?: string[] | null;
|
|
774
|
+
/**
|
|
775
|
+
* DEPRECATED: Please use field `values`. Service should have prefix `services/`. The names of the services that are enabled. Example: `storage.googleapis.com`.
|
|
776
|
+
*/
|
|
777
|
+
services?: string[] | null;
|
|
778
|
+
/**
|
|
779
|
+
* The names of the services or service groups that are enabled. Example: `services/storage.googleapis.com`, groups/googleServices`, groups/allServices`.
|
|
780
|
+
*/
|
|
781
|
+
values?: string[] | null;
|
|
782
|
+
}
|
|
600
783
|
/**
|
|
601
784
|
* Request message for the `EnableService` method.
|
|
602
785
|
*/
|
|
@@ -614,6 +797,10 @@ export namespace serviceusage_v1beta1 {
|
|
|
614
797
|
* `Endpoint` describes a network address of a service that serves a set of APIs. It is commonly known as a service endpoint. A service may expose any number of service endpoints, and all service endpoints share the same service definition, such as quota limits and monitoring metrics. Example: type: google.api.Service name: library-example.googleapis.com endpoints: # Declares network address `https://library-example.googleapis.com` # for service `library-example.googleapis.com`. The `https` scheme # is implicit for all service endpoints. Other schemes may be # supported in the future. - name: library-example.googleapis.com allow_cors: false - name: content-staging-library-example.googleapis.com # Allows HTTP OPTIONS calls to be passed to the API frontend, for it # to decide whether the subsequent cross-origin request is allowed # to proceed. allow_cors: true
|
|
615
798
|
*/
|
|
616
799
|
export interface Schema$Endpoint {
|
|
800
|
+
/**
|
|
801
|
+
* Unimplemented. Dot not use. DEPRECATED: This field is no longer supported. Instead of using aliases, please specify multiple google.api.Endpoint for each of the intended aliases. Additional names that this endpoint will be hosted on.
|
|
802
|
+
*/
|
|
803
|
+
aliases?: string[] | null;
|
|
617
804
|
/**
|
|
618
805
|
* Allowing [CORS](https://en.wikipedia.org/wiki/Cross-origin_resource_sharing), aka cross-domain traffic, would allow the backends served from this endpoint to receive and respond to HTTP OPTIONS requests. The response will be used by the browser to determine whether the subsequent cross-origin request is allowed to proceed.
|
|
619
806
|
*/
|
|
@@ -631,6 +818,10 @@ export namespace serviceusage_v1beta1 {
|
|
|
631
818
|
* Enum type definition.
|
|
632
819
|
*/
|
|
633
820
|
export interface Schema$Enum {
|
|
821
|
+
/**
|
|
822
|
+
* The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
|
823
|
+
*/
|
|
824
|
+
edition?: string | null;
|
|
634
825
|
/**
|
|
635
826
|
* Enum value definitions.
|
|
636
827
|
*/
|
|
@@ -714,6 +905,23 @@ export namespace serviceusage_v1beta1 {
|
|
|
714
905
|
*/
|
|
715
906
|
typeUrl?: string | null;
|
|
716
907
|
}
|
|
908
|
+
/**
|
|
909
|
+
* Google API Policy Annotation This message defines a simple API policy annotation that can be used to annotate API request and response message fields with applicable policies. One field may have multiple applicable policies that must all be satisfied before a request can be processed. This policy annotation is used to generate the overall policy that will be used for automatic runtime policy enforcement and documentation generation.
|
|
910
|
+
*/
|
|
911
|
+
export interface Schema$FieldPolicy {
|
|
912
|
+
/**
|
|
913
|
+
* Specifies the required permission(s) for the resource referred to by the field. It requires the field contains a valid resource reference, and the request must pass the permission checks to proceed. For example, "resourcemanager.projects.get".
|
|
914
|
+
*/
|
|
915
|
+
resourcePermission?: string | null;
|
|
916
|
+
/**
|
|
917
|
+
* Specifies the resource type for the resource referred to by the field.
|
|
918
|
+
*/
|
|
919
|
+
resourceType?: string | null;
|
|
920
|
+
/**
|
|
921
|
+
* Selects one or more request or response message fields to apply this `FieldPolicy`. When a `FieldPolicy` is used in proto annotation, the selector must be left as empty. The service config generator will automatically fill the correct value. When a `FieldPolicy` is used in service config, the selector must be a comma-separated string with valid request or response field paths, such as "foo.bar" or "foo.bar,foo.baz".
|
|
922
|
+
*/
|
|
923
|
+
selector?: string | null;
|
|
924
|
+
}
|
|
717
925
|
/**
|
|
718
926
|
* Metadata for the `GetServiceIdentity` method.
|
|
719
927
|
*/
|
|
@@ -815,6 +1023,10 @@ export namespace serviceusage_v1beta1 {
|
|
|
815
1023
|
* The Google project that owns this service.
|
|
816
1024
|
*/
|
|
817
1025
|
producerProjectId?: string | null;
|
|
1026
|
+
/**
|
|
1027
|
+
* Settings for [Google Cloud Client libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) generated from APIs defined as protocol buffers.
|
|
1028
|
+
*/
|
|
1029
|
+
publishing?: Schema$Publishing;
|
|
818
1030
|
/**
|
|
819
1031
|
* Quota configuration.
|
|
820
1032
|
*/
|
|
@@ -945,6 +1157,15 @@ export namespace serviceusage_v1beta1 {
|
|
|
945
1157
|
*/
|
|
946
1158
|
usage?: Schema$Usage;
|
|
947
1159
|
}
|
|
1160
|
+
/**
|
|
1161
|
+
* Settings for Go client libraries.
|
|
1162
|
+
*/
|
|
1163
|
+
export interface Schema$GoSettings {
|
|
1164
|
+
/**
|
|
1165
|
+
* Some settings.
|
|
1166
|
+
*/
|
|
1167
|
+
common?: Schema$CommonLanguageSettings;
|
|
1168
|
+
}
|
|
948
1169
|
/**
|
|
949
1170
|
* Defines the HTTP configuration for an API service. It contains a list of HttpRule, each specifying the mapping of an RPC method to one or more HTTP REST API methods.
|
|
950
1171
|
*/
|
|
@@ -1076,6 +1297,23 @@ export namespace serviceusage_v1beta1 {
|
|
|
1076
1297
|
*/
|
|
1077
1298
|
overrides?: Schema$QuotaOverride[];
|
|
1078
1299
|
}
|
|
1300
|
+
/**
|
|
1301
|
+
* Settings for Java client libraries.
|
|
1302
|
+
*/
|
|
1303
|
+
export interface Schema$JavaSettings {
|
|
1304
|
+
/**
|
|
1305
|
+
* Some settings.
|
|
1306
|
+
*/
|
|
1307
|
+
common?: Schema$CommonLanguageSettings;
|
|
1308
|
+
/**
|
|
1309
|
+
* The package name to use in Java. Clobbers the java_package option set in the protobuf. This should be used **only** by APIs who have already set the language_settings.java.package_name" field in gapic.yaml. API teams should use the protobuf java_package option where possible. Example of a YAML configuration:: publishing: java_settings: library_package: com.google.cloud.pubsub.v1
|
|
1310
|
+
*/
|
|
1311
|
+
libraryPackage?: string | null;
|
|
1312
|
+
/**
|
|
1313
|
+
* Configure the Java class name to use instead of the service's for its corresponding generated GAPIC client. Keys are fully-qualified service names as they appear in the protobuf (including the full the language_settings.java.interface_names" field in gapic.yaml. API teams should otherwise use the service name as it appears in the protobuf. Example of a YAML configuration:: publishing: java_settings: service_class_names: - google.pubsub.v1.Publisher: TopicAdmin - google.pubsub.v1.Subscriber: SubscriptionAdmin
|
|
1314
|
+
*/
|
|
1315
|
+
serviceClassNames?: {[key: string]: string} | null;
|
|
1316
|
+
}
|
|
1079
1317
|
/**
|
|
1080
1318
|
* Specifies a location to extract JWT from an API request.
|
|
1081
1319
|
*/
|
|
@@ -1226,6 +1464,27 @@ export namespace serviceusage_v1beta1 {
|
|
|
1226
1464
|
*/
|
|
1227
1465
|
monitoredResource?: string | null;
|
|
1228
1466
|
}
|
|
1467
|
+
/**
|
|
1468
|
+
* Describes settings to use when generating API methods that use the long-running operation pattern. All default values below are from those used in the client library generators (e.g. [Java](https://github.com/googleapis/gapic-generator-java/blob/04c2faa191a9b5a10b92392fe8482279c4404803/src/main/java/com/google/api/generator/gapic/composer/common/RetrySettingsComposer.java)).
|
|
1469
|
+
*/
|
|
1470
|
+
export interface Schema$LongRunning {
|
|
1471
|
+
/**
|
|
1472
|
+
* Initial delay after which the first poll request will be made. Default value: 5 seconds.
|
|
1473
|
+
*/
|
|
1474
|
+
initialPollDelay?: string | null;
|
|
1475
|
+
/**
|
|
1476
|
+
* Maximum time between two subsequent poll requests. Default value: 45 seconds.
|
|
1477
|
+
*/
|
|
1478
|
+
maxPollDelay?: string | null;
|
|
1479
|
+
/**
|
|
1480
|
+
* Multiplier to gradually increase delay between subsequent polls until it reaches max_poll_delay. Default value: 1.5.
|
|
1481
|
+
*/
|
|
1482
|
+
pollDelayMultiplier?: number | null;
|
|
1483
|
+
/**
|
|
1484
|
+
* Total polling timeout. Default value: 5 minutes.
|
|
1485
|
+
*/
|
|
1486
|
+
totalPollTimeout?: string | null;
|
|
1487
|
+
}
|
|
1229
1488
|
/**
|
|
1230
1489
|
* Method represents a method of an API interface.
|
|
1231
1490
|
*/
|
|
@@ -1259,6 +1518,32 @@ export namespace serviceusage_v1beta1 {
|
|
|
1259
1518
|
*/
|
|
1260
1519
|
syntax?: string | null;
|
|
1261
1520
|
}
|
|
1521
|
+
/**
|
|
1522
|
+
* Defines policies applying to an RPC method.
|
|
1523
|
+
*/
|
|
1524
|
+
export interface Schema$MethodPolicy {
|
|
1525
|
+
/**
|
|
1526
|
+
* Policies that are applicable to the request message.
|
|
1527
|
+
*/
|
|
1528
|
+
requestPolicies?: Schema$FieldPolicy[];
|
|
1529
|
+
/**
|
|
1530
|
+
* Selects a method to which these policies should be enforced, for example, "google.pubsub.v1.Subscriber.CreateSubscription". Refer to selector for syntax details. NOTE: This field must not be set in the proto annotation. It will be automatically filled by the service config compiler .
|
|
1531
|
+
*/
|
|
1532
|
+
selector?: string | null;
|
|
1533
|
+
}
|
|
1534
|
+
/**
|
|
1535
|
+
* Describes the generator configuration for a method.
|
|
1536
|
+
*/
|
|
1537
|
+
export interface Schema$MethodSettings {
|
|
1538
|
+
/**
|
|
1539
|
+
* Describes settings to use for long-running operations when generating API methods for RPCs. Complements RPCs that use the annotations in google/longrunning/operations.proto. Example of a YAML configuration:: publishing: method_settings: - selector: google.cloud.speech.v2.Speech.BatchRecognize long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay: seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes
|
|
1540
|
+
*/
|
|
1541
|
+
longRunning?: Schema$LongRunning;
|
|
1542
|
+
/**
|
|
1543
|
+
* The fully qualified name of the method, for which the options below apply. This is used to find the method to apply the options.
|
|
1544
|
+
*/
|
|
1545
|
+
selector?: string | null;
|
|
1546
|
+
}
|
|
1262
1547
|
/**
|
|
1263
1548
|
* Defines a metric type and its schema. Once a metric descriptor is created, deleting or altering it stops data collection and makes the metric type's existing data unusable.
|
|
1264
1549
|
*/
|
|
@@ -1339,7 +1624,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
1339
1624
|
selector?: string | null;
|
|
1340
1625
|
}
|
|
1341
1626
|
/**
|
|
1342
|
-
* Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = "/v1/{resource=**\}:getAcl"; \} \} package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = "/v2/{resource=**\}"; \} \} Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after
|
|
1627
|
+
* Declares an API Interface to be included in this interface. The including interface must redeclare all the methods from the included interface, but documentation and options are inherited as follows: - If after comment and whitespace stripping, the documentation string of the redeclared method is empty, it will be inherited from the original method. - Each annotation belonging to the service config (http, visibility) which is not set in the redeclared method will be inherited. - If an http annotation is inherited, the path pattern will be modified as follows. Any version prefix will be replaced by the version of the including interface plus the root path if specified. Example of a simple mixin: package google.acl.v1; service AccessControl { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = "/v1/{resource=**\}:getAcl"; \} \} package google.storage.v2; service Storage { // rpc GetAcl(GetAclRequest) returns (Acl); // Get a data record. rpc GetData(GetDataRequest) returns (Data) { option (google.api.http).get = "/v2/{resource=**\}"; \} \} Example of a mixin configuration: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl The mixin construct implies that all methods in `AccessControl` are also declared with same name and request/response types in `Storage`. A documentation generator or annotation processor will see the effective `Storage.GetAcl` method after inherting documentation and annotations as follows: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = "/v2/{resource=**\}:getAcl"; \} ... \} Note how the version in the path pattern changed from `v1` to `v2`. If the `root` field in the mixin is specified, it should be a relative path under which inherited HTTP paths are placed. Example: apis: - name: google.storage.v2.Storage mixins: - name: google.acl.v1.AccessControl root: acls This implies the following inherited HTTP annotation: service Storage { // Get the underlying ACL object. rpc GetAcl(GetAclRequest) returns (Acl) { option (google.api.http).get = "/v2/acls/{resource=**\}:getAcl"; \} ... \}
|
|
1343
1628
|
*/
|
|
1344
1629
|
export interface Schema$Mixin {
|
|
1345
1630
|
/**
|
|
@@ -1406,6 +1691,15 @@ export namespace serviceusage_v1beta1 {
|
|
|
1406
1691
|
*/
|
|
1407
1692
|
monitoredResource?: string | null;
|
|
1408
1693
|
}
|
|
1694
|
+
/**
|
|
1695
|
+
* Settings for Node client libraries.
|
|
1696
|
+
*/
|
|
1697
|
+
export interface Schema$NodeSettings {
|
|
1698
|
+
/**
|
|
1699
|
+
* Some settings.
|
|
1700
|
+
*/
|
|
1701
|
+
common?: Schema$CommonLanguageSettings;
|
|
1702
|
+
}
|
|
1409
1703
|
/**
|
|
1410
1704
|
* OAuth scopes are a way to define data and permissions on data. For example, there are scopes defined for "Read-only access to Google Calendar" and "Access to Cloud Platform". Users can consent to a scope for an application, giving it permission to access that data on their behalf. OAuth scope specifications should be fairly coarse grained; a user will need to see and understand the text description of what your scope means. In most cases: use one or at most two OAuth scopes for an entire family of products. If your product has multiple APIs, you should probably be sharing the OAuth scope across all of those APIs. When you need finer grained OAuth consent screens: talk with your product management about how developers will use them in practice. Please note that even though each of the canonical scopes is enough for a request to be accepted and passed to the backend, a request can still fail due to the backend requiring additional scopes or permissions.
|
|
1411
1705
|
*/
|
|
@@ -1436,7 +1730,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
1436
1730
|
*/
|
|
1437
1731
|
name?: string | null;
|
|
1438
1732
|
/**
|
|
1439
|
-
* The normal response of the operation
|
|
1733
|
+
* The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
|
|
1440
1734
|
*/
|
|
1441
1735
|
response?: {[key: string]: any} | null;
|
|
1442
1736
|
}
|
|
@@ -1488,6 +1782,98 @@ export namespace serviceusage_v1beta1 {
|
|
|
1488
1782
|
*/
|
|
1489
1783
|
subpages?: Schema$Page[];
|
|
1490
1784
|
}
|
|
1785
|
+
/**
|
|
1786
|
+
* Settings for Php client libraries.
|
|
1787
|
+
*/
|
|
1788
|
+
export interface Schema$PhpSettings {
|
|
1789
|
+
/**
|
|
1790
|
+
* Some settings.
|
|
1791
|
+
*/
|
|
1792
|
+
common?: Schema$CommonLanguageSettings;
|
|
1793
|
+
}
|
|
1794
|
+
/**
|
|
1795
|
+
* Quota policy created by service producer.
|
|
1796
|
+
*/
|
|
1797
|
+
export interface Schema$ProducerQuotaPolicy {
|
|
1798
|
+
/**
|
|
1799
|
+
* The cloud resource container at which the quota policy is created. The format is `{container_type\}/{container_number\}`
|
|
1800
|
+
*/
|
|
1801
|
+
container?: string | null;
|
|
1802
|
+
/**
|
|
1803
|
+
* If this map is nonempty, then this policy applies only to specific values for dimensions defined in the limit unit. For example, a policy on a limit with the unit `1/{project\}/{region\}` could contain an entry with the key `region` and the value `us-east-1`; the policy is only applied to quota consumed in that region. This map has the following restrictions: * Keys that are not defined in the limit's unit are not valid keys. Any string appearing in {brackets\} in the unit (besides {project\} or {user\}) is a defined key. * `project` is not a valid key; the project is already specified in the parent resource name. * `user` is not a valid key; the API does not support quota policies that apply only to a specific user. * If `region` appears as a key, its value must be a valid Cloud region. * If `zone` appears as a key, its value must be a valid Cloud zone. * If any valid key other than `region` or `zone` appears in the map, then all valid keys other than `region` or `zone` must also appear in the map.
|
|
1804
|
+
*/
|
|
1805
|
+
dimensions?: {[key: string]: string} | null;
|
|
1806
|
+
/**
|
|
1807
|
+
* The name of the metric to which this policy applies. An example name would be: `compute.googleapis.com/cpus`
|
|
1808
|
+
*/
|
|
1809
|
+
metric?: string | null;
|
|
1810
|
+
/**
|
|
1811
|
+
* The resource name of the policy. This name is generated by the server when the policy is created. Example names would be: `organizations/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/producerQuotaPolicies/4a3f2c1d`
|
|
1812
|
+
*/
|
|
1813
|
+
name?: string | null;
|
|
1814
|
+
/**
|
|
1815
|
+
* The quota policy value. Can be any nonnegative integer, or -1 (unlimited quota).
|
|
1816
|
+
*/
|
|
1817
|
+
policyValue?: string | null;
|
|
1818
|
+
/**
|
|
1819
|
+
* The limit unit of the limit to which this policy applies. An example unit would be: `1/{project\}/{region\}` Note that `{project\}` and `{region\}` are not placeholders in this example; the literal characters `{` and `\}` occur in the string.
|
|
1820
|
+
*/
|
|
1821
|
+
unit?: string | null;
|
|
1822
|
+
}
|
|
1823
|
+
/**
|
|
1824
|
+
* This message configures the settings for publishing [Google Cloud Client libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) generated from the service config.
|
|
1825
|
+
*/
|
|
1826
|
+
export interface Schema$Publishing {
|
|
1827
|
+
/**
|
|
1828
|
+
* Used as a tracking tag when collecting data about the APIs developer relations artifacts like docs, packages delivered to package managers, etc. Example: "speech".
|
|
1829
|
+
*/
|
|
1830
|
+
apiShortName?: string | null;
|
|
1831
|
+
/**
|
|
1832
|
+
* GitHub teams to be added to CODEOWNERS in the directory in GitHub containing source code for the client libraries for this API.
|
|
1833
|
+
*/
|
|
1834
|
+
codeownerGithubTeams?: string[] | null;
|
|
1835
|
+
/**
|
|
1836
|
+
* A prefix used in sample code when demarking regions to be included in documentation.
|
|
1837
|
+
*/
|
|
1838
|
+
docTagPrefix?: string | null;
|
|
1839
|
+
/**
|
|
1840
|
+
* Link to product home page. Example: https://cloud.google.com/asset-inventory/docs/overview
|
|
1841
|
+
*/
|
|
1842
|
+
documentationUri?: string | null;
|
|
1843
|
+
/**
|
|
1844
|
+
* GitHub label to apply to issues and pull requests opened for this API.
|
|
1845
|
+
*/
|
|
1846
|
+
githubLabel?: string | null;
|
|
1847
|
+
/**
|
|
1848
|
+
* Client library settings. If the same version string appears multiple times in this list, then the last one wins. Settings from earlier settings with the same version string are discarded.
|
|
1849
|
+
*/
|
|
1850
|
+
librarySettings?: Schema$ClientLibrarySettings[];
|
|
1851
|
+
/**
|
|
1852
|
+
* A list of API method settings, e.g. the behavior for methods that use the long-running operation pattern.
|
|
1853
|
+
*/
|
|
1854
|
+
methodSettings?: Schema$MethodSettings[];
|
|
1855
|
+
/**
|
|
1856
|
+
* Link to a *public* URI where users can report issues. Example: https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
|
1857
|
+
*/
|
|
1858
|
+
newIssueUri?: string | null;
|
|
1859
|
+
/**
|
|
1860
|
+
* For whom the client library is being published.
|
|
1861
|
+
*/
|
|
1862
|
+
organization?: string | null;
|
|
1863
|
+
/**
|
|
1864
|
+
* Optional link to proto reference documentation. Example: https://cloud.google.com/pubsub/lite/docs/reference/rpc
|
|
1865
|
+
*/
|
|
1866
|
+
protoReferenceDocumentationUri?: string | null;
|
|
1867
|
+
}
|
|
1868
|
+
/**
|
|
1869
|
+
* Settings for Python client libraries.
|
|
1870
|
+
*/
|
|
1871
|
+
export interface Schema$PythonSettings {
|
|
1872
|
+
/**
|
|
1873
|
+
* Some settings.
|
|
1874
|
+
*/
|
|
1875
|
+
common?: Schema$CommonLanguageSettings;
|
|
1876
|
+
}
|
|
1491
1877
|
/**
|
|
1492
1878
|
* Quota configuration helps to achieve fairness and budgeting in service usage. The metric based quota configuration works this way: - The service configuration defines a set of metrics. - For API calls, the quota.metric_rules maps methods to metrics with corresponding costs. - The quota.limits defines limits on the metrics, which will be used for quota checks at runtime. An example quota configuration in yaml format: quota: limits: - name: apiWriteQpsPerProject metric: library.googleapis.com/write_calls unit: "1/min/{project\}" # rate limit for consumer projects values: STANDARD: 10000 (The metric rules bind all methods to the read_calls metric, except for the UpdateBook and DeleteBook methods. These two methods are mapped to the write_calls metric, with the UpdateBook method consuming at twice rate as the DeleteBook method.) metric_rules: - selector: "*" metric_costs: library.googleapis.com/read_calls: 1 - selector: google.example.library.v1.LibraryService.UpdateBook metric_costs: library.googleapis.com/write_calls: 2 - selector: google.example.library.v1.LibraryService.DeleteBook metric_costs: library.googleapis.com/write_calls: 1 Corresponding Metric definition: metrics: - name: library.googleapis.com/read_calls display_name: Read requests metric_kind: DELTA value_type: INT64 - name: library.googleapis.com/write_calls display_name: Write requests metric_kind: DELTA value_type: INT64
|
|
1493
1879
|
*/
|
|
@@ -1529,6 +1915,10 @@ export namespace serviceusage_v1beta1 {
|
|
|
1529
1915
|
* Producer override on this quota bucket.
|
|
1530
1916
|
*/
|
|
1531
1917
|
producerOverride?: Schema$QuotaOverride;
|
|
1918
|
+
/**
|
|
1919
|
+
* Producer policy inherited from the closet ancestor of the current consumer.
|
|
1920
|
+
*/
|
|
1921
|
+
producerQuotaPolicy?: Schema$ProducerQuotaPolicy;
|
|
1532
1922
|
}
|
|
1533
1923
|
/**
|
|
1534
1924
|
* `QuotaLimit` defines a specific limit that applies over a specified duration for a limit type. There can be at most one limit for a duration and limit type combination defined within a `QuotaGroup`.
|
|
@@ -1604,6 +1994,32 @@ export namespace serviceusage_v1beta1 {
|
|
|
1604
1994
|
*/
|
|
1605
1995
|
unit?: string | null;
|
|
1606
1996
|
}
|
|
1997
|
+
/**
|
|
1998
|
+
* Metadata for the `RemoveEnableRules` method.
|
|
1999
|
+
*/
|
|
2000
|
+
export interface Schema$RemoveEnableRulesMetadata {}
|
|
2001
|
+
/**
|
|
2002
|
+
* The response message of "RemoveEnableRules" method.
|
|
2003
|
+
*/
|
|
2004
|
+
export interface Schema$RemoveEnableRulesResponse {
|
|
2005
|
+
/**
|
|
2006
|
+
* The parent consumer policy. It can be `projects/12345/consumerPolicies/default`, or `folders/12345/consumerPolicies/default`, or `organizations/12345/consumerPolicies/default`.
|
|
2007
|
+
*/
|
|
2008
|
+
parent?: string | null;
|
|
2009
|
+
/**
|
|
2010
|
+
* The values removed from the parent consumer policy.
|
|
2011
|
+
*/
|
|
2012
|
+
removedValues?: string[] | null;
|
|
2013
|
+
}
|
|
2014
|
+
/**
|
|
2015
|
+
* Settings for Ruby client libraries.
|
|
2016
|
+
*/
|
|
2017
|
+
export interface Schema$RubySettings {
|
|
2018
|
+
/**
|
|
2019
|
+
* Some settings.
|
|
2020
|
+
*/
|
|
2021
|
+
common?: Schema$CommonLanguageSettings;
|
|
2022
|
+
}
|
|
1607
2023
|
/**
|
|
1608
2024
|
* A service that is available for use by the consumer.
|
|
1609
2025
|
*/
|
|
@@ -1761,6 +2177,10 @@ export namespace serviceusage_v1beta1 {
|
|
|
1761
2177
|
* A protocol buffer message type.
|
|
1762
2178
|
*/
|
|
1763
2179
|
export interface Schema$Type {
|
|
2180
|
+
/**
|
|
2181
|
+
* The source edition string, only valid when syntax is SYNTAX_EDITIONS.
|
|
2182
|
+
*/
|
|
2183
|
+
edition?: string | null;
|
|
1764
2184
|
/**
|
|
1765
2185
|
* The list of fields.
|
|
1766
2186
|
*/
|
|
@@ -1790,6 +2210,10 @@ export namespace serviceusage_v1beta1 {
|
|
|
1790
2210
|
* Metadata message that provides information such as progress, partial failures, and similar information on each GetOperation call of LRO returned by UpdateAdminQuotaPolicy.
|
|
1791
2211
|
*/
|
|
1792
2212
|
export interface Schema$UpdateAdminQuotaPolicyMetadata {}
|
|
2213
|
+
/**
|
|
2214
|
+
* Metadata for the `UpdateConsumerPolicy` method.
|
|
2215
|
+
*/
|
|
2216
|
+
export interface Schema$UpdateConsumerPolicyMetadata {}
|
|
1793
2217
|
/**
|
|
1794
2218
|
* Configuration controlling usage of a service.
|
|
1795
2219
|
*/
|
|
@@ -1833,55 +2257,6 @@ export namespace serviceusage_v1beta1 {
|
|
|
1833
2257
|
|
|
1834
2258
|
/**
|
|
1835
2259
|
* 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.
|
|
1836
|
-
* @example
|
|
1837
|
-
* ```js
|
|
1838
|
-
* // Before running the sample:
|
|
1839
|
-
* // - Enable the API at:
|
|
1840
|
-
* // https://console.developers.google.com/apis/api/serviceusage.googleapis.com
|
|
1841
|
-
* // - Login into gcloud by running:
|
|
1842
|
-
* // `$ gcloud auth application-default login`
|
|
1843
|
-
* // - Install the npm module by running:
|
|
1844
|
-
* // `$ npm install googleapis`
|
|
1845
|
-
*
|
|
1846
|
-
* const {google} = require('googleapis');
|
|
1847
|
-
* const serviceusage = google.serviceusage('v1beta1');
|
|
1848
|
-
*
|
|
1849
|
-
* async function main() {
|
|
1850
|
-
* const auth = new google.auth.GoogleAuth({
|
|
1851
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1852
|
-
* scopes: [
|
|
1853
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
1854
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
1855
|
-
* ],
|
|
1856
|
-
* });
|
|
1857
|
-
*
|
|
1858
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
1859
|
-
* const authClient = await auth.getClient();
|
|
1860
|
-
* google.options({auth: authClient});
|
|
1861
|
-
*
|
|
1862
|
-
* // Do the magic
|
|
1863
|
-
* const res = await serviceusage.operations.get({
|
|
1864
|
-
* // The name of the operation resource.
|
|
1865
|
-
* name: 'operations/my-operation',
|
|
1866
|
-
* });
|
|
1867
|
-
* console.log(res.data);
|
|
1868
|
-
*
|
|
1869
|
-
* // Example response
|
|
1870
|
-
* // {
|
|
1871
|
-
* // "done": false,
|
|
1872
|
-
* // "error": {},
|
|
1873
|
-
* // "metadata": {},
|
|
1874
|
-
* // "name": "my_name",
|
|
1875
|
-
* // "response": {}
|
|
1876
|
-
* // }
|
|
1877
|
-
* }
|
|
1878
|
-
*
|
|
1879
|
-
* main().catch(e => {
|
|
1880
|
-
* console.error(e);
|
|
1881
|
-
* throw e;
|
|
1882
|
-
* });
|
|
1883
|
-
*
|
|
1884
|
-
* ```
|
|
1885
2260
|
*
|
|
1886
2261
|
* @param params - Parameters for request
|
|
1887
2262
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -1964,59 +2339,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
1964
2339
|
}
|
|
1965
2340
|
|
|
1966
2341
|
/**
|
|
1967
|
-
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
|
|
1968
|
-
* @example
|
|
1969
|
-
* ```js
|
|
1970
|
-
* // Before running the sample:
|
|
1971
|
-
* // - Enable the API at:
|
|
1972
|
-
* // https://console.developers.google.com/apis/api/serviceusage.googleapis.com
|
|
1973
|
-
* // - Login into gcloud by running:
|
|
1974
|
-
* // `$ gcloud auth application-default login`
|
|
1975
|
-
* // - Install the npm module by running:
|
|
1976
|
-
* // `$ npm install googleapis`
|
|
1977
|
-
*
|
|
1978
|
-
* const {google} = require('googleapis');
|
|
1979
|
-
* const serviceusage = google.serviceusage('v1beta1');
|
|
1980
|
-
*
|
|
1981
|
-
* async function main() {
|
|
1982
|
-
* const auth = new google.auth.GoogleAuth({
|
|
1983
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
1984
|
-
* scopes: [
|
|
1985
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
1986
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
1987
|
-
* ],
|
|
1988
|
-
* });
|
|
1989
|
-
*
|
|
1990
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
1991
|
-
* const authClient = await auth.getClient();
|
|
1992
|
-
* google.options({auth: authClient});
|
|
1993
|
-
*
|
|
1994
|
-
* // Do the magic
|
|
1995
|
-
* const res = await serviceusage.operations.list({
|
|
1996
|
-
* // The standard list filter.
|
|
1997
|
-
* filter: 'placeholder-value',
|
|
1998
|
-
* // The name of the operation's parent resource.
|
|
1999
|
-
* name: 'placeholder-value',
|
|
2000
|
-
* // The standard list page size.
|
|
2001
|
-
* pageSize: 'placeholder-value',
|
|
2002
|
-
* // The standard list page token.
|
|
2003
|
-
* pageToken: 'placeholder-value',
|
|
2004
|
-
* });
|
|
2005
|
-
* console.log(res.data);
|
|
2006
|
-
*
|
|
2007
|
-
* // Example response
|
|
2008
|
-
* // {
|
|
2009
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
2010
|
-
* // "operations": []
|
|
2011
|
-
* // }
|
|
2012
|
-
* }
|
|
2013
|
-
*
|
|
2014
|
-
* main().catch(e => {
|
|
2015
|
-
* console.error(e);
|
|
2016
|
-
* throw e;
|
|
2017
|
-
* });
|
|
2018
|
-
*
|
|
2019
|
-
* ```
|
|
2342
|
+
* Lists operations that match the specified filter in the request. If the server doesn't support this method, it returns `UNIMPLEMENTED`.
|
|
2020
2343
|
*
|
|
2021
2344
|
* @param params - Parameters for request
|
|
2022
2345
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2144,63 +2467,6 @@ export namespace serviceusage_v1beta1 {
|
|
|
2144
2467
|
|
|
2145
2468
|
/**
|
|
2146
2469
|
* Enables multiple services on a project. The operation is atomic: if enabling any service fails, then the entire batch fails, and no state changes occur. Operation response type: `google.protobuf.Empty`
|
|
2147
|
-
* @example
|
|
2148
|
-
* ```js
|
|
2149
|
-
* // Before running the sample:
|
|
2150
|
-
* // - Enable the API at:
|
|
2151
|
-
* // https://console.developers.google.com/apis/api/serviceusage.googleapis.com
|
|
2152
|
-
* // - Login into gcloud by running:
|
|
2153
|
-
* // `$ gcloud auth application-default login`
|
|
2154
|
-
* // - Install the npm module by running:
|
|
2155
|
-
* // `$ npm install googleapis`
|
|
2156
|
-
*
|
|
2157
|
-
* const {google} = require('googleapis');
|
|
2158
|
-
* const serviceusage = google.serviceusage('v1beta1');
|
|
2159
|
-
*
|
|
2160
|
-
* async function main() {
|
|
2161
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2162
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2163
|
-
* scopes: [
|
|
2164
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2165
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
2166
|
-
* ],
|
|
2167
|
-
* });
|
|
2168
|
-
*
|
|
2169
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2170
|
-
* const authClient = await auth.getClient();
|
|
2171
|
-
* google.options({auth: authClient});
|
|
2172
|
-
*
|
|
2173
|
-
* // Do the magic
|
|
2174
|
-
* const res = await serviceusage.services.batchEnable({
|
|
2175
|
-
* // Parent to enable services on. An example name would be: `projects/123` where `123` is the project number (not project ID). The `BatchEnableServices` method currently only supports projects.
|
|
2176
|
-
* parent: '[^/]+/[^/]+',
|
|
2177
|
-
*
|
|
2178
|
-
* // Request body metadata
|
|
2179
|
-
* requestBody: {
|
|
2180
|
-
* // request body parameters
|
|
2181
|
-
* // {
|
|
2182
|
-
* // "serviceIds": []
|
|
2183
|
-
* // }
|
|
2184
|
-
* },
|
|
2185
|
-
* });
|
|
2186
|
-
* console.log(res.data);
|
|
2187
|
-
*
|
|
2188
|
-
* // Example response
|
|
2189
|
-
* // {
|
|
2190
|
-
* // "done": false,
|
|
2191
|
-
* // "error": {},
|
|
2192
|
-
* // "metadata": {},
|
|
2193
|
-
* // "name": "my_name",
|
|
2194
|
-
* // "response": {}
|
|
2195
|
-
* // }
|
|
2196
|
-
* }
|
|
2197
|
-
*
|
|
2198
|
-
* main().catch(e => {
|
|
2199
|
-
* console.error(e);
|
|
2200
|
-
* throw e;
|
|
2201
|
-
* });
|
|
2202
|
-
*
|
|
2203
|
-
* ```
|
|
2204
2470
|
*
|
|
2205
2471
|
* @param params - Parameters for request
|
|
2206
2472
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2288,61 +2554,6 @@ export namespace serviceusage_v1beta1 {
|
|
|
2288
2554
|
|
|
2289
2555
|
/**
|
|
2290
2556
|
* Disables a service so that it can no longer be used with a project. This prevents unintended usage that may cause unexpected billing charges or security leaks. It is not valid to call the disable method on a service that is not currently enabled. Callers will receive a `FAILED_PRECONDITION` status if the target service is not currently enabled. Operation response type: `google.protobuf.Empty`
|
|
2291
|
-
* @example
|
|
2292
|
-
* ```js
|
|
2293
|
-
* // Before running the sample:
|
|
2294
|
-
* // - Enable the API at:
|
|
2295
|
-
* // https://console.developers.google.com/apis/api/serviceusage.googleapis.com
|
|
2296
|
-
* // - Login into gcloud by running:
|
|
2297
|
-
* // `$ gcloud auth application-default login`
|
|
2298
|
-
* // - Install the npm module by running:
|
|
2299
|
-
* // `$ npm install googleapis`
|
|
2300
|
-
*
|
|
2301
|
-
* const {google} = require('googleapis');
|
|
2302
|
-
* const serviceusage = google.serviceusage('v1beta1');
|
|
2303
|
-
*
|
|
2304
|
-
* async function main() {
|
|
2305
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2306
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2307
|
-
* scopes: [
|
|
2308
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2309
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
2310
|
-
* ],
|
|
2311
|
-
* });
|
|
2312
|
-
*
|
|
2313
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2314
|
-
* const authClient = await auth.getClient();
|
|
2315
|
-
* google.options({auth: authClient});
|
|
2316
|
-
*
|
|
2317
|
-
* // Do the magic
|
|
2318
|
-
* const res = await serviceusage.services.disable({
|
|
2319
|
-
* // Name of the consumer and service to disable the service on. The enable and disable methods currently only support projects. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project number (not project ID).
|
|
2320
|
-
* name: '[^/]+/[^/]+/services/my-service',
|
|
2321
|
-
*
|
|
2322
|
-
* // Request body metadata
|
|
2323
|
-
* requestBody: {
|
|
2324
|
-
* // request body parameters
|
|
2325
|
-
* // {}
|
|
2326
|
-
* },
|
|
2327
|
-
* });
|
|
2328
|
-
* console.log(res.data);
|
|
2329
|
-
*
|
|
2330
|
-
* // Example response
|
|
2331
|
-
* // {
|
|
2332
|
-
* // "done": false,
|
|
2333
|
-
* // "error": {},
|
|
2334
|
-
* // "metadata": {},
|
|
2335
|
-
* // "name": "my_name",
|
|
2336
|
-
* // "response": {}
|
|
2337
|
-
* // }
|
|
2338
|
-
* }
|
|
2339
|
-
*
|
|
2340
|
-
* main().catch(e => {
|
|
2341
|
-
* console.error(e);
|
|
2342
|
-
* throw e;
|
|
2343
|
-
* });
|
|
2344
|
-
*
|
|
2345
|
-
* ```
|
|
2346
2557
|
*
|
|
2347
2558
|
* @param params - Parameters for request
|
|
2348
2559
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2429,61 +2640,6 @@ export namespace serviceusage_v1beta1 {
|
|
|
2429
2640
|
|
|
2430
2641
|
/**
|
|
2431
2642
|
* Enables a service so that it can be used with a project. Operation response type: `google.protobuf.Empty`
|
|
2432
|
-
* @example
|
|
2433
|
-
* ```js
|
|
2434
|
-
* // Before running the sample:
|
|
2435
|
-
* // - Enable the API at:
|
|
2436
|
-
* // https://console.developers.google.com/apis/api/serviceusage.googleapis.com
|
|
2437
|
-
* // - Login into gcloud by running:
|
|
2438
|
-
* // `$ gcloud auth application-default login`
|
|
2439
|
-
* // - Install the npm module by running:
|
|
2440
|
-
* // `$ npm install googleapis`
|
|
2441
|
-
*
|
|
2442
|
-
* const {google} = require('googleapis');
|
|
2443
|
-
* const serviceusage = google.serviceusage('v1beta1');
|
|
2444
|
-
*
|
|
2445
|
-
* async function main() {
|
|
2446
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2447
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2448
|
-
* scopes: [
|
|
2449
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2450
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
2451
|
-
* ],
|
|
2452
|
-
* });
|
|
2453
|
-
*
|
|
2454
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2455
|
-
* const authClient = await auth.getClient();
|
|
2456
|
-
* google.options({auth: authClient});
|
|
2457
|
-
*
|
|
2458
|
-
* // Do the magic
|
|
2459
|
-
* const res = await serviceusage.services.enable({
|
|
2460
|
-
* // Name of the consumer and service to enable the service on. The `EnableService` and `DisableService` methods currently only support projects. Enabling a service requires that the service is public or is shared with the user enabling the service. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project number (not project ID).
|
|
2461
|
-
* name: '[^/]+/[^/]+/services/my-service',
|
|
2462
|
-
*
|
|
2463
|
-
* // Request body metadata
|
|
2464
|
-
* requestBody: {
|
|
2465
|
-
* // request body parameters
|
|
2466
|
-
* // {}
|
|
2467
|
-
* },
|
|
2468
|
-
* });
|
|
2469
|
-
* console.log(res.data);
|
|
2470
|
-
*
|
|
2471
|
-
* // Example response
|
|
2472
|
-
* // {
|
|
2473
|
-
* // "done": false,
|
|
2474
|
-
* // "error": {},
|
|
2475
|
-
* // "metadata": {},
|
|
2476
|
-
* // "name": "my_name",
|
|
2477
|
-
* // "response": {}
|
|
2478
|
-
* // }
|
|
2479
|
-
* }
|
|
2480
|
-
*
|
|
2481
|
-
* main().catch(e => {
|
|
2482
|
-
* console.error(e);
|
|
2483
|
-
* throw e;
|
|
2484
|
-
* });
|
|
2485
|
-
*
|
|
2486
|
-
* ```
|
|
2487
2643
|
*
|
|
2488
2644
|
* @param params - Parameters for request
|
|
2489
2645
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2570,55 +2726,6 @@ export namespace serviceusage_v1beta1 {
|
|
|
2570
2726
|
|
|
2571
2727
|
/**
|
|
2572
2728
|
* Generates service identity for service.
|
|
2573
|
-
* @example
|
|
2574
|
-
* ```js
|
|
2575
|
-
* // Before running the sample:
|
|
2576
|
-
* // - Enable the API at:
|
|
2577
|
-
* // https://console.developers.google.com/apis/api/serviceusage.googleapis.com
|
|
2578
|
-
* // - Login into gcloud by running:
|
|
2579
|
-
* // `$ gcloud auth application-default login`
|
|
2580
|
-
* // - Install the npm module by running:
|
|
2581
|
-
* // `$ npm install googleapis`
|
|
2582
|
-
*
|
|
2583
|
-
* const {google} = require('googleapis');
|
|
2584
|
-
* const serviceusage = google.serviceusage('v1beta1');
|
|
2585
|
-
*
|
|
2586
|
-
* async function main() {
|
|
2587
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2588
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2589
|
-
* scopes: [
|
|
2590
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2591
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
2592
|
-
* ],
|
|
2593
|
-
* });
|
|
2594
|
-
*
|
|
2595
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2596
|
-
* const authClient = await auth.getClient();
|
|
2597
|
-
* google.options({auth: authClient});
|
|
2598
|
-
*
|
|
2599
|
-
* // Do the magic
|
|
2600
|
-
* const res = await serviceusage.services.generateServiceIdentity({
|
|
2601
|
-
* // Name of the consumer and service to generate an identity for. The `GenerateServiceIdentity` methods currently only support projects. An example name would be: `projects/123/services/example.googleapis.com` where `123` is the project number.
|
|
2602
|
-
* parent: '[^/]+/[^/]+/services/my-service',
|
|
2603
|
-
* });
|
|
2604
|
-
* console.log(res.data);
|
|
2605
|
-
*
|
|
2606
|
-
* // Example response
|
|
2607
|
-
* // {
|
|
2608
|
-
* // "done": false,
|
|
2609
|
-
* // "error": {},
|
|
2610
|
-
* // "metadata": {},
|
|
2611
|
-
* // "name": "my_name",
|
|
2612
|
-
* // "response": {}
|
|
2613
|
-
* // }
|
|
2614
|
-
* }
|
|
2615
|
-
*
|
|
2616
|
-
* main().catch(e => {
|
|
2617
|
-
* console.error(e);
|
|
2618
|
-
* throw e;
|
|
2619
|
-
* });
|
|
2620
|
-
*
|
|
2621
|
-
* ```
|
|
2622
2729
|
*
|
|
2623
2730
|
* @param params - Parameters for request
|
|
2624
2731
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2707,54 +2814,6 @@ export namespace serviceusage_v1beta1 {
|
|
|
2707
2814
|
|
|
2708
2815
|
/**
|
|
2709
2816
|
* Returns the service configuration and enabled state for a given service.
|
|
2710
|
-
* @example
|
|
2711
|
-
* ```js
|
|
2712
|
-
* // Before running the sample:
|
|
2713
|
-
* // - Enable the API at:
|
|
2714
|
-
* // https://console.developers.google.com/apis/api/serviceusage.googleapis.com
|
|
2715
|
-
* // - Login into gcloud by running:
|
|
2716
|
-
* // `$ gcloud auth application-default login`
|
|
2717
|
-
* // - Install the npm module by running:
|
|
2718
|
-
* // `$ npm install googleapis`
|
|
2719
|
-
*
|
|
2720
|
-
* const {google} = require('googleapis');
|
|
2721
|
-
* const serviceusage = google.serviceusage('v1beta1');
|
|
2722
|
-
*
|
|
2723
|
-
* async function main() {
|
|
2724
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2725
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2726
|
-
* scopes: [
|
|
2727
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2728
|
-
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
2729
|
-
* ],
|
|
2730
|
-
* });
|
|
2731
|
-
*
|
|
2732
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2733
|
-
* const authClient = await auth.getClient();
|
|
2734
|
-
* google.options({auth: authClient});
|
|
2735
|
-
*
|
|
2736
|
-
* // Do the magic
|
|
2737
|
-
* const res = await serviceusage.services.get({
|
|
2738
|
-
* // Name of the consumer and service to get the `ConsumerState` for. An example name would be: `projects/123/services/serviceusage.googleapis.com` where `123` is the project number (not project ID).
|
|
2739
|
-
* name: '[^/]+/[^/]+/services/my-service',
|
|
2740
|
-
* });
|
|
2741
|
-
* console.log(res.data);
|
|
2742
|
-
*
|
|
2743
|
-
* // Example response
|
|
2744
|
-
* // {
|
|
2745
|
-
* // "config": {},
|
|
2746
|
-
* // "name": "my_name",
|
|
2747
|
-
* // "parent": "my_parent",
|
|
2748
|
-
* // "state": "my_state"
|
|
2749
|
-
* // }
|
|
2750
|
-
* }
|
|
2751
|
-
*
|
|
2752
|
-
* main().catch(e => {
|
|
2753
|
-
* console.error(e);
|
|
2754
|
-
* throw e;
|
|
2755
|
-
* });
|
|
2756
|
-
*
|
|
2757
|
-
* ```
|
|
2758
2817
|
*
|
|
2759
2818
|
* @param params - Parameters for request
|
|
2760
2819
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -2838,58 +2897,6 @@ export namespace serviceusage_v1beta1 {
|
|
|
2838
2897
|
|
|
2839
2898
|
/**
|
|
2840
2899
|
* Lists all services available to the specified project, and the current state of those services with respect to the project. The list includes all public services, all services for which the calling user has the `servicemanagement.services.bind` permission, and all services that have already been enabled on the project. The list can be filtered to only include services in a specific state, for example to only include services enabled on the project.
|
|
2841
|
-
* @example
|
|
2842
|
-
* ```js
|
|
2843
|
-
* // Before running the sample:
|
|
2844
|
-
* // - Enable the API at:
|
|
2845
|
-
* // https://console.developers.google.com/apis/api/serviceusage.googleapis.com
|
|
2846
|
-
* // - Login into gcloud by running:
|
|
2847
|
-
* // `$ gcloud auth application-default login`
|
|
2848
|
-
* // - Install the npm module by running:
|
|
2849
|
-
* // `$ npm install googleapis`
|
|
2850
|
-
*
|
|
2851
|
-
* const {google} = require('googleapis');
|
|
2852
|
-
* const serviceusage = google.serviceusage('v1beta1');
|
|
2853
|
-
*
|
|
2854
|
-
* async function main() {
|
|
2855
|
-
* const auth = new google.auth.GoogleAuth({
|
|
2856
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
2857
|
-
* scopes: [
|
|
2858
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
2859
|
-
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
2860
|
-
* ],
|
|
2861
|
-
* });
|
|
2862
|
-
*
|
|
2863
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
2864
|
-
* const authClient = await auth.getClient();
|
|
2865
|
-
* google.options({auth: authClient});
|
|
2866
|
-
*
|
|
2867
|
-
* // Do the magic
|
|
2868
|
-
* const res = await serviceusage.services.list({
|
|
2869
|
-
* // Only list services that conform to the given filter. The allowed filter strings are `state:ENABLED` and `state:DISABLED`.
|
|
2870
|
-
* filter: 'placeholder-value',
|
|
2871
|
-
* // Requested size of the next page of data. Requested page size cannot exceed 200. If not set, the default page size is 50.
|
|
2872
|
-
* pageSize: 'placeholder-value',
|
|
2873
|
-
* // Token identifying which result to start with, which is returned by a previous list call.
|
|
2874
|
-
* pageToken: 'placeholder-value',
|
|
2875
|
-
* // Parent to search for services on. An example name would be: `projects/123` where `123` is the project number (not project ID).
|
|
2876
|
-
* parent: '[^/]+/[^/]+',
|
|
2877
|
-
* });
|
|
2878
|
-
* console.log(res.data);
|
|
2879
|
-
*
|
|
2880
|
-
* // Example response
|
|
2881
|
-
* // {
|
|
2882
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
2883
|
-
* // "services": []
|
|
2884
|
-
* // }
|
|
2885
|
-
* }
|
|
2886
|
-
*
|
|
2887
|
-
* main().catch(e => {
|
|
2888
|
-
* console.error(e);
|
|
2889
|
-
* throw e;
|
|
2890
|
-
* });
|
|
2891
|
-
*
|
|
2892
|
-
* ```
|
|
2893
2900
|
*
|
|
2894
2901
|
* @param params - Parameters for request
|
|
2895
2902
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3017,7 +3024,7 @@ export namespace serviceusage_v1beta1 {
|
|
|
3017
3024
|
export interface Params$Resource$Services$Generateserviceidentity
|
|
3018
3025
|
extends StandardParameters {
|
|
3019
3026
|
/**
|
|
3020
|
-
* Name of the consumer and service to generate an identity for. The `GenerateServiceIdentity` methods currently
|
|
3027
|
+
* Name of the consumer and service to generate an identity for. The `GenerateServiceIdentity` methods currently support projects, folders, organizations. Example parents would be: `projects/123/services/example.googleapis.com` `folders/123/services/example.googleapis.com` `organizations/123/services/example.googleapis.com`
|
|
3021
3028
|
*/
|
|
3022
3029
|
parent?: string;
|
|
3023
3030
|
}
|
|
@@ -3058,58 +3065,6 @@ export namespace serviceusage_v1beta1 {
|
|
|
3058
3065
|
|
|
3059
3066
|
/**
|
|
3060
3067
|
* Retrieves a summary of quota information for a specific quota metric
|
|
3061
|
-
* @example
|
|
3062
|
-
* ```js
|
|
3063
|
-
* // Before running the sample:
|
|
3064
|
-
* // - Enable the API at:
|
|
3065
|
-
* // https://console.developers.google.com/apis/api/serviceusage.googleapis.com
|
|
3066
|
-
* // - Login into gcloud by running:
|
|
3067
|
-
* // `$ gcloud auth application-default login`
|
|
3068
|
-
* // - Install the npm module by running:
|
|
3069
|
-
* // `$ npm install googleapis`
|
|
3070
|
-
*
|
|
3071
|
-
* const {google} = require('googleapis');
|
|
3072
|
-
* const serviceusage = google.serviceusage('v1beta1');
|
|
3073
|
-
*
|
|
3074
|
-
* async function main() {
|
|
3075
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3076
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3077
|
-
* scopes: [
|
|
3078
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3079
|
-
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
3080
|
-
* ],
|
|
3081
|
-
* });
|
|
3082
|
-
*
|
|
3083
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3084
|
-
* const authClient = await auth.getClient();
|
|
3085
|
-
* google.options({auth: authClient});
|
|
3086
|
-
*
|
|
3087
|
-
* // Do the magic
|
|
3088
|
-
* const res = await serviceusage.services.consumerQuotaMetrics.get({
|
|
3089
|
-
* // The resource name of the quota limit. An example name would be: `projects/123/services/serviceusage.googleapis.com/quotas/metrics/serviceusage.googleapis.com%2Fmutate_requests`
|
|
3090
|
-
* name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric',
|
|
3091
|
-
* // Specifies the level of detail for quota information in the response.
|
|
3092
|
-
* view: 'placeholder-value',
|
|
3093
|
-
* });
|
|
3094
|
-
* console.log(res.data);
|
|
3095
|
-
*
|
|
3096
|
-
* // Example response
|
|
3097
|
-
* // {
|
|
3098
|
-
* // "consumerQuotaLimits": [],
|
|
3099
|
-
* // "descendantConsumerQuotaLimits": [],
|
|
3100
|
-
* // "displayName": "my_displayName",
|
|
3101
|
-
* // "metric": "my_metric",
|
|
3102
|
-
* // "name": "my_name",
|
|
3103
|
-
* // "unit": "my_unit"
|
|
3104
|
-
* // }
|
|
3105
|
-
* }
|
|
3106
|
-
*
|
|
3107
|
-
* main().catch(e => {
|
|
3108
|
-
* console.error(e);
|
|
3109
|
-
* throw e;
|
|
3110
|
-
* });
|
|
3111
|
-
*
|
|
3112
|
-
* ```
|
|
3113
3068
|
*
|
|
3114
3069
|
* @param params - Parameters for request
|
|
3115
3070
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3197,66 +3152,6 @@ export namespace serviceusage_v1beta1 {
|
|
|
3197
3152
|
|
|
3198
3153
|
/**
|
|
3199
3154
|
* Creates or updates multiple admin overrides atomically, all on the same consumer, but on many different metrics or limits. The name field in the quota override message should not be set.
|
|
3200
|
-
* @example
|
|
3201
|
-
* ```js
|
|
3202
|
-
* // Before running the sample:
|
|
3203
|
-
* // - Enable the API at:
|
|
3204
|
-
* // https://console.developers.google.com/apis/api/serviceusage.googleapis.com
|
|
3205
|
-
* // - Login into gcloud by running:
|
|
3206
|
-
* // `$ gcloud auth application-default login`
|
|
3207
|
-
* // - Install the npm module by running:
|
|
3208
|
-
* // `$ npm install googleapis`
|
|
3209
|
-
*
|
|
3210
|
-
* const {google} = require('googleapis');
|
|
3211
|
-
* const serviceusage = google.serviceusage('v1beta1');
|
|
3212
|
-
*
|
|
3213
|
-
* async function main() {
|
|
3214
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3215
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3216
|
-
* scopes: [
|
|
3217
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3218
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
3219
|
-
* ],
|
|
3220
|
-
* });
|
|
3221
|
-
*
|
|
3222
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3223
|
-
* const authClient = await auth.getClient();
|
|
3224
|
-
* google.options({auth: authClient});
|
|
3225
|
-
*
|
|
3226
|
-
* // Do the magic
|
|
3227
|
-
* const res =
|
|
3228
|
-
* await serviceusage.services.consumerQuotaMetrics.importAdminOverrides({
|
|
3229
|
-
* // The resource name of the consumer. An example name would be: `projects/123/services/compute.googleapis.com`
|
|
3230
|
-
* parent: '[^/]+/[^/]+/services/my-service',
|
|
3231
|
-
*
|
|
3232
|
-
* // Request body metadata
|
|
3233
|
-
* requestBody: {
|
|
3234
|
-
* // request body parameters
|
|
3235
|
-
* // {
|
|
3236
|
-
* // "force": false,
|
|
3237
|
-
* // "forceOnly": [],
|
|
3238
|
-
* // "inlineSource": {}
|
|
3239
|
-
* // }
|
|
3240
|
-
* },
|
|
3241
|
-
* });
|
|
3242
|
-
* console.log(res.data);
|
|
3243
|
-
*
|
|
3244
|
-
* // Example response
|
|
3245
|
-
* // {
|
|
3246
|
-
* // "done": false,
|
|
3247
|
-
* // "error": {},
|
|
3248
|
-
* // "metadata": {},
|
|
3249
|
-
* // "name": "my_name",
|
|
3250
|
-
* // "response": {}
|
|
3251
|
-
* // }
|
|
3252
|
-
* }
|
|
3253
|
-
*
|
|
3254
|
-
* main().catch(e => {
|
|
3255
|
-
* console.error(e);
|
|
3256
|
-
* throw e;
|
|
3257
|
-
* });
|
|
3258
|
-
*
|
|
3259
|
-
* ```
|
|
3260
3155
|
*
|
|
3261
3156
|
* @param params - Parameters for request
|
|
3262
3157
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3347,66 +3242,6 @@ export namespace serviceusage_v1beta1 {
|
|
|
3347
3242
|
|
|
3348
3243
|
/**
|
|
3349
3244
|
* Creates or updates multiple consumer overrides atomically, all on the same consumer, but on many different metrics or limits. The name field in the quota override message should not be set.
|
|
3350
|
-
* @example
|
|
3351
|
-
* ```js
|
|
3352
|
-
* // Before running the sample:
|
|
3353
|
-
* // - Enable the API at:
|
|
3354
|
-
* // https://console.developers.google.com/apis/api/serviceusage.googleapis.com
|
|
3355
|
-
* // - Login into gcloud by running:
|
|
3356
|
-
* // `$ gcloud auth application-default login`
|
|
3357
|
-
* // - Install the npm module by running:
|
|
3358
|
-
* // `$ npm install googleapis`
|
|
3359
|
-
*
|
|
3360
|
-
* const {google} = require('googleapis');
|
|
3361
|
-
* const serviceusage = google.serviceusage('v1beta1');
|
|
3362
|
-
*
|
|
3363
|
-
* async function main() {
|
|
3364
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3365
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3366
|
-
* scopes: [
|
|
3367
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3368
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
3369
|
-
* ],
|
|
3370
|
-
* });
|
|
3371
|
-
*
|
|
3372
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3373
|
-
* const authClient = await auth.getClient();
|
|
3374
|
-
* google.options({auth: authClient});
|
|
3375
|
-
*
|
|
3376
|
-
* // Do the magic
|
|
3377
|
-
* const res =
|
|
3378
|
-
* await serviceusage.services.consumerQuotaMetrics.importConsumerOverrides({
|
|
3379
|
-
* // The resource name of the consumer. An example name would be: `projects/123/services/compute.googleapis.com`
|
|
3380
|
-
* parent: '[^/]+/[^/]+/services/my-service',
|
|
3381
|
-
*
|
|
3382
|
-
* // Request body metadata
|
|
3383
|
-
* requestBody: {
|
|
3384
|
-
* // request body parameters
|
|
3385
|
-
* // {
|
|
3386
|
-
* // "force": false,
|
|
3387
|
-
* // "forceOnly": [],
|
|
3388
|
-
* // "inlineSource": {}
|
|
3389
|
-
* // }
|
|
3390
|
-
* },
|
|
3391
|
-
* });
|
|
3392
|
-
* console.log(res.data);
|
|
3393
|
-
*
|
|
3394
|
-
* // Example response
|
|
3395
|
-
* // {
|
|
3396
|
-
* // "done": false,
|
|
3397
|
-
* // "error": {},
|
|
3398
|
-
* // "metadata": {},
|
|
3399
|
-
* // "name": "my_name",
|
|
3400
|
-
* // "response": {}
|
|
3401
|
-
* // }
|
|
3402
|
-
* }
|
|
3403
|
-
*
|
|
3404
|
-
* main().catch(e => {
|
|
3405
|
-
* console.error(e);
|
|
3406
|
-
* throw e;
|
|
3407
|
-
* });
|
|
3408
|
-
*
|
|
3409
|
-
* ```
|
|
3410
3245
|
*
|
|
3411
3246
|
* @param params - Parameters for request
|
|
3412
3247
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3497,58 +3332,6 @@ export namespace serviceusage_v1beta1 {
|
|
|
3497
3332
|
|
|
3498
3333
|
/**
|
|
3499
3334
|
* Retrieves a summary of all quota information visible to the service consumer, organized by service metric. Each metric includes information about all of its defined limits. Each limit includes the limit configuration (quota unit, preciseness, default value), the current effective limit value, and all of the overrides applied to the limit.
|
|
3500
|
-
* @example
|
|
3501
|
-
* ```js
|
|
3502
|
-
* // Before running the sample:
|
|
3503
|
-
* // - Enable the API at:
|
|
3504
|
-
* // https://console.developers.google.com/apis/api/serviceusage.googleapis.com
|
|
3505
|
-
* // - Login into gcloud by running:
|
|
3506
|
-
* // `$ gcloud auth application-default login`
|
|
3507
|
-
* // - Install the npm module by running:
|
|
3508
|
-
* // `$ npm install googleapis`
|
|
3509
|
-
*
|
|
3510
|
-
* const {google} = require('googleapis');
|
|
3511
|
-
* const serviceusage = google.serviceusage('v1beta1');
|
|
3512
|
-
*
|
|
3513
|
-
* async function main() {
|
|
3514
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3515
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3516
|
-
* scopes: [
|
|
3517
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3518
|
-
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
3519
|
-
* ],
|
|
3520
|
-
* });
|
|
3521
|
-
*
|
|
3522
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3523
|
-
* const authClient = await auth.getClient();
|
|
3524
|
-
* google.options({auth: authClient});
|
|
3525
|
-
*
|
|
3526
|
-
* // Do the magic
|
|
3527
|
-
* const res = await serviceusage.services.consumerQuotaMetrics.list({
|
|
3528
|
-
* // Requested size of the next page of data.
|
|
3529
|
-
* pageSize: 'placeholder-value',
|
|
3530
|
-
* // Token identifying which result to start with; returned by a previous list call.
|
|
3531
|
-
* pageToken: 'placeholder-value',
|
|
3532
|
-
* // Parent of the quotas resource. Some example names would be: `projects/123/services/serviceconsumermanagement.googleapis.com` `folders/345/services/serviceconsumermanagement.googleapis.com` `organizations/456/services/serviceconsumermanagement.googleapis.com`
|
|
3533
|
-
* parent: '[^/]+/[^/]+/services/my-service',
|
|
3534
|
-
* // Specifies the level of detail for quota information in the response.
|
|
3535
|
-
* view: 'placeholder-value',
|
|
3536
|
-
* });
|
|
3537
|
-
* console.log(res.data);
|
|
3538
|
-
*
|
|
3539
|
-
* // Example response
|
|
3540
|
-
* // {
|
|
3541
|
-
* // "metrics": [],
|
|
3542
|
-
* // "nextPageToken": "my_nextPageToken"
|
|
3543
|
-
* // }
|
|
3544
|
-
* }
|
|
3545
|
-
*
|
|
3546
|
-
* main().catch(e => {
|
|
3547
|
-
* console.error(e);
|
|
3548
|
-
* throw e;
|
|
3549
|
-
* });
|
|
3550
|
-
*
|
|
3551
|
-
* ```
|
|
3552
3335
|
*
|
|
3553
3336
|
* @param params - Parameters for request
|
|
3554
3337
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3717,59 +3500,6 @@ export namespace serviceusage_v1beta1 {
|
|
|
3717
3500
|
|
|
3718
3501
|
/**
|
|
3719
3502
|
* Retrieves a summary of quota information for a specific quota limit.
|
|
3720
|
-
* @example
|
|
3721
|
-
* ```js
|
|
3722
|
-
* // Before running the sample:
|
|
3723
|
-
* // - Enable the API at:
|
|
3724
|
-
* // https://console.developers.google.com/apis/api/serviceusage.googleapis.com
|
|
3725
|
-
* // - Login into gcloud by running:
|
|
3726
|
-
* // `$ gcloud auth application-default login`
|
|
3727
|
-
* // - Install the npm module by running:
|
|
3728
|
-
* // `$ npm install googleapis`
|
|
3729
|
-
*
|
|
3730
|
-
* const {google} = require('googleapis');
|
|
3731
|
-
* const serviceusage = google.serviceusage('v1beta1');
|
|
3732
|
-
*
|
|
3733
|
-
* async function main() {
|
|
3734
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3735
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3736
|
-
* scopes: [
|
|
3737
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3738
|
-
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
3739
|
-
* ],
|
|
3740
|
-
* });
|
|
3741
|
-
*
|
|
3742
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3743
|
-
* const authClient = await auth.getClient();
|
|
3744
|
-
* google.options({auth: authClient});
|
|
3745
|
-
*
|
|
3746
|
-
* // Do the magic
|
|
3747
|
-
* const res = await serviceusage.services.consumerQuotaMetrics.limits.get({
|
|
3748
|
-
* // The resource name of the quota limit. Use the quota limit resource name returned by previous ListConsumerQuotaMetrics and GetConsumerQuotaMetric API calls.
|
|
3749
|
-
* name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
|
|
3750
|
-
* // Specifies the level of detail for quota information in the response.
|
|
3751
|
-
* view: 'placeholder-value',
|
|
3752
|
-
* });
|
|
3753
|
-
* console.log(res.data);
|
|
3754
|
-
*
|
|
3755
|
-
* // Example response
|
|
3756
|
-
* // {
|
|
3757
|
-
* // "allowsAdminOverrides": false,
|
|
3758
|
-
* // "isPrecise": false,
|
|
3759
|
-
* // "metric": "my_metric",
|
|
3760
|
-
* // "name": "my_name",
|
|
3761
|
-
* // "quotaBuckets": [],
|
|
3762
|
-
* // "supportedLocations": [],
|
|
3763
|
-
* // "unit": "my_unit"
|
|
3764
|
-
* // }
|
|
3765
|
-
* }
|
|
3766
|
-
*
|
|
3767
|
-
* main().catch(e => {
|
|
3768
|
-
* console.error(e);
|
|
3769
|
-
* throw e;
|
|
3770
|
-
* });
|
|
3771
|
-
*
|
|
3772
|
-
* ```
|
|
3773
3503
|
*
|
|
3774
3504
|
* @param params - Parameters for request
|
|
3775
3505
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -3876,76 +3606,6 @@ export namespace serviceusage_v1beta1 {
|
|
|
3876
3606
|
|
|
3877
3607
|
/**
|
|
3878
3608
|
* Creates an admin override. An admin override is applied by an administrator of a parent folder or parent organization of the consumer receiving the override. An admin override is intended to limit the amount of quota the consumer can use out of the total quota pool allocated to all children of the folder or organization.
|
|
3879
|
-
* @example
|
|
3880
|
-
* ```js
|
|
3881
|
-
* // Before running the sample:
|
|
3882
|
-
* // - Enable the API at:
|
|
3883
|
-
* // https://console.developers.google.com/apis/api/serviceusage.googleapis.com
|
|
3884
|
-
* // - Login into gcloud by running:
|
|
3885
|
-
* // `$ gcloud auth application-default login`
|
|
3886
|
-
* // - Install the npm module by running:
|
|
3887
|
-
* // `$ npm install googleapis`
|
|
3888
|
-
*
|
|
3889
|
-
* const {google} = require('googleapis');
|
|
3890
|
-
* const serviceusage = google.serviceusage('v1beta1');
|
|
3891
|
-
*
|
|
3892
|
-
* async function main() {
|
|
3893
|
-
* const auth = new google.auth.GoogleAuth({
|
|
3894
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
3895
|
-
* scopes: [
|
|
3896
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
3897
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
3898
|
-
* ],
|
|
3899
|
-
* });
|
|
3900
|
-
*
|
|
3901
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
3902
|
-
* const authClient = await auth.getClient();
|
|
3903
|
-
* google.options({auth: authClient});
|
|
3904
|
-
*
|
|
3905
|
-
* // Do the magic
|
|
3906
|
-
* const res =
|
|
3907
|
-
* await serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.create(
|
|
3908
|
-
* {
|
|
3909
|
-
* // Whether to force the creation of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.
|
|
3910
|
-
* force: 'placeholder-value',
|
|
3911
|
-
* // The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
|
|
3912
|
-
* forceOnly: 'placeholder-value',
|
|
3913
|
-
* // The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
|
|
3914
|
-
* parent:
|
|
3915
|
-
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
|
|
3916
|
-
*
|
|
3917
|
-
* // Request body metadata
|
|
3918
|
-
* requestBody: {
|
|
3919
|
-
* // request body parameters
|
|
3920
|
-
* // {
|
|
3921
|
-
* // "adminOverrideAncestor": "my_adminOverrideAncestor",
|
|
3922
|
-
* // "dimensions": {},
|
|
3923
|
-
* // "metric": "my_metric",
|
|
3924
|
-
* // "name": "my_name",
|
|
3925
|
-
* // "overrideValue": "my_overrideValue",
|
|
3926
|
-
* // "unit": "my_unit"
|
|
3927
|
-
* // }
|
|
3928
|
-
* },
|
|
3929
|
-
* }
|
|
3930
|
-
* );
|
|
3931
|
-
* console.log(res.data);
|
|
3932
|
-
*
|
|
3933
|
-
* // Example response
|
|
3934
|
-
* // {
|
|
3935
|
-
* // "done": false,
|
|
3936
|
-
* // "error": {},
|
|
3937
|
-
* // "metadata": {},
|
|
3938
|
-
* // "name": "my_name",
|
|
3939
|
-
* // "response": {}
|
|
3940
|
-
* // }
|
|
3941
|
-
* }
|
|
3942
|
-
*
|
|
3943
|
-
* main().catch(e => {
|
|
3944
|
-
* console.error(e);
|
|
3945
|
-
* throw e;
|
|
3946
|
-
* });
|
|
3947
|
-
*
|
|
3948
|
-
* ```
|
|
3949
3609
|
*
|
|
3950
3610
|
* @param params - Parameters for request
|
|
3951
3611
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4034,62 +3694,6 @@ export namespace serviceusage_v1beta1 {
|
|
|
4034
3694
|
|
|
4035
3695
|
/**
|
|
4036
3696
|
* Deletes an admin override.
|
|
4037
|
-
* @example
|
|
4038
|
-
* ```js
|
|
4039
|
-
* // Before running the sample:
|
|
4040
|
-
* // - Enable the API at:
|
|
4041
|
-
* // https://console.developers.google.com/apis/api/serviceusage.googleapis.com
|
|
4042
|
-
* // - Login into gcloud by running:
|
|
4043
|
-
* // `$ gcloud auth application-default login`
|
|
4044
|
-
* // - Install the npm module by running:
|
|
4045
|
-
* // `$ npm install googleapis`
|
|
4046
|
-
*
|
|
4047
|
-
* const {google} = require('googleapis');
|
|
4048
|
-
* const serviceusage = google.serviceusage('v1beta1');
|
|
4049
|
-
*
|
|
4050
|
-
* async function main() {
|
|
4051
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4052
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4053
|
-
* scopes: [
|
|
4054
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4055
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
4056
|
-
* ],
|
|
4057
|
-
* });
|
|
4058
|
-
*
|
|
4059
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4060
|
-
* const authClient = await auth.getClient();
|
|
4061
|
-
* google.options({auth: authClient});
|
|
4062
|
-
*
|
|
4063
|
-
* // Do the magic
|
|
4064
|
-
* const res =
|
|
4065
|
-
* await serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.delete(
|
|
4066
|
-
* {
|
|
4067
|
-
* // Whether to force the deletion of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.
|
|
4068
|
-
* force: 'placeholder-value',
|
|
4069
|
-
* // The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
|
|
4070
|
-
* forceOnly: 'placeholder-value',
|
|
4071
|
-
* // The resource name of the override to delete. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
|
|
4072
|
-
* name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/adminOverrides/my-adminOverride',
|
|
4073
|
-
* }
|
|
4074
|
-
* );
|
|
4075
|
-
* console.log(res.data);
|
|
4076
|
-
*
|
|
4077
|
-
* // Example response
|
|
4078
|
-
* // {
|
|
4079
|
-
* // "done": false,
|
|
4080
|
-
* // "error": {},
|
|
4081
|
-
* // "metadata": {},
|
|
4082
|
-
* // "name": "my_name",
|
|
4083
|
-
* // "response": {}
|
|
4084
|
-
* // }
|
|
4085
|
-
* }
|
|
4086
|
-
*
|
|
4087
|
-
* main().catch(e => {
|
|
4088
|
-
* console.error(e);
|
|
4089
|
-
* throw e;
|
|
4090
|
-
* });
|
|
4091
|
-
*
|
|
4092
|
-
* ```
|
|
4093
3697
|
*
|
|
4094
3698
|
* @param params - Parameters for request
|
|
4095
3699
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4175,60 +3779,6 @@ export namespace serviceusage_v1beta1 {
|
|
|
4175
3779
|
|
|
4176
3780
|
/**
|
|
4177
3781
|
* Lists all admin overrides on this limit.
|
|
4178
|
-
* @example
|
|
4179
|
-
* ```js
|
|
4180
|
-
* // Before running the sample:
|
|
4181
|
-
* // - Enable the API at:
|
|
4182
|
-
* // https://console.developers.google.com/apis/api/serviceusage.googleapis.com
|
|
4183
|
-
* // - Login into gcloud by running:
|
|
4184
|
-
* // `$ gcloud auth application-default login`
|
|
4185
|
-
* // - Install the npm module by running:
|
|
4186
|
-
* // `$ npm install googleapis`
|
|
4187
|
-
*
|
|
4188
|
-
* const {google} = require('googleapis');
|
|
4189
|
-
* const serviceusage = google.serviceusage('v1beta1');
|
|
4190
|
-
*
|
|
4191
|
-
* async function main() {
|
|
4192
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4193
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4194
|
-
* scopes: [
|
|
4195
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4196
|
-
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
4197
|
-
* ],
|
|
4198
|
-
* });
|
|
4199
|
-
*
|
|
4200
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4201
|
-
* const authClient = await auth.getClient();
|
|
4202
|
-
* google.options({auth: authClient});
|
|
4203
|
-
*
|
|
4204
|
-
* // Do the magic
|
|
4205
|
-
* const res =
|
|
4206
|
-
* await serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.list(
|
|
4207
|
-
* {
|
|
4208
|
-
* // Requested size of the next page of data.
|
|
4209
|
-
* pageSize: 'placeholder-value',
|
|
4210
|
-
* // Token identifying which result to start with; returned by a previous list call.
|
|
4211
|
-
* pageToken: 'placeholder-value',
|
|
4212
|
-
* // The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
|
|
4213
|
-
* parent:
|
|
4214
|
-
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
|
|
4215
|
-
* }
|
|
4216
|
-
* );
|
|
4217
|
-
* console.log(res.data);
|
|
4218
|
-
*
|
|
4219
|
-
* // Example response
|
|
4220
|
-
* // {
|
|
4221
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
4222
|
-
* // "overrides": []
|
|
4223
|
-
* // }
|
|
4224
|
-
* }
|
|
4225
|
-
*
|
|
4226
|
-
* main().catch(e => {
|
|
4227
|
-
* console.error(e);
|
|
4228
|
-
* throw e;
|
|
4229
|
-
* });
|
|
4230
|
-
*
|
|
4231
|
-
* ```
|
|
4232
3782
|
*
|
|
4233
3783
|
* @param params - Parameters for request
|
|
4234
3784
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4324,77 +3874,6 @@ export namespace serviceusage_v1beta1 {
|
|
|
4324
3874
|
|
|
4325
3875
|
/**
|
|
4326
3876
|
* Updates an admin override.
|
|
4327
|
-
* @example
|
|
4328
|
-
* ```js
|
|
4329
|
-
* // Before running the sample:
|
|
4330
|
-
* // - Enable the API at:
|
|
4331
|
-
* // https://console.developers.google.com/apis/api/serviceusage.googleapis.com
|
|
4332
|
-
* // - Login into gcloud by running:
|
|
4333
|
-
* // `$ gcloud auth application-default login`
|
|
4334
|
-
* // - Install the npm module by running:
|
|
4335
|
-
* // `$ npm install googleapis`
|
|
4336
|
-
*
|
|
4337
|
-
* const {google} = require('googleapis');
|
|
4338
|
-
* const serviceusage = google.serviceusage('v1beta1');
|
|
4339
|
-
*
|
|
4340
|
-
* async function main() {
|
|
4341
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4342
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4343
|
-
* scopes: [
|
|
4344
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4345
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
4346
|
-
* ],
|
|
4347
|
-
* });
|
|
4348
|
-
*
|
|
4349
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4350
|
-
* const authClient = await auth.getClient();
|
|
4351
|
-
* google.options({auth: authClient});
|
|
4352
|
-
*
|
|
4353
|
-
* // Do the magic
|
|
4354
|
-
* const res =
|
|
4355
|
-
* await serviceusage.services.consumerQuotaMetrics.limits.adminOverrides.patch(
|
|
4356
|
-
* {
|
|
4357
|
-
* // Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.
|
|
4358
|
-
* force: 'placeholder-value',
|
|
4359
|
-
* // The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
|
|
4360
|
-
* forceOnly: 'placeholder-value',
|
|
4361
|
-
* // The resource name of the override to update. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/adminOverrides/4a3f2c1d`
|
|
4362
|
-
* name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/adminOverrides/my-adminOverride',
|
|
4363
|
-
* // Update only the specified fields of the override. If unset, all fields will be updated.
|
|
4364
|
-
* updateMask: 'placeholder-value',
|
|
4365
|
-
*
|
|
4366
|
-
* // Request body metadata
|
|
4367
|
-
* requestBody: {
|
|
4368
|
-
* // request body parameters
|
|
4369
|
-
* // {
|
|
4370
|
-
* // "adminOverrideAncestor": "my_adminOverrideAncestor",
|
|
4371
|
-
* // "dimensions": {},
|
|
4372
|
-
* // "metric": "my_metric",
|
|
4373
|
-
* // "name": "my_name",
|
|
4374
|
-
* // "overrideValue": "my_overrideValue",
|
|
4375
|
-
* // "unit": "my_unit"
|
|
4376
|
-
* // }
|
|
4377
|
-
* },
|
|
4378
|
-
* }
|
|
4379
|
-
* );
|
|
4380
|
-
* console.log(res.data);
|
|
4381
|
-
*
|
|
4382
|
-
* // Example response
|
|
4383
|
-
* // {
|
|
4384
|
-
* // "done": false,
|
|
4385
|
-
* // "error": {},
|
|
4386
|
-
* // "metadata": {},
|
|
4387
|
-
* // "name": "my_name",
|
|
4388
|
-
* // "response": {}
|
|
4389
|
-
* // }
|
|
4390
|
-
* }
|
|
4391
|
-
*
|
|
4392
|
-
* main().catch(e => {
|
|
4393
|
-
* console.error(e);
|
|
4394
|
-
* throw e;
|
|
4395
|
-
* });
|
|
4396
|
-
*
|
|
4397
|
-
* ```
|
|
4398
3877
|
*
|
|
4399
3878
|
* @param params - Parameters for request
|
|
4400
3879
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4562,76 +4041,6 @@ export namespace serviceusage_v1beta1 {
|
|
|
4562
4041
|
|
|
4563
4042
|
/**
|
|
4564
4043
|
* Creates a consumer override. A consumer override is applied to the consumer on its own authority to limit its own quota usage. Consumer overrides cannot be used to grant more quota than would be allowed by admin overrides, producer overrides, or the default limit of the service.
|
|
4565
|
-
* @example
|
|
4566
|
-
* ```js
|
|
4567
|
-
* // Before running the sample:
|
|
4568
|
-
* // - Enable the API at:
|
|
4569
|
-
* // https://console.developers.google.com/apis/api/serviceusage.googleapis.com
|
|
4570
|
-
* // - Login into gcloud by running:
|
|
4571
|
-
* // `$ gcloud auth application-default login`
|
|
4572
|
-
* // - Install the npm module by running:
|
|
4573
|
-
* // `$ npm install googleapis`
|
|
4574
|
-
*
|
|
4575
|
-
* const {google} = require('googleapis');
|
|
4576
|
-
* const serviceusage = google.serviceusage('v1beta1');
|
|
4577
|
-
*
|
|
4578
|
-
* async function main() {
|
|
4579
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4580
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4581
|
-
* scopes: [
|
|
4582
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4583
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
4584
|
-
* ],
|
|
4585
|
-
* });
|
|
4586
|
-
*
|
|
4587
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4588
|
-
* const authClient = await auth.getClient();
|
|
4589
|
-
* google.options({auth: authClient});
|
|
4590
|
-
*
|
|
4591
|
-
* // Do the magic
|
|
4592
|
-
* const res =
|
|
4593
|
-
* await serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.create(
|
|
4594
|
-
* {
|
|
4595
|
-
* // Whether to force the creation of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.
|
|
4596
|
-
* force: 'placeholder-value',
|
|
4597
|
-
* // The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
|
|
4598
|
-
* forceOnly: 'placeholder-value',
|
|
4599
|
-
* // The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
|
|
4600
|
-
* parent:
|
|
4601
|
-
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
|
|
4602
|
-
*
|
|
4603
|
-
* // Request body metadata
|
|
4604
|
-
* requestBody: {
|
|
4605
|
-
* // request body parameters
|
|
4606
|
-
* // {
|
|
4607
|
-
* // "adminOverrideAncestor": "my_adminOverrideAncestor",
|
|
4608
|
-
* // "dimensions": {},
|
|
4609
|
-
* // "metric": "my_metric",
|
|
4610
|
-
* // "name": "my_name",
|
|
4611
|
-
* // "overrideValue": "my_overrideValue",
|
|
4612
|
-
* // "unit": "my_unit"
|
|
4613
|
-
* // }
|
|
4614
|
-
* },
|
|
4615
|
-
* }
|
|
4616
|
-
* );
|
|
4617
|
-
* console.log(res.data);
|
|
4618
|
-
*
|
|
4619
|
-
* // Example response
|
|
4620
|
-
* // {
|
|
4621
|
-
* // "done": false,
|
|
4622
|
-
* // "error": {},
|
|
4623
|
-
* // "metadata": {},
|
|
4624
|
-
* // "name": "my_name",
|
|
4625
|
-
* // "response": {}
|
|
4626
|
-
* // }
|
|
4627
|
-
* }
|
|
4628
|
-
*
|
|
4629
|
-
* main().catch(e => {
|
|
4630
|
-
* console.error(e);
|
|
4631
|
-
* throw e;
|
|
4632
|
-
* });
|
|
4633
|
-
*
|
|
4634
|
-
* ```
|
|
4635
4044
|
*
|
|
4636
4045
|
* @param params - Parameters for request
|
|
4637
4046
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4720,62 +4129,6 @@ export namespace serviceusage_v1beta1 {
|
|
|
4720
4129
|
|
|
4721
4130
|
/**
|
|
4722
4131
|
* Deletes a consumer override.
|
|
4723
|
-
* @example
|
|
4724
|
-
* ```js
|
|
4725
|
-
* // Before running the sample:
|
|
4726
|
-
* // - Enable the API at:
|
|
4727
|
-
* // https://console.developers.google.com/apis/api/serviceusage.googleapis.com
|
|
4728
|
-
* // - Login into gcloud by running:
|
|
4729
|
-
* // `$ gcloud auth application-default login`
|
|
4730
|
-
* // - Install the npm module by running:
|
|
4731
|
-
* // `$ npm install googleapis`
|
|
4732
|
-
*
|
|
4733
|
-
* const {google} = require('googleapis');
|
|
4734
|
-
* const serviceusage = google.serviceusage('v1beta1');
|
|
4735
|
-
*
|
|
4736
|
-
* async function main() {
|
|
4737
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4738
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4739
|
-
* scopes: [
|
|
4740
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4741
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
4742
|
-
* ],
|
|
4743
|
-
* });
|
|
4744
|
-
*
|
|
4745
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4746
|
-
* const authClient = await auth.getClient();
|
|
4747
|
-
* google.options({auth: authClient});
|
|
4748
|
-
*
|
|
4749
|
-
* // Do the magic
|
|
4750
|
-
* const res =
|
|
4751
|
-
* await serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.delete(
|
|
4752
|
-
* {
|
|
4753
|
-
* // Whether to force the deletion of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.
|
|
4754
|
-
* force: 'placeholder-value',
|
|
4755
|
-
* // The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
|
|
4756
|
-
* forceOnly: 'placeholder-value',
|
|
4757
|
-
* // The resource name of the override to delete. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
|
|
4758
|
-
* name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/consumerOverrides/my-consumerOverride',
|
|
4759
|
-
* }
|
|
4760
|
-
* );
|
|
4761
|
-
* console.log(res.data);
|
|
4762
|
-
*
|
|
4763
|
-
* // Example response
|
|
4764
|
-
* // {
|
|
4765
|
-
* // "done": false,
|
|
4766
|
-
* // "error": {},
|
|
4767
|
-
* // "metadata": {},
|
|
4768
|
-
* // "name": "my_name",
|
|
4769
|
-
* // "response": {}
|
|
4770
|
-
* // }
|
|
4771
|
-
* }
|
|
4772
|
-
*
|
|
4773
|
-
* main().catch(e => {
|
|
4774
|
-
* console.error(e);
|
|
4775
|
-
* throw e;
|
|
4776
|
-
* });
|
|
4777
|
-
*
|
|
4778
|
-
* ```
|
|
4779
4132
|
*
|
|
4780
4133
|
* @param params - Parameters for request
|
|
4781
4134
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -4861,60 +4214,6 @@ export namespace serviceusage_v1beta1 {
|
|
|
4861
4214
|
|
|
4862
4215
|
/**
|
|
4863
4216
|
* Lists all consumer overrides on this limit.
|
|
4864
|
-
* @example
|
|
4865
|
-
* ```js
|
|
4866
|
-
* // Before running the sample:
|
|
4867
|
-
* // - Enable the API at:
|
|
4868
|
-
* // https://console.developers.google.com/apis/api/serviceusage.googleapis.com
|
|
4869
|
-
* // - Login into gcloud by running:
|
|
4870
|
-
* // `$ gcloud auth application-default login`
|
|
4871
|
-
* // - Install the npm module by running:
|
|
4872
|
-
* // `$ npm install googleapis`
|
|
4873
|
-
*
|
|
4874
|
-
* const {google} = require('googleapis');
|
|
4875
|
-
* const serviceusage = google.serviceusage('v1beta1');
|
|
4876
|
-
*
|
|
4877
|
-
* async function main() {
|
|
4878
|
-
* const auth = new google.auth.GoogleAuth({
|
|
4879
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
4880
|
-
* scopes: [
|
|
4881
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
4882
|
-
* 'https://www.googleapis.com/auth/cloud-platform.read-only',
|
|
4883
|
-
* ],
|
|
4884
|
-
* });
|
|
4885
|
-
*
|
|
4886
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
4887
|
-
* const authClient = await auth.getClient();
|
|
4888
|
-
* google.options({auth: authClient});
|
|
4889
|
-
*
|
|
4890
|
-
* // Do the magic
|
|
4891
|
-
* const res =
|
|
4892
|
-
* await serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.list(
|
|
4893
|
-
* {
|
|
4894
|
-
* // Requested size of the next page of data.
|
|
4895
|
-
* pageSize: 'placeholder-value',
|
|
4896
|
-
* // Token identifying which result to start with; returned by a previous list call.
|
|
4897
|
-
* pageToken: 'placeholder-value',
|
|
4898
|
-
* // The resource name of the parent quota limit, returned by a ListConsumerQuotaMetrics or GetConsumerQuotaMetric call. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion`
|
|
4899
|
-
* parent:
|
|
4900
|
-
* '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit',
|
|
4901
|
-
* }
|
|
4902
|
-
* );
|
|
4903
|
-
* console.log(res.data);
|
|
4904
|
-
*
|
|
4905
|
-
* // Example response
|
|
4906
|
-
* // {
|
|
4907
|
-
* // "nextPageToken": "my_nextPageToken",
|
|
4908
|
-
* // "overrides": []
|
|
4909
|
-
* // }
|
|
4910
|
-
* }
|
|
4911
|
-
*
|
|
4912
|
-
* main().catch(e => {
|
|
4913
|
-
* console.error(e);
|
|
4914
|
-
* throw e;
|
|
4915
|
-
* });
|
|
4916
|
-
*
|
|
4917
|
-
* ```
|
|
4918
4217
|
*
|
|
4919
4218
|
* @param params - Parameters for request
|
|
4920
4219
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|
|
@@ -5012,77 +4311,6 @@ export namespace serviceusage_v1beta1 {
|
|
|
5012
4311
|
|
|
5013
4312
|
/**
|
|
5014
4313
|
* Updates a consumer override.
|
|
5015
|
-
* @example
|
|
5016
|
-
* ```js
|
|
5017
|
-
* // Before running the sample:
|
|
5018
|
-
* // - Enable the API at:
|
|
5019
|
-
* // https://console.developers.google.com/apis/api/serviceusage.googleapis.com
|
|
5020
|
-
* // - Login into gcloud by running:
|
|
5021
|
-
* // `$ gcloud auth application-default login`
|
|
5022
|
-
* // - Install the npm module by running:
|
|
5023
|
-
* // `$ npm install googleapis`
|
|
5024
|
-
*
|
|
5025
|
-
* const {google} = require('googleapis');
|
|
5026
|
-
* const serviceusage = google.serviceusage('v1beta1');
|
|
5027
|
-
*
|
|
5028
|
-
* async function main() {
|
|
5029
|
-
* const auth = new google.auth.GoogleAuth({
|
|
5030
|
-
* // Scopes can be specified either as an array or as a single, space-delimited string.
|
|
5031
|
-
* scopes: [
|
|
5032
|
-
* 'https://www.googleapis.com/auth/cloud-platform',
|
|
5033
|
-
* 'https://www.googleapis.com/auth/service.management',
|
|
5034
|
-
* ],
|
|
5035
|
-
* });
|
|
5036
|
-
*
|
|
5037
|
-
* // Acquire an auth client, and bind it to all future calls
|
|
5038
|
-
* const authClient = await auth.getClient();
|
|
5039
|
-
* google.options({auth: authClient});
|
|
5040
|
-
*
|
|
5041
|
-
* // Do the magic
|
|
5042
|
-
* const res =
|
|
5043
|
-
* await serviceusage.services.consumerQuotaMetrics.limits.consumerOverrides.patch(
|
|
5044
|
-
* {
|
|
5045
|
-
* // Whether to force the update of the quota override. Setting the force parameter to 'true' ignores all quota safety checks that would fail the request. QuotaSafetyCheck lists all such validations.
|
|
5046
|
-
* force: 'placeholder-value',
|
|
5047
|
-
* // The list of quota safety checks to ignore before the override mutation. Unlike 'force' field that ignores all the quota safety checks, the 'force_only' field ignores only the specified checks; other checks are still enforced. The 'force' and 'force_only' fields cannot both be set.
|
|
5048
|
-
* forceOnly: 'placeholder-value',
|
|
5049
|
-
* // The resource name of the override to update. An example name would be: `projects/123/services/compute.googleapis.com/consumerQuotaMetrics/compute.googleapis.com%2Fcpus/limits/%2Fproject%2Fregion/consumerOverrides/4a3f2c1d`
|
|
5050
|
-
* name: '[^/]+/[^/]+/services/my-service/consumerQuotaMetrics/my-consumerQuotaMetric/limits/my-limit/consumerOverrides/my-consumerOverride',
|
|
5051
|
-
* // Update only the specified fields of the override. If unset, all fields will be updated.
|
|
5052
|
-
* updateMask: 'placeholder-value',
|
|
5053
|
-
*
|
|
5054
|
-
* // Request body metadata
|
|
5055
|
-
* requestBody: {
|
|
5056
|
-
* // request body parameters
|
|
5057
|
-
* // {
|
|
5058
|
-
* // "adminOverrideAncestor": "my_adminOverrideAncestor",
|
|
5059
|
-
* // "dimensions": {},
|
|
5060
|
-
* // "metric": "my_metric",
|
|
5061
|
-
* // "name": "my_name",
|
|
5062
|
-
* // "overrideValue": "my_overrideValue",
|
|
5063
|
-
* // "unit": "my_unit"
|
|
5064
|
-
* // }
|
|
5065
|
-
* },
|
|
5066
|
-
* }
|
|
5067
|
-
* );
|
|
5068
|
-
* console.log(res.data);
|
|
5069
|
-
*
|
|
5070
|
-
* // Example response
|
|
5071
|
-
* // {
|
|
5072
|
-
* // "done": false,
|
|
5073
|
-
* // "error": {},
|
|
5074
|
-
* // "metadata": {},
|
|
5075
|
-
* // "name": "my_name",
|
|
5076
|
-
* // "response": {}
|
|
5077
|
-
* // }
|
|
5078
|
-
* }
|
|
5079
|
-
*
|
|
5080
|
-
* main().catch(e => {
|
|
5081
|
-
* console.error(e);
|
|
5082
|
-
* throw e;
|
|
5083
|
-
* });
|
|
5084
|
-
*
|
|
5085
|
-
* ```
|
|
5086
4314
|
*
|
|
5087
4315
|
* @param params - Parameters for request
|
|
5088
4316
|
* @param options - Optionally override request options, such as `url`, `method`, and `encoding`.
|