Skip to content

Commit d64bfb4

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

24 files changed

+402
-350
lines changed

packages/google-cloud-orchestration-airflow-service/samples/generated/v1/environments.create_environment.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main() {
2424
// [START composer_v1_generated_Environments_CreateEnvironment_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-orchestration-airflow-service/samples/generated/v1/environments.delete_environment.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main() {
2424
// [START composer_v1_generated_Environments_DeleteEnvironment_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-orchestration-airflow-service/samples/generated/v1/environments.get_environment.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main() {
2424
// [START composer_v1_generated_Environments_GetEnvironment_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-orchestration-airflow-service/samples/generated/v1/environments.list_environments.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main() {
2424
// [START composer_v1_generated_Environments_ListEnvironments_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-orchestration-airflow-service/samples/generated/v1/environments.update_environment.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main() {
2424
// [START composer_v1_generated_Environments_UpdateEnvironment_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-orchestration-airflow-service/samples/generated/v1/image_versions.list_image_versions.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main() {
2424
// [START composer_v1_generated_ImageVersions_ListImageVersions_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-orchestration-airflow-service/samples/generated/v1/snippet_metadata.google.cloud.orchestration.airflow.service.v1.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"segments": [
2323
{
2424
"start": 25,
25-
"end": 55,
25+
"end": 58,
2626
"type": "FULL"
2727
}
2828
],
@@ -66,7 +66,7 @@
6666
"segments": [
6767
{
6868
"start": 25,
69-
"end": 50,
69+
"end": 53,
7070
"type": "FULL"
7171
}
7272
],
@@ -106,7 +106,7 @@
106106
"segments": [
107107
{
108108
"start": 25,
109-
"end": 60,
109+
"end": 63,
110110
"type": "FULL"
111111
}
112112
],
@@ -154,7 +154,7 @@
154154
"segments": [
155155
{
156156
"start": 25,
157-
"end": 163,
157+
"end": 166,
158158
"type": "FULL"
159159
}
160160
],
@@ -202,7 +202,7 @@
202202
"segments": [
203203
{
204204
"start": 25,
205-
"end": 51,
205+
"end": 54,
206206
"type": "FULL"
207207
}
208208
],
@@ -242,7 +242,7 @@
242242
"segments": [
243243
{
244244
"start": 25,
245-
"end": 64,
245+
"end": 67,
246246
"type": "FULL"
247247
}
248248
],

packages/google-cloud-orchestration-airflow-service/samples/generated/v1beta1/environments.check_upgrade.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main() {
2424
// [START composer_v1beta1_generated_Environments_CheckUpgrade_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-orchestration-airflow-service/samples/generated/v1beta1/environments.create_environment.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main() {
2424
// [START composer_v1beta1_generated_Environments_CreateEnvironment_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-orchestration-airflow-service/samples/generated/v1beta1/environments.delete_environment.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main() {
2424
// [START composer_v1beta1_generated_Environments_DeleteEnvironment_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-orchestration-airflow-service/samples/generated/v1beta1/environments.get_environment.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main() {
2424
// [START composer_v1beta1_generated_Environments_GetEnvironment_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-orchestration-airflow-service/samples/generated/v1beta1/environments.list_environments.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main() {
2424
// [START composer_v1beta1_generated_Environments_ListEnvironments_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-orchestration-airflow-service/samples/generated/v1beta1/environments.restart_web_server.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main() {
2424
// [START composer_v1beta1_generated_Environments_RestartWebServer_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-orchestration-airflow-service/samples/generated/v1beta1/environments.update_environment.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main(updateMask) {
2424
// [START composer_v1beta1_generated_Environments_UpdateEnvironment_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-orchestration-airflow-service/samples/generated/v1beta1/image_versions.list_image_versions.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@
2323
function main() {
2424
// [START composer_v1beta1_generated_ImageVersions_ListImageVersions_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-orchestration-airflow-service/samples/generated/v1beta1/snippet_metadata.google.cloud.orchestration.airflow.service.v1beta1.json

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"segments": [
2323
{
2424
"start": 25,
25-
"end": 55,
25+
"end": 58,
2626
"type": "FULL"
2727
}
2828
],
@@ -66,7 +66,7 @@
6666
"segments": [
6767
{
6868
"start": 25,
69-
"end": 50,
69+
"end": 53,
7070
"type": "FULL"
7171
}
7272
],
@@ -106,7 +106,7 @@
106106
"segments": [
107107
{
108108
"start": 25,
109-
"end": 60,
109+
"end": 63,
110110
"type": "FULL"
111111
}
112112
],
@@ -154,7 +154,7 @@
154154
"segments": [
155155
{
156156
"start": 25,
157-
"end": 180,
157+
"end": 183,
158158
"type": "FULL"
159159
}
160160
],
@@ -202,7 +202,7 @@
202202
"segments": [
203203
{
204204
"start": 25,
205-
"end": 51,
205+
"end": 54,
206206
"type": "FULL"
207207
}
208208
],
@@ -242,7 +242,7 @@
242242
"segments": [
243243
{
244244
"start": 25,
245-
"end": 52,
245+
"end": 55,
246246
"type": "FULL"
247247
}
248248
],
@@ -282,7 +282,7 @@
282282
"segments": [
283283
{
284284
"start": 25,
285-
"end": 72,
285+
"end": 75,
286286
"type": "FULL"
287287
}
288288
],
@@ -326,7 +326,7 @@
326326
"segments": [
327327
{
328328
"start": 25,
329-
"end": 64,
329+
"end": 67,
330330
"type": "FULL"
331331
}
332332
],

packages/google-cloud-orchestration-airflow-service/src/v1/environments_client.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import {
3030
} from 'google-gax';
3131

3232
import {Transform} from 'stream';
33-
import {RequestType} from 'google-gax/build/src/apitypes';
3433
import * as protos from '../../protos/protos';
3534
import jsonProtos = require('../../protos/protos.json');
3635
/**
@@ -326,7 +325,8 @@ export class EnvironmentsClient {
326325
const apiCall = this._gaxModule.createApiCall(
327326
callPromise,
328327
this._defaults[methodName],
329-
descriptor
328+
descriptor,
329+
this._opts.fallback
330330
);
331331

332332
this.innerApiCalls[methodName] = apiCall;
@@ -620,7 +620,7 @@ export class EnvironmentsClient {
620620
const decodeOperation = new gax.Operation(
621621
operation,
622622
this.descriptors.longrunning.createEnvironment,
623-
gax.createDefaultBackoffSettings()
623+
this._gaxModule.createDefaultBackoffSettings()
624624
);
625625
return decodeOperation as LROperation<
626626
protos.google.cloud.orchestration.airflow.service.v1.Environment,
@@ -875,7 +875,7 @@ export class EnvironmentsClient {
875875
const decodeOperation = new gax.Operation(
876876
operation,
877877
this.descriptors.longrunning.updateEnvironment,
878-
gax.createDefaultBackoffSettings()
878+
this._gaxModule.createDefaultBackoffSettings()
879879
);
880880
return decodeOperation as LROperation<
881881
protos.google.cloud.orchestration.airflow.service.v1.Environment,
@@ -1013,7 +1013,7 @@ export class EnvironmentsClient {
10131013
const decodeOperation = new gax.Operation(
10141014
operation,
10151015
this.descriptors.longrunning.deleteEnvironment,
1016-
gax.createDefaultBackoffSettings()
1016+
this._gaxModule.createDefaultBackoffSettings()
10171017
);
10181018
return decodeOperation as LROperation<
10191019
protos.google.protobuf.Empty,
@@ -1159,7 +1159,7 @@ export class EnvironmentsClient {
11591159
const callSettings = defaultCallSettings.merge(options);
11601160
this.initialize();
11611161
return this.descriptors.page.listEnvironments.createStream(
1162-
this.innerApiCalls.listEnvironments as gax.GaxCall,
1162+
this.innerApiCalls.listEnvironments as GaxCall,
11631163
request,
11641164
callSettings
11651165
);
@@ -1208,7 +1208,7 @@ export class EnvironmentsClient {
12081208
this.initialize();
12091209
return this.descriptors.page.listEnvironments.asyncIterate(
12101210
this.innerApiCalls['listEnvironments'] as GaxCall,
1211-
request as unknown as RequestType,
1211+
request as {},
12121212
callSettings
12131213
) as AsyncIterable<protos.google.cloud.orchestration.airflow.service.v1.IEnvironment>;
12141214
}

packages/google-cloud-orchestration-airflow-service/src/v1/image_versions_client.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import {
2828
} from 'google-gax';
2929

3030
import {Transform} from 'stream';
31-
import {RequestType} from 'google-gax/build/src/apitypes';
3231
import * as protos from '../../protos/protos';
3332
import jsonProtos = require('../../protos/protos.json');
3433
/**
@@ -249,7 +248,8 @@ export class ImageVersionsClient {
249248
const apiCall = this._gaxModule.createApiCall(
250249
callPromise,
251250
this._defaults[methodName],
252-
descriptor
251+
descriptor,
252+
this._opts.fallback
253253
);
254254

255255
this.innerApiCalls[methodName] = apiCall;
@@ -455,7 +455,7 @@ export class ImageVersionsClient {
455455
const callSettings = defaultCallSettings.merge(options);
456456
this.initialize();
457457
return this.descriptors.page.listImageVersions.createStream(
458-
this.innerApiCalls.listImageVersions as gax.GaxCall,
458+
this.innerApiCalls.listImageVersions as GaxCall,
459459
request,
460460
callSettings
461461
);
@@ -506,7 +506,7 @@ export class ImageVersionsClient {
506506
this.initialize();
507507
return this.descriptors.page.listImageVersions.asyncIterate(
508508
this.innerApiCalls['listImageVersions'] as GaxCall,
509-
request as unknown as RequestType,
509+
request as {},
510510
callSettings
511511
) as AsyncIterable<protos.google.cloud.orchestration.airflow.service.v1.IImageVersion>;
512512
}

0 commit comments

Comments
 (0)