Skip to content

Commit 9dc5856

Browse files
fix: [Many APIs] finalize fixing typings for headers in generator (#6018)
* fix: finalize fixing typings for headers in generator PiperOrigin-RevId: 723563760 Source-Link: googleapis/googleapis@2f843e2 Source-Link: googleapis/googleapis-gen@cd0f9c6 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXBhcmFsbGVsc3RvcmUvLk93bEJvdC55YW1sIiwiaCI6ImNkMGY5YzZmZTFkZDc3YzU1MmVmNzY2ZTYwNDdmOGRjZmQzYmNjMmUifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXBvbGljeXNpbXVsYXRvci8uT3dsQm90LnlhbWwiLCJoIjoiY2QwZjljNmZlMWRkNzdjNTUyZWY3NjZlNjA0N2Y4ZGNmZDNiY2MyZSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXByaXZpbGVnZWRhY2Nlc3NtYW5hZ2VyLy5Pd2xCb3QueWFtbCIsImgiOiJjZDBmOWM2ZmUxZGQ3N2M1NTJlZjc2NmU2MDQ3ZjhkY2ZkM2JjYzJlIn0= Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJhcGlkbWlncmF0aW9uYXNzZXNzbWVudC8uT3dsQm90LnlhbWwiLCJoIjoiY2QwZjljNmZlMWRkNzdjNTUyZWY3NjZlNjA0N2Y4ZGNmZDNiY2MyZSJ9 Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJlZGlzLWNsdXN0ZXIvLk93bEJvdC55YW1sIiwiaCI6ImNkMGY5YzZmZTFkZDc3YzU1MmVmNzY2ZTYwNDdmOGRjZmQzYmNjMmUifQ== Copy-Tag: eyJwIjoicGFja2FnZXMvZ29vZ2xlLWNsb3VkLXJlZGlzLy5Pd2xCb3QueWFtbCIsImgiOiJjZDBmOWM2ZmUxZGQ3N2M1NTJlZjc2NmU2MDQ3ZjhkY2ZkM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https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 34bda26 commit 9dc5856

182 files changed

Lines changed: 7321 additions & 3842 deletions

File tree

Some content is hidden

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

packages/google-cloud-parallelstore/.jsdoc.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.
@@ -40,7 +40,7 @@ module.exports = {
4040
includePattern: '\\.js$'
4141
},
4242
templates: {
43-
copyright: 'Copyright 2024 Google LLC',
43+
copyright: 'Copyright 2025 Google LLC',
4444
includeDate: false,
4545
sourceFiles: false,
4646
systemName: '@google-cloud/parallelstore',

packages/google-cloud-parallelstore/samples/generated/v1beta/parallelstore.create_instance.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-parallelstore/samples/generated/v1beta/parallelstore.delete_instance.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-parallelstore/samples/generated/v1beta/parallelstore.export_data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-parallelstore/samples/generated/v1beta/parallelstore.get_instance.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-parallelstore/samples/generated/v1beta/parallelstore.import_data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-parallelstore/samples/generated/v1beta/parallelstore.list_instances.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-parallelstore/samples/generated/v1beta/parallelstore.update_instance.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

packages/google-cloud-parallelstore/src/v1/parallelstore_client.ts

Lines changed: 54 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1526,7 +1526,7 @@ export class ParallelstoreClient {
15261526
}
15271527

15281528
/**
1529-
* Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object.
1529+
* Equivalent to `listInstances`, but returns a NodeJS Stream object.
15301530
* @param {Object} request
15311531
* The request object that will be sent.
15321532
* @param {string} request.parent
@@ -1741,7 +1741,7 @@ export class ParallelstoreClient {
17411741
*/
17421742
getOperation(
17431743
request: protos.google.longrunning.GetOperationRequest,
1744-
options?:
1744+
optionsOrCallback?:
17451745
| gax.CallOptions
17461746
| Callback<
17471747
protos.google.longrunning.Operation,
@@ -1754,6 +1754,20 @@ export class ParallelstoreClient {
17541754
{} | null | undefined
17551755
>
17561756
): Promise<[protos.google.longrunning.Operation]> {
1757+
let options: gax.CallOptions;
1758+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
1759+
callback = optionsOrCallback;
1760+
options = {};
1761+
} else {
1762+
options = optionsOrCallback as gax.CallOptions;
1763+
}
1764+
options = options || {};
1765+
options.otherArgs = options.otherArgs || {};
1766+
options.otherArgs.headers = options.otherArgs.headers || {};
1767+
options.otherArgs.headers['x-goog-request-params'] =
1768+
this._gaxModule.routingHeader.fromParams({
1769+
name: request.name ?? '',
1770+
});
17571771
return this.operationsClient.getOperation(request, options, callback);
17581772
}
17591773
/**
@@ -1790,6 +1804,13 @@ export class ParallelstoreClient {
17901804
request: protos.google.longrunning.ListOperationsRequest,
17911805
options?: gax.CallOptions
17921806
): AsyncIterable<protos.google.longrunning.ListOperationsResponse> {
1807+
options = options || {};
1808+
options.otherArgs = options.otherArgs || {};
1809+
options.otherArgs.headers = options.otherArgs.headers || {};
1810+
options.otherArgs.headers['x-goog-request-params'] =
1811+
this._gaxModule.routingHeader.fromParams({
1812+
name: request.name ?? '',
1813+
});
17931814
return this.operationsClient.listOperationsAsync(request, options);
17941815
}
17951816
/**
@@ -1825,11 +1846,11 @@ export class ParallelstoreClient {
18251846
*/
18261847
cancelOperation(
18271848
request: protos.google.longrunning.CancelOperationRequest,
1828-
options?:
1849+
optionsOrCallback?:
18291850
| gax.CallOptions
18301851
| Callback<
1831-
protos.google.protobuf.Empty,
18321852
protos.google.longrunning.CancelOperationRequest,
1853+
protos.google.protobuf.Empty,
18331854
{} | undefined | null
18341855
>,
18351856
callback?: Callback<
@@ -1838,6 +1859,20 @@ export class ParallelstoreClient {
18381859
{} | undefined | null
18391860
>
18401861
): Promise<protos.google.protobuf.Empty> {
1862+
let options: gax.CallOptions;
1863+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
1864+
callback = optionsOrCallback;
1865+
options = {};
1866+
} else {
1867+
options = optionsOrCallback as gax.CallOptions;
1868+
}
1869+
options = options || {};
1870+
options.otherArgs = options.otherArgs || {};
1871+
options.otherArgs.headers = options.otherArgs.headers || {};
1872+
options.otherArgs.headers['x-goog-request-params'] =
1873+
this._gaxModule.routingHeader.fromParams({
1874+
name: request.name ?? '',
1875+
});
18411876
return this.operationsClient.cancelOperation(request, options, callback);
18421877
}
18431878

@@ -1868,7 +1903,7 @@ export class ParallelstoreClient {
18681903
*/
18691904
deleteOperation(
18701905
request: protos.google.longrunning.DeleteOperationRequest,
1871-
options?:
1906+
optionsOrCallback?:
18721907
| gax.CallOptions
18731908
| Callback<
18741909
protos.google.protobuf.Empty,
@@ -1881,6 +1916,20 @@ export class ParallelstoreClient {
18811916
{} | null | undefined
18821917
>
18831918
): Promise<protos.google.protobuf.Empty> {
1919+
let options: gax.CallOptions;
1920+
if (typeof optionsOrCallback === 'function' && callback === undefined) {
1921+
callback = optionsOrCallback;
1922+
options = {};
1923+
} else {
1924+
options = optionsOrCallback as gax.CallOptions;
1925+
}
1926+
options = options || {};
1927+
options.otherArgs = options.otherArgs || {};
1928+
options.otherArgs.headers = options.otherArgs.headers || {};
1929+
options.otherArgs.headers['x-goog-request-params'] =
1930+
this._gaxModule.routingHeader.fromParams({
1931+
name: request.name ?? '',
1932+
});
18841933
return this.operationsClient.deleteOperation(request, options, callback);
18851934
}
18861935

packages/google-cloud-parallelstore/src/v1beta/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2024 Google LLC
1+
// Copyright 2025 Google LLC
22
//
33
// Licensed under the Apache License, Version 2.0 (the "License");
44
// you may not use this file except in compliance with the License.

0 commit comments

Comments
 (0)