@maxim_mazurok/gapi.client.serviceusage-v1 0.0.20221114 → 0.0.20221115

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.
Files changed (3) hide show
  1. package/index.d.ts +127 -1
  2. package/package.json +1 -1
  3. package/tests.ts +1 -1
package/index.d.ts CHANGED
@@ -9,7 +9,7 @@
9
9
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
10
10
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
11
11
  // Generated from: https://serviceusage.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20221114
12
+ // Revision: 20221115
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
@@ -149,6 +149,8 @@ declare namespace gapi.client {
149
149
  disableAuth?: boolean;
150
150
  /** 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. */
151
151
  jwtAudience?: string;
152
+ /** Deprecated, do not use. */
153
+ minDeadline?: number;
152
154
  /** The number of seconds to wait for the completion of a long running operation. The default is no deadline. */
153
155
  operationDeadline?: number;
154
156
  pathTranslation?: string;
@@ -204,6 +206,36 @@ declare namespace gapi.client {
204
206
  // tslint:disable-next-line:no-empty-interface
205
207
  interface CancelOperationRequest {
206
208
  }
209
+ interface ClientLibrarySettings {
210
+ /** Settings for C++ client libraries. */
211
+ cppSettings?: CppSettings;
212
+ /** Settings for .NET client libraries. */
213
+ dotnetSettings?: DotnetSettings;
214
+ /** Settings for Go client libraries. */
215
+ goSettings?: GoSettings;
216
+ /** Settings for legacy Java features, supported in the Service YAML. */
217
+ javaSettings?: JavaSettings;
218
+ /** Launch stage of this version of the API. */
219
+ launchStage?: string;
220
+ /** Settings for Node client libraries. */
221
+ nodeSettings?: NodeSettings;
222
+ /** Settings for PHP client libraries. */
223
+ phpSettings?: PhpSettings;
224
+ /** Settings for Python client libraries. */
225
+ pythonSettings?: PythonSettings;
226
+ /** When using transport=rest, the client request will encode enums as numbers rather than strings. */
227
+ restNumericEnums?: boolean;
228
+ /** Settings for Ruby client libraries. */
229
+ rubySettings?: RubySettings;
230
+ /** Version of the API to apply these settings to. */
231
+ version?: string;
232
+ }
233
+ interface CommonLanguageSettings {
234
+ /** The destination where API teams want this client library to be published. */
235
+ destinations?: string[];
236
+ /** Link to automatically generated reference documentation. Example: https://cloud.google.com/nodejs/docs/reference/asset/latest */
237
+ referenceDocsUri?: string;
238
+ }
207
239
  interface Context {
208
240
  /** A list of RPC context rules that apply to individual API methods. **NOTE:** All service configuration rules follow "last one wins" order. */
209
241
  rules?: ContextRule[];
@@ -227,6 +259,10 @@ declare namespace gapi.client {
227
259
  */
228
260
  environment?: string;
229
261
  }
262
+ interface CppSettings {
263
+ /** Some settings. */
264
+ common?: CommonLanguageSettings;
265
+ }
230
266
  // tslint:disable-next-line:no-empty-interface
231
267
  interface CreateAdminQuotaPolicyMetadata {
232
268
  }
@@ -302,6 +338,10 @@ declare namespace gapi.client {
302
338
  */
303
339
  selector?: string;
304
340
  }
341
+ interface DotnetSettings {
342
+ /** Some settings. */
343
+ common?: CommonLanguageSettings;
344
+ }
305
345
  // tslint:disable-next-line:no-empty-interface
306
346
  interface Empty {
307
347
  }
@@ -319,6 +359,11 @@ declare namespace gapi.client {
319
359
  service?: GoogleApiServiceusageV1Service;
320
360
  }
321
361
  interface Endpoint {
362
+ /**
363
+ * 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.
364
+ * Additional names that this endpoint will be hosted on.
365
+ */
366
+ aliases?: string[];
322
367
  /**
323
368
  * 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
324
369
  * HTTP OPTIONS requests. The response will be used by the browser to determine whether the subsequent cross-origin request is allowed to proceed.
@@ -439,6 +484,8 @@ declare namespace gapi.client {
439
484
  name?: string;
440
485
  /** The Google project that owns this service. */
441
486
  producerProjectId?: string;
487
+ /** Settings for [Google Cloud Client libraries](https://cloud.google.com/apis/docs/cloud-client-libraries) generated from APIs defined as protocol buffers. */
488
+ publishing?: Publishing;
442
489
  /** Quota configuration. */
443
490
  quota?: Quota;
444
491
  /** Output only. The source information for this configuration if available. */
@@ -514,6 +561,10 @@ declare namespace gapi.client {
514
561
  /** Configuration controlling usage of this service. */
515
562
  usage?: Usage;
516
563
  }
564
+ interface GoSettings {
565
+ /** Some settings. */
566
+ common?: CommonLanguageSettings;
567
+ }
517
568
  interface Http {
518
569
  /**
519
570
  * When set to true, URL path parameters will be fully URI-decoded except in cases of single segment matches in reserved expansion, where "%2F" will be left encoded. The default
@@ -575,6 +626,22 @@ declare namespace gapi.client {
575
626
  /** The overrides that were created from the imported data. */
576
627
  overrides?: QuotaOverride[];
577
628
  }
629
+ interface JavaSettings {
630
+ /** Some settings. */
631
+ common?: CommonLanguageSettings;
632
+ /**
633
+ * 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
634
+ * 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:
635
+ * java_settings: library_package: com.google.cloud.pubsub.v1
636
+ */
637
+ libraryPackage?: string;
638
+ /**
639
+ * 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
640
+ * (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
641
+ * configuration:: publishing: java_settings: service_class_names: - google.pubsub.v1.Publisher: TopicAdmin - google.pubsub.v1.Subscriber: SubscriptionAdmin
642
+ */
643
+ serviceClassNames?: { [P in string]: string };
644
+ }
578
645
  interface JwtLocation {
579
646
  /** Specifies cookie name to extract JWT token. */
580
647
  cookie?: string;
@@ -643,6 +710,16 @@ declare namespace gapi.client {
643
710
  /** The monitored resource type. The type must be defined in the Service.monitored_resources section. */
644
711
  monitoredResource?: string;
645
712
  }
713
+ interface LongRunning {
714
+ /** Initial delay after which the first poll request will be made. Default value: 5 seconds. */
715
+ initialPollDelay?: string;
716
+ /** Maximum time between two subsequent poll requests. Default value: 45 seconds. */
717
+ maxPollDelay?: string;
718
+ /** Multiplier to gradually increase delay between subsequent polls until it reaches max_poll_delay. Default value: 1.5. */
719
+ pollDelayMultiplier?: number;
720
+ /** Total polling timeout. Default value: 5 minutes. */
721
+ totalPollTimeout?: string;
722
+ }
646
723
  interface Method {
647
724
  /** The simple name of this method. */
648
725
  name?: string;
@@ -659,6 +736,16 @@ declare namespace gapi.client {
659
736
  /** The source syntax of this method. */
660
737
  syntax?: string;
661
738
  }
739
+ interface MethodSettings {
740
+ /**
741
+ * 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
742
+ * of a YAML configuration:: publishing: method_behavior: - selector: CreateAdDomain long_running: initial_poll_delay: seconds: 60 # 1 minute poll_delay_multiplier: 1.5 max_poll_delay:
743
+ * seconds: 360 # 6 minutes total_poll_timeout: seconds: 54000 # 90 minutes
744
+ */
745
+ longRunning?: LongRunning;
746
+ /** The fully qualified name of the method, for which the options below apply. This is used to find the method to apply the options. */
747
+ selector?: string;
748
+ }
662
749
  interface MetricDescriptor {
663
750
  /** A detailed description of the metric, which can be used in documentation. */
664
751
  description?: string;
@@ -790,6 +877,10 @@ declare namespace gapi.client {
790
877
  /** The monitored resource type. The type must be defined in Service.monitored_resources section. */
791
878
  monitoredResource?: string;
792
879
  }
880
+ interface NodeSettings {
881
+ /** Some settings. */
882
+ common?: CommonLanguageSettings;
883
+ }
793
884
  interface OAuthRequirements {
794
885
  /**
795
886
  * The list of publicly documented OAuth scopes that are allowed access. An OAuth token containing any of these scopes will be accepted. Example: canonical_scopes:
@@ -850,6 +941,37 @@ declare namespace gapi.client {
850
941
  /** Subpages of this page. The order of subpages specified here will be honored in the generated docset. */
851
942
  subpages?: Page[];
852
943
  }
944
+ interface PhpSettings {
945
+ /** Some settings. */
946
+ common?: CommonLanguageSettings;
947
+ }
948
+ interface Publishing {
949
+ /** Used as a tracking tag when collecting data about the APIs developer relations artifacts like docs, packages delivered to package managers, etc. Example: "speech". */
950
+ apiShortName?: string;
951
+ /** GitHub teams to be added to CODEOWNERS in the directory in GitHub containing source code for the client libraries for this API. */
952
+ codeownerGithubTeams?: string[];
953
+ /** A prefix used in sample code when demarking regions to be included in documentation. */
954
+ docTagPrefix?: string;
955
+ /** Link to product home page. Example: https://cloud.google.com/asset-inventory/docs/overview */
956
+ documentationUri?: string;
957
+ /** GitHub label to apply to issues and pull requests opened for this API. */
958
+ githubLabel?: string;
959
+ /**
960
+ * 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
961
+ * discarded.
962
+ */
963
+ librarySettings?: ClientLibrarySettings[];
964
+ /** A list of API method settings, e.g. the behavior for methods that use the long-running operation pattern. */
965
+ methodSettings?: MethodSettings[];
966
+ /** Link to a place that API users can report issues. Example: https://issuetracker.google.com/issues/new?component=190865&template=1161103 */
967
+ newIssueUri?: string;
968
+ /** For whom the client library is being published. */
969
+ organization?: string;
970
+ }
971
+ interface PythonSettings {
972
+ /** Some settings. */
973
+ common?: CommonLanguageSettings;
974
+ }
853
975
  interface Quota {
854
976
  /** List of QuotaLimit definitions for the service. */
855
977
  limits?: QuotaLimit[];
@@ -937,6 +1059,10 @@ declare namespace gapi.client {
937
1059
  */
938
1060
  unit?: string;
939
1061
  }
1062
+ interface RubySettings {
1063
+ /** Some settings. */
1064
+ common?: CommonLanguageSettings;
1065
+ }
940
1066
  interface ServiceIdentity {
941
1067
  /** The email address of the service account that a service producer would use to access consumer resources. */
942
1068
  email?: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.serviceusage-v1",
3
- "version": "0.0.20221114",
3
+ "version": "0.0.20221115",
4
4
  "description": "TypeScript typings for Service Usage API v1",
5
5
  "license": "MIT",
6
6
  "author": {
package/tests.ts CHANGED
@@ -3,7 +3,7 @@
3
3
  // This file was generated by https://github.com/Maxim-Mazurok/google-api-typings-generator. Please do not edit it manually.
4
4
  // In case of any problems please post issue to https://github.com/Maxim-Mazurok/google-api-typings-generator
5
5
 
6
- // Revision: 20221114
6
+ // Revision: 20221115
7
7
 
8
8
  gapi.load('client', async () => {
9
9
  /** now we can use gapi.client */