Skip to content

Commit ae9f928

Browse files
fix: better support for fallback mode (#543)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 468790263 Source-Link: googleapis/googleapis@873ab45 Source-Link: googleapis/googleapis-gen@cb6f37a Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiY2I2ZjM3YWVmZjJhMzQ3MmU0MGE3YmJhY2U4YzY3ZDc1ZTI0YmVlNSJ9
1 parent 4fdd593 commit ae9f928

18 files changed

+214
-172
lines changed

packages/google-cloud-oslogin/samples/generated/v1/os_login_service.delete_posix_account.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START oslogin_v1_generated_OsLoginService_DeletePosixAccount_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-oslogin/samples/generated/v1/os_login_service.delete_ssh_public_key.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START oslogin_v1_generated_OsLoginService_DeleteSshPublicKey_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-oslogin/samples/generated/v1/os_login_service.get_login_profile.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START oslogin_v1_generated_OsLoginService_GetLoginProfile_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-oslogin/samples/generated/v1/os_login_service.get_ssh_public_key.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START oslogin_v1_generated_OsLoginService_GetSshPublicKey_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-oslogin/samples/generated/v1/os_login_service.import_ssh_public_key.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(parent) {
2424
// [START oslogin_v1_generated_OsLoginService_ImportSshPublicKey_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-oslogin/samples/generated/v1/os_login_service.update_ssh_public_key.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name, sshPublicKey) {
2424
// [START oslogin_v1_generated_OsLoginService_UpdateSshPublicKey_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-oslogin/samples/generated/v1/snippet_metadata.google.cloud.oslogin.v1.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"segments": [
2323
{
2424
"start": 25,
25-
"end": 52,
25+
"end": 55,
2626
"type": "FULL"
2727
}
2828
],
@@ -62,7 +62,7 @@
6262
"segments": [
6363
{
6464
"start": 25,
65-
"end": 52,
65+
"end": 55,
6666
"type": "FULL"
6767
}
6868
],
@@ -102,7 +102,7 @@
102102
"segments": [
103103
{
104104
"start": 25,
105-
"end": 58,
105+
"end": 61,
106106
"type": "FULL"
107107
}
108108
],
@@ -150,7 +150,7 @@
150150
"segments": [
151151
{
152152
"start": 25,
153-
"end": 52,
153+
"end": 55,
154154
"type": "FULL"
155155
}
156156
],
@@ -190,7 +190,7 @@
190190
"segments": [
191191
{
192192
"start": 25,
193-
"end": 58,
193+
"end": 61,
194194
"type": "FULL"
195195
}
196196
],
@@ -238,7 +238,7 @@
238238
"segments": [
239239
{
240240
"start": 25,
241-
"end": 61,
241+
"end": 64,
242242
"type": "FULL"
243243
}
244244
],

packages/google-cloud-oslogin/samples/generated/v1beta/os_login_service.delete_posix_account.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START oslogin_v1beta_generated_OsLoginService_DeletePosixAccount_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-oslogin/samples/generated/v1beta/os_login_service.delete_ssh_public_key.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START oslogin_v1beta_generated_OsLoginService_DeleteSshPublicKey_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-oslogin/samples/generated/v1beta/os_login_service.get_login_profile.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START oslogin_v1beta_generated_OsLoginService_GetLoginProfile_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-oslogin/samples/generated/v1beta/os_login_service.get_ssh_public_key.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name) {
2424
// [START oslogin_v1beta_generated_OsLoginService_GetSshPublicKey_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-oslogin/samples/generated/v1beta/os_login_service.import_ssh_public_key.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(sshPublicKey) {
2424
// [START oslogin_v1beta_generated_OsLoginService_ImportSshPublicKey_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-oslogin/samples/generated/v1beta/os_login_service.update_ssh_public_key.js

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(name, sshPublicKey) {
2424
// [START oslogin_v1beta_generated_OsLoginService_UpdateSshPublicKey_async]
2525
/**
26+
* This snippet has been automatically generated and should be regarded as a code template only.
27+
* It will require modifications to work.
28+
* It may require correct/in-range values for request initialization.
2629
* TODO(developer): Uncomment these variables before running the sample.
2730
*/
2831
/**

packages/google-cloud-oslogin/samples/generated/v1beta/snippet_metadata.google.cloud.oslogin.v1beta.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"segments": [
2323
{
2424
"start": 25,
25-
"end": 52,
25+
"end": 55,
2626
"type": "FULL"
2727
}
2828
],
@@ -62,7 +62,7 @@
6262
"segments": [
6363
{
6464
"start": 25,
65-
"end": 52,
65+
"end": 55,
6666
"type": "FULL"
6767
}
6868
],
@@ -102,7 +102,7 @@
102102
"segments": [
103103
{
104104
"start": 25,
105-
"end": 58,
105+
"end": 61,
106106
"type": "FULL"
107107
}
108108
],
@@ -150,7 +150,7 @@
150150
"segments": [
151151
{
152152
"start": 25,
153-
"end": 52,
153+
"end": 55,
154154
"type": "FULL"
155155
}
156156
],
@@ -190,7 +190,7 @@
190190
"segments": [
191191
{
192192
"start": 25,
193-
"end": 58,
193+
"end": 61,
194194
"type": "FULL"
195195
}
196196
],
@@ -238,7 +238,7 @@
238238
"segments": [
239239
{
240240
"start": 25,
241-
"end": 61,
241+
"end": 64,
242242
"type": "FULL"
243243
}
244244
],

packages/google-cloud-oslogin/src/v1/os_login_service_client.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@ export class OsLoginServiceClient {
242242
const apiCall = this._gaxModule.createApiCall(
243243
callPromise,
244244
this._defaults[methodName],
245-
descriptor
245+
descriptor,
246+
this._opts.fallback
246247
);
247248

248249
this.innerApiCalls[methodName] = apiCall;

packages/google-cloud-oslogin/src/v1beta/os_login_service_client.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,8 @@ export class OsLoginServiceClient {
242242
const apiCall = this._gaxModule.createApiCall(
243243
callPromise,
244244
this._defaults[methodName],
245-
descriptor
245+
descriptor,
246+
this._opts.fallback
246247
);
247248

248249
this.innerApiCalls[methodName] = apiCall;

0 commit comments

Comments
 (0)