Skip to content

Commit eed00f4

Browse files
chore: [Many APIs] update typescript gapic generator to 4.8.1 (#6142)
- [ ] Regenerate this pull request now. feat: add request/response debug logging to gapics, update templates to gax 5 and node 18 (#1671) fix: add json files to tsconfig templates (#1692) (ba6be1d) PiperOrigin-RevId: 735896588 Source-Link: https://togithub.com/googleapis/googleapis/commit/3419af786b385118d2dacfd8d99b141a00e9944d Source-Link: https://togithub.com/googleapis/googleapis-gen/commit/f35ba1142f4e168222327d892b5f6ee908e5d461 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlY3VyaXR5LXB1YmxpY2NhLy5Pd2xCb3QueWFtbCIsImgiOiJmMzViYTExNDJmNGUxNjgyMjIzMjdkODkyYjVmNmVlOTA4ZTVkNDYxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlY3VyaXR5Y2VudGVyLy5Pd2xCb3QueWFtbCIsImgiOiJmMzViYTExNDJmNGUxNjgyMjIzMjdkODkyYjVmNmVlOTA4ZTVkNDYxIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlY3VyaXR5Y2VudGVybWFuYWdlbWVudC8uT3dsQm90LnlhbWwiLCJoIjoiZjM1YmExMTQyZjRlMTY4MjIyMzI3ZDg5MmI1ZjZlZTkwOGU1ZDQ2MSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlcnZpY2VkaXJlY3RvcnkvLk93bEJvdC55YW1sIiwiaCI6ImYzNWJhMTE0MmY0ZTE2ODIyMjMyN2Q4OTJiNWY2ZWU5MDhlNWQ0NjEifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXNlcnZpY2VoZWFsdGgvLk93bEJvdC55YW1sIiwiaCI6ImYzNWJhMTE0MmY0ZTE2ODIyMjMyN2Q4OTJiNWY2ZWU5MDhlNWQ0NjEifQ== Copy-Tag: eyJwIjoic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2xCb3QueWFtbCIsImgiOiJmMzViYTExNDJmNGUxNjgyMjIzMjdkODkyYjVmNmVlOTA4ZTVkNDYxIn0=
1 parent df071a4 commit eed00f4

File tree

129 files changed

+22448
-1357
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+22448
-1357
lines changed

packages/google-cloud-security-publicca/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
4444
1. [Select or create a Cloud Platform project][projects].
4545
1. [Enable billing for your project][billing].
4646
1. [Enable the Public Certificate Authority API][enable_api].
47-
1. [Set up authentication][auth] so you can access the
47+
1. [Set up authentication with a service account][auth] so you can access the
4848
API from your local workstation.
4949

5050
### Installing the client library
@@ -180,4 +180,4 @@ See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
180180
[projects]: https://console.cloud.google.com/project
181181
[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
182182
[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=publicca.googleapis.com
183-
[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local
183+
[auth]: https://cloud.google.com/docs/authentication/getting-started

packages/google-cloud-security-publicca/protos/protos.json

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/google-cloud-security-publicca/src/v1/public_certificate_authority_service_client.ts

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import type {
2727

2828
import * as protos from '../../protos/protos';
2929
import jsonProtos = require('../../protos/protos.json');
30+
import {loggingUtils as logging} from 'google-gax';
3031

3132
/**
3233
* Client JSON configuration object, loaded from
@@ -53,6 +54,8 @@ export class PublicCertificateAuthorityServiceClient {
5354
private _defaults: {[method: string]: gax.CallSettings};
5455
private _universeDomain: string;
5556
private _servicePath: string;
57+
private _log = logging.log('publicca');
58+
5659
auth: gax.GoogleAuth;
5760
descriptors: Descriptors = {
5861
page: {},
@@ -87,7 +90,7 @@ export class PublicCertificateAuthorityServiceClient {
8790
* Developer's Console, e.g. 'grape-spaceship-123'. We will also check
8891
* the environment variable GCLOUD_PROJECT for your project ID. If your
8992
* app is running in an environment which supports
90-
* {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials},
93+
* {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials},
9194
* your project ID will be detected automatically.
9295
* @param {string} [options.apiEndpoint] - The domain name of the
9396
* API remote host.
@@ -480,11 +483,36 @@ export class PublicCertificateAuthorityServiceClient {
480483
parent: request.parent ?? '',
481484
});
482485
this.initialize();
483-
return this.innerApiCalls.createExternalAccountKey(
484-
request,
485-
options,
486-
callback
487-
);
486+
this._log.info('createExternalAccountKey request %j', request);
487+
const wrappedCallback:
488+
| Callback<
489+
protos.google.cloud.security.publicca.v1.IExternalAccountKey,
490+
| protos.google.cloud.security.publicca.v1.ICreateExternalAccountKeyRequest
491+
| null
492+
| undefined,
493+
{} | null | undefined
494+
>
495+
| undefined = callback
496+
? (error, response, options, rawResponse) => {
497+
this._log.info('createExternalAccountKey response %j', response);
498+
callback!(error, response, options, rawResponse); // We verified callback above.
499+
}
500+
: undefined;
501+
return this.innerApiCalls
502+
.createExternalAccountKey(request, options, wrappedCallback)
503+
?.then(
504+
([response, options, rawResponse]: [
505+
protos.google.cloud.security.publicca.v1.IExternalAccountKey,
506+
(
507+
| protos.google.cloud.security.publicca.v1.ICreateExternalAccountKeyRequest
508+
| undefined
509+
),
510+
{} | undefined,
511+
]) => {
512+
this._log.info('createExternalAccountKey response %j', response);
513+
return [response, options, rawResponse];
514+
}
515+
);
488516
}
489517

490518
// --------------------
@@ -620,6 +648,7 @@ export class PublicCertificateAuthorityServiceClient {
620648
close(): Promise<void> {
621649
if (this.publicCertificateAuthorityServiceStub && !this._terminated) {
622650
return this.publicCertificateAuthorityServiceStub.then(stub => {
651+
this._log.info('ending gRPC channel');
623652
this._terminated = true;
624653
stub.close();
625654
});

packages/google-cloud-security-publicca/src/v1beta1/public_certificate_authority_service_client.ts

Lines changed: 35 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import type {
2727

2828
import * as protos from '../../protos/protos';
2929
import jsonProtos = require('../../protos/protos.json');
30+
import {loggingUtils as logging} from 'google-gax';
3031

3132
/**
3233
* Client JSON configuration object, loaded from
@@ -53,6 +54,8 @@ export class PublicCertificateAuthorityServiceClient {
5354
private _defaults: {[method: string]: gax.CallSettings};
5455
private _universeDomain: string;
5556
private _servicePath: string;
57+
private _log = logging.log('publicca');
58+
5659
auth: gax.GoogleAuth;
5760
descriptors: Descriptors = {
5861
page: {},
@@ -87,7 +90,7 @@ export class PublicCertificateAuthorityServiceClient {
8790
* Developer's Console, e.g. 'grape-spaceship-123'. We will also check
8891
* the environment variable GCLOUD_PROJECT for your project ID. If your
8992
* app is running in an environment which supports
90-
* {@link https://developers.google.com/identity/protocols/application-default-credentials Application Default Credentials},
93+
* {@link https://cloud.google.com/docs/authentication/application-default-credentials Application Default Credentials},
9194
* your project ID will be detected automatically.
9295
* @param {string} [options.apiEndpoint] - The domain name of the
9396
* API remote host.
@@ -478,11 +481,36 @@ export class PublicCertificateAuthorityServiceClient {
478481
parent: request.parent ?? '',
479482
});
480483
this.initialize();
481-
return this.innerApiCalls.createExternalAccountKey(
482-
request,
483-
options,
484-
callback
485-
);
484+
this._log.info('createExternalAccountKey request %j', request);
485+
const wrappedCallback:
486+
| Callback<
487+
protos.google.cloud.security.publicca.v1beta1.IExternalAccountKey,
488+
| protos.google.cloud.security.publicca.v1beta1.ICreateExternalAccountKeyRequest
489+
| null
490+
| undefined,
491+
{} | null | undefined
492+
>
493+
| undefined = callback
494+
? (error, response, options, rawResponse) => {
495+
this._log.info('createExternalAccountKey response %j', response);
496+
callback!(error, response, options, rawResponse); // We verified callback above.
497+
}
498+
: undefined;
499+
return this.innerApiCalls
500+
.createExternalAccountKey(request, options, wrappedCallback)
501+
?.then(
502+
([response, options, rawResponse]: [
503+
protos.google.cloud.security.publicca.v1beta1.IExternalAccountKey,
504+
(
505+
| protos.google.cloud.security.publicca.v1beta1.ICreateExternalAccountKeyRequest
506+
| undefined
507+
),
508+
{} | undefined,
509+
]) => {
510+
this._log.info('createExternalAccountKey response %j', response);
511+
return [response, options, rawResponse];
512+
}
513+
);
486514
}
487515

488516
// --------------------
@@ -618,6 +646,7 @@ export class PublicCertificateAuthorityServiceClient {
618646
close(): Promise<void> {
619647
if (this.publicCertificateAuthorityServiceStub && !this._terminated) {
620648
return this.publicCertificateAuthorityServiceStub.then(stub => {
649+
this._log.info('ending gRPC channel');
621650
this._terminated = true;
622651
stub.close();
623652
});

packages/google-cloud-security-publicca/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,4 @@
1818
"src/**/*.json",
1919
"protos/protos.json"
2020
]
21-
}
21+
}

packages/google-cloud-securitycenter/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ Google APIs Client Libraries, in [Client Libraries Explained][explained].
4444
1. [Select or create a Cloud Platform project][projects].
4545
1. [Enable billing for your project][billing].
4646
1. [Enable the Google Cloud Security Command Center API][enable_api].
47-
1. [Set up authentication][auth] so you can access the
47+
1. [Set up authentication with a service account][auth] so you can access the
4848
API from your local workstation.
4949

5050
### Installing the client library
@@ -305,4 +305,4 @@ See [LICENSE](https://github.com/googleapis/google-cloud-node/blob/main/LICENSE)
305305
[projects]: https://console.cloud.google.com/project
306306
[billing]: https://support.google.com/cloud/answer/6293499#enable-billing
307307
[enable_api]: https://console.cloud.google.com/flows/enableapi?apiid=securitycenter.googleapis.com
308-
[auth]: https://cloud.google.com/docs/authentication/external/set-up-adc-local
308+
[auth]: https://cloud.google.com/docs/authentication/getting-started

packages/google-cloud-securitycenter/protos/protos.json

Lines changed: 0 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)