@maxim_mazurok/gapi.client.run-v1 0.0.20250111 → 0.0.20250124

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 +45 -17
  2. package/package.json +1 -1
  3. package/readme.md +2 -2
package/index.d.ts CHANGED
@@ -9,14 +9,14 @@
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://run.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20250111
12
+ // Revision: 20250124
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
16
16
  declare namespace gapi.client {
17
17
  /** Load Cloud Run Admin API v1 */
18
18
  function load(
19
- urlOrObject: 'https://run.googleapis.com/$discovery/rest?version=v1'
19
+ urlOrObject: 'https://run.googleapis.com/$discovery/rest?version=v1',
20
20
  ): Promise<void>;
21
21
  /** @deprecated Please load APIs with discovery documents. */
22
22
  function load(name: 'run', version: 'v1'): Promise<void>;
@@ -344,6 +344,8 @@ declare namespace gapi.client {
344
344
  timing?: GoogleDevtoolsCloudbuildV1TimeSpan;
345
345
  }
346
346
  interface GoogleDevtoolsCloudbuildV1Artifacts {
347
+ /** Optional. A list of Go modules to be uploaded to Artifact Registry upon successful completion of all build steps. If any objects fail to be pushed, the build is marked FAILURE. */
348
+ goModules?: GoogleDevtoolsCloudbuildV1GoModule[];
347
349
  /** A list of images to be pushed upon the successful completion of all build steps. The images will be pushed using the builder service account's credentials. The digests of the pushed images will be stored in the Build resource's results field. If any of the images fail to be pushed, the build is marked FAILURE. */
348
350
  images?: string[];
349
351
  /** A list of Maven artifacts to be uploaded to Artifact Registry upon successful completion of all build steps. Artifacts in the workspace matching specified paths globs will be uploaded to the specified Artifact Registry repository using the builder service account's credentials. If any artifacts fail to be pushed, the build is marked FAILURE. */
@@ -438,6 +440,8 @@ declare namespace gapi.client {
438
440
  diskSizeGb?: string;
439
441
  /** Option to specify whether or not to apply bash style string operations to the substitutions. NOTE: this is always enabled for triggered builds and cannot be overridden in the build configuration file. */
440
442
  dynamicSubstitutions?: boolean;
443
+ /** Optional. Option to specify whether structured logging is enabled. If true, JSON-formatted logs are parsed as structured logs. */
444
+ enableStructuredLogging?: boolean;
441
445
  /** A list of global environment variable definitions that will exist for all build steps in this build. If a variable is defined in both globally and in a build step, the variable will use the build step value. The elements are of the form "KEY=VALUE" for the environment variable "KEY" being given the value "VALUE". */
442
446
  env?: string[];
443
447
  /** Option to specify the logging mode, which determines if and where build logs are stored. */
@@ -545,6 +549,20 @@ declare namespace gapi.client {
545
549
  /** Required. Location of the Git repo to build. This will be used as a `git remote`, see https://git-scm.com/docs/git-remote. */
546
550
  url?: string;
547
551
  }
552
+ interface GoogleDevtoolsCloudbuildV1GoModule {
553
+ /** Optional. The Go module's "module path". e.g. example.com/foo/v2 */
554
+ modulePath?: string;
555
+ /** Optional. The Go module's semantic version in the form vX.Y.Z. e.g. v0.1.1 Pre-release identifiers can also be added by appending a dash and dot separated ASCII alphanumeric characters and hyphens. e.g. v0.2.3-alpha.x.12m.5 */
556
+ moduleVersion?: string;
557
+ /** Optional. Location of the Artifact Registry repository. i.e. us-east1 Defaults to the build’s location. */
558
+ repositoryLocation?: string;
559
+ /** Optional. Artifact Registry repository name. Specified Go modules will be zipped and uploaded to Artifact Registry with this location as a prefix. e.g. my-go-repo */
560
+ repositoryName?: string;
561
+ /** Optional. Project ID of the Artifact Registry repository. Defaults to the build project. */
562
+ repositoryProjectId?: string;
563
+ /** Optional. Source path of the go.mod file in the build's workspace. If not specified, this will default to the current directory. e.g. ~/code/go/mypackage */
564
+ sourcePath?: string;
565
+ }
548
566
  interface GoogleDevtoolsCloudbuildV1Hash {
549
567
  /** The type of hash that was performed. */
550
568
  type?: string;
@@ -616,6 +634,8 @@ declare namespace gapi.client {
616
634
  buildStepImages?: string[];
617
635
  /** List of build step outputs, produced by builder images, in the order corresponding to build step indices. [Cloud Builders](https://cloud.google.com/cloud-build/docs/cloud-builders) can produce this output by writing to `$BUILDER_OUTPUT/output`. Only the first 50KB of data is stored. Note that the `$BUILDER_OUTPUT` variable is read-only and can't be substituted. */
618
636
  buildStepOutputs?: string[];
637
+ /** Optional. Go module artifacts uploaded to Artifact Registry at the end of the build. */
638
+ goModules?: GoogleDevtoolsCloudbuildV1UploadedGoModule[];
619
639
  /** Container images that were built as a part of the build. */
620
640
  images?: GoogleDevtoolsCloudbuildV1BuiltImage[];
621
641
  /** Maven artifacts uploaded to Artifact Registry at the end of the build. */
@@ -697,6 +717,14 @@ declare namespace gapi.client {
697
717
  /** Start of time span. */
698
718
  startTime?: string;
699
719
  }
720
+ interface GoogleDevtoolsCloudbuildV1UploadedGoModule {
721
+ /** Hash types and values of the Go Module Artifact. */
722
+ fileHashes?: GoogleDevtoolsCloudbuildV1FileHashes;
723
+ /** Output only. Stores timing information for pushing the specified artifact. */
724
+ pushTiming?: GoogleDevtoolsCloudbuildV1TimeSpan;
725
+ /** URI of the uploaded artifact. */
726
+ uri?: string;
727
+ }
700
728
  interface GoogleDevtoolsCloudbuildV1UploadedMavenArtifact {
701
729
  /** Hash types and values of the Maven Artifact. */
702
730
  fileHashes?: GoogleDevtoolsCloudbuildV1FileHashes;
@@ -1521,7 +1549,7 @@ declare namespace gapi.client {
1521
1549
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1522
1550
  uploadType?: string;
1523
1551
  },
1524
- body: DomainMapping
1552
+ body: DomainMapping,
1525
1553
  ): Request<DomainMapping>;
1526
1554
  /** Delete a domain mapping. */
1527
1555
  delete(request?: {
@@ -1684,7 +1712,7 @@ declare namespace gapi.client {
1684
1712
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1685
1713
  uploadType?: string;
1686
1714
  },
1687
- body: CancelExecutionRequest
1715
+ body: CancelExecutionRequest,
1688
1716
  ): Request<Execution>;
1689
1717
  /** Delete an execution. */
1690
1718
  delete(request?: {
@@ -1845,7 +1873,7 @@ declare namespace gapi.client {
1845
1873
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
1846
1874
  uploadType?: string;
1847
1875
  },
1848
- body: Job
1876
+ body: Job,
1849
1877
  ): Request<Job>;
1850
1878
  /** Delete a job. */
1851
1879
  delete(request?: {
@@ -2004,7 +2032,7 @@ declare namespace gapi.client {
2004
2032
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2005
2033
  uploadType?: string;
2006
2034
  },
2007
- body: Job
2035
+ body: Job,
2008
2036
  ): Request<Job>;
2009
2037
  /** Trigger creation of a new execution of this job. */
2010
2038
  run(request: {
@@ -2062,7 +2090,7 @@ declare namespace gapi.client {
2062
2090
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2063
2091
  uploadType?: string;
2064
2092
  },
2065
- body: RunJobRequest
2093
+ body: RunJobRequest,
2066
2094
  ): Request<Execution>;
2067
2095
  }
2068
2096
  interface RevisionsResource {
@@ -2301,7 +2329,7 @@ declare namespace gapi.client {
2301
2329
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2302
2330
  uploadType?: string;
2303
2331
  },
2304
- body: Service
2332
+ body: Service,
2305
2333
  ): Request<Service>;
2306
2334
  /** Deletes the provided service. This will cause the Service to stop serving traffic and will delete all associated Revisions. */
2307
2335
  delete(request?: {
@@ -2466,7 +2494,7 @@ declare namespace gapi.client {
2466
2494
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2467
2495
  uploadType?: string;
2468
2496
  },
2469
- body: Service
2497
+ body: Service,
2470
2498
  ): Request<Service>;
2471
2499
  }
2472
2500
  interface TasksResource {
@@ -2747,7 +2775,7 @@ declare namespace gapi.client {
2747
2775
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2748
2776
  uploadType?: string;
2749
2777
  },
2750
- body: DomainMapping
2778
+ body: DomainMapping,
2751
2779
  ): Request<DomainMapping>;
2752
2780
  /** Delete a domain mapping. */
2753
2781
  delete(request?: {
@@ -2911,7 +2939,7 @@ declare namespace gapi.client {
2911
2939
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2912
2940
  uploadType?: string;
2913
2941
  },
2914
- body: SetIamPolicyRequest
2942
+ body: SetIamPolicyRequest,
2915
2943
  ): Request<Policy>;
2916
2944
  /** Returns permissions that a caller has on the specified job. There are no permissions required for making this API call. */
2917
2945
  testIamPermissions(
@@ -2941,7 +2969,7 @@ declare namespace gapi.client {
2941
2969
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
2942
2970
  uploadType?: string;
2943
2971
  },
2944
- body: TestIamPermissionsRequest
2972
+ body: TestIamPermissionsRequest,
2945
2973
  ): Request<TestIamPermissionsResponse>;
2946
2974
  }
2947
2975
  interface OperationsResource {
@@ -3088,7 +3116,7 @@ declare namespace gapi.client {
3088
3116
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3089
3117
  uploadType?: string;
3090
3118
  },
3091
- body: GoogleLongrunningWaitOperationRequest
3119
+ body: GoogleLongrunningWaitOperationRequest,
3092
3120
  ): Request<GoogleLongrunningOperation>;
3093
3121
  }
3094
3122
  interface RevisionsResource {
@@ -3327,7 +3355,7 @@ declare namespace gapi.client {
3327
3355
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3328
3356
  uploadType?: string;
3329
3357
  },
3330
- body: Service
3358
+ body: Service,
3331
3359
  ): Request<Service>;
3332
3360
  /** Deletes the provided service. This will cause the Service to stop serving traffic and will delete all associated Revisions. */
3333
3361
  delete(request?: {
@@ -3521,7 +3549,7 @@ declare namespace gapi.client {
3521
3549
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3522
3550
  uploadType?: string;
3523
3551
  },
3524
- body: Service
3552
+ body: Service,
3525
3553
  ): Request<Service>;
3526
3554
  /** Sets the IAM Access control policy for the specified Service. Overwrites any existing policy. */
3527
3555
  setIamPolicy(
@@ -3551,7 +3579,7 @@ declare namespace gapi.client {
3551
3579
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3552
3580
  uploadType?: string;
3553
3581
  },
3554
- body: SetIamPolicyRequest
3582
+ body: SetIamPolicyRequest,
3555
3583
  ): Request<Policy>;
3556
3584
  /** Returns permissions that a caller has on the specified Project. There are no permissions required for making this API call. */
3557
3585
  testIamPermissions(
@@ -3581,7 +3609,7 @@ declare namespace gapi.client {
3581
3609
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
3582
3610
  uploadType?: string;
3583
3611
  },
3584
- body: TestIamPermissionsRequest
3612
+ body: TestIamPermissionsRequest,
3585
3613
  ): Request<TestIamPermissionsResponse>;
3586
3614
  }
3587
3615
  interface LocationsResource {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.run-v1",
3
- "version": "0.0.20250111",
3
+ "version": "0.0.20250124",
4
4
  "description": "TypeScript typings for Cloud Run Admin API v1",
5
5
  "repository": {
6
6
  "type": "git",
package/readme.md CHANGED
@@ -30,7 +30,7 @@ gapi.client.load(
30
30
  () => {
31
31
  // now we can use:
32
32
  // gapi.client.run
33
- }
33
+ },
34
34
  );
35
35
  ```
36
36
 
@@ -62,7 +62,7 @@ gapi.auth.authorize(
62
62
  } else {
63
63
  /* handle authorization error */
64
64
  }
65
- }
65
+ },
66
66
  );
67
67
  ```
68
68