Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions librarian.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -850,10 +850,9 @@ libraries:
- path: google/cloud/functions/v2beta
- path: google/cloud/functions/v2alpha
copyright_year: "2026"
skip_generate: true

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

Removing skip_generate: true without adding google.iam.v1.IAMPolicy to the mixins list under nodejs causes the IAM-related methods (getIamPolicy, setIamPolicy, testIamPermissions) to be removed from the generated clients. This is a breaking change for this stable library. Add google.iam.v1.IAMPolicy to the mixins list to preserve these methods.

nodejs:
default_version: v1
mixins: google.longrunning.Operations;google.cloud.location.Locations
mixins: google.longrunning.Operations;google.cloud.location.Locations;google.iam.v1.IAMPolicy
- name: google-cloud-gdchardwaremanagement
version: 0.10.1
apis:
Expand Down
19 changes: 0 additions & 19 deletions packages/google-cloud-functions/.OwlBot.yaml

This file was deleted.

31 changes: 15 additions & 16 deletions packages/google-cloud-functions/.repo-metadata.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
{
"issue_tracker": "",
"distribution_name": "@google-cloud/functions",
"product_documentation": "https://cloud.google.com/functions",
"api_id": "cloudfunctions.googleapis.com",
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/functions/latest",
"repo": "googleapis/google-cloud-node",
"release_level": "stable",
"requires_billing": false,
"name_pretty": "Google Cloud Functions",
"name": "nodejs-functions",
"codeowner_team": "@googleapis/aap-dpes",
"default_version": "v1",
"language": "nodejs",
"api_shortname": "cloudfunctions",
"library_type": "GAPIC_AUTO"
}
"api_description": "Manages lightweight user-provided functions executed in response to events.",
"api_id": "cloudfunctions.googleapis.com",
"api_shortname": "cloudfunctions",
"client_documentation": "https://cloud.google.com/nodejs/docs/reference/functions/latest",
"default_version": "v1",
"distribution_name": "@google-cloud/functions",
"issue_tracker": "https://issuetracker.google.com/savedsearches/559729",
"language": "nodejs",
"library_type": "GAPIC_AUTO",
"name": "cloudfunctions",
"name_pretty": "Cloud Functions",
"product_documentation": "https://cloud.google.com/functions/docs",
"release_level": "stable",
"repo": "googleapis/google-cloud-node"
}
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ import type {
LROperation,
PaginationCallback,
GaxCall,
IamClient,
IamProtos,
LocationsClient,
LocationProtos,
} from 'google-gax';
Expand Down Expand Up @@ -69,6 +71,7 @@ export class CloudFunctionsServiceClient {
};
warn: (code: string, message: string, warnType?: string) => void;
innerApiCalls: { [name: string]: Function };
iamClient: IamClient;
locationsClient: LocationsClient;
pathTemplates: { [name: string]: gax.PathTemplate };
operationsClient: gax.OperationsClient;
Expand Down Expand Up @@ -186,6 +189,8 @@ export class CloudFunctionsServiceClient {
if (servicePath === this._servicePath) {
this.auth.defaultScopes = staticMembers.scopes;
}
this.iamClient = new this._gaxModule.IamClient(this._gaxGrpc, opts);

this.locationsClient = new this._gaxModule.LocationsClient(
this._gaxGrpc,
opts,
Expand Down Expand Up @@ -2235,6 +2240,92 @@ export class CloudFunctionsServiceClient {
callSettings,
) as AsyncIterable<protos.google.cloud.functions.v1.ICloudFunction>;
}
/**
* Gets the access control policy for a resource. Returns an empty policy
* if the resource exists and does not have a policy set.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.resource
* REQUIRED: The resource for which the policy is being requested.
* See the operation documentation for the appropriate value for this field.
* @param {Object} [request.options]
* OPTIONAL: A `GetPolicyOptions` object for specifying options to
* `GetIamPolicy`. This field is only used by Cloud IAM.
*
* This object should have the same structure as {@link google.iam.v1.GetPolicyOptions | GetPolicyOptions}.
* @param {Object} [options]
* Optional parameters. You can override the default settings for this call, e.g, timeout,
* retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details.
* @param {function(?Error, ?Object)} [callback]
* The function which will be called with the result of the API call.
*
* The second parameter to the callback is an object representing {@link google.iam.v1.Policy | Policy}.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing {@link google.iam.v1.Policy | Policy}.
* The promise has a method named "cancel" which cancels the ongoing API call.
*/

/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of
* permissions, not a NOT_FOUND error.
*
* Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization
* checking. This operation may "fail open" without warning.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.resource
* REQUIRED: The resource for which the policy detail is being requested.
* See the operation documentation for the appropriate value for this field.
* @param {string[]} request.permissions
* The set of permissions to check for the `resource`. Permissions with
* wildcards (such as '*' or 'storage.*') are not allowed. For more
* information see {@link https://cloud.google.com/iam/docs/overview#permissions | IAM Overview }.
* @param {Object} [options]
* Optional parameters. You can override the default settings for this call, e.g, timeout,
* retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details.
* @param {function(?Error, ?Object)} [callback]
* The function which will be called with the result of the API call.
*
* The second parameter to the callback is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}.
* The promise has a method named "cancel" which cancels the ongoing API call.
*/

/**
* Returns permissions that a caller has on the specified resource. If the
* resource does not exist, this will return an empty set of
* permissions, not a NOT_FOUND error.
*
* Note: This operation is designed to be used for building
* permission-aware UIs and command-line tools, not for authorization
* checking. This operation may "fail open" without warning.
*
* @param {Object} request
* The request object that will be sent.
* @param {string} request.resource
* REQUIRED: The resource for which the policy detail is being requested.
* See the operation documentation for the appropriate value for this field.
* @param {string[]} request.permissions
* The set of permissions to check for the `resource`. Permissions with
* wildcards (such as '*' or 'storage.*') are not allowed. For more
* information see {@link https://cloud.google.com/iam/docs/overview#permissions | IAM Overview }.
* @param {Object} [options]
* Optional parameters. You can override the default settings for this call, e.g, timeout,
* retries, paginations, etc. See {@link https://googleapis.github.io/gax-nodejs/interfaces/CallOptions.html | gax.CallOptions} for the details.
* @param {function(?Error, ?Object)} [callback]
* The function which will be called with the result of the API call.
*
* The second parameter to the callback is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}.
* @returns {Promise} - The promise which resolves to an array.
* The first element of the array is an object representing {@link google.iam.v1.TestIamPermissionsResponse | TestIamPermissionsResponse}.
* The promise has a method named "cancel" which cancels the ongoing API call.
*
*/

/**
* Gets information about a location.
Expand Down Expand Up @@ -2763,6 +2854,9 @@ export class CloudFunctionsServiceClient {
this._log.info('ending gRPC channel');
this._terminated = true;
stub.close();
this.iamClient.close().catch((err) => {
throw err;
});
this.locationsClient.close().catch((err) => {
throw err;
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ import {
protobuf,
LROperation,
operationsProtos,
IamProtos,
LocationProtos,
} from 'google-gax';

Expand Down
Loading