@maxim_mazurok/gapi.client.cloudfunctions-v1 0.0.20250116 → 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 +11 -11
  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://cloudfunctions.googleapis.com/$discovery/rest?version=v1
12
- // Revision: 20250116
12
+ // Revision: 20250124
13
13
 
14
14
  /// <reference types="gapi.client" />
15
15
 
16
16
  declare namespace gapi.client {
17
17
  /** Load Cloud Functions API v1 */
18
18
  function load(
19
- urlOrObject: 'https://cloudfunctions.googleapis.com/$discovery/rest?version=v1'
19
+ urlOrObject: 'https://cloudfunctions.googleapis.com/$discovery/rest?version=v1',
20
20
  ): Promise<void>;
21
21
  /** @deprecated Please load APIs with discovery documents. */
22
22
  function load(name: 'cloudfunctions', version: 'v1'): Promise<void>;
@@ -24,7 +24,7 @@ declare namespace gapi.client {
24
24
  function load(
25
25
  name: 'cloudfunctions',
26
26
  version: 'v1',
27
- callback: () => any
27
+ callback: () => any,
28
28
  ): void;
29
29
 
30
30
  namespace cloudfunctions {
@@ -259,7 +259,7 @@ declare namespace gapi.client {
259
259
  interface SecretEnvVar {
260
260
  /** Name of the environment variable. */
261
261
  key?: string;
262
- /** Project identifier (preferrably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function. */
262
+ /** Project identifier (preferably project number but can also be the project ID) of the project that contains the secret. If not set, it will be populated with the function's project assuming that the secret exists in the same project as of the function. */
263
263
  projectId?: string;
264
264
  /** Name of the secret in secret manager (not the full resource name). */
265
265
  secret?: string;
@@ -429,7 +429,7 @@ declare namespace gapi.client {
429
429
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
430
430
  uploadType?: string;
431
431
  },
432
- body: CallFunctionRequest
432
+ body: CallFunctionRequest,
433
433
  ): Request<CallFunctionResponse>;
434
434
  /** Creates a new function. If a function with the given name already exists in the specified project, the long running operation will return `ALREADY_EXISTS` error. */
435
435
  create(request: {
@@ -487,7 +487,7 @@ declare namespace gapi.client {
487
487
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
488
488
  uploadType?: string;
489
489
  },
490
- body: CloudFunction
490
+ body: CloudFunction,
491
491
  ): Request<Operation>;
492
492
  /** Deletes a function with the given name from the specified project. If the given function is used by some trigger, the trigger will be updated to remove this function. */
493
493
  delete(request?: {
@@ -572,7 +572,7 @@ declare namespace gapi.client {
572
572
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
573
573
  uploadType?: string;
574
574
  },
575
- body: GenerateDownloadUrlRequest
575
+ body: GenerateDownloadUrlRequest,
576
576
  ): Request<GenerateDownloadUrlResponse>;
577
577
  /** Returns a signed URL for uploading a function source code. For more information about the signed URL usage see: https://cloud.google.com/storage/docs/access-control/signed-urls. Once the function source code upload is complete, the used signed URL should be provided in CreateFunction or UpdateFunction request as a reference to the function source code. When uploading source code to the generated signed URL, please follow these restrictions: * Source file type should be a zip file. * Source file size should not exceed 100MB limit. * No credentials should be attached - the signed URLs provide access to the target bucket using internal service identity; if credentials were attached, the identity from the credentials would be used, but that identity does not have permissions to upload files to the URL. When making a HTTP PUT request, these two headers need to be specified: * `content-type: application/zip` * `x-goog-content-length-range: 0,104857600` And this header SHOULD NOT be specified: * `Authorization: Bearer YOUR_TOKEN` */
578
578
  generateUploadUrl(request: {
@@ -630,7 +630,7 @@ declare namespace gapi.client {
630
630
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
631
631
  uploadType?: string;
632
632
  },
633
- body: GenerateUploadUrlRequest
633
+ body: GenerateUploadUrlRequest,
634
634
  ): Request<GenerateUploadUrlResponse>;
635
635
  /** Returns a function with the given name from the requested project. */
636
636
  get(request?: {
@@ -781,7 +781,7 @@ declare namespace gapi.client {
781
781
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
782
782
  uploadType?: string;
783
783
  },
784
- body: CloudFunction
784
+ body: CloudFunction,
785
785
  ): Request<Operation>;
786
786
  /** Sets the IAM access control policy on the specified function. Replaces any existing policy. */
787
787
  setIamPolicy(
@@ -811,7 +811,7 @@ declare namespace gapi.client {
811
811
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
812
812
  uploadType?: string;
813
813
  },
814
- body: SetIamPolicyRequest
814
+ body: SetIamPolicyRequest,
815
815
  ): Request<Policy>;
816
816
  /** Tests the specified permissions against the IAM access control policy for a function. If the function does not exist, this will return an empty set of permissions, not a NOT_FOUND error. */
817
817
  testIamPermissions(
@@ -841,7 +841,7 @@ declare namespace gapi.client {
841
841
  /** Legacy upload protocol for media (e.g. "media", "multipart"). */
842
842
  uploadType?: string;
843
843
  },
844
- body: TestIamPermissionsRequest
844
+ body: TestIamPermissionsRequest,
845
845
  ): Request<TestIamPermissionsResponse>;
846
846
  }
847
847
  interface LocationsResource {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@maxim_mazurok/gapi.client.cloudfunctions-v1",
3
- "version": "0.0.20250116",
3
+ "version": "0.0.20250124",
4
4
  "description": "TypeScript typings for Cloud Functions 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.cloudfunctions
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