Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: [Many APIs] fix typings for IAM methods #4460

Merged
merged 3 commits into from
Jul 28, 2023
Merged
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
15 changes: 7 additions & 8 deletions packages/google-cloud-beyondcorp-clientgateways/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[//]: # "To regenerate it, use `python -m synthtool`."
<img src="https://avatars2.githubusercontent.com/u/2810941?v=3&s=96" alt="Google Cloud Platform logo" title="Google Cloud Platform" align="right" height="96" width="96"/>

# [BeyondCorp API: Node.js Client](https://github.com/googleapis/google-cloud-node)
# [BeyondCorp API: Node.js Client](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-beyondcorp-clientgateways)

[![release level](https://img.shields.io/badge/release%20level-preview-yellow.svg?style=flat)](https://cloud.google.com/terms/launch-stages)
[![npm version](https://img.shields.io/npm/v/@google-cloud/clientgateways.svg)](https://www.npmjs.org/package/@google-cloud/clientgateways)
Expand Down Expand Up @@ -112,16 +112,15 @@ callListClientGateways();

## Samples

Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/samples) directory. Each sample's `README.md` has instructions for running its sample.
Samples are in the [`samples/`](https://github.com/googleapis/google-cloud-node/tree/main/packages/google-cloud-beyondcorp-clientgateways/samples) directory. Each sample's `README.md` has instructions for running its sample.

| Sample | Source Code | Try it |
| --------------------------- | --------------------------------- | ------ |
| Client_gateways_service.create_client_gateway | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-beyondcorp-clientgateways/samples/generated/v1/client_gateways_service.create_client_gateway.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-beyondcorp-clientgateways/samples/generated/v1/client_gateways_service.create_client_gateway.js,samples/README.md) |
| Client_gateways_service.delete_client_gateway | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-beyondcorp-clientgateways/samples/generated/v1/client_gateways_service.delete_client_gateway.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-beyondcorp-clientgateways/samples/generated/v1/client_gateways_service.delete_client_gateway.js,samples/README.md) |
| Client_gateways_service.get_client_gateway | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-beyondcorp-clientgateways/samples/generated/v1/client_gateways_service.get_client_gateway.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-beyondcorp-clientgateways/samples/generated/v1/client_gateways_service.get_client_gateway.js,samples/README.md) |
| Client_gateways_service.list_client_gateways | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-beyondcorp-clientgateways/samples/generated/v1/client_gateways_service.list_client_gateways.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-beyondcorp-clientgateways/samples/generated/v1/client_gateways_service.list_client_gateways.js,samples/README.md) |
| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-beyondcorp-clientgateways/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-beyondcorp-clientgateways/samples/quickstart.js,samples/README.md) |
| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-beyondcorp-clientgateways/samples/test/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-beyondcorp-clientgateways/samples/test/quickstart.js,samples/README.md) |
| Client_gateways_service.create_client_gateway | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-beyondcorp-clientgateways/samples/generated/v1/client_gateways_service.create_client_gateway.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-beyondcorp-clientgateways/samples/generated/v1/client_gateways_service.create_client_gateway.js,packages/google-cloud-beyondcorp-clientgateways/samples/README.md) |
| Client_gateways_service.delete_client_gateway | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-beyondcorp-clientgateways/samples/generated/v1/client_gateways_service.delete_client_gateway.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-beyondcorp-clientgateways/samples/generated/v1/client_gateways_service.delete_client_gateway.js,packages/google-cloud-beyondcorp-clientgateways/samples/README.md) |
| Client_gateways_service.get_client_gateway | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-beyondcorp-clientgateways/samples/generated/v1/client_gateways_service.get_client_gateway.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-beyondcorp-clientgateways/samples/generated/v1/client_gateways_service.get_client_gateway.js,packages/google-cloud-beyondcorp-clientgateways/samples/README.md) |
| Client_gateways_service.list_client_gateways | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-beyondcorp-clientgateways/samples/generated/v1/client_gateways_service.list_client_gateways.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-beyondcorp-clientgateways/samples/generated/v1/client_gateways_service.list_client_gateways.js,packages/google-cloud-beyondcorp-clientgateways/samples/README.md) |
| Quickstart | [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-beyondcorp-clientgateways/samples/quickstart.js) | [![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-beyondcorp-clientgateways/samples/quickstart.js,packages/google-cloud-beyondcorp-clientgateways/samples/README.md) |



Expand Down
11 changes: 6 additions & 5 deletions packages/google-cloud-beyondcorp-clientgateways/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,15 @@
"test": "c8 mocha build/test"
},
"dependencies": {
"google-gax": "^3.5.8"
"google-gax": "^4.0.3"
},
"devDependencies": {
"@types/mocha": "^9.0.0",
"@types/node": "^18.0.0",
"@types/node": "^20.4.5",
"@types/sinon": "^10.0.0",
"c8": "^7.3.5",
"gts": "^3.1.0",
"gapic-tools": "^0.1.8",
"gts": "^5.0.0",
"jsdoc": "^4.0.0",
"jsdoc-fresh": "^2.0.0",
"jsdoc-region-tag": "^2.0.0",
Expand All @@ -64,11 +65,11 @@
"pack-n-play": "^1.0.0-2",
"sinon": "^15.0.0",
"ts-loader": "^9.0.0",
"typescript": "^4.6.4",
"typescript": "^5.1.6",
"webpack": "^5.9.0",
"webpack-cli": "^5.0.0"
},
"engines": {
"node": ">=12.0.0"
"node": ">=14.0.0"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
* [Client_gateways_service.get_client_gateway](#client_gateways_service.get_client_gateway)
* [Client_gateways_service.list_client_gateways](#client_gateways_service.list_client_gateways)
* [Quickstart](#quickstart)
* [Quickstart](#quickstart)

## Before you begin

Expand Down Expand Up @@ -114,23 +113,6 @@ __Usage:__
`node packages/google-cloud-beyondcorp-clientgateways/samples/quickstart.js`


-----




### Quickstart

View the [source code](https://github.com/googleapis/google-cloud-node/blob/main/packages/google-cloud-beyondcorp-clientgateways/samples/test/quickstart.js).

[![Open in Cloud Shell][shell_img]](https://console.cloud.google.com/cloudshell/open?git_repo=https://github.com/googleapis/google-cloud-node&page=editor&open_in_editor=packages/google-cloud-beyondcorp-clientgateways/samples/test/quickstart.js,samples/README.md)

__Usage:__


`node packages/google-cloud-beyondcorp-clientgateways/samples/test/quickstart.js`





Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"clientLibrary": {
"name": "nodejs-clientgateways",
"version": "0.3.1",
"version": "0.3.2",
"language": "TYPESCRIPT",
"apis": [
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,215 @@
{
"clientLibrary": {
"name": "nodejs-clientgateways",
"version": "0.3.2",
"language": "TYPESCRIPT",
"apis": [
{
"id": "google.cloud.beyondcorp.clientgateways.v1",
"version": "v1"
}
]
},
"snippets": [
{
"regionTag": "beyondcorp_v1_generated_ClientGatewaysService_ListClientGateways_async",
"title": "ClientGatewaysService listClientGateways Sample",
"origin": "API_DEFINITION",
"description": " Lists ClientGateways in a given project and location.",
"canonical": true,
"file": "client_gateways_service.list_client_gateways.js",
"language": "JAVASCRIPT",
"segments": [
{
"start": 25,
"end": 72,
"type": "FULL"
}
],
"clientMethod": {
"shortName": "ListClientGateways",
"fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService.ListClientGateways",
"async": true,
"parameters": [
{
"name": "parent",
"type": "TYPE_STRING"
},
{
"name": "page_size",
"type": "TYPE_INT32"
},
{
"name": "page_token",
"type": "TYPE_STRING"
},
{
"name": "filter",
"type": "TYPE_STRING"
},
{
"name": "order_by",
"type": "TYPE_STRING"
}
],
"resultType": ".google.cloud.beyondcorp.clientgateways.v1.ListClientGatewaysResponse",
"client": {
"shortName": "ClientGatewaysServiceClient",
"fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysServiceClient"
},
"method": {
"shortName": "ListClientGateways",
"fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService.ListClientGateways",
"service": {
"shortName": "ClientGatewaysService",
"fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService"
}
}
}
},
{
"regionTag": "beyondcorp_v1_generated_ClientGatewaysService_GetClientGateway_async",
"title": "ClientGatewaysService getClientGateway Sample",
"origin": "API_DEFINITION",
"description": " Gets details of a single ClientGateway.",
"canonical": true,
"file": "client_gateways_service.get_client_gateway.js",
"language": "JAVASCRIPT",
"segments": [
{
"start": 25,
"end": 53,
"type": "FULL"
}
],
"clientMethod": {
"shortName": "GetClientGateway",
"fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService.GetClientGateway",
"async": true,
"parameters": [
{
"name": "name",
"type": "TYPE_STRING"
}
],
"resultType": ".google.cloud.beyondcorp.clientgateways.v1.ClientGateway",
"client": {
"shortName": "ClientGatewaysServiceClient",
"fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysServiceClient"
},
"method": {
"shortName": "GetClientGateway",
"fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService.GetClientGateway",
"service": {
"shortName": "ClientGatewaysService",
"fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService"
}
}
}
},
{
"regionTag": "beyondcorp_v1_generated_ClientGatewaysService_CreateClientGateway_async",
"title": "ClientGatewaysService createClientGateway Sample",
"origin": "API_DEFINITION",
"description": " Creates a new ClientGateway in a given project and location.",
"canonical": true,
"file": "client_gateways_service.create_client_gateway.js",
"language": "JAVASCRIPT",
"segments": [
{
"start": 25,
"end": 85,
"type": "FULL"
}
],
"clientMethod": {
"shortName": "CreateClientGateway",
"fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService.CreateClientGateway",
"async": true,
"parameters": [
{
"name": "parent",
"type": "TYPE_STRING"
},
{
"name": "client_gateway_id",
"type": "TYPE_STRING"
},
{
"name": "client_gateway",
"type": ".google.cloud.beyondcorp.clientgateways.v1.ClientGateway"
},
{
"name": "request_id",
"type": "TYPE_STRING"
},
{
"name": "validate_only",
"type": "TYPE_BOOL"
}
],
"resultType": ".google.longrunning.Operation",
"client": {
"shortName": "ClientGatewaysServiceClient",
"fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysServiceClient"
},
"method": {
"shortName": "CreateClientGateway",
"fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService.CreateClientGateway",
"service": {
"shortName": "ClientGatewaysService",
"fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService"
}
}
}
},
{
"regionTag": "beyondcorp_v1_generated_ClientGatewaysService_DeleteClientGateway_async",
"title": "ClientGatewaysService deleteClientGateway Sample",
"origin": "API_DEFINITION",
"description": " Deletes a single ClientGateway.",
"canonical": true,
"file": "client_gateways_service.delete_client_gateway.js",
"language": "JAVASCRIPT",
"segments": [
{
"start": 25,
"end": 73,
"type": "FULL"
}
],
"clientMethod": {
"shortName": "DeleteClientGateway",
"fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService.DeleteClientGateway",
"async": true,
"parameters": [
{
"name": "name",
"type": "TYPE_STRING"
},
{
"name": "request_id",
"type": "TYPE_STRING"
},
{
"name": "validate_only",
"type": "TYPE_BOOL"
}
],
"resultType": ".google.longrunning.Operation",
"client": {
"shortName": "ClientGatewaysServiceClient",
"fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysServiceClient"
},
"method": {
"shortName": "DeleteClientGateway",
"fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService.DeleteClientGateway",
"service": {
"shortName": "ClientGatewaysService",
"fullName": "google.cloud.beyondcorp.clientgateways.v1.ClientGatewaysService"
}
}
}
}
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"license": "Apache-2.0",
"author": "Google LLC",
"engines": {
"node": ">=12.0.0"
"node": ">=14.0.0"
},
"files": [
"*.js"
Expand All @@ -21,4 +21,4 @@
"chai": "^4.2.0",
"mocha": "^8.0.0"
}
}
}
Loading