diff --git a/src/v1/accelerator_types_client.ts b/src/v1/accelerator_types_client.ts index 96859f8a..046945e6 100644 --- a/src/v1/accelerator_types_client.ts +++ b/src/v1/accelerator_types_client.ts @@ -407,6 +407,8 @@ export class AcceleratorTypesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + accelerator_type: request.acceleratorType || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -566,6 +568,7 @@ export class AcceleratorTypesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -612,6 +615,7 @@ export class AcceleratorTypesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -667,6 +671,7 @@ export class AcceleratorTypesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/addresses_client.ts b/src/v1/addresses_client.ts index b39b42c3..1615bb6a 100644 --- a/src/v1/addresses_client.ts +++ b/src/v1/addresses_client.ts @@ -411,6 +411,8 @@ export class AddressesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + address: request.address || '', }); this.initialize(); return this.innerApiCalls @@ -518,6 +520,8 @@ export class AddressesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + address: request.address || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -614,6 +618,7 @@ export class AddressesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -791,6 +796,7 @@ export class AddressesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -837,6 +843,7 @@ export class AddressesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -892,6 +899,7 @@ export class AddressesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/autoscalers_client.ts b/src/v1/autoscalers_client.ts index e600124d..025ed67a 100644 --- a/src/v1/autoscalers_client.ts +++ b/src/v1/autoscalers_client.ts @@ -419,6 +419,8 @@ export class AutoscalersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + autoscaler: request.autoscaler || '', }); this.initialize(); return this.innerApiCalls @@ -528,6 +530,8 @@ export class AutoscalersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + autoscaler: request.autoscaler || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -630,6 +634,7 @@ export class AutoscalersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls @@ -748,6 +753,7 @@ export class AutoscalersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls @@ -872,6 +878,7 @@ export class AutoscalersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls @@ -1049,6 +1056,7 @@ export class AutoscalersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -1095,6 +1103,7 @@ export class AutoscalersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -1150,6 +1159,7 @@ export class AutoscalersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/backend_buckets_client.ts b/src/v1/backend_buckets_client.ts index f8976fd9..86599aa2 100644 --- a/src/v1/backend_buckets_client.ts +++ b/src/v1/backend_buckets_client.ts @@ -416,6 +416,7 @@ export class BackendBucketsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + backend_bucket: request.backendBucket || '', }); this.initialize(); return this.innerApiCalls @@ -536,6 +537,7 @@ export class BackendBucketsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + backend_bucket: request.backendBucket || '', }); this.initialize(); return this.innerApiCalls @@ -658,6 +660,7 @@ export class BackendBucketsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + backend_bucket: request.backendBucket || '', }); this.initialize(); return this.innerApiCalls @@ -771,6 +774,7 @@ export class BackendBucketsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + backend_bucket: request.backendBucket || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -993,6 +997,7 @@ export class BackendBucketsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + backend_bucket: request.backendBucket || '', }); this.initialize(); return this.innerApiCalls @@ -1115,6 +1120,7 @@ export class BackendBucketsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + backend_bucket: request.backendBucket || '', }); this.initialize(); return this.innerApiCalls @@ -1237,6 +1243,7 @@ export class BackendBucketsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + backend_bucket: request.backendBucket || '', }); this.initialize(); return this.innerApiCalls diff --git a/src/v1/backend_services_client.ts b/src/v1/backend_services_client.ts index 5e89f765..1700cab2 100644 --- a/src/v1/backend_services_client.ts +++ b/src/v1/backend_services_client.ts @@ -424,6 +424,7 @@ export class BackendServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + backend_service: request.backendService || '', }); this.initialize(); return this.innerApiCalls @@ -544,6 +545,7 @@ export class BackendServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + backend_service: request.backendService || '', }); this.initialize(); return this.innerApiCalls @@ -666,6 +668,7 @@ export class BackendServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + backend_service: request.backendService || '', }); this.initialize(); return this.innerApiCalls @@ -779,6 +782,7 @@ export class BackendServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + backend_service: request.backendService || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -879,6 +883,7 @@ export class BackendServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + backend_service: request.backendService || '', }); this.initialize(); return this.innerApiCalls.getHealth(request, options, callback); @@ -1101,6 +1106,7 @@ export class BackendServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + backend_service: request.backendService || '', }); this.initialize(); return this.innerApiCalls @@ -1223,6 +1229,7 @@ export class BackendServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + backend_service: request.backendService || '', }); this.initialize(); return this.innerApiCalls @@ -1345,6 +1352,7 @@ export class BackendServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + backend_service: request.backendService || '', }); this.initialize(); return this.innerApiCalls @@ -1467,6 +1475,7 @@ export class BackendServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + backend_service: request.backendService || '', }); this.initialize(); return this.innerApiCalls diff --git a/src/v1/disk_types_client.ts b/src/v1/disk_types_client.ts index 389428af..927c0771 100644 --- a/src/v1/disk_types_client.ts +++ b/src/v1/disk_types_client.ts @@ -396,6 +396,8 @@ export class DiskTypesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + disk_type: request.diskType || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -553,6 +555,7 @@ export class DiskTypesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -599,6 +602,7 @@ export class DiskTypesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -654,6 +658,7 @@ export class DiskTypesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/disks_client.ts b/src/v1/disks_client.ts index 588a8124..2d48b938 100644 --- a/src/v1/disks_client.ts +++ b/src/v1/disks_client.ts @@ -427,6 +427,8 @@ export class DisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + disk: request.disk || '', }); this.initialize(); return this.innerApiCalls @@ -553,6 +555,8 @@ export class DisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + disk: request.disk || '', }); this.initialize(); return this.innerApiCalls @@ -667,6 +671,8 @@ export class DisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + disk: request.disk || '', }); this.initialize(); return this.innerApiCalls @@ -774,6 +780,8 @@ export class DisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + disk: request.disk || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -871,6 +879,8 @@ export class DisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.getIamPolicy(request, options, callback); @@ -967,6 +977,7 @@ export class DisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls @@ -1091,6 +1102,8 @@ export class DisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + disk: request.disk || '', }); this.initialize(); return this.innerApiCalls @@ -1207,6 +1220,8 @@ export class DisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + disk: request.disk || '', }); this.initialize(); return this.innerApiCalls @@ -1324,6 +1339,8 @@ export class DisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.setIamPolicy(request, options, callback); @@ -1422,6 +1439,8 @@ export class DisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls @@ -1539,6 +1558,8 @@ export class DisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.testIamPermissions(request, options, callback); @@ -1694,6 +1715,7 @@ export class DisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -1740,6 +1762,7 @@ export class DisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -1795,6 +1818,7 @@ export class DisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/external_vpn_gateways_client.ts b/src/v1/external_vpn_gateways_client.ts index 9e0f8f20..f365e76c 100644 --- a/src/v1/external_vpn_gateways_client.ts +++ b/src/v1/external_vpn_gateways_client.ts @@ -411,6 +411,7 @@ export class ExternalVpnGatewaysClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + external_vpn_gateway: request.externalVpnGateway || '', }); this.initialize(); return this.innerApiCalls @@ -524,6 +525,7 @@ export class ExternalVpnGatewaysClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + external_vpn_gateway: request.externalVpnGateway || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -744,6 +746,7 @@ export class ExternalVpnGatewaysClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls @@ -865,6 +868,7 @@ export class ExternalVpnGatewaysClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.testIamPermissions(request, options, callback); diff --git a/src/v1/firewalls_client.ts b/src/v1/firewalls_client.ts index 468e8a0c..99a52629 100644 --- a/src/v1/firewalls_client.ts +++ b/src/v1/firewalls_client.ts @@ -405,6 +405,7 @@ export class FirewallsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + firewall: request.firewall || '', }); this.initialize(); return this.innerApiCalls @@ -510,6 +511,7 @@ export class FirewallsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + firewall: request.firewall || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -720,6 +722,7 @@ export class FirewallsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + firewall: request.firewall || '', }); this.initialize(); return this.innerApiCalls @@ -836,6 +839,7 @@ export class FirewallsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + firewall: request.firewall || '', }); this.initialize(); return this.innerApiCalls diff --git a/src/v1/forwarding_rules_client.ts b/src/v1/forwarding_rules_client.ts index f5d14d86..46a82178 100644 --- a/src/v1/forwarding_rules_client.ts +++ b/src/v1/forwarding_rules_client.ts @@ -420,6 +420,8 @@ export class ForwardingRulesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + forwarding_rule: request.forwardingRule || '', }); this.initialize(); return this.innerApiCalls @@ -535,6 +537,8 @@ export class ForwardingRulesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + forwarding_rule: request.forwardingRule || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -637,6 +641,7 @@ export class ForwardingRulesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -761,6 +766,8 @@ export class ForwardingRulesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + forwarding_rule: request.forwardingRule || '', }); this.initialize(); return this.innerApiCalls @@ -885,6 +892,8 @@ export class ForwardingRulesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls @@ -1009,6 +1018,8 @@ export class ForwardingRulesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + forwarding_rule: request.forwardingRule || '', }); this.initialize(); return this.innerApiCalls @@ -1186,6 +1197,7 @@ export class ForwardingRulesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -1232,6 +1244,7 @@ export class ForwardingRulesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -1287,6 +1300,7 @@ export class ForwardingRulesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/global_addresses_client.ts b/src/v1/global_addresses_client.ts index c2369b30..bad23216 100644 --- a/src/v1/global_addresses_client.ts +++ b/src/v1/global_addresses_client.ts @@ -404,6 +404,7 @@ export class GlobalAddressesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + address: request.address || '', }); this.initialize(); return this.innerApiCalls @@ -517,6 +518,7 @@ export class GlobalAddressesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + address: request.address || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); diff --git a/src/v1/global_forwarding_rules_client.ts b/src/v1/global_forwarding_rules_client.ts index 12d0d5a4..1cb51ce0 100644 --- a/src/v1/global_forwarding_rules_client.ts +++ b/src/v1/global_forwarding_rules_client.ts @@ -413,6 +413,7 @@ export class GlobalForwardingRulesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + forwarding_rule: request.forwardingRule || '', }); this.initialize(); return this.innerApiCalls @@ -532,6 +533,7 @@ export class GlobalForwardingRulesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + forwarding_rule: request.forwardingRule || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -754,6 +756,7 @@ export class GlobalForwardingRulesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + forwarding_rule: request.forwardingRule || '', }); this.initialize(); return this.innerApiCalls @@ -874,6 +877,7 @@ export class GlobalForwardingRulesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls @@ -996,6 +1000,7 @@ export class GlobalForwardingRulesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + forwarding_rule: request.forwardingRule || '', }); this.initialize(); return this.innerApiCalls diff --git a/src/v1/global_network_endpoint_groups_client.ts b/src/v1/global_network_endpoint_groups_client.ts index 079dc333..2411586e 100644 --- a/src/v1/global_network_endpoint_groups_client.ts +++ b/src/v1/global_network_endpoint_groups_client.ts @@ -421,6 +421,7 @@ export class GlobalNetworkEndpointGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + network_endpoint_group: request.networkEndpointGroup || '', }); this.initialize(); return this.innerApiCalls @@ -541,6 +542,7 @@ export class GlobalNetworkEndpointGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + network_endpoint_group: request.networkEndpointGroup || '', }); this.initialize(); return this.innerApiCalls @@ -663,6 +665,7 @@ export class GlobalNetworkEndpointGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + network_endpoint_group: request.networkEndpointGroup || '', }); this.initialize(); return this.innerApiCalls @@ -782,6 +785,7 @@ export class GlobalNetworkEndpointGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + network_endpoint_group: request.networkEndpointGroup || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -1216,6 +1220,7 @@ export class GlobalNetworkEndpointGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + network_endpoint_group: request.networkEndpointGroup || '', }); this.initialize(); return this.innerApiCalls.listNetworkEndpoints(request, options, callback); @@ -1262,6 +1267,7 @@ export class GlobalNetworkEndpointGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + network_endpoint_group: request.networkEndpointGroup || '', }); const defaultCallSettings = this._defaults['listNetworkEndpoints']; const callSettings = defaultCallSettings.merge(options); @@ -1317,6 +1323,7 @@ export class GlobalNetworkEndpointGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + network_endpoint_group: request.networkEndpointGroup || '', }); const defaultCallSettings = this._defaults['listNetworkEndpoints']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/global_operations_client.ts b/src/v1/global_operations_client.ts index c7f2af71..86e1cef3 100644 --- a/src/v1/global_operations_client.ts +++ b/src/v1/global_operations_client.ts @@ -407,6 +407,7 @@ export class GlobalOperationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + operation: request.operation || '', }); this.initialize(); return this.innerApiCalls.delete(request, options, callback); @@ -500,6 +501,7 @@ export class GlobalOperationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + operation: request.operation || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -593,6 +595,7 @@ export class GlobalOperationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + operation: request.operation || '', }); this.initialize(); return this.innerApiCalls.wait(request, options, callback); diff --git a/src/v1/global_public_delegated_prefixes_client.ts b/src/v1/global_public_delegated_prefixes_client.ts index 5364b93c..7d8970de 100644 --- a/src/v1/global_public_delegated_prefixes_client.ts +++ b/src/v1/global_public_delegated_prefixes_client.ts @@ -412,6 +412,7 @@ export class GlobalPublicDelegatedPrefixesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + public_delegated_prefix: request.publicDelegatedPrefix || '', }); this.initialize(); return this.innerApiCalls @@ -531,6 +532,7 @@ export class GlobalPublicDelegatedPrefixesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + public_delegated_prefix: request.publicDelegatedPrefix || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -753,6 +755,7 @@ export class GlobalPublicDelegatedPrefixesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + public_delegated_prefix: request.publicDelegatedPrefix || '', }); this.initialize(); return this.innerApiCalls diff --git a/src/v1/health_checks_client.ts b/src/v1/health_checks_client.ts index 1d3055a8..651399e6 100644 --- a/src/v1/health_checks_client.ts +++ b/src/v1/health_checks_client.ts @@ -417,6 +417,7 @@ export class HealthChecksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + health_check: request.healthCheck || '', }); this.initialize(); return this.innerApiCalls @@ -524,6 +525,7 @@ export class HealthChecksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + health_check: request.healthCheck || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -746,6 +748,7 @@ export class HealthChecksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + health_check: request.healthCheck || '', }); this.initialize(); return this.innerApiCalls @@ -868,6 +871,7 @@ export class HealthChecksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + health_check: request.healthCheck || '', }); this.initialize(); return this.innerApiCalls diff --git a/src/v1/image_family_views_client.ts b/src/v1/image_family_views_client.ts index 3b00547e..6af76785 100644 --- a/src/v1/image_family_views_client.ts +++ b/src/v1/image_family_views_client.ts @@ -379,6 +379,8 @@ export class ImageFamilyViewsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + family: request.family || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); diff --git a/src/v1/images_client.ts b/src/v1/images_client.ts index 032c01d1..50789f37 100644 --- a/src/v1/images_client.ts +++ b/src/v1/images_client.ts @@ -408,6 +408,7 @@ export class ImagesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + image: request.image || '', }); this.initialize(); return this.innerApiCalls @@ -524,6 +525,7 @@ export class ImagesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + image: request.image || '', }); this.initialize(); return this.innerApiCalls @@ -629,6 +631,7 @@ export class ImagesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + image: request.image || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -722,6 +725,7 @@ export class ImagesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + family: request.family || '', }); this.initialize(); return this.innerApiCalls.getFromFamily(request, options, callback); @@ -817,6 +821,7 @@ export class ImagesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.getIamPolicy(request, options, callback); @@ -1025,6 +1030,7 @@ export class ImagesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + image: request.image || '', }); this.initialize(); return this.innerApiCalls @@ -1140,6 +1146,7 @@ export class ImagesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.setIamPolicy(request, options, callback); @@ -1234,6 +1241,7 @@ export class ImagesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls @@ -1355,6 +1363,7 @@ export class ImagesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.testIamPermissions(request, options, callback); diff --git a/src/v1/instance_group_managers_client.ts b/src/v1/instance_group_managers_client.ts index 329e150d..d6e8f2ff 100644 --- a/src/v1/instance_group_managers_client.ts +++ b/src/v1/instance_group_managers_client.ts @@ -450,6 +450,8 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls @@ -572,6 +574,8 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls @@ -696,6 +700,8 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls @@ -818,6 +824,8 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls @@ -942,6 +950,8 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls @@ -1064,6 +1074,8 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls @@ -1185,6 +1197,8 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -1287,6 +1301,7 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls @@ -1411,6 +1426,8 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls @@ -1535,6 +1552,8 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls @@ -1659,6 +1678,8 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls @@ -1783,6 +1804,8 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls @@ -1907,6 +1930,8 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls @@ -2031,6 +2056,8 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls @@ -2155,6 +2182,8 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls @@ -2340,6 +2369,7 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -2386,6 +2416,7 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -2441,6 +2472,7 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -2555,6 +2587,8 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls.listErrors(request, options, callback); @@ -2603,6 +2637,8 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group_manager: request.instanceGroupManager || '', }); const defaultCallSettings = this._defaults['listErrors']; const callSettings = defaultCallSettings.merge(options); @@ -2660,6 +2696,8 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group_manager: request.instanceGroupManager || '', }); const defaultCallSettings = this._defaults['listErrors']; const callSettings = defaultCallSettings.merge(options); @@ -2774,6 +2812,8 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls.listManagedInstances(request, options, callback); @@ -2822,6 +2862,8 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group_manager: request.instanceGroupManager || '', }); const defaultCallSettings = this._defaults['listManagedInstances']; const callSettings = defaultCallSettings.merge(options); @@ -2879,6 +2921,8 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group_manager: request.instanceGroupManager || '', }); const defaultCallSettings = this._defaults['listManagedInstances']; const callSettings = defaultCallSettings.merge(options); @@ -2993,6 +3037,8 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls.listPerInstanceConfigs( @@ -3045,6 +3091,8 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group_manager: request.instanceGroupManager || '', }); const defaultCallSettings = this._defaults['listPerInstanceConfigs']; const callSettings = defaultCallSettings.merge(options); @@ -3102,6 +3150,8 @@ export class InstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group_manager: request.instanceGroupManager || '', }); const defaultCallSettings = this._defaults['listPerInstanceConfigs']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/instance_groups_client.ts b/src/v1/instance_groups_client.ts index c3049abd..0231f89f 100644 --- a/src/v1/instance_groups_client.ts +++ b/src/v1/instance_groups_client.ts @@ -428,6 +428,8 @@ export class InstanceGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group: request.instanceGroup || '', }); this.initialize(); return this.innerApiCalls @@ -550,6 +552,8 @@ export class InstanceGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group: request.instanceGroup || '', }); this.initialize(); return this.innerApiCalls @@ -665,6 +669,8 @@ export class InstanceGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group: request.instanceGroup || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -767,6 +773,7 @@ export class InstanceGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls @@ -891,6 +898,8 @@ export class InstanceGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group: request.instanceGroup || '', }); this.initialize(); return this.innerApiCalls @@ -1015,6 +1024,8 @@ export class InstanceGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group: request.instanceGroup || '', }); this.initialize(); return this.innerApiCalls @@ -1192,6 +1203,7 @@ export class InstanceGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -1238,6 +1250,7 @@ export class InstanceGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -1293,6 +1306,7 @@ export class InstanceGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -1409,6 +1423,8 @@ export class InstanceGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group: request.instanceGroup || '', }); this.initialize(); return this.innerApiCalls.listInstances(request, options, callback); @@ -1459,6 +1475,8 @@ export class InstanceGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group: request.instanceGroup || '', }); const defaultCallSettings = this._defaults['listInstances']; const callSettings = defaultCallSettings.merge(options); @@ -1518,6 +1536,8 @@ export class InstanceGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance_group: request.instanceGroup || '', }); const defaultCallSettings = this._defaults['listInstances']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/instance_templates_client.ts b/src/v1/instance_templates_client.ts index bc11f774..294f88fe 100644 --- a/src/v1/instance_templates_client.ts +++ b/src/v1/instance_templates_client.ts @@ -412,6 +412,7 @@ export class InstanceTemplatesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + instance_template: request.instanceTemplate || '', }); this.initialize(); return this.innerApiCalls @@ -525,6 +526,7 @@ export class InstanceTemplatesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + instance_template: request.instanceTemplate || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -626,6 +628,7 @@ export class InstanceTemplatesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.getIamPolicy(request, options, callback); @@ -847,6 +850,7 @@ export class InstanceTemplatesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.setIamPolicy(request, options, callback); @@ -948,6 +952,7 @@ export class InstanceTemplatesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.testIamPermissions(request, options, callback); diff --git a/src/v1/instances_client.ts b/src/v1/instances_client.ts index 129cadb7..3ed5ceff 100644 --- a/src/v1/instances_client.ts +++ b/src/v1/instances_client.ts @@ -466,6 +466,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -590,6 +592,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -716,6 +720,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -838,6 +844,7 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls @@ -954,6 +961,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -1080,6 +1089,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -1204,6 +1215,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -1311,6 +1324,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -1414,6 +1429,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls.getEffectiveFirewalls(request, options, callback); @@ -1519,6 +1536,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls.getGuestAttributes(request, options, callback); @@ -1616,6 +1635,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.getIamPolicy(request, options, callback); @@ -1711,6 +1732,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls.getScreenshot(request, options, callback); @@ -1816,6 +1839,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls.getSerialPortOutput(request, options, callback); @@ -1917,6 +1942,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls.getShieldedInstanceIdentity( @@ -2021,6 +2048,7 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls @@ -2145,6 +2173,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -2261,6 +2291,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -2377,6 +2409,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -2498,6 +2532,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls.sendDiagnosticInterrupt( @@ -2606,6 +2642,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls @@ -2732,6 +2770,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -2849,6 +2889,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.setIamPolicy(request, options, callback); @@ -2953,6 +2995,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -3077,6 +3121,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -3201,6 +3247,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -3325,6 +3373,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -3449,6 +3499,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -3573,6 +3625,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -3697,6 +3751,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -3821,6 +3877,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -3939,6 +3997,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -4059,6 +4119,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -4175,6 +4237,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -4299,6 +4363,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -4415,6 +4481,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -4531,6 +4599,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -4654,6 +4724,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.testIamPermissions(request, options, callback); @@ -4758,6 +4830,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -4884,6 +4958,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -5008,6 +5084,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -5134,6 +5212,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -5258,6 +5338,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls @@ -5435,6 +5517,7 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -5481,6 +5564,7 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -5536,6 +5620,7 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -5644,6 +5729,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); this.initialize(); return this.innerApiCalls.listReferrers(request, options, callback); @@ -5692,6 +5779,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); const defaultCallSettings = this._defaults['listReferrers']; const callSettings = defaultCallSettings.merge(options); @@ -5749,6 +5838,8 @@ export class InstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + instance: request.instance || '', }); const defaultCallSettings = this._defaults['listReferrers']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/interconnect_attachments_client.ts b/src/v1/interconnect_attachments_client.ts index f10653a2..245ee893 100644 --- a/src/v1/interconnect_attachments_client.ts +++ b/src/v1/interconnect_attachments_client.ts @@ -419,6 +419,8 @@ export class InterconnectAttachmentsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + interconnect_attachment: request.interconnectAttachment || '', }); this.initialize(); return this.innerApiCalls @@ -540,6 +542,8 @@ export class InterconnectAttachmentsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + interconnect_attachment: request.interconnectAttachment || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -644,6 +648,7 @@ export class InterconnectAttachmentsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -768,6 +773,8 @@ export class InterconnectAttachmentsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + interconnect_attachment: request.interconnectAttachment || '', }); this.initialize(); return this.innerApiCalls @@ -956,6 +963,7 @@ export class InterconnectAttachmentsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -1002,6 +1010,7 @@ export class InterconnectAttachmentsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -1057,6 +1066,7 @@ export class InterconnectAttachmentsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/interconnect_locations_client.ts b/src/v1/interconnect_locations_client.ts index 1a8e8206..b4a7e853 100644 --- a/src/v1/interconnect_locations_client.ts +++ b/src/v1/interconnect_locations_client.ts @@ -404,6 +404,7 @@ export class InterconnectLocationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + interconnect_location: request.interconnectLocation || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); diff --git a/src/v1/interconnects_client.ts b/src/v1/interconnects_client.ts index 9bb7a0f9..d74d245e 100644 --- a/src/v1/interconnects_client.ts +++ b/src/v1/interconnects_client.ts @@ -411,6 +411,7 @@ export class InterconnectsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + interconnect: request.interconnect || '', }); this.initialize(); return this.innerApiCalls @@ -518,6 +519,7 @@ export class InterconnectsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + interconnect: request.interconnect || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -617,6 +619,7 @@ export class InterconnectsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + interconnect: request.interconnect || '', }); this.initialize(); return this.innerApiCalls.getDiagnostics(request, options, callback); @@ -839,6 +842,7 @@ export class InterconnectsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + interconnect: request.interconnect || '', }); this.initialize(); return this.innerApiCalls diff --git a/src/v1/license_codes_client.ts b/src/v1/license_codes_client.ts index c3d97c3c..49086db3 100644 --- a/src/v1/license_codes_client.ts +++ b/src/v1/license_codes_client.ts @@ -371,6 +371,7 @@ export class LicenseCodesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + license_code: request.licenseCode || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -472,6 +473,7 @@ export class LicenseCodesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.testIamPermissions(request, options, callback); diff --git a/src/v1/licenses_client.ts b/src/v1/licenses_client.ts index b51da89c..0e9e59f0 100644 --- a/src/v1/licenses_client.ts +++ b/src/v1/licenses_client.ts @@ -406,6 +406,7 @@ export class LicensesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + license: request.license || '', }); this.initialize(); return this.innerApiCalls @@ -511,6 +512,7 @@ export class LicensesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + license: request.license || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -606,6 +608,7 @@ export class LicensesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.getIamPolicy(request, options, callback); @@ -815,6 +818,7 @@ export class LicensesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.setIamPolicy(request, options, callback); @@ -916,6 +920,7 @@ export class LicensesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.testIamPermissions(request, options, callback); diff --git a/src/v1/machine_images_client.ts b/src/v1/machine_images_client.ts index c10e3a93..55d30774 100644 --- a/src/v1/machine_images_client.ts +++ b/src/v1/machine_images_client.ts @@ -412,6 +412,7 @@ export class MachineImagesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + machine_image: request.machineImage || '', }); this.initialize(); return this.innerApiCalls @@ -519,6 +520,7 @@ export class MachineImagesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + machine_image: request.machineImage || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -620,6 +622,7 @@ export class MachineImagesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.getIamPolicy(request, options, callback); @@ -843,6 +846,7 @@ export class MachineImagesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.setIamPolicy(request, options, callback); @@ -944,6 +948,7 @@ export class MachineImagesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.testIamPermissions(request, options, callback); diff --git a/src/v1/machine_types_client.ts b/src/v1/machine_types_client.ts index ad082f82..80f91354 100644 --- a/src/v1/machine_types_client.ts +++ b/src/v1/machine_types_client.ts @@ -398,6 +398,8 @@ export class MachineTypesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + machine_type: request.machineType || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -555,6 +557,7 @@ export class MachineTypesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -601,6 +604,7 @@ export class MachineTypesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -656,6 +660,7 @@ export class MachineTypesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/network_edge_security_services_client.ts b/src/v1/network_edge_security_services_client.ts index f69cb61c..bdc39e80 100644 --- a/src/v1/network_edge_security_services_client.ts +++ b/src/v1/network_edge_security_services_client.ts @@ -414,6 +414,8 @@ export class NetworkEdgeSecurityServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + network_edge_security_service: request.networkEdgeSecurityService || '', }); this.initialize(); return this.innerApiCalls @@ -535,6 +537,8 @@ export class NetworkEdgeSecurityServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + network_edge_security_service: request.networkEdgeSecurityService || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -639,6 +643,7 @@ export class NetworkEdgeSecurityServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -766,6 +771,8 @@ export class NetworkEdgeSecurityServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + network_edge_security_service: request.networkEdgeSecurityService || '', }); this.initialize(); return this.innerApiCalls diff --git a/src/v1/network_endpoint_groups_client.ts b/src/v1/network_endpoint_groups_client.ts index 13109ec3..903b0b28 100644 --- a/src/v1/network_endpoint_groups_client.ts +++ b/src/v1/network_endpoint_groups_client.ts @@ -429,6 +429,8 @@ export class NetworkEndpointGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + network_endpoint_group: request.networkEndpointGroup || '', }); this.initialize(); return this.innerApiCalls @@ -551,6 +553,8 @@ export class NetworkEndpointGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + network_endpoint_group: request.networkEndpointGroup || '', }); this.initialize(); return this.innerApiCalls @@ -675,6 +679,8 @@ export class NetworkEndpointGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + network_endpoint_group: request.networkEndpointGroup || '', }); this.initialize(); return this.innerApiCalls @@ -796,6 +802,8 @@ export class NetworkEndpointGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + network_endpoint_group: request.networkEndpointGroup || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -898,6 +906,7 @@ export class NetworkEndpointGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls @@ -1021,6 +1030,8 @@ export class NetworkEndpointGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.testIamPermissions(request, options, callback); @@ -1186,6 +1197,7 @@ export class NetworkEndpointGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -1232,6 +1244,7 @@ export class NetworkEndpointGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -1287,6 +1300,7 @@ export class NetworkEndpointGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -1403,6 +1417,8 @@ export class NetworkEndpointGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + network_endpoint_group: request.networkEndpointGroup || '', }); this.initialize(); return this.innerApiCalls.listNetworkEndpoints(request, options, callback); @@ -1453,6 +1469,8 @@ export class NetworkEndpointGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + network_endpoint_group: request.networkEndpointGroup || '', }); const defaultCallSettings = this._defaults['listNetworkEndpoints']; const callSettings = defaultCallSettings.merge(options); @@ -1512,6 +1530,8 @@ export class NetworkEndpointGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + network_endpoint_group: request.networkEndpointGroup || '', }); const defaultCallSettings = this._defaults['listNetworkEndpoints']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/network_firewall_policies_client.ts b/src/v1/network_firewall_policies_client.ts index 8373c1b7..8437eef2 100644 --- a/src/v1/network_firewall_policies_client.ts +++ b/src/v1/network_firewall_policies_client.ts @@ -426,6 +426,7 @@ export class NetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + firewall_policy: request.firewallPolicy || '', }); this.initialize(); return this.innerApiCalls @@ -552,6 +553,7 @@ export class NetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + firewall_policy: request.firewallPolicy || '', }); this.initialize(); return this.innerApiCalls @@ -674,6 +676,7 @@ export class NetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + firewall_policy: request.firewallPolicy || '', }); this.initialize(); return this.innerApiCalls @@ -794,6 +797,7 @@ export class NetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + firewall_policy: request.firewallPolicy || '', }); this.initialize(); return this.innerApiCalls @@ -913,6 +917,7 @@ export class NetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + firewall_policy: request.firewallPolicy || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -1014,6 +1019,7 @@ export class NetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + firewall_policy: request.firewallPolicy || '', }); this.initialize(); return this.innerApiCalls.getAssociation(request, options, callback); @@ -1115,6 +1121,7 @@ export class NetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.getIamPolicy(request, options, callback); @@ -1216,6 +1223,7 @@ export class NetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + firewall_policy: request.firewallPolicy || '', }); this.initialize(); return this.innerApiCalls.getRule(request, options, callback); @@ -1438,6 +1446,7 @@ export class NetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + firewall_policy: request.firewallPolicy || '', }); this.initialize(); return this.innerApiCalls @@ -1562,6 +1571,7 @@ export class NetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + firewall_policy: request.firewallPolicy || '', }); this.initialize(); return this.innerApiCalls @@ -1684,6 +1694,7 @@ export class NetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + firewall_policy: request.firewallPolicy || '', }); this.initialize(); return this.innerApiCalls @@ -1806,6 +1817,7 @@ export class NetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + firewall_policy: request.firewallPolicy || '', }); this.initialize(); return this.innerApiCalls @@ -1927,6 +1939,7 @@ export class NetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.setIamPolicy(request, options, callback); @@ -2028,6 +2041,7 @@ export class NetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.testIamPermissions(request, options, callback); diff --git a/src/v1/networks_client.ts b/src/v1/networks_client.ts index 83060e6e..cfcfc5c3 100644 --- a/src/v1/networks_client.ts +++ b/src/v1/networks_client.ts @@ -423,6 +423,7 @@ export class NetworksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + network: request.network || '', }); this.initialize(); return this.innerApiCalls @@ -537,6 +538,7 @@ export class NetworksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + network: request.network || '', }); this.initialize(); return this.innerApiCalls @@ -642,6 +644,7 @@ export class NetworksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + network: request.network || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -741,6 +744,7 @@ export class NetworksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + network: request.network || '', }); this.initialize(); return this.innerApiCalls.getEffectiveFirewalls(request, options, callback); @@ -951,6 +955,7 @@ export class NetworksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + network: request.network || '', }); this.initialize(); return this.innerApiCalls @@ -1073,6 +1078,7 @@ export class NetworksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + network: request.network || '', }); this.initialize(); return this.innerApiCalls @@ -1193,6 +1199,7 @@ export class NetworksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + network: request.network || '', }); this.initialize(); return this.innerApiCalls @@ -1315,6 +1322,7 @@ export class NetworksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + network: request.network || '', }); this.initialize(); return this.innerApiCalls @@ -1648,6 +1656,7 @@ export class NetworksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + network: request.network || '', }); this.initialize(); return this.innerApiCalls.listPeeringRoutes(request, options, callback); @@ -1701,6 +1710,7 @@ export class NetworksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + network: request.network || '', }); const defaultCallSettings = this._defaults['listPeeringRoutes']; const callSettings = defaultCallSettings.merge(options); @@ -1763,6 +1773,7 @@ export class NetworksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + network: request.network || '', }); const defaultCallSettings = this._defaults['listPeeringRoutes']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/node_groups_client.ts b/src/v1/node_groups_client.ts index c9e56b82..db0a356a 100644 --- a/src/v1/node_groups_client.ts +++ b/src/v1/node_groups_client.ts @@ -432,6 +432,8 @@ export class NodeGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + node_group: request.nodeGroup || '', }); this.initialize(); return this.innerApiCalls @@ -548,6 +550,8 @@ export class NodeGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + node_group: request.nodeGroup || '', }); this.initialize(); return this.innerApiCalls @@ -672,6 +676,8 @@ export class NodeGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + node_group: request.nodeGroup || '', }); this.initialize(); return this.innerApiCalls @@ -781,6 +787,8 @@ export class NodeGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + node_group: request.nodeGroup || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -878,6 +886,8 @@ export class NodeGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.getIamPolicy(request, options, callback); @@ -976,6 +986,7 @@ export class NodeGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls @@ -1094,6 +1105,8 @@ export class NodeGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + node_group: request.nodeGroup || '', }); this.initialize(); return this.innerApiCalls @@ -1211,6 +1224,8 @@ export class NodeGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.setIamPolicy(request, options, callback); @@ -1315,6 +1330,8 @@ export class NodeGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + node_group: request.nodeGroup || '', }); this.initialize(); return this.innerApiCalls @@ -1438,6 +1455,8 @@ export class NodeGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.testIamPermissions(request, options, callback); @@ -1595,6 +1614,7 @@ export class NodeGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -1641,6 +1661,7 @@ export class NodeGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -1696,6 +1717,7 @@ export class NodeGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -1804,6 +1826,8 @@ export class NodeGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + node_group: request.nodeGroup || '', }); this.initialize(); return this.innerApiCalls.listNodes(request, options, callback); @@ -1852,6 +1876,8 @@ export class NodeGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + node_group: request.nodeGroup || '', }); const defaultCallSettings = this._defaults['listNodes']; const callSettings = defaultCallSettings.merge(options); @@ -1909,6 +1935,8 @@ export class NodeGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + node_group: request.nodeGroup || '', }); const defaultCallSettings = this._defaults['listNodes']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/node_templates_client.ts b/src/v1/node_templates_client.ts index 428213e3..0eef7993 100644 --- a/src/v1/node_templates_client.ts +++ b/src/v1/node_templates_client.ts @@ -420,6 +420,8 @@ export class NodeTemplatesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + node_template: request.nodeTemplate || '', }); this.initialize(); return this.innerApiCalls @@ -529,6 +531,8 @@ export class NodeTemplatesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + node_template: request.nodeTemplate || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -632,6 +636,8 @@ export class NodeTemplatesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.getIamPolicy(request, options, callback); @@ -734,6 +740,7 @@ export class NodeTemplatesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -857,6 +864,8 @@ export class NodeTemplatesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.setIamPolicy(request, options, callback); @@ -960,6 +969,8 @@ export class NodeTemplatesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.testIamPermissions(request, options, callback); @@ -1117,6 +1128,7 @@ export class NodeTemplatesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -1163,6 +1175,7 @@ export class NodeTemplatesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -1218,6 +1231,7 @@ export class NodeTemplatesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/node_types_client.ts b/src/v1/node_types_client.ts index 48799665..229afb37 100644 --- a/src/v1/node_types_client.ts +++ b/src/v1/node_types_client.ts @@ -396,6 +396,8 @@ export class NodeTypesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + node_type: request.nodeType || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -553,6 +555,7 @@ export class NodeTypesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -599,6 +602,7 @@ export class NodeTypesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -654,6 +658,7 @@ export class NodeTypesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/packet_mirrorings_client.ts b/src/v1/packet_mirrorings_client.ts index 7680a3b2..40b8c6db 100644 --- a/src/v1/packet_mirrorings_client.ts +++ b/src/v1/packet_mirrorings_client.ts @@ -419,6 +419,8 @@ export class PacketMirroringsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + packet_mirroring: request.packetMirroring || '', }); this.initialize(); return this.innerApiCalls @@ -534,6 +536,8 @@ export class PacketMirroringsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + packet_mirroring: request.packetMirroring || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -636,6 +640,7 @@ export class PacketMirroringsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -760,6 +765,8 @@ export class PacketMirroringsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + packet_mirroring: request.packetMirroring || '', }); this.initialize(); return this.innerApiCalls @@ -883,6 +890,8 @@ export class PacketMirroringsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.testIamPermissions(request, options, callback); @@ -1042,6 +1051,7 @@ export class PacketMirroringsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -1088,6 +1098,7 @@ export class PacketMirroringsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -1143,6 +1154,7 @@ export class PacketMirroringsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/public_advertised_prefixes_client.ts b/src/v1/public_advertised_prefixes_client.ts index fbb6e715..2de28986 100644 --- a/src/v1/public_advertised_prefixes_client.ts +++ b/src/v1/public_advertised_prefixes_client.ts @@ -412,6 +412,7 @@ export class PublicAdvertisedPrefixesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + public_advertised_prefix: request.publicAdvertisedPrefix || '', }); this.initialize(); return this.innerApiCalls @@ -531,6 +532,7 @@ export class PublicAdvertisedPrefixesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + public_advertised_prefix: request.publicAdvertisedPrefix || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -753,6 +755,7 @@ export class PublicAdvertisedPrefixesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + public_advertised_prefix: request.publicAdvertisedPrefix || '', }); this.initialize(); return this.innerApiCalls diff --git a/src/v1/public_delegated_prefixes_client.ts b/src/v1/public_delegated_prefixes_client.ts index 2c41a3fe..45d8922d 100644 --- a/src/v1/public_delegated_prefixes_client.ts +++ b/src/v1/public_delegated_prefixes_client.ts @@ -419,6 +419,8 @@ export class PublicDelegatedPrefixesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + public_delegated_prefix: request.publicDelegatedPrefix || '', }); this.initialize(); return this.innerApiCalls @@ -540,6 +542,8 @@ export class PublicDelegatedPrefixesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + public_delegated_prefix: request.publicDelegatedPrefix || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -642,6 +646,7 @@ export class PublicDelegatedPrefixesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -766,6 +771,8 @@ export class PublicDelegatedPrefixesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + public_delegated_prefix: request.publicDelegatedPrefix || '', }); this.initialize(); return this.innerApiCalls @@ -954,6 +961,7 @@ export class PublicDelegatedPrefixesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -1000,6 +1008,7 @@ export class PublicDelegatedPrefixesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -1055,6 +1064,7 @@ export class PublicDelegatedPrefixesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/region_autoscalers_client.ts b/src/v1/region_autoscalers_client.ts index abff0e62..c285d667 100644 --- a/src/v1/region_autoscalers_client.ts +++ b/src/v1/region_autoscalers_client.ts @@ -413,6 +413,8 @@ export class RegionAutoscalersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + autoscaler: request.autoscaler || '', }); this.initialize(); return this.innerApiCalls @@ -528,6 +530,8 @@ export class RegionAutoscalersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + autoscaler: request.autoscaler || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -630,6 +634,7 @@ export class RegionAutoscalersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -754,6 +759,7 @@ export class RegionAutoscalersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -878,6 +884,7 @@ export class RegionAutoscalersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -999,6 +1006,7 @@ export class RegionAutoscalersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -1045,6 +1053,7 @@ export class RegionAutoscalersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -1100,6 +1109,7 @@ export class RegionAutoscalersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/region_backend_services_client.ts b/src/v1/region_backend_services_client.ts index 60e72501..46f4e999 100644 --- a/src/v1/region_backend_services_client.ts +++ b/src/v1/region_backend_services_client.ts @@ -415,6 +415,8 @@ export class RegionBackendServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + backend_service: request.backendService || '', }); this.initialize(); return this.innerApiCalls @@ -536,6 +538,8 @@ export class RegionBackendServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + backend_service: request.backendService || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -638,6 +642,8 @@ export class RegionBackendServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + backend_service: request.backendService || '', }); this.initialize(); return this.innerApiCalls.getHealth(request, options, callback); @@ -740,6 +746,7 @@ export class RegionBackendServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -864,6 +871,8 @@ export class RegionBackendServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + backend_service: request.backendService || '', }); this.initialize(); return this.innerApiCalls @@ -988,6 +997,8 @@ export class RegionBackendServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + backend_service: request.backendService || '', }); this.initialize(); return this.innerApiCalls @@ -1107,6 +1118,7 @@ export class RegionBackendServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -1153,6 +1165,7 @@ export class RegionBackendServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -1208,6 +1221,7 @@ export class RegionBackendServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/region_commitments_client.ts b/src/v1/region_commitments_client.ts index e6459208..22a9612b 100644 --- a/src/v1/region_commitments_client.ts +++ b/src/v1/region_commitments_client.ts @@ -410,6 +410,8 @@ export class RegionCommitmentsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + commitment: request.commitment || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -512,6 +514,7 @@ export class RegionCommitmentsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -639,6 +642,8 @@ export class RegionCommitmentsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + commitment: request.commitment || '', }); this.initialize(); return this.innerApiCalls @@ -816,6 +821,7 @@ export class RegionCommitmentsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -862,6 +868,7 @@ export class RegionCommitmentsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -917,6 +924,7 @@ export class RegionCommitmentsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/region_disk_types_client.ts b/src/v1/region_disk_types_client.ts index d73172ca..b11f9236 100644 --- a/src/v1/region_disk_types_client.ts +++ b/src/v1/region_disk_types_client.ts @@ -399,6 +399,8 @@ export class RegionDiskTypesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + disk_type: request.diskType || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -498,6 +500,7 @@ export class RegionDiskTypesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -544,6 +547,7 @@ export class RegionDiskTypesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -599,6 +603,7 @@ export class RegionDiskTypesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/region_disks_client.ts b/src/v1/region_disks_client.ts index 36634827..03125078 100644 --- a/src/v1/region_disks_client.ts +++ b/src/v1/region_disks_client.ts @@ -421,6 +421,8 @@ export class RegionDisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + disk: request.disk || '', }); this.initialize(); return this.innerApiCalls @@ -545,6 +547,8 @@ export class RegionDisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + disk: request.disk || '', }); this.initialize(); return this.innerApiCalls @@ -667,6 +671,8 @@ export class RegionDisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + disk: request.disk || '', }); this.initialize(); return this.innerApiCalls @@ -776,6 +782,8 @@ export class RegionDisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + disk: request.disk || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -873,6 +881,8 @@ export class RegionDisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.getIamPolicy(request, options, callback); @@ -977,6 +987,7 @@ export class RegionDisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -1101,6 +1112,8 @@ export class RegionDisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + disk: request.disk || '', }); this.initialize(); return this.innerApiCalls @@ -1225,6 +1238,8 @@ export class RegionDisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + disk: request.disk || '', }); this.initialize(); return this.innerApiCalls @@ -1342,6 +1357,8 @@ export class RegionDisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.setIamPolicy(request, options, callback); @@ -1446,6 +1463,8 @@ export class RegionDisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls @@ -1569,6 +1588,8 @@ export class RegionDisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.testIamPermissions(request, options, callback); @@ -1668,6 +1689,7 @@ export class RegionDisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -1714,6 +1736,7 @@ export class RegionDisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -1769,6 +1792,7 @@ export class RegionDisksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/region_health_check_services_client.ts b/src/v1/region_health_check_services_client.ts index 102cd770..26dd1783 100644 --- a/src/v1/region_health_check_services_client.ts +++ b/src/v1/region_health_check_services_client.ts @@ -414,6 +414,8 @@ export class RegionHealthCheckServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + health_check_service: request.healthCheckService || '', }); this.initialize(); return this.innerApiCalls @@ -535,6 +537,8 @@ export class RegionHealthCheckServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + health_check_service: request.healthCheckService || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -637,6 +641,7 @@ export class RegionHealthCheckServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -761,6 +766,8 @@ export class RegionHealthCheckServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + health_check_service: request.healthCheckService || '', }); this.initialize(); return this.innerApiCalls @@ -888,6 +895,7 @@ export class RegionHealthCheckServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -934,6 +942,7 @@ export class RegionHealthCheckServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -989,6 +998,7 @@ export class RegionHealthCheckServicesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/region_health_checks_client.ts b/src/v1/region_health_checks_client.ts index d68240ac..3c054e2c 100644 --- a/src/v1/region_health_checks_client.ts +++ b/src/v1/region_health_checks_client.ts @@ -413,6 +413,8 @@ export class RegionHealthChecksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + health_check: request.healthCheck || '', }); this.initialize(); return this.innerApiCalls @@ -528,6 +530,8 @@ export class RegionHealthChecksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + health_check: request.healthCheck || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -630,6 +634,7 @@ export class RegionHealthChecksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -754,6 +759,8 @@ export class RegionHealthChecksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + health_check: request.healthCheck || '', }); this.initialize(); return this.innerApiCalls @@ -878,6 +885,8 @@ export class RegionHealthChecksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + health_check: request.healthCheck || '', }); this.initialize(); return this.innerApiCalls @@ -997,6 +1006,7 @@ export class RegionHealthChecksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -1043,6 +1053,7 @@ export class RegionHealthChecksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -1098,6 +1109,7 @@ export class RegionHealthChecksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/region_instance_group_managers_client.ts b/src/v1/region_instance_group_managers_client.ts index f828567e..3d95ec0e 100644 --- a/src/v1/region_instance_group_managers_client.ts +++ b/src/v1/region_instance_group_managers_client.ts @@ -445,6 +445,8 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls @@ -567,6 +569,8 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls @@ -691,6 +695,8 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls @@ -813,6 +819,8 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls @@ -937,6 +945,8 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls @@ -1059,6 +1069,8 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls @@ -1180,6 +1192,8 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -1282,6 +1296,7 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -1406,6 +1421,8 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls @@ -1530,6 +1547,8 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls @@ -1654,6 +1673,8 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls @@ -1778,6 +1799,8 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls @@ -1902,6 +1925,8 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls @@ -2026,6 +2051,8 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls @@ -2150,6 +2177,8 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls @@ -2277,6 +2306,7 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -2323,6 +2353,7 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -2378,6 +2409,7 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -2492,6 +2524,8 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls.listErrors(request, options, callback); @@ -2540,6 +2574,8 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group_manager: request.instanceGroupManager || '', }); const defaultCallSettings = this._defaults['listErrors']; const callSettings = defaultCallSettings.merge(options); @@ -2597,6 +2633,8 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group_manager: request.instanceGroupManager || '', }); const defaultCallSettings = this._defaults['listErrors']; const callSettings = defaultCallSettings.merge(options); @@ -2711,6 +2749,8 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls.listManagedInstances(request, options, callback); @@ -2759,6 +2799,8 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group_manager: request.instanceGroupManager || '', }); const defaultCallSettings = this._defaults['listManagedInstances']; const callSettings = defaultCallSettings.merge(options); @@ -2816,6 +2858,8 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group_manager: request.instanceGroupManager || '', }); const defaultCallSettings = this._defaults['listManagedInstances']; const callSettings = defaultCallSettings.merge(options); @@ -2930,6 +2974,8 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group_manager: request.instanceGroupManager || '', }); this.initialize(); return this.innerApiCalls.listPerInstanceConfigs( @@ -2982,6 +3028,8 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group_manager: request.instanceGroupManager || '', }); const defaultCallSettings = this._defaults['listPerInstanceConfigs']; const callSettings = defaultCallSettings.merge(options); @@ -3039,6 +3087,8 @@ export class RegionInstanceGroupManagersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group_manager: request.instanceGroupManager || '', }); const defaultCallSettings = this._defaults['listPerInstanceConfigs']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/region_instance_groups_client.ts b/src/v1/region_instance_groups_client.ts index 320afa47..8a32812f 100644 --- a/src/v1/region_instance_groups_client.ts +++ b/src/v1/region_instance_groups_client.ts @@ -409,6 +409,8 @@ export class RegionInstanceGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group: request.instanceGroup || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -513,6 +515,8 @@ export class RegionInstanceGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group: request.instanceGroup || '', }); this.initialize(); return this.innerApiCalls @@ -640,6 +644,7 @@ export class RegionInstanceGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -686,6 +691,7 @@ export class RegionInstanceGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -741,6 +747,7 @@ export class RegionInstanceGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -857,6 +864,8 @@ export class RegionInstanceGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group: request.instanceGroup || '', }); this.initialize(); return this.innerApiCalls.listInstances(request, options, callback); @@ -907,6 +916,8 @@ export class RegionInstanceGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group: request.instanceGroup || '', }); const defaultCallSettings = this._defaults['listInstances']; const callSettings = defaultCallSettings.merge(options); @@ -966,6 +977,8 @@ export class RegionInstanceGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + instance_group: request.instanceGroup || '', }); const defaultCallSettings = this._defaults['listInstances']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/region_instances_client.ts b/src/v1/region_instances_client.ts index ab922957..e7730826 100644 --- a/src/v1/region_instances_client.ts +++ b/src/v1/region_instances_client.ts @@ -391,6 +391,7 @@ export class RegionInstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls diff --git a/src/v1/region_network_endpoint_groups_client.ts b/src/v1/region_network_endpoint_groups_client.ts index ce9dc006..a0f50edd 100644 --- a/src/v1/region_network_endpoint_groups_client.ts +++ b/src/v1/region_network_endpoint_groups_client.ts @@ -413,6 +413,8 @@ export class RegionNetworkEndpointGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + network_endpoint_group: request.networkEndpointGroup || '', }); this.initialize(); return this.innerApiCalls @@ -534,6 +536,8 @@ export class RegionNetworkEndpointGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + network_endpoint_group: request.networkEndpointGroup || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -636,6 +640,7 @@ export class RegionNetworkEndpointGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -763,6 +768,7 @@ export class RegionNetworkEndpointGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -809,6 +815,7 @@ export class RegionNetworkEndpointGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -864,6 +871,7 @@ export class RegionNetworkEndpointGroupsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/region_network_firewall_policies_client.ts b/src/v1/region_network_firewall_policies_client.ts index a9d7fb7e..0ab820f1 100644 --- a/src/v1/region_network_firewall_policies_client.ts +++ b/src/v1/region_network_firewall_policies_client.ts @@ -430,6 +430,8 @@ export class RegionNetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + firewall_policy: request.firewallPolicy || '', }); this.initialize(); return this.innerApiCalls @@ -558,6 +560,8 @@ export class RegionNetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + firewall_policy: request.firewallPolicy || '', }); this.initialize(); return this.innerApiCalls @@ -682,6 +686,8 @@ export class RegionNetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + firewall_policy: request.firewallPolicy || '', }); this.initialize(); return this.innerApiCalls @@ -804,6 +810,8 @@ export class RegionNetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + firewall_policy: request.firewallPolicy || '', }); this.initialize(); return this.innerApiCalls @@ -925,6 +933,8 @@ export class RegionNetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + firewall_policy: request.firewallPolicy || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -1028,6 +1038,8 @@ export class RegionNetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + firewall_policy: request.firewallPolicy || '', }); this.initialize(); return this.innerApiCalls.getAssociation(request, options, callback); @@ -1129,6 +1141,7 @@ export class RegionNetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.getEffectiveFirewalls(request, options, callback); @@ -1232,6 +1245,8 @@ export class RegionNetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.getIamPolicy(request, options, callback); @@ -1335,6 +1350,8 @@ export class RegionNetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + firewall_policy: request.firewallPolicy || '', }); this.initialize(); return this.innerApiCalls.getRule(request, options, callback); @@ -1437,6 +1454,7 @@ export class RegionNetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -1561,6 +1579,8 @@ export class RegionNetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + firewall_policy: request.firewallPolicy || '', }); this.initialize(); return this.innerApiCalls @@ -1687,6 +1707,8 @@ export class RegionNetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + firewall_policy: request.firewallPolicy || '', }); this.initialize(); return this.innerApiCalls @@ -1811,6 +1833,8 @@ export class RegionNetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + firewall_policy: request.firewallPolicy || '', }); this.initialize(); return this.innerApiCalls @@ -1935,6 +1959,8 @@ export class RegionNetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + firewall_policy: request.firewallPolicy || '', }); this.initialize(); return this.innerApiCalls @@ -2058,6 +2084,8 @@ export class RegionNetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.setIamPolicy(request, options, callback); @@ -2161,6 +2189,8 @@ export class RegionNetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.testIamPermissions(request, options, callback); @@ -2260,6 +2290,7 @@ export class RegionNetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -2306,6 +2337,7 @@ export class RegionNetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -2361,6 +2393,7 @@ export class RegionNetworkFirewallPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/region_notification_endpoints_client.ts b/src/v1/region_notification_endpoints_client.ts index d7324eec..2458d9cd 100644 --- a/src/v1/region_notification_endpoints_client.ts +++ b/src/v1/region_notification_endpoints_client.ts @@ -413,6 +413,8 @@ export class RegionNotificationEndpointsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + notification_endpoint: request.notificationEndpoint || '', }); this.initialize(); return this.innerApiCalls @@ -534,6 +536,8 @@ export class RegionNotificationEndpointsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + notification_endpoint: request.notificationEndpoint || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -636,6 +640,7 @@ export class RegionNotificationEndpointsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -763,6 +768,7 @@ export class RegionNotificationEndpointsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -809,6 +815,7 @@ export class RegionNotificationEndpointsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -864,6 +871,7 @@ export class RegionNotificationEndpointsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/region_operations_client.ts b/src/v1/region_operations_client.ts index fb629b61..f92ad63d 100644 --- a/src/v1/region_operations_client.ts +++ b/src/v1/region_operations_client.ts @@ -398,6 +398,8 @@ export class RegionOperationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + operation: request.operation || '', }); this.initialize(); return this.innerApiCalls.delete(request, options, callback); @@ -493,6 +495,8 @@ export class RegionOperationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + operation: request.operation || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -588,6 +592,8 @@ export class RegionOperationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + operation: request.operation || '', }); this.initialize(); return this.innerApiCalls.wait(request, options, callback); @@ -687,6 +693,7 @@ export class RegionOperationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -733,6 +740,7 @@ export class RegionOperationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -788,6 +796,7 @@ export class RegionOperationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/region_security_policies_client.ts b/src/v1/region_security_policies_client.ts index 010d65a3..7965254b 100644 --- a/src/v1/region_security_policies_client.ts +++ b/src/v1/region_security_policies_client.ts @@ -413,6 +413,8 @@ export class RegionSecurityPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + security_policy: request.securityPolicy || '', }); this.initialize(); return this.innerApiCalls @@ -534,6 +536,8 @@ export class RegionSecurityPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + security_policy: request.securityPolicy || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -638,6 +642,7 @@ export class RegionSecurityPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -762,6 +767,8 @@ export class RegionSecurityPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + security_policy: request.securityPolicy || '', }); this.initialize(); return this.innerApiCalls @@ -881,6 +888,7 @@ export class RegionSecurityPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -927,6 +935,7 @@ export class RegionSecurityPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -982,6 +991,7 @@ export class RegionSecurityPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/region_ssl_certificates_client.ts b/src/v1/region_ssl_certificates_client.ts index c3294379..bcc1ad5a 100644 --- a/src/v1/region_ssl_certificates_client.ts +++ b/src/v1/region_ssl_certificates_client.ts @@ -412,6 +412,8 @@ export class RegionSslCertificatesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + ssl_certificate: request.sslCertificate || '', }); this.initialize(); return this.innerApiCalls @@ -533,6 +535,8 @@ export class RegionSslCertificatesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + ssl_certificate: request.sslCertificate || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -635,6 +639,7 @@ export class RegionSslCertificatesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -754,6 +759,7 @@ export class RegionSslCertificatesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -800,6 +806,7 @@ export class RegionSslCertificatesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -855,6 +862,7 @@ export class RegionSslCertificatesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/region_target_http_proxies_client.ts b/src/v1/region_target_http_proxies_client.ts index f3b35c90..ff26f009 100644 --- a/src/v1/region_target_http_proxies_client.ts +++ b/src/v1/region_target_http_proxies_client.ts @@ -413,6 +413,8 @@ export class RegionTargetHttpProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + target_http_proxy: request.targetHttpProxy || '', }); this.initialize(); return this.innerApiCalls @@ -534,6 +536,8 @@ export class RegionTargetHttpProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + target_http_proxy: request.targetHttpProxy || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -636,6 +640,7 @@ export class RegionTargetHttpProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -760,6 +765,8 @@ export class RegionTargetHttpProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + target_http_proxy: request.targetHttpProxy || '', }); this.initialize(); return this.innerApiCalls @@ -881,6 +888,7 @@ export class RegionTargetHttpProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -927,6 +935,7 @@ export class RegionTargetHttpProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -982,6 +991,7 @@ export class RegionTargetHttpProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/region_target_https_proxies_client.ts b/src/v1/region_target_https_proxies_client.ts index e2cd069e..80c4ce59 100644 --- a/src/v1/region_target_https_proxies_client.ts +++ b/src/v1/region_target_https_proxies_client.ts @@ -416,6 +416,8 @@ export class RegionTargetHttpsProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + target_https_proxy: request.targetHttpsProxy || '', }); this.initialize(); return this.innerApiCalls @@ -537,6 +539,8 @@ export class RegionTargetHttpsProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + target_https_proxy: request.targetHttpsProxy || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -639,6 +643,7 @@ export class RegionTargetHttpsProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -763,6 +768,8 @@ export class RegionTargetHttpsProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + target_https_proxy: request.targetHttpsProxy || '', }); this.initialize(); return this.innerApiCalls @@ -887,6 +894,8 @@ export class RegionTargetHttpsProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + target_https_proxy: request.targetHttpsProxy || '', }); this.initialize(); return this.innerApiCalls @@ -1011,6 +1020,8 @@ export class RegionTargetHttpsProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + target_https_proxy: request.targetHttpsProxy || '', }); this.initialize(); return this.innerApiCalls @@ -1132,6 +1143,7 @@ export class RegionTargetHttpsProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -1178,6 +1190,7 @@ export class RegionTargetHttpsProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -1233,6 +1246,7 @@ export class RegionTargetHttpsProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/region_url_maps_client.ts b/src/v1/region_url_maps_client.ts index 01d2f08f..c731a8aa 100644 --- a/src/v1/region_url_maps_client.ts +++ b/src/v1/region_url_maps_client.ts @@ -414,6 +414,8 @@ export class RegionUrlMapsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + url_map: request.urlMap || '', }); this.initialize(); return this.innerApiCalls @@ -523,6 +525,8 @@ export class RegionUrlMapsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + url_map: request.urlMap || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -625,6 +629,7 @@ export class RegionUrlMapsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -749,6 +754,8 @@ export class RegionUrlMapsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + url_map: request.urlMap || '', }); this.initialize(); return this.innerApiCalls @@ -873,6 +880,8 @@ export class RegionUrlMapsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + url_map: request.urlMap || '', }); this.initialize(); return this.innerApiCalls @@ -990,6 +999,8 @@ export class RegionUrlMapsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + url_map: request.urlMap || '', }); this.initialize(); return this.innerApiCalls.validate(request, options, callback); @@ -1089,6 +1100,7 @@ export class RegionUrlMapsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -1135,6 +1147,7 @@ export class RegionUrlMapsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -1190,6 +1203,7 @@ export class RegionUrlMapsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/regions_client.ts b/src/v1/regions_client.ts index 77e22b22..236c8762 100644 --- a/src/v1/regions_client.ts +++ b/src/v1/regions_client.ts @@ -389,6 +389,7 @@ export class RegionsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); diff --git a/src/v1/reservations_client.ts b/src/v1/reservations_client.ts index ffa88edb..342b65a8 100644 --- a/src/v1/reservations_client.ts +++ b/src/v1/reservations_client.ts @@ -422,6 +422,8 @@ export class ReservationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + reservation: request.reservation || '', }); this.initialize(); return this.innerApiCalls @@ -531,6 +533,8 @@ export class ReservationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + reservation: request.reservation || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -634,6 +638,8 @@ export class ReservationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.getIamPolicy(request, options, callback); @@ -736,6 +742,7 @@ export class ReservationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls @@ -860,6 +867,8 @@ export class ReservationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + reservation: request.reservation || '', }); this.initialize(); return this.innerApiCalls @@ -983,6 +992,8 @@ export class ReservationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.setIamPolicy(request, options, callback); @@ -1086,6 +1097,8 @@ export class ReservationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.testIamPermissions(request, options, callback); @@ -1193,6 +1206,8 @@ export class ReservationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + reservation: request.reservation || '', }); this.initialize(); return this.innerApiCalls @@ -1370,6 +1385,7 @@ export class ReservationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -1416,6 +1432,7 @@ export class ReservationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -1471,6 +1488,7 @@ export class ReservationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/resource_policies_client.ts b/src/v1/resource_policies_client.ts index f4a60b56..34b4f280 100644 --- a/src/v1/resource_policies_client.ts +++ b/src/v1/resource_policies_client.ts @@ -420,6 +420,8 @@ export class ResourcePoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + resource_policy: request.resourcePolicy || '', }); this.initialize(); return this.innerApiCalls @@ -535,6 +537,8 @@ export class ResourcePoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + resource_policy: request.resourcePolicy || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -638,6 +642,8 @@ export class ResourcePoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.getIamPolicy(request, options, callback); @@ -740,6 +746,7 @@ export class ResourcePoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -863,6 +870,8 @@ export class ResourcePoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.setIamPolicy(request, options, callback); @@ -966,6 +975,8 @@ export class ResourcePoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.testIamPermissions(request, options, callback); @@ -1123,6 +1134,7 @@ export class ResourcePoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -1169,6 +1181,7 @@ export class ResourcePoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -1224,6 +1237,7 @@ export class ResourcePoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/routers_client.ts b/src/v1/routers_client.ts index 2f288fb7..b21751d9 100644 --- a/src/v1/routers_client.ts +++ b/src/v1/routers_client.ts @@ -421,6 +421,8 @@ export class RoutersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + router: request.router || '', }); this.initialize(); return this.innerApiCalls @@ -528,6 +530,8 @@ export class RoutersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + router: request.router || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -623,6 +627,8 @@ export class RoutersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + router: request.router || '', }); this.initialize(); return this.innerApiCalls.getRouterStatus(request, options, callback); @@ -719,6 +725,7 @@ export class RoutersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -835,6 +842,8 @@ export class RoutersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + router: request.router || '', }); this.initialize(); return this.innerApiCalls @@ -946,6 +955,8 @@ export class RoutersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + router: request.router || '', }); this.initialize(); return this.innerApiCalls.preview(request, options, callback); @@ -1044,6 +1055,8 @@ export class RoutersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + router: request.router || '', }); this.initialize(); return this.innerApiCalls @@ -1231,6 +1244,8 @@ export class RoutersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + router: request.router || '', }); this.initialize(); return this.innerApiCalls.getNatMappingInfo(request, options, callback); @@ -1279,6 +1294,8 @@ export class RoutersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + router: request.router || '', }); const defaultCallSettings = this._defaults['getNatMappingInfo']; const callSettings = defaultCallSettings.merge(options); @@ -1336,6 +1353,8 @@ export class RoutersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + router: request.router || '', }); const defaultCallSettings = this._defaults['getNatMappingInfo']; const callSettings = defaultCallSettings.merge(options); @@ -1440,6 +1459,7 @@ export class RoutersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -1486,6 +1506,7 @@ export class RoutersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -1541,6 +1562,7 @@ export class RoutersClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/routes_client.ts b/src/v1/routes_client.ts index a3122886..b52cab09 100644 --- a/src/v1/routes_client.ts +++ b/src/v1/routes_client.ts @@ -396,6 +396,7 @@ export class RoutesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + route: request.route || '', }); this.initialize(); return this.innerApiCalls @@ -501,6 +502,7 @@ export class RoutesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + route: request.route || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); diff --git a/src/v1/security_policies_client.ts b/src/v1/security_policies_client.ts index d5236bf0..e9753bae 100644 --- a/src/v1/security_policies_client.ts +++ b/src/v1/security_policies_client.ts @@ -421,6 +421,7 @@ export class SecurityPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + security_policy: request.securityPolicy || '', }); this.initialize(); return this.innerApiCalls @@ -541,6 +542,7 @@ export class SecurityPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + security_policy: request.securityPolicy || '', }); this.initialize(); return this.innerApiCalls @@ -654,6 +656,7 @@ export class SecurityPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + security_policy: request.securityPolicy || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -749,6 +752,7 @@ export class SecurityPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + security_policy: request.securityPolicy || '', }); this.initialize(); return this.innerApiCalls.getRule(request, options, callback); @@ -1082,6 +1086,7 @@ export class SecurityPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + security_policy: request.securityPolicy || '', }); this.initialize(); return this.innerApiCalls @@ -1204,6 +1209,7 @@ export class SecurityPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + security_policy: request.securityPolicy || '', }); this.initialize(); return this.innerApiCalls @@ -1324,6 +1330,7 @@ export class SecurityPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + security_policy: request.securityPolicy || '', }); this.initialize(); return this.innerApiCalls diff --git a/src/v1/service_attachments_client.ts b/src/v1/service_attachments_client.ts index 3e40782f..930ee120 100644 --- a/src/v1/service_attachments_client.ts +++ b/src/v1/service_attachments_client.ts @@ -421,6 +421,8 @@ export class ServiceAttachmentsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + service_attachment: request.serviceAttachment || '', }); this.initialize(); return this.innerApiCalls @@ -536,6 +538,8 @@ export class ServiceAttachmentsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + service_attachment: request.serviceAttachment || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -639,6 +643,8 @@ export class ServiceAttachmentsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.getIamPolicy(request, options, callback); @@ -741,6 +747,7 @@ export class ServiceAttachmentsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -865,6 +872,8 @@ export class ServiceAttachmentsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + service_attachment: request.serviceAttachment || '', }); this.initialize(); return this.innerApiCalls @@ -988,6 +997,8 @@ export class ServiceAttachmentsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.setIamPolicy(request, options, callback); @@ -1091,6 +1102,8 @@ export class ServiceAttachmentsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.testIamPermissions(request, options, callback); @@ -1250,6 +1263,7 @@ export class ServiceAttachmentsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -1296,6 +1310,7 @@ export class ServiceAttachmentsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -1351,6 +1366,7 @@ export class ServiceAttachmentsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/snapshots_client.ts b/src/v1/snapshots_client.ts index 2a7080b7..cc339f1f 100644 --- a/src/v1/snapshots_client.ts +++ b/src/v1/snapshots_client.ts @@ -407,6 +407,7 @@ export class SnapshotsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + snapshot: request.snapshot || '', }); this.initialize(); return this.innerApiCalls @@ -512,6 +513,7 @@ export class SnapshotsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + snapshot: request.snapshot || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -607,6 +609,7 @@ export class SnapshotsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.getIamPolicy(request, options, callback); @@ -816,6 +819,7 @@ export class SnapshotsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.setIamPolicy(request, options, callback); @@ -916,6 +920,7 @@ export class SnapshotsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls @@ -1037,6 +1042,7 @@ export class SnapshotsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.testIamPermissions(request, options, callback); diff --git a/src/v1/ssl_certificates_client.ts b/src/v1/ssl_certificates_client.ts index 43e2142b..7d3e1c1c 100644 --- a/src/v1/ssl_certificates_client.ts +++ b/src/v1/ssl_certificates_client.ts @@ -415,6 +415,7 @@ export class SslCertificatesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + ssl_certificate: request.sslCertificate || '', }); this.initialize(); return this.innerApiCalls @@ -528,6 +529,7 @@ export class SslCertificatesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + ssl_certificate: request.sslCertificate || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); diff --git a/src/v1/ssl_policies_client.ts b/src/v1/ssl_policies_client.ts index e8992a2c..4272c105 100644 --- a/src/v1/ssl_policies_client.ts +++ b/src/v1/ssl_policies_client.ts @@ -405,6 +405,7 @@ export class SslPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + ssl_policy: request.sslPolicy || '', }); this.initialize(); return this.innerApiCalls @@ -512,6 +513,7 @@ export class SslPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + ssl_policy: request.sslPolicy || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -829,6 +831,7 @@ export class SslPoliciesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + ssl_policy: request.sslPolicy || '', }); this.initialize(); return this.innerApiCalls diff --git a/src/v1/subnetworks_client.ts b/src/v1/subnetworks_client.ts index 5d30ca55..2dd57f69 100644 --- a/src/v1/subnetworks_client.ts +++ b/src/v1/subnetworks_client.ts @@ -429,6 +429,8 @@ export class SubnetworksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + subnetwork: request.subnetwork || '', }); this.initialize(); return this.innerApiCalls @@ -553,6 +555,8 @@ export class SubnetworksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + subnetwork: request.subnetwork || '', }); this.initialize(); return this.innerApiCalls @@ -662,6 +666,8 @@ export class SubnetworksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + subnetwork: request.subnetwork || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -759,6 +765,8 @@ export class SubnetworksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.getIamPolicy(request, options, callback); @@ -861,6 +869,7 @@ export class SubnetworksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -981,6 +990,8 @@ export class SubnetworksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + subnetwork: request.subnetwork || '', }); this.initialize(); return this.innerApiCalls @@ -1098,6 +1109,8 @@ export class SubnetworksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.setIamPolicy(request, options, callback); @@ -1202,6 +1215,8 @@ export class SubnetworksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + subnetwork: request.subnetwork || '', }); this.initialize(); return this.innerApiCalls @@ -1325,6 +1340,8 @@ export class SubnetworksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.testIamPermissions(request, options, callback); @@ -1482,6 +1499,7 @@ export class SubnetworksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -1528,6 +1546,7 @@ export class SubnetworksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -1583,6 +1602,7 @@ export class SubnetworksClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/target_grpc_proxies_client.ts b/src/v1/target_grpc_proxies_client.ts index 8616f2fd..c237b599 100644 --- a/src/v1/target_grpc_proxies_client.ts +++ b/src/v1/target_grpc_proxies_client.ts @@ -410,6 +410,7 @@ export class TargetGrpcProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + target_grpc_proxy: request.targetGrpcProxy || '', }); this.initialize(); return this.innerApiCalls @@ -523,6 +524,7 @@ export class TargetGrpcProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + target_grpc_proxy: request.targetGrpcProxy || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -745,6 +747,7 @@ export class TargetGrpcProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + target_grpc_proxy: request.targetGrpcProxy || '', }); this.initialize(); return this.innerApiCalls diff --git a/src/v1/target_http_proxies_client.ts b/src/v1/target_http_proxies_client.ts index f05aca04..4068c17d 100644 --- a/src/v1/target_http_proxies_client.ts +++ b/src/v1/target_http_proxies_client.ts @@ -417,6 +417,7 @@ export class TargetHttpProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + target_http_proxy: request.targetHttpProxy || '', }); this.initialize(); return this.innerApiCalls @@ -530,6 +531,7 @@ export class TargetHttpProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + target_http_proxy: request.targetHttpProxy || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -752,6 +754,7 @@ export class TargetHttpProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + target_http_proxy: request.targetHttpProxy || '', }); this.initialize(); return this.innerApiCalls @@ -874,6 +877,7 @@ export class TargetHttpProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + target_http_proxy: request.targetHttpProxy || '', }); this.initialize(); return this.innerApiCalls diff --git a/src/v1/target_https_proxies_client.ts b/src/v1/target_https_proxies_client.ts index 1efc7440..3711c6b7 100644 --- a/src/v1/target_https_proxies_client.ts +++ b/src/v1/target_https_proxies_client.ts @@ -420,6 +420,7 @@ export class TargetHttpsProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + target_https_proxy: request.targetHttpsProxy || '', }); this.initialize(); return this.innerApiCalls @@ -533,6 +534,7 @@ export class TargetHttpsProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + target_https_proxy: request.targetHttpsProxy || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -755,6 +757,7 @@ export class TargetHttpsProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + target_https_proxy: request.targetHttpsProxy || '', }); this.initialize(); return this.innerApiCalls @@ -877,6 +880,7 @@ export class TargetHttpsProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + target_https_proxy: request.targetHttpsProxy || '', }); this.initialize(); return this.innerApiCalls @@ -999,6 +1003,7 @@ export class TargetHttpsProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + target_https_proxy: request.targetHttpsProxy || '', }); this.initialize(); return this.innerApiCalls @@ -1121,6 +1126,7 @@ export class TargetHttpsProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + target_https_proxy: request.targetHttpsProxy || '', }); this.initialize(); return this.innerApiCalls @@ -1243,6 +1249,7 @@ export class TargetHttpsProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + target_https_proxy: request.targetHttpsProxy || '', }); this.initialize(); return this.innerApiCalls diff --git a/src/v1/target_instances_client.ts b/src/v1/target_instances_client.ts index 4e1a72a0..8de91a3f 100644 --- a/src/v1/target_instances_client.ts +++ b/src/v1/target_instances_client.ts @@ -417,6 +417,8 @@ export class TargetInstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + target_instance: request.targetInstance || '', }); this.initialize(); return this.innerApiCalls @@ -532,6 +534,8 @@ export class TargetInstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + target_instance: request.targetInstance || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -634,6 +638,7 @@ export class TargetInstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls @@ -811,6 +816,7 @@ export class TargetInstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -857,6 +863,7 @@ export class TargetInstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -912,6 +919,7 @@ export class TargetInstancesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/target_pools_client.ts b/src/v1/target_pools_client.ts index 65de4a89..ec8b56d1 100644 --- a/src/v1/target_pools_client.ts +++ b/src/v1/target_pools_client.ts @@ -425,6 +425,8 @@ export class TargetPoolsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + target_pool: request.targetPool || '', }); this.initialize(); return this.innerApiCalls @@ -549,6 +551,8 @@ export class TargetPoolsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + target_pool: request.targetPool || '', }); this.initialize(); return this.innerApiCalls @@ -671,6 +675,8 @@ export class TargetPoolsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + target_pool: request.targetPool || '', }); this.initialize(); return this.innerApiCalls @@ -780,6 +786,8 @@ export class TargetPoolsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + target_pool: request.targetPool || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -877,6 +885,8 @@ export class TargetPoolsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + target_pool: request.targetPool || '', }); this.initialize(); return this.innerApiCalls.getHealth(request, options, callback); @@ -979,6 +989,7 @@ export class TargetPoolsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -1103,6 +1114,8 @@ export class TargetPoolsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + target_pool: request.targetPool || '', }); this.initialize(); return this.innerApiCalls @@ -1227,6 +1240,8 @@ export class TargetPoolsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + target_pool: request.targetPool || '', }); this.initialize(); return this.innerApiCalls @@ -1353,6 +1368,8 @@ export class TargetPoolsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + target_pool: request.targetPool || '', }); this.initialize(); return this.innerApiCalls @@ -1530,6 +1547,7 @@ export class TargetPoolsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -1576,6 +1594,7 @@ export class TargetPoolsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -1631,6 +1650,7 @@ export class TargetPoolsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/target_ssl_proxies_client.ts b/src/v1/target_ssl_proxies_client.ts index c858800d..283d8a35 100644 --- a/src/v1/target_ssl_proxies_client.ts +++ b/src/v1/target_ssl_proxies_client.ts @@ -413,6 +413,7 @@ export class TargetSslProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + target_ssl_proxy: request.targetSslProxy || '', }); this.initialize(); return this.innerApiCalls @@ -526,6 +527,7 @@ export class TargetSslProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + target_ssl_proxy: request.targetSslProxy || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -748,6 +750,7 @@ export class TargetSslProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + target_ssl_proxy: request.targetSslProxy || '', }); this.initialize(); return this.innerApiCalls @@ -870,6 +873,7 @@ export class TargetSslProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + target_ssl_proxy: request.targetSslProxy || '', }); this.initialize(); return this.innerApiCalls @@ -992,6 +996,7 @@ export class TargetSslProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + target_ssl_proxy: request.targetSslProxy || '', }); this.initialize(); return this.innerApiCalls @@ -1114,6 +1119,7 @@ export class TargetSslProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + target_ssl_proxy: request.targetSslProxy || '', }); this.initialize(); return this.innerApiCalls diff --git a/src/v1/target_tcp_proxies_client.ts b/src/v1/target_tcp_proxies_client.ts index 5363e2a6..eb7a9984 100644 --- a/src/v1/target_tcp_proxies_client.ts +++ b/src/v1/target_tcp_proxies_client.ts @@ -411,6 +411,7 @@ export class TargetTcpProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + target_tcp_proxy: request.targetTcpProxy || '', }); this.initialize(); return this.innerApiCalls @@ -524,6 +525,7 @@ export class TargetTcpProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + target_tcp_proxy: request.targetTcpProxy || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -746,6 +748,7 @@ export class TargetTcpProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + target_tcp_proxy: request.targetTcpProxy || '', }); this.initialize(); return this.innerApiCalls @@ -868,6 +871,7 @@ export class TargetTcpProxiesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + target_tcp_proxy: request.targetTcpProxy || '', }); this.initialize(); return this.innerApiCalls diff --git a/src/v1/target_vpn_gateways_client.ts b/src/v1/target_vpn_gateways_client.ts index 97410183..3e88eeb6 100644 --- a/src/v1/target_vpn_gateways_client.ts +++ b/src/v1/target_vpn_gateways_client.ts @@ -417,6 +417,8 @@ export class TargetVpnGatewaysClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + target_vpn_gateway: request.targetVpnGateway || '', }); this.initialize(); return this.innerApiCalls @@ -532,6 +534,8 @@ export class TargetVpnGatewaysClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + target_vpn_gateway: request.targetVpnGateway || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -634,6 +638,7 @@ export class TargetVpnGatewaysClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -813,6 +818,7 @@ export class TargetVpnGatewaysClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -859,6 +865,7 @@ export class TargetVpnGatewaysClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -914,6 +921,7 @@ export class TargetVpnGatewaysClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/url_maps_client.ts b/src/v1/url_maps_client.ts index 20b2c68f..54367b51 100644 --- a/src/v1/url_maps_client.ts +++ b/src/v1/url_maps_client.ts @@ -413,6 +413,7 @@ export class UrlMapsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + url_map: request.urlMap || '', }); this.initialize(); return this.innerApiCalls @@ -518,6 +519,7 @@ export class UrlMapsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + url_map: request.urlMap || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -734,6 +736,7 @@ export class UrlMapsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + url_map: request.urlMap || '', }); this.initialize(); return this.innerApiCalls @@ -848,6 +851,7 @@ export class UrlMapsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + url_map: request.urlMap || '', }); this.initialize(); return this.innerApiCalls @@ -964,6 +968,7 @@ export class UrlMapsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + url_map: request.urlMap || '', }); this.initialize(); return this.innerApiCalls @@ -1073,6 +1078,7 @@ export class UrlMapsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + url_map: request.urlMap || '', }); this.initialize(); return this.innerApiCalls.validate(request, options, callback); diff --git a/src/v1/vpn_gateways_client.ts b/src/v1/vpn_gateways_client.ts index 540af58b..c83f0860 100644 --- a/src/v1/vpn_gateways_client.ts +++ b/src/v1/vpn_gateways_client.ts @@ -420,6 +420,8 @@ export class VpnGatewaysClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + vpn_gateway: request.vpnGateway || '', }); this.initialize(); return this.innerApiCalls @@ -529,6 +531,8 @@ export class VpnGatewaysClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + vpn_gateway: request.vpnGateway || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -624,6 +628,8 @@ export class VpnGatewaysClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + vpn_gateway: request.vpnGateway || '', }); this.initialize(); return this.innerApiCalls.getStatus(request, options, callback); @@ -726,6 +732,7 @@ export class VpnGatewaysClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -850,6 +857,8 @@ export class VpnGatewaysClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls @@ -973,6 +982,8 @@ export class VpnGatewaysClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + resource: request.resource || '', }); this.initialize(); return this.innerApiCalls.testIamPermissions(request, options, callback); @@ -1130,6 +1141,7 @@ export class VpnGatewaysClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -1176,6 +1188,7 @@ export class VpnGatewaysClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -1231,6 +1244,7 @@ export class VpnGatewaysClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/vpn_tunnels_client.ts b/src/v1/vpn_tunnels_client.ts index 31d76be7..43efae4b 100644 --- a/src/v1/vpn_tunnels_client.ts +++ b/src/v1/vpn_tunnels_client.ts @@ -411,6 +411,8 @@ export class VpnTunnelsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + vpn_tunnel: request.vpnTunnel || '', }); this.initialize(); return this.innerApiCalls @@ -520,6 +522,8 @@ export class VpnTunnelsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + vpn_tunnel: request.vpnTunnel || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -616,6 +620,7 @@ export class VpnTunnelsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -793,6 +798,7 @@ export class VpnTunnelsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -839,6 +845,7 @@ export class VpnTunnelsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -894,6 +901,7 @@ export class VpnTunnelsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/zone_operations_client.ts b/src/v1/zone_operations_client.ts index 44764828..f545737e 100644 --- a/src/v1/zone_operations_client.ts +++ b/src/v1/zone_operations_client.ts @@ -398,6 +398,8 @@ export class ZoneOperationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + operation: request.operation || '', }); this.initialize(); return this.innerApiCalls.delete(request, options, callback); @@ -493,6 +495,8 @@ export class ZoneOperationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + operation: request.operation || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -588,6 +592,8 @@ export class ZoneOperationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', + operation: request.operation || '', }); this.initialize(); return this.innerApiCalls.wait(request, options, callback); @@ -687,6 +693,7 @@ export class ZoneOperationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -733,6 +740,7 @@ export class ZoneOperationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -788,6 +796,7 @@ export class ZoneOperationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1/zones_client.ts b/src/v1/zones_client.ts index db3b9c4b..10ab8e52 100644 --- a/src/v1/zones_client.ts +++ b/src/v1/zones_client.ts @@ -389,6 +389,7 @@ export class ZonesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + zone: request.zone || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); diff --git a/src/v1small/addresses_client.ts b/src/v1small/addresses_client.ts index 7089dda5..fca26ed1 100644 --- a/src/v1small/addresses_client.ts +++ b/src/v1small/addresses_client.ts @@ -418,6 +418,8 @@ export class AddressesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + address: request.address || '', }); this.initialize(); return this.innerApiCalls @@ -544,6 +546,7 @@ export class AddressesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls @@ -737,6 +740,7 @@ export class AddressesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); this.initialize(); return this.innerApiCalls.list(request, options, callback); @@ -791,6 +795,7 @@ export class AddressesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); @@ -854,6 +859,7 @@ export class AddressesClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', }); const defaultCallSettings = this._defaults['list']; const callSettings = defaultCallSettings.merge(options); diff --git a/src/v1small/region_operations_client.ts b/src/v1small/region_operations_client.ts index 98155dff..fc01dd59 100644 --- a/src/v1small/region_operations_client.ts +++ b/src/v1small/region_operations_client.ts @@ -385,6 +385,8 @@ export class RegionOperationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + operation: request.operation || '', }); this.initialize(); return this.innerApiCalls.get(request, options, callback); @@ -490,6 +492,8 @@ export class RegionOperationsClient { options.otherArgs.headers['x-goog-request-params'] = gax.routingHeader.fromParams({ project: request.project || '', + region: request.region || '', + operation: request.operation || '', }); this.initialize(); return this.innerApiCalls.wait(request, options, callback); diff --git a/test/gapic_accelerator_types_v1.ts b/test/gapic_accelerator_types_v1.ts index d99e0dbb..84b36b68 100644 --- a/test/gapic_accelerator_types_v1.ts +++ b/test/gapic_accelerator_types_v1.ts @@ -234,7 +234,9 @@ describe('v1.AcceleratorTypesClient', () => { new protos.google.cloud.compute.v1.GetAcceleratorTypeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.acceleratorType = ''; + const expectedHeaderRequestParams = 'project=&zone=&accelerator_type='; const expectedOptions = { otherArgs: { headers: { @@ -265,7 +267,9 @@ describe('v1.AcceleratorTypesClient', () => { new protos.google.cloud.compute.v1.GetAcceleratorTypeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.acceleratorType = ''; + const expectedHeaderRequestParams = 'project=&zone=&accelerator_type='; const expectedOptions = { otherArgs: { headers: { @@ -311,7 +315,9 @@ describe('v1.AcceleratorTypesClient', () => { new protos.google.cloud.compute.v1.GetAcceleratorTypeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.acceleratorType = ''; + const expectedHeaderRequestParams = 'project=&zone=&accelerator_type='; const expectedOptions = { otherArgs: { headers: { @@ -339,6 +345,8 @@ describe('v1.AcceleratorTypesClient', () => { new protos.google.cloud.compute.v1.GetAcceleratorTypeRequest() ); request.project = ''; + request.zone = ''; + request.acceleratorType = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -450,7 +458,8 @@ describe('v1.AcceleratorTypesClient', () => { new protos.google.cloud.compute.v1.ListAcceleratorTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -489,7 +498,8 @@ describe('v1.AcceleratorTypesClient', () => { new protos.google.cloud.compute.v1.ListAcceleratorTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -543,7 +553,8 @@ describe('v1.AcceleratorTypesClient', () => { new protos.google.cloud.compute.v1.ListAcceleratorTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -571,7 +582,8 @@ describe('v1.AcceleratorTypesClient', () => { new protos.google.cloud.compute.v1.ListAcceleratorTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.AcceleratorType() @@ -625,7 +637,8 @@ describe('v1.AcceleratorTypesClient', () => { new protos.google.cloud.compute.v1.ListAcceleratorTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -670,7 +683,8 @@ describe('v1.AcceleratorTypesClient', () => { new protos.google.cloud.compute.v1.ListAcceleratorTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.AcceleratorType() @@ -712,7 +726,8 @@ describe('v1.AcceleratorTypesClient', () => { new protos.google.cloud.compute.v1.ListAcceleratorTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_addresses_v1.ts b/test/gapic_addresses_v1.ts index 059b813a..9a5a7b59 100644 --- a/test/gapic_addresses_v1.ts +++ b/test/gapic_addresses_v1.ts @@ -232,7 +232,9 @@ describe('v1.AddressesClient', () => { new protos.google.cloud.compute.v1.DeleteAddressRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.address = ''; + const expectedHeaderRequestParams = 'project=®ion=&address='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +265,9 @@ describe('v1.AddressesClient', () => { new protos.google.cloud.compute.v1.DeleteAddressRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.address = ''; + const expectedHeaderRequestParams = 'project=®ion=&address='; const expectedOptions = { otherArgs: { headers: { @@ -310,7 +314,9 @@ describe('v1.AddressesClient', () => { new protos.google.cloud.compute.v1.DeleteAddressRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.address = ''; + const expectedHeaderRequestParams = 'project=®ion=&address='; const expectedOptions = { otherArgs: { headers: { @@ -338,6 +344,8 @@ describe('v1.AddressesClient', () => { new protos.google.cloud.compute.v1.DeleteAddressRequest() ); request.project = ''; + request.region = ''; + request.address = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -355,7 +363,9 @@ describe('v1.AddressesClient', () => { new protos.google.cloud.compute.v1.GetAddressRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.address = ''; + const expectedHeaderRequestParams = 'project=®ion=&address='; const expectedOptions = { otherArgs: { headers: { @@ -386,7 +396,9 @@ describe('v1.AddressesClient', () => { new protos.google.cloud.compute.v1.GetAddressRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.address = ''; + const expectedHeaderRequestParams = 'project=®ion=&address='; const expectedOptions = { otherArgs: { headers: { @@ -432,7 +444,9 @@ describe('v1.AddressesClient', () => { new protos.google.cloud.compute.v1.GetAddressRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.address = ''; + const expectedHeaderRequestParams = 'project=®ion=&address='; const expectedOptions = { otherArgs: { headers: { @@ -460,6 +474,8 @@ describe('v1.AddressesClient', () => { new protos.google.cloud.compute.v1.GetAddressRequest() ); request.project = ''; + request.region = ''; + request.address = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -477,7 +493,8 @@ describe('v1.AddressesClient', () => { new protos.google.cloud.compute.v1.InsertAddressRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -508,7 +525,8 @@ describe('v1.AddressesClient', () => { new protos.google.cloud.compute.v1.InsertAddressRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -555,7 +573,8 @@ describe('v1.AddressesClient', () => { new protos.google.cloud.compute.v1.InsertAddressRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -583,6 +602,7 @@ describe('v1.AddressesClient', () => { new protos.google.cloud.compute.v1.InsertAddressRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -694,7 +714,8 @@ describe('v1.AddressesClient', () => { new protos.google.cloud.compute.v1.ListAddressesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -727,7 +748,8 @@ describe('v1.AddressesClient', () => { new protos.google.cloud.compute.v1.ListAddressesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -775,7 +797,8 @@ describe('v1.AddressesClient', () => { new protos.google.cloud.compute.v1.ListAddressesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -803,7 +826,8 @@ describe('v1.AddressesClient', () => { new protos.google.cloud.compute.v1.ListAddressesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.Address()), generateSampleMessage(new protos.google.cloud.compute.v1.Address()), @@ -851,7 +875,8 @@ describe('v1.AddressesClient', () => { new protos.google.cloud.compute.v1.ListAddressesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -896,7 +921,8 @@ describe('v1.AddressesClient', () => { new protos.google.cloud.compute.v1.ListAddressesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.Address()), generateSampleMessage(new protos.google.cloud.compute.v1.Address()), @@ -932,7 +958,8 @@ describe('v1.AddressesClient', () => { new protos.google.cloud.compute.v1.ListAddressesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_addresses_v1small.ts b/test/gapic_addresses_v1small.ts index d60cc2dc..38da1560 100644 --- a/test/gapic_addresses_v1small.ts +++ b/test/gapic_addresses_v1small.ts @@ -232,7 +232,9 @@ describe('v1small.AddressesClient', () => { new protos.google.cloud.compute.v1small.DeleteAddressRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.address = ''; + const expectedHeaderRequestParams = 'project=®ion=&address='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +265,9 @@ describe('v1small.AddressesClient', () => { new protos.google.cloud.compute.v1small.DeleteAddressRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.address = ''; + const expectedHeaderRequestParams = 'project=®ion=&address='; const expectedOptions = { otherArgs: { headers: { @@ -310,7 +314,9 @@ describe('v1small.AddressesClient', () => { new protos.google.cloud.compute.v1small.DeleteAddressRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.address = ''; + const expectedHeaderRequestParams = 'project=®ion=&address='; const expectedOptions = { otherArgs: { headers: { @@ -338,6 +344,8 @@ describe('v1small.AddressesClient', () => { new protos.google.cloud.compute.v1small.DeleteAddressRequest() ); request.project = ''; + request.region = ''; + request.address = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -355,7 +363,8 @@ describe('v1small.AddressesClient', () => { new protos.google.cloud.compute.v1small.InsertAddressRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -386,7 +395,8 @@ describe('v1small.AddressesClient', () => { new protos.google.cloud.compute.v1small.InsertAddressRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -433,7 +443,8 @@ describe('v1small.AddressesClient', () => { new protos.google.cloud.compute.v1small.InsertAddressRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -461,6 +472,7 @@ describe('v1small.AddressesClient', () => { new protos.google.cloud.compute.v1small.InsertAddressRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -572,7 +584,8 @@ describe('v1small.AddressesClient', () => { new protos.google.cloud.compute.v1small.ListAddressesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -611,7 +624,8 @@ describe('v1small.AddressesClient', () => { new protos.google.cloud.compute.v1small.ListAddressesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -665,7 +679,8 @@ describe('v1small.AddressesClient', () => { new protos.google.cloud.compute.v1small.ListAddressesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -693,7 +708,8 @@ describe('v1small.AddressesClient', () => { new protos.google.cloud.compute.v1small.ListAddressesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1small.Address() @@ -747,7 +763,8 @@ describe('v1small.AddressesClient', () => { new protos.google.cloud.compute.v1small.ListAddressesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -792,7 +809,8 @@ describe('v1small.AddressesClient', () => { new protos.google.cloud.compute.v1small.ListAddressesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1small.Address() @@ -834,7 +852,8 @@ describe('v1small.AddressesClient', () => { new protos.google.cloud.compute.v1small.ListAddressesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_autoscalers_v1.ts b/test/gapic_autoscalers_v1.ts index 38d82a4d..9cfec26c 100644 --- a/test/gapic_autoscalers_v1.ts +++ b/test/gapic_autoscalers_v1.ts @@ -232,7 +232,9 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.DeleteAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.autoscaler = ''; + const expectedHeaderRequestParams = 'project=&zone=&autoscaler='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +265,9 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.DeleteAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.autoscaler = ''; + const expectedHeaderRequestParams = 'project=&zone=&autoscaler='; const expectedOptions = { otherArgs: { headers: { @@ -310,7 +314,9 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.DeleteAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.autoscaler = ''; + const expectedHeaderRequestParams = 'project=&zone=&autoscaler='; const expectedOptions = { otherArgs: { headers: { @@ -338,6 +344,8 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.DeleteAutoscalerRequest() ); request.project = ''; + request.zone = ''; + request.autoscaler = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -355,7 +363,9 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.GetAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.autoscaler = ''; + const expectedHeaderRequestParams = 'project=&zone=&autoscaler='; const expectedOptions = { otherArgs: { headers: { @@ -386,7 +396,9 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.GetAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.autoscaler = ''; + const expectedHeaderRequestParams = 'project=&zone=&autoscaler='; const expectedOptions = { otherArgs: { headers: { @@ -432,7 +444,9 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.GetAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.autoscaler = ''; + const expectedHeaderRequestParams = 'project=&zone=&autoscaler='; const expectedOptions = { otherArgs: { headers: { @@ -460,6 +474,8 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.GetAutoscalerRequest() ); request.project = ''; + request.zone = ''; + request.autoscaler = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -477,7 +493,8 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.InsertAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -508,7 +525,8 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.InsertAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -555,7 +573,8 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.InsertAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -583,6 +602,7 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.InsertAutoscalerRequest() ); request.project = ''; + request.zone = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -600,7 +620,8 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.PatchAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -631,7 +652,8 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.PatchAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -677,7 +699,8 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.PatchAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -705,6 +728,7 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.PatchAutoscalerRequest() ); request.project = ''; + request.zone = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -722,7 +746,8 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.UpdateAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -753,7 +778,8 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.UpdateAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -800,7 +826,8 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.UpdateAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -828,6 +855,7 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.UpdateAutoscalerRequest() ); request.project = ''; + request.zone = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.update(request), expectedError); @@ -939,7 +967,8 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.ListAutoscalersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -972,7 +1001,8 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.ListAutoscalersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -1020,7 +1050,8 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.ListAutoscalersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -1048,7 +1079,8 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.ListAutoscalersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.Autoscaler()), generateSampleMessage(new protos.google.cloud.compute.v1.Autoscaler()), @@ -1096,7 +1128,8 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.ListAutoscalersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -1141,7 +1174,8 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.ListAutoscalersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.Autoscaler()), generateSampleMessage(new protos.google.cloud.compute.v1.Autoscaler()), @@ -1177,7 +1211,8 @@ describe('v1.AutoscalersClient', () => { new protos.google.cloud.compute.v1.ListAutoscalersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_backend_buckets_v1.ts b/test/gapic_backend_buckets_v1.ts index aa66aa9a..4234b480 100644 --- a/test/gapic_backend_buckets_v1.ts +++ b/test/gapic_backend_buckets_v1.ts @@ -234,7 +234,8 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.AddSignedUrlKeyBackendBucketRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendBucket = ''; + const expectedHeaderRequestParams = 'project=&backend_bucket='; const expectedOptions = { otherArgs: { headers: { @@ -265,7 +266,8 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.AddSignedUrlKeyBackendBucketRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendBucket = ''; + const expectedHeaderRequestParams = 'project=&backend_bucket='; const expectedOptions = { otherArgs: { headers: { @@ -312,7 +314,8 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.AddSignedUrlKeyBackendBucketRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendBucket = ''; + const expectedHeaderRequestParams = 'project=&backend_bucket='; const expectedOptions = { otherArgs: { headers: { @@ -343,6 +346,7 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.AddSignedUrlKeyBackendBucketRequest() ); request.project = ''; + request.backendBucket = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.addSignedUrlKey(request), expectedError); @@ -360,7 +364,8 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.DeleteBackendBucketRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendBucket = ''; + const expectedHeaderRequestParams = 'project=&backend_bucket='; const expectedOptions = { otherArgs: { headers: { @@ -391,7 +396,8 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.DeleteBackendBucketRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendBucket = ''; + const expectedHeaderRequestParams = 'project=&backend_bucket='; const expectedOptions = { otherArgs: { headers: { @@ -438,7 +444,8 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.DeleteBackendBucketRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendBucket = ''; + const expectedHeaderRequestParams = 'project=&backend_bucket='; const expectedOptions = { otherArgs: { headers: { @@ -466,6 +473,7 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.DeleteBackendBucketRequest() ); request.project = ''; + request.backendBucket = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -483,7 +491,8 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.DeleteSignedUrlKeyBackendBucketRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendBucket = ''; + const expectedHeaderRequestParams = 'project=&backend_bucket='; const expectedOptions = { otherArgs: { headers: { @@ -515,7 +524,8 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.DeleteSignedUrlKeyBackendBucketRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendBucket = ''; + const expectedHeaderRequestParams = 'project=&backend_bucket='; const expectedOptions = { otherArgs: { headers: { @@ -562,7 +572,8 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.DeleteSignedUrlKeyBackendBucketRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendBucket = ''; + const expectedHeaderRequestParams = 'project=&backend_bucket='; const expectedOptions = { otherArgs: { headers: { @@ -593,6 +604,7 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.DeleteSignedUrlKeyBackendBucketRequest() ); request.project = ''; + request.backendBucket = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteSignedUrlKey(request), expectedError); @@ -610,7 +622,8 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.GetBackendBucketRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendBucket = ''; + const expectedHeaderRequestParams = 'project=&backend_bucket='; const expectedOptions = { otherArgs: { headers: { @@ -641,7 +654,8 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.GetBackendBucketRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendBucket = ''; + const expectedHeaderRequestParams = 'project=&backend_bucket='; const expectedOptions = { otherArgs: { headers: { @@ -687,7 +701,8 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.GetBackendBucketRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendBucket = ''; + const expectedHeaderRequestParams = 'project=&backend_bucket='; const expectedOptions = { otherArgs: { headers: { @@ -715,6 +730,7 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.GetBackendBucketRequest() ); request.project = ''; + request.backendBucket = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -855,7 +871,8 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.PatchBackendBucketRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendBucket = ''; + const expectedHeaderRequestParams = 'project=&backend_bucket='; const expectedOptions = { otherArgs: { headers: { @@ -886,7 +903,8 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.PatchBackendBucketRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendBucket = ''; + const expectedHeaderRequestParams = 'project=&backend_bucket='; const expectedOptions = { otherArgs: { headers: { @@ -932,7 +950,8 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.PatchBackendBucketRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendBucket = ''; + const expectedHeaderRequestParams = 'project=&backend_bucket='; const expectedOptions = { otherArgs: { headers: { @@ -960,6 +979,7 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.PatchBackendBucketRequest() ); request.project = ''; + request.backendBucket = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -977,7 +997,8 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendBucket = ''; + const expectedHeaderRequestParams = 'project=&backend_bucket='; const expectedOptions = { otherArgs: { headers: { @@ -1009,7 +1030,8 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendBucket = ''; + const expectedHeaderRequestParams = 'project=&backend_bucket='; const expectedOptions = { otherArgs: { headers: { @@ -1056,7 +1078,8 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendBucket = ''; + const expectedHeaderRequestParams = 'project=&backend_bucket='; const expectedOptions = { otherArgs: { headers: { @@ -1090,6 +1113,7 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.SetEdgeSecurityPolicyBackendBucketRequest() ); request.project = ''; + request.backendBucket = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1110,7 +1134,8 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.UpdateBackendBucketRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendBucket = ''; + const expectedHeaderRequestParams = 'project=&backend_bucket='; const expectedOptions = { otherArgs: { headers: { @@ -1141,7 +1166,8 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.UpdateBackendBucketRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendBucket = ''; + const expectedHeaderRequestParams = 'project=&backend_bucket='; const expectedOptions = { otherArgs: { headers: { @@ -1188,7 +1214,8 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.UpdateBackendBucketRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendBucket = ''; + const expectedHeaderRequestParams = 'project=&backend_bucket='; const expectedOptions = { otherArgs: { headers: { @@ -1216,6 +1243,7 @@ describe('v1.BackendBucketsClient', () => { new protos.google.cloud.compute.v1.UpdateBackendBucketRequest() ); request.project = ''; + request.backendBucket = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.update(request), expectedError); diff --git a/test/gapic_backend_services_v1.ts b/test/gapic_backend_services_v1.ts index 5bd85a5c..c83bd1a9 100644 --- a/test/gapic_backend_services_v1.ts +++ b/test/gapic_backend_services_v1.ts @@ -234,7 +234,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.AddSignedUrlKeyBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -265,7 +266,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.AddSignedUrlKeyBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -312,7 +314,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.AddSignedUrlKeyBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -343,6 +346,7 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.AddSignedUrlKeyBackendServiceRequest() ); request.project = ''; + request.backendService = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.addSignedUrlKey(request), expectedError); @@ -360,7 +364,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.DeleteBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -391,7 +396,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.DeleteBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -438,7 +444,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.DeleteBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -466,6 +473,7 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.DeleteBackendServiceRequest() ); request.project = ''; + request.backendService = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -483,7 +491,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.DeleteSignedUrlKeyBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -515,7 +524,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.DeleteSignedUrlKeyBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -562,7 +572,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.DeleteSignedUrlKeyBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -593,6 +604,7 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.DeleteSignedUrlKeyBackendServiceRequest() ); request.project = ''; + request.backendService = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteSignedUrlKey(request), expectedError); @@ -610,7 +622,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.GetBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -641,7 +654,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.GetBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -687,7 +701,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.GetBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -715,6 +730,7 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.GetBackendServiceRequest() ); request.project = ''; + request.backendService = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -732,7 +748,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.GetHealthBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -763,7 +780,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.GetHealthBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -810,7 +828,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.GetHealthBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -838,6 +857,7 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.GetHealthBackendServiceRequest() ); request.project = ''; + request.backendService = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getHealth(request), expectedError); @@ -978,7 +998,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.PatchBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -1009,7 +1030,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.PatchBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -1055,7 +1077,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.PatchBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -1083,6 +1106,7 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.PatchBackendServiceRequest() ); request.project = ''; + request.backendService = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -1100,7 +1124,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -1132,7 +1157,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -1179,7 +1205,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -1213,6 +1240,7 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.SetEdgeSecurityPolicyBackendServiceRequest() ); request.project = ''; + request.backendService = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1233,7 +1261,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.SetSecurityPolicyBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -1264,7 +1293,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.SetSecurityPolicyBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -1311,7 +1341,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.SetSecurityPolicyBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -1342,6 +1373,7 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.SetSecurityPolicyBackendServiceRequest() ); request.project = ''; + request.backendService = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setSecurityPolicy(request), expectedError); @@ -1359,7 +1391,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.UpdateBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -1390,7 +1423,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.UpdateBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -1437,7 +1471,8 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.UpdateBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -1465,6 +1500,7 @@ describe('v1.BackendServicesClient', () => { new protos.google.cloud.compute.v1.UpdateBackendServiceRequest() ); request.project = ''; + request.backendService = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.update(request), expectedError); diff --git a/test/gapic_disk_types_v1.ts b/test/gapic_disk_types_v1.ts index daa6eebe..4390e80b 100644 --- a/test/gapic_disk_types_v1.ts +++ b/test/gapic_disk_types_v1.ts @@ -232,7 +232,9 @@ describe('v1.DiskTypesClient', () => { new protos.google.cloud.compute.v1.GetDiskTypeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.diskType = ''; + const expectedHeaderRequestParams = 'project=&zone=&disk_type='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +265,9 @@ describe('v1.DiskTypesClient', () => { new protos.google.cloud.compute.v1.GetDiskTypeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.diskType = ''; + const expectedHeaderRequestParams = 'project=&zone=&disk_type='; const expectedOptions = { otherArgs: { headers: { @@ -309,7 +313,9 @@ describe('v1.DiskTypesClient', () => { new protos.google.cloud.compute.v1.GetDiskTypeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.diskType = ''; + const expectedHeaderRequestParams = 'project=&zone=&disk_type='; const expectedOptions = { otherArgs: { headers: { @@ -337,6 +343,8 @@ describe('v1.DiskTypesClient', () => { new protos.google.cloud.compute.v1.GetDiskTypeRequest() ); request.project = ''; + request.zone = ''; + request.diskType = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -448,7 +456,8 @@ describe('v1.DiskTypesClient', () => { new protos.google.cloud.compute.v1.ListDiskTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -481,7 +490,8 @@ describe('v1.DiskTypesClient', () => { new protos.google.cloud.compute.v1.ListDiskTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -529,7 +539,8 @@ describe('v1.DiskTypesClient', () => { new protos.google.cloud.compute.v1.ListDiskTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -557,7 +568,8 @@ describe('v1.DiskTypesClient', () => { new protos.google.cloud.compute.v1.ListDiskTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.DiskType()), generateSampleMessage(new protos.google.cloud.compute.v1.DiskType()), @@ -605,7 +617,8 @@ describe('v1.DiskTypesClient', () => { new protos.google.cloud.compute.v1.ListDiskTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -650,7 +663,8 @@ describe('v1.DiskTypesClient', () => { new protos.google.cloud.compute.v1.ListDiskTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.DiskType()), generateSampleMessage(new protos.google.cloud.compute.v1.DiskType()), @@ -686,7 +700,8 @@ describe('v1.DiskTypesClient', () => { new protos.google.cloud.compute.v1.ListDiskTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_disks_v1.ts b/test/gapic_disks_v1.ts index 0a3ef3d5..507187b0 100644 --- a/test/gapic_disks_v1.ts +++ b/test/gapic_disks_v1.ts @@ -232,7 +232,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.AddResourcePoliciesDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=&zone=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -264,7 +266,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.AddResourcePoliciesDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=&zone=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -311,7 +315,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.AddResourcePoliciesDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=&zone=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -342,6 +348,8 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.AddResourcePoliciesDiskRequest() ); request.project = ''; + request.zone = ''; + request.disk = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.addResourcePolicies(request), expectedError); @@ -359,7 +367,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.CreateSnapshotDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=&zone=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -390,7 +400,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.CreateSnapshotDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=&zone=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -437,7 +449,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.CreateSnapshotDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=&zone=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -468,6 +482,8 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.CreateSnapshotDiskRequest() ); request.project = ''; + request.zone = ''; + request.disk = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createSnapshot(request), expectedError); @@ -485,7 +501,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.DeleteDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=&zone=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -516,7 +534,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.DeleteDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=&zone=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -563,7 +583,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.DeleteDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=&zone=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -591,6 +613,8 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.DeleteDiskRequest() ); request.project = ''; + request.zone = ''; + request.disk = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -608,7 +632,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.GetDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=&zone=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -639,7 +665,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.GetDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=&zone=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -685,7 +713,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.GetDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=&zone=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -713,6 +743,8 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.GetDiskRequest() ); request.project = ''; + request.zone = ''; + request.disk = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -730,7 +762,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -761,7 +795,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -808,7 +844,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -839,6 +877,8 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyDiskRequest() ); request.project = ''; + request.zone = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getIamPolicy(request), expectedError); @@ -856,7 +896,8 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.InsertDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -887,7 +928,8 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.InsertDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -934,7 +976,8 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.InsertDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -962,6 +1005,7 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.InsertDiskRequest() ); request.project = ''; + request.zone = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -979,7 +1023,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.RemoveResourcePoliciesDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=&zone=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -1011,7 +1057,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.RemoveResourcePoliciesDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=&zone=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -1058,7 +1106,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.RemoveResourcePoliciesDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=&zone=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -1092,6 +1142,8 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.RemoveResourcePoliciesDiskRequest() ); request.project = ''; + request.zone = ''; + request.disk = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1112,7 +1164,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.ResizeDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=&zone=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -1143,7 +1197,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.ResizeDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=&zone=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -1190,7 +1246,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.ResizeDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=&zone=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -1218,6 +1276,8 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.ResizeDiskRequest() ); request.project = ''; + request.zone = ''; + request.disk = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.resize(request), expectedError); @@ -1235,7 +1295,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1266,7 +1328,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1313,7 +1377,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1344,6 +1410,8 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyDiskRequest() ); request.project = ''; + request.zone = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setIamPolicy(request), expectedError); @@ -1361,7 +1429,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.SetLabelsDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1392,7 +1462,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.SetLabelsDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1439,7 +1511,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.SetLabelsDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1467,6 +1541,8 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.SetLabelsDiskRequest() ); request.project = ''; + request.zone = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setLabels(request), expectedError); @@ -1484,7 +1560,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1516,7 +1594,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1563,7 +1643,9 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1594,6 +1676,8 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsDiskRequest() ); request.project = ''; + request.zone = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.testIamPermissions(request), expectedError); @@ -1705,7 +1789,8 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.ListDisksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -1738,7 +1823,8 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.ListDisksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -1786,7 +1872,8 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.ListDisksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -1814,7 +1901,8 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.ListDisksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.Disk()), generateSampleMessage(new protos.google.cloud.compute.v1.Disk()), @@ -1859,7 +1947,8 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.ListDisksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -1901,7 +1990,8 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.ListDisksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.Disk()), generateSampleMessage(new protos.google.cloud.compute.v1.Disk()), @@ -1937,7 +2027,8 @@ describe('v1.DisksClient', () => { new protos.google.cloud.compute.v1.ListDisksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_external_vpn_gateways_v1.ts b/test/gapic_external_vpn_gateways_v1.ts index 5a8bf37c..f9bfd1fb 100644 --- a/test/gapic_external_vpn_gateways_v1.ts +++ b/test/gapic_external_vpn_gateways_v1.ts @@ -236,7 +236,8 @@ describe('v1.ExternalVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.DeleteExternalVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.externalVpnGateway = ''; + const expectedHeaderRequestParams = 'project=&external_vpn_gateway='; const expectedOptions = { otherArgs: { headers: { @@ -269,7 +270,8 @@ describe('v1.ExternalVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.DeleteExternalVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.externalVpnGateway = ''; + const expectedHeaderRequestParams = 'project=&external_vpn_gateway='; const expectedOptions = { otherArgs: { headers: { @@ -318,7 +320,8 @@ describe('v1.ExternalVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.DeleteExternalVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.externalVpnGateway = ''; + const expectedHeaderRequestParams = 'project=&external_vpn_gateway='; const expectedOptions = { otherArgs: { headers: { @@ -348,6 +351,7 @@ describe('v1.ExternalVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.DeleteExternalVpnGatewayRequest() ); request.project = ''; + request.externalVpnGateway = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -367,7 +371,8 @@ describe('v1.ExternalVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.GetExternalVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.externalVpnGateway = ''; + const expectedHeaderRequestParams = 'project=&external_vpn_gateway='; const expectedOptions = { otherArgs: { headers: { @@ -400,7 +405,8 @@ describe('v1.ExternalVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.GetExternalVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.externalVpnGateway = ''; + const expectedHeaderRequestParams = 'project=&external_vpn_gateway='; const expectedOptions = { otherArgs: { headers: { @@ -448,7 +454,8 @@ describe('v1.ExternalVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.GetExternalVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.externalVpnGateway = ''; + const expectedHeaderRequestParams = 'project=&external_vpn_gateway='; const expectedOptions = { otherArgs: { headers: { @@ -478,6 +485,7 @@ describe('v1.ExternalVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.GetExternalVpnGatewayRequest() ); request.project = ''; + request.externalVpnGateway = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -628,7 +636,8 @@ describe('v1.ExternalVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.SetLabelsExternalVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -661,7 +670,8 @@ describe('v1.ExternalVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.SetLabelsExternalVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -710,7 +720,8 @@ describe('v1.ExternalVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.SetLabelsExternalVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -740,6 +751,7 @@ describe('v1.ExternalVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.SetLabelsExternalVpnGatewayRequest() ); request.project = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setLabels(request), expectedError); @@ -759,7 +771,8 @@ describe('v1.ExternalVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsExternalVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -793,7 +806,8 @@ describe('v1.ExternalVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsExternalVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -842,7 +856,8 @@ describe('v1.ExternalVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsExternalVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -875,6 +890,7 @@ describe('v1.ExternalVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsExternalVpnGatewayRequest() ); request.project = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.testIamPermissions(request), expectedError); diff --git a/test/gapic_firewalls_v1.ts b/test/gapic_firewalls_v1.ts index 06957fc5..648a7fe9 100644 --- a/test/gapic_firewalls_v1.ts +++ b/test/gapic_firewalls_v1.ts @@ -232,7 +232,8 @@ describe('v1.FirewallsClient', () => { new protos.google.cloud.compute.v1.DeleteFirewallRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewall = ''; + const expectedHeaderRequestParams = 'project=&firewall='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +264,8 @@ describe('v1.FirewallsClient', () => { new protos.google.cloud.compute.v1.DeleteFirewallRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewall = ''; + const expectedHeaderRequestParams = 'project=&firewall='; const expectedOptions = { otherArgs: { headers: { @@ -310,7 +312,8 @@ describe('v1.FirewallsClient', () => { new protos.google.cloud.compute.v1.DeleteFirewallRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewall = ''; + const expectedHeaderRequestParams = 'project=&firewall='; const expectedOptions = { otherArgs: { headers: { @@ -338,6 +341,7 @@ describe('v1.FirewallsClient', () => { new protos.google.cloud.compute.v1.DeleteFirewallRequest() ); request.project = ''; + request.firewall = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -355,7 +359,8 @@ describe('v1.FirewallsClient', () => { new protos.google.cloud.compute.v1.GetFirewallRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewall = ''; + const expectedHeaderRequestParams = 'project=&firewall='; const expectedOptions = { otherArgs: { headers: { @@ -386,7 +391,8 @@ describe('v1.FirewallsClient', () => { new protos.google.cloud.compute.v1.GetFirewallRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewall = ''; + const expectedHeaderRequestParams = 'project=&firewall='; const expectedOptions = { otherArgs: { headers: { @@ -432,7 +438,8 @@ describe('v1.FirewallsClient', () => { new protos.google.cloud.compute.v1.GetFirewallRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewall = ''; + const expectedHeaderRequestParams = 'project=&firewall='; const expectedOptions = { otherArgs: { headers: { @@ -460,6 +467,7 @@ describe('v1.FirewallsClient', () => { new protos.google.cloud.compute.v1.GetFirewallRequest() ); request.project = ''; + request.firewall = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -600,7 +608,8 @@ describe('v1.FirewallsClient', () => { new protos.google.cloud.compute.v1.PatchFirewallRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewall = ''; + const expectedHeaderRequestParams = 'project=&firewall='; const expectedOptions = { otherArgs: { headers: { @@ -631,7 +640,8 @@ describe('v1.FirewallsClient', () => { new protos.google.cloud.compute.v1.PatchFirewallRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewall = ''; + const expectedHeaderRequestParams = 'project=&firewall='; const expectedOptions = { otherArgs: { headers: { @@ -677,7 +687,8 @@ describe('v1.FirewallsClient', () => { new protos.google.cloud.compute.v1.PatchFirewallRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewall = ''; + const expectedHeaderRequestParams = 'project=&firewall='; const expectedOptions = { otherArgs: { headers: { @@ -705,6 +716,7 @@ describe('v1.FirewallsClient', () => { new protos.google.cloud.compute.v1.PatchFirewallRequest() ); request.project = ''; + request.firewall = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -722,7 +734,8 @@ describe('v1.FirewallsClient', () => { new protos.google.cloud.compute.v1.UpdateFirewallRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewall = ''; + const expectedHeaderRequestParams = 'project=&firewall='; const expectedOptions = { otherArgs: { headers: { @@ -753,7 +766,8 @@ describe('v1.FirewallsClient', () => { new protos.google.cloud.compute.v1.UpdateFirewallRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewall = ''; + const expectedHeaderRequestParams = 'project=&firewall='; const expectedOptions = { otherArgs: { headers: { @@ -800,7 +814,8 @@ describe('v1.FirewallsClient', () => { new protos.google.cloud.compute.v1.UpdateFirewallRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewall = ''; + const expectedHeaderRequestParams = 'project=&firewall='; const expectedOptions = { otherArgs: { headers: { @@ -828,6 +843,7 @@ describe('v1.FirewallsClient', () => { new protos.google.cloud.compute.v1.UpdateFirewallRequest() ); request.project = ''; + request.firewall = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.update(request), expectedError); diff --git a/test/gapic_forwarding_rules_v1.ts b/test/gapic_forwarding_rules_v1.ts index d2328d9f..d0f0791a 100644 --- a/test/gapic_forwarding_rules_v1.ts +++ b/test/gapic_forwarding_rules_v1.ts @@ -234,7 +234,9 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.DeleteForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.forwardingRule = ''; + const expectedHeaderRequestParams = 'project=®ion=&forwarding_rule='; const expectedOptions = { otherArgs: { headers: { @@ -265,7 +267,9 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.DeleteForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.forwardingRule = ''; + const expectedHeaderRequestParams = 'project=®ion=&forwarding_rule='; const expectedOptions = { otherArgs: { headers: { @@ -312,7 +316,9 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.DeleteForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.forwardingRule = ''; + const expectedHeaderRequestParams = 'project=®ion=&forwarding_rule='; const expectedOptions = { otherArgs: { headers: { @@ -340,6 +346,8 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.DeleteForwardingRuleRequest() ); request.project = ''; + request.region = ''; + request.forwardingRule = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -357,7 +365,9 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.GetForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.forwardingRule = ''; + const expectedHeaderRequestParams = 'project=®ion=&forwarding_rule='; const expectedOptions = { otherArgs: { headers: { @@ -388,7 +398,9 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.GetForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.forwardingRule = ''; + const expectedHeaderRequestParams = 'project=®ion=&forwarding_rule='; const expectedOptions = { otherArgs: { headers: { @@ -434,7 +446,9 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.GetForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.forwardingRule = ''; + const expectedHeaderRequestParams = 'project=®ion=&forwarding_rule='; const expectedOptions = { otherArgs: { headers: { @@ -462,6 +476,8 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.GetForwardingRuleRequest() ); request.project = ''; + request.region = ''; + request.forwardingRule = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -479,7 +495,8 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.InsertForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -510,7 +527,8 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.InsertForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -557,7 +575,8 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.InsertForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -585,6 +604,7 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.InsertForwardingRuleRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -602,7 +622,9 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.PatchForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.forwardingRule = ''; + const expectedHeaderRequestParams = 'project=®ion=&forwarding_rule='; const expectedOptions = { otherArgs: { headers: { @@ -633,7 +655,9 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.PatchForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.forwardingRule = ''; + const expectedHeaderRequestParams = 'project=®ion=&forwarding_rule='; const expectedOptions = { otherArgs: { headers: { @@ -679,7 +703,9 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.PatchForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.forwardingRule = ''; + const expectedHeaderRequestParams = 'project=®ion=&forwarding_rule='; const expectedOptions = { otherArgs: { headers: { @@ -707,6 +733,8 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.PatchForwardingRuleRequest() ); request.project = ''; + request.region = ''; + request.forwardingRule = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -724,7 +752,9 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.SetLabelsForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -755,7 +785,9 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.SetLabelsForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -802,7 +834,9 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.SetLabelsForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -830,6 +864,8 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.SetLabelsForwardingRuleRequest() ); request.project = ''; + request.region = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setLabels(request), expectedError); @@ -847,7 +883,9 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.SetTargetForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.forwardingRule = ''; + const expectedHeaderRequestParams = 'project=®ion=&forwarding_rule='; const expectedOptions = { otherArgs: { headers: { @@ -878,7 +916,9 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.SetTargetForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.forwardingRule = ''; + const expectedHeaderRequestParams = 'project=®ion=&forwarding_rule='; const expectedOptions = { otherArgs: { headers: { @@ -925,7 +965,9 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.SetTargetForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.forwardingRule = ''; + const expectedHeaderRequestParams = 'project=®ion=&forwarding_rule='; const expectedOptions = { otherArgs: { headers: { @@ -953,6 +995,8 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.SetTargetForwardingRuleRequest() ); request.project = ''; + request.region = ''; + request.forwardingRule = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setTarget(request), expectedError); @@ -1064,7 +1108,8 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.ListForwardingRulesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1103,7 +1148,8 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.ListForwardingRulesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1157,7 +1203,8 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.ListForwardingRulesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1185,7 +1232,8 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.ListForwardingRulesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.ForwardingRule() @@ -1239,7 +1287,8 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.ListForwardingRulesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -1284,7 +1333,8 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.ListForwardingRulesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.ForwardingRule() @@ -1326,7 +1376,8 @@ describe('v1.ForwardingRulesClient', () => { new protos.google.cloud.compute.v1.ListForwardingRulesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_global_addresses_v1.ts b/test/gapic_global_addresses_v1.ts index 2b5f8ece..a1434cad 100644 --- a/test/gapic_global_addresses_v1.ts +++ b/test/gapic_global_addresses_v1.ts @@ -234,7 +234,8 @@ describe('v1.GlobalAddressesClient', () => { new protos.google.cloud.compute.v1.DeleteGlobalAddressRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.address = ''; + const expectedHeaderRequestParams = 'project=&address='; const expectedOptions = { otherArgs: { headers: { @@ -265,7 +266,8 @@ describe('v1.GlobalAddressesClient', () => { new protos.google.cloud.compute.v1.DeleteGlobalAddressRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.address = ''; + const expectedHeaderRequestParams = 'project=&address='; const expectedOptions = { otherArgs: { headers: { @@ -312,7 +314,8 @@ describe('v1.GlobalAddressesClient', () => { new protos.google.cloud.compute.v1.DeleteGlobalAddressRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.address = ''; + const expectedHeaderRequestParams = 'project=&address='; const expectedOptions = { otherArgs: { headers: { @@ -340,6 +343,7 @@ describe('v1.GlobalAddressesClient', () => { new protos.google.cloud.compute.v1.DeleteGlobalAddressRequest() ); request.project = ''; + request.address = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -357,7 +361,8 @@ describe('v1.GlobalAddressesClient', () => { new protos.google.cloud.compute.v1.GetGlobalAddressRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.address = ''; + const expectedHeaderRequestParams = 'project=&address='; const expectedOptions = { otherArgs: { headers: { @@ -388,7 +393,8 @@ describe('v1.GlobalAddressesClient', () => { new protos.google.cloud.compute.v1.GetGlobalAddressRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.address = ''; + const expectedHeaderRequestParams = 'project=&address='; const expectedOptions = { otherArgs: { headers: { @@ -434,7 +440,8 @@ describe('v1.GlobalAddressesClient', () => { new protos.google.cloud.compute.v1.GetGlobalAddressRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.address = ''; + const expectedHeaderRequestParams = 'project=&address='; const expectedOptions = { otherArgs: { headers: { @@ -462,6 +469,7 @@ describe('v1.GlobalAddressesClient', () => { new protos.google.cloud.compute.v1.GetGlobalAddressRequest() ); request.project = ''; + request.address = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); diff --git a/test/gapic_global_forwarding_rules_v1.ts b/test/gapic_global_forwarding_rules_v1.ts index 961f845a..85a02c9e 100644 --- a/test/gapic_global_forwarding_rules_v1.ts +++ b/test/gapic_global_forwarding_rules_v1.ts @@ -243,7 +243,8 @@ describe('v1.GlobalForwardingRulesClient', () => { new protos.google.cloud.compute.v1.DeleteGlobalForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.forwardingRule = ''; + const expectedHeaderRequestParams = 'project=&forwarding_rule='; const expectedOptions = { otherArgs: { headers: { @@ -275,7 +276,8 @@ describe('v1.GlobalForwardingRulesClient', () => { new protos.google.cloud.compute.v1.DeleteGlobalForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.forwardingRule = ''; + const expectedHeaderRequestParams = 'project=&forwarding_rule='; const expectedOptions = { otherArgs: { headers: { @@ -323,7 +325,8 @@ describe('v1.GlobalForwardingRulesClient', () => { new protos.google.cloud.compute.v1.DeleteGlobalForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.forwardingRule = ''; + const expectedHeaderRequestParams = 'project=&forwarding_rule='; const expectedOptions = { otherArgs: { headers: { @@ -352,6 +355,7 @@ describe('v1.GlobalForwardingRulesClient', () => { new protos.google.cloud.compute.v1.DeleteGlobalForwardingRuleRequest() ); request.project = ''; + request.forwardingRule = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -370,7 +374,8 @@ describe('v1.GlobalForwardingRulesClient', () => { new protos.google.cloud.compute.v1.GetGlobalForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.forwardingRule = ''; + const expectedHeaderRequestParams = 'project=&forwarding_rule='; const expectedOptions = { otherArgs: { headers: { @@ -402,7 +407,8 @@ describe('v1.GlobalForwardingRulesClient', () => { new protos.google.cloud.compute.v1.GetGlobalForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.forwardingRule = ''; + const expectedHeaderRequestParams = 'project=&forwarding_rule='; const expectedOptions = { otherArgs: { headers: { @@ -449,7 +455,8 @@ describe('v1.GlobalForwardingRulesClient', () => { new protos.google.cloud.compute.v1.GetGlobalForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.forwardingRule = ''; + const expectedHeaderRequestParams = 'project=&forwarding_rule='; const expectedOptions = { otherArgs: { headers: { @@ -478,6 +485,7 @@ describe('v1.GlobalForwardingRulesClient', () => { new protos.google.cloud.compute.v1.GetGlobalForwardingRuleRequest() ); request.project = ''; + request.forwardingRule = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -623,7 +631,8 @@ describe('v1.GlobalForwardingRulesClient', () => { new protos.google.cloud.compute.v1.PatchGlobalForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.forwardingRule = ''; + const expectedHeaderRequestParams = 'project=&forwarding_rule='; const expectedOptions = { otherArgs: { headers: { @@ -655,7 +664,8 @@ describe('v1.GlobalForwardingRulesClient', () => { new protos.google.cloud.compute.v1.PatchGlobalForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.forwardingRule = ''; + const expectedHeaderRequestParams = 'project=&forwarding_rule='; const expectedOptions = { otherArgs: { headers: { @@ -702,7 +712,8 @@ describe('v1.GlobalForwardingRulesClient', () => { new protos.google.cloud.compute.v1.PatchGlobalForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.forwardingRule = ''; + const expectedHeaderRequestParams = 'project=&forwarding_rule='; const expectedOptions = { otherArgs: { headers: { @@ -731,6 +742,7 @@ describe('v1.GlobalForwardingRulesClient', () => { new protos.google.cloud.compute.v1.PatchGlobalForwardingRuleRequest() ); request.project = ''; + request.forwardingRule = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -749,7 +761,8 @@ describe('v1.GlobalForwardingRulesClient', () => { new protos.google.cloud.compute.v1.SetLabelsGlobalForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -781,7 +794,8 @@ describe('v1.GlobalForwardingRulesClient', () => { new protos.google.cloud.compute.v1.SetLabelsGlobalForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -829,7 +843,8 @@ describe('v1.GlobalForwardingRulesClient', () => { new protos.google.cloud.compute.v1.SetLabelsGlobalForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -858,6 +873,7 @@ describe('v1.GlobalForwardingRulesClient', () => { new protos.google.cloud.compute.v1.SetLabelsGlobalForwardingRuleRequest() ); request.project = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setLabels(request), expectedError); @@ -876,7 +892,8 @@ describe('v1.GlobalForwardingRulesClient', () => { new protos.google.cloud.compute.v1.SetTargetGlobalForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.forwardingRule = ''; + const expectedHeaderRequestParams = 'project=&forwarding_rule='; const expectedOptions = { otherArgs: { headers: { @@ -908,7 +925,8 @@ describe('v1.GlobalForwardingRulesClient', () => { new protos.google.cloud.compute.v1.SetTargetGlobalForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.forwardingRule = ''; + const expectedHeaderRequestParams = 'project=&forwarding_rule='; const expectedOptions = { otherArgs: { headers: { @@ -956,7 +974,8 @@ describe('v1.GlobalForwardingRulesClient', () => { new protos.google.cloud.compute.v1.SetTargetGlobalForwardingRuleRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.forwardingRule = ''; + const expectedHeaderRequestParams = 'project=&forwarding_rule='; const expectedOptions = { otherArgs: { headers: { @@ -985,6 +1004,7 @@ describe('v1.GlobalForwardingRulesClient', () => { new protos.google.cloud.compute.v1.SetTargetGlobalForwardingRuleRequest() ); request.project = ''; + request.forwardingRule = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setTarget(request), expectedError); diff --git a/test/gapic_global_network_endpoint_groups_v1.ts b/test/gapic_global_network_endpoint_groups_v1.ts index 37af9101..b59f22bc 100644 --- a/test/gapic_global_network_endpoint_groups_v1.ts +++ b/test/gapic_global_network_endpoint_groups_v1.ts @@ -260,7 +260,8 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = 'project=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -295,7 +296,8 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = 'project=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -345,7 +347,8 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = 'project=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -382,6 +385,7 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest() ); request.project = ''; + request.networkEndpointGroup = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -405,7 +409,8 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.DeleteGlobalNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = 'project=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -439,7 +444,8 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.DeleteGlobalNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = 'project=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -489,7 +495,8 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.DeleteGlobalNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = 'project=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -520,6 +527,7 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.DeleteGlobalNetworkEndpointGroupRequest() ); request.project = ''; + request.networkEndpointGroup = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -540,7 +548,8 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = 'project=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -575,7 +584,8 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = 'project=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -625,7 +635,8 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = 'project=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -662,6 +673,7 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest() ); request.project = ''; + request.networkEndpointGroup = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -685,7 +697,8 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.GetGlobalNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = 'project=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -719,7 +732,8 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.GetGlobalNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = 'project=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -768,7 +782,8 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.GetGlobalNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = 'project=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -799,6 +814,7 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.GetGlobalNetworkEndpointGroupRequest() ); request.project = ''; + request.networkEndpointGroup = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -1280,7 +1296,8 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = 'project=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -1323,7 +1340,8 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = 'project=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -1383,7 +1401,8 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = 'project=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -1417,7 +1436,8 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = 'project=&network_endpoint_group='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.NetworkEndpointWithHealthStatus() @@ -1478,7 +1498,8 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = 'project=&network_endpoint_group='; const expectedError = new Error('expected'); client.descriptors.page.listNetworkEndpoints.createStream = stubPageStreamingCall(undefined, expectedError); @@ -1528,7 +1549,8 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = 'project=&network_endpoint_group='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.NetworkEndpointWithHealthStatus() @@ -1576,7 +1598,8 @@ describe('v1.GlobalNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = 'project=&network_endpoint_group='; const expectedError = new Error('expected'); client.descriptors.page.listNetworkEndpoints.asyncIterate = stubAsyncIterationCall(undefined, expectedError); diff --git a/test/gapic_global_operations_v1.ts b/test/gapic_global_operations_v1.ts index 865e11ae..8210b652 100644 --- a/test/gapic_global_operations_v1.ts +++ b/test/gapic_global_operations_v1.ts @@ -234,7 +234,8 @@ describe('v1.GlobalOperationsClient', () => { new protos.google.cloud.compute.v1.DeleteGlobalOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.operation = ''; + const expectedHeaderRequestParams = 'project=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -265,7 +266,8 @@ describe('v1.GlobalOperationsClient', () => { new protos.google.cloud.compute.v1.DeleteGlobalOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.operation = ''; + const expectedHeaderRequestParams = 'project=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -312,7 +314,8 @@ describe('v1.GlobalOperationsClient', () => { new protos.google.cloud.compute.v1.DeleteGlobalOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.operation = ''; + const expectedHeaderRequestParams = 'project=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -340,6 +343,7 @@ describe('v1.GlobalOperationsClient', () => { new protos.google.cloud.compute.v1.DeleteGlobalOperationRequest() ); request.project = ''; + request.operation = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -357,7 +361,8 @@ describe('v1.GlobalOperationsClient', () => { new protos.google.cloud.compute.v1.GetGlobalOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.operation = ''; + const expectedHeaderRequestParams = 'project=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -388,7 +393,8 @@ describe('v1.GlobalOperationsClient', () => { new protos.google.cloud.compute.v1.GetGlobalOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.operation = ''; + const expectedHeaderRequestParams = 'project=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -434,7 +440,8 @@ describe('v1.GlobalOperationsClient', () => { new protos.google.cloud.compute.v1.GetGlobalOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.operation = ''; + const expectedHeaderRequestParams = 'project=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -462,6 +469,7 @@ describe('v1.GlobalOperationsClient', () => { new protos.google.cloud.compute.v1.GetGlobalOperationRequest() ); request.project = ''; + request.operation = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -479,7 +487,8 @@ describe('v1.GlobalOperationsClient', () => { new protos.google.cloud.compute.v1.WaitGlobalOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.operation = ''; + const expectedHeaderRequestParams = 'project=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -510,7 +519,8 @@ describe('v1.GlobalOperationsClient', () => { new protos.google.cloud.compute.v1.WaitGlobalOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.operation = ''; + const expectedHeaderRequestParams = 'project=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -556,7 +566,8 @@ describe('v1.GlobalOperationsClient', () => { new protos.google.cloud.compute.v1.WaitGlobalOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.operation = ''; + const expectedHeaderRequestParams = 'project=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -584,6 +595,7 @@ describe('v1.GlobalOperationsClient', () => { new protos.google.cloud.compute.v1.WaitGlobalOperationRequest() ); request.project = ''; + request.operation = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.wait(request), expectedError); diff --git a/test/gapic_global_public_delegated_prefixes_v1.ts b/test/gapic_global_public_delegated_prefixes_v1.ts index f493e36f..f84732e6 100644 --- a/test/gapic_global_public_delegated_prefixes_v1.ts +++ b/test/gapic_global_public_delegated_prefixes_v1.ts @@ -260,7 +260,8 @@ describe('v1.GlobalPublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.DeleteGlobalPublicDelegatedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.publicDelegatedPrefix = ''; + const expectedHeaderRequestParams = 'project=&public_delegated_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -294,7 +295,8 @@ describe('v1.GlobalPublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.DeleteGlobalPublicDelegatedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.publicDelegatedPrefix = ''; + const expectedHeaderRequestParams = 'project=&public_delegated_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -344,7 +346,8 @@ describe('v1.GlobalPublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.DeleteGlobalPublicDelegatedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.publicDelegatedPrefix = ''; + const expectedHeaderRequestParams = 'project=&public_delegated_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -375,6 +378,7 @@ describe('v1.GlobalPublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.DeleteGlobalPublicDelegatedPrefixeRequest() ); request.project = ''; + request.publicDelegatedPrefix = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -395,7 +399,8 @@ describe('v1.GlobalPublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.GetGlobalPublicDelegatedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.publicDelegatedPrefix = ''; + const expectedHeaderRequestParams = 'project=&public_delegated_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -429,7 +434,8 @@ describe('v1.GlobalPublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.GetGlobalPublicDelegatedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.publicDelegatedPrefix = ''; + const expectedHeaderRequestParams = 'project=&public_delegated_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -478,7 +484,8 @@ describe('v1.GlobalPublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.GetGlobalPublicDelegatedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.publicDelegatedPrefix = ''; + const expectedHeaderRequestParams = 'project=&public_delegated_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -509,6 +516,7 @@ describe('v1.GlobalPublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.GetGlobalPublicDelegatedPrefixeRequest() ); request.project = ''; + request.publicDelegatedPrefix = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -664,7 +672,8 @@ describe('v1.GlobalPublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.PatchGlobalPublicDelegatedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.publicDelegatedPrefix = ''; + const expectedHeaderRequestParams = 'project=&public_delegated_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -698,7 +707,8 @@ describe('v1.GlobalPublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.PatchGlobalPublicDelegatedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.publicDelegatedPrefix = ''; + const expectedHeaderRequestParams = 'project=&public_delegated_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -747,7 +757,8 @@ describe('v1.GlobalPublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.PatchGlobalPublicDelegatedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.publicDelegatedPrefix = ''; + const expectedHeaderRequestParams = 'project=&public_delegated_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -778,6 +789,7 @@ describe('v1.GlobalPublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.PatchGlobalPublicDelegatedPrefixeRequest() ); request.project = ''; + request.publicDelegatedPrefix = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); diff --git a/test/gapic_health_checks_v1.ts b/test/gapic_health_checks_v1.ts index f95601cc..0b7f08b4 100644 --- a/test/gapic_health_checks_v1.ts +++ b/test/gapic_health_checks_v1.ts @@ -232,7 +232,8 @@ describe('v1.HealthChecksClient', () => { new protos.google.cloud.compute.v1.DeleteHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.healthCheck = ''; + const expectedHeaderRequestParams = 'project=&health_check='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +264,8 @@ describe('v1.HealthChecksClient', () => { new protos.google.cloud.compute.v1.DeleteHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.healthCheck = ''; + const expectedHeaderRequestParams = 'project=&health_check='; const expectedOptions = { otherArgs: { headers: { @@ -310,7 +312,8 @@ describe('v1.HealthChecksClient', () => { new protos.google.cloud.compute.v1.DeleteHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.healthCheck = ''; + const expectedHeaderRequestParams = 'project=&health_check='; const expectedOptions = { otherArgs: { headers: { @@ -338,6 +341,7 @@ describe('v1.HealthChecksClient', () => { new protos.google.cloud.compute.v1.DeleteHealthCheckRequest() ); request.project = ''; + request.healthCheck = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -355,7 +359,8 @@ describe('v1.HealthChecksClient', () => { new protos.google.cloud.compute.v1.GetHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.healthCheck = ''; + const expectedHeaderRequestParams = 'project=&health_check='; const expectedOptions = { otherArgs: { headers: { @@ -386,7 +391,8 @@ describe('v1.HealthChecksClient', () => { new protos.google.cloud.compute.v1.GetHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.healthCheck = ''; + const expectedHeaderRequestParams = 'project=&health_check='; const expectedOptions = { otherArgs: { headers: { @@ -432,7 +438,8 @@ describe('v1.HealthChecksClient', () => { new protos.google.cloud.compute.v1.GetHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.healthCheck = ''; + const expectedHeaderRequestParams = 'project=&health_check='; const expectedOptions = { otherArgs: { headers: { @@ -460,6 +467,7 @@ describe('v1.HealthChecksClient', () => { new protos.google.cloud.compute.v1.GetHealthCheckRequest() ); request.project = ''; + request.healthCheck = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -600,7 +608,8 @@ describe('v1.HealthChecksClient', () => { new protos.google.cloud.compute.v1.PatchHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.healthCheck = ''; + const expectedHeaderRequestParams = 'project=&health_check='; const expectedOptions = { otherArgs: { headers: { @@ -631,7 +640,8 @@ describe('v1.HealthChecksClient', () => { new protos.google.cloud.compute.v1.PatchHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.healthCheck = ''; + const expectedHeaderRequestParams = 'project=&health_check='; const expectedOptions = { otherArgs: { headers: { @@ -677,7 +687,8 @@ describe('v1.HealthChecksClient', () => { new protos.google.cloud.compute.v1.PatchHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.healthCheck = ''; + const expectedHeaderRequestParams = 'project=&health_check='; const expectedOptions = { otherArgs: { headers: { @@ -705,6 +716,7 @@ describe('v1.HealthChecksClient', () => { new protos.google.cloud.compute.v1.PatchHealthCheckRequest() ); request.project = ''; + request.healthCheck = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -722,7 +734,8 @@ describe('v1.HealthChecksClient', () => { new protos.google.cloud.compute.v1.UpdateHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.healthCheck = ''; + const expectedHeaderRequestParams = 'project=&health_check='; const expectedOptions = { otherArgs: { headers: { @@ -753,7 +766,8 @@ describe('v1.HealthChecksClient', () => { new protos.google.cloud.compute.v1.UpdateHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.healthCheck = ''; + const expectedHeaderRequestParams = 'project=&health_check='; const expectedOptions = { otherArgs: { headers: { @@ -800,7 +814,8 @@ describe('v1.HealthChecksClient', () => { new protos.google.cloud.compute.v1.UpdateHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.healthCheck = ''; + const expectedHeaderRequestParams = 'project=&health_check='; const expectedOptions = { otherArgs: { headers: { @@ -828,6 +843,7 @@ describe('v1.HealthChecksClient', () => { new protos.google.cloud.compute.v1.UpdateHealthCheckRequest() ); request.project = ''; + request.healthCheck = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.update(request), expectedError); diff --git a/test/gapic_image_family_views_v1.ts b/test/gapic_image_family_views_v1.ts index c5ce85d4..116db7ec 100644 --- a/test/gapic_image_family_views_v1.ts +++ b/test/gapic_image_family_views_v1.ts @@ -171,7 +171,9 @@ describe('v1.ImageFamilyViewsClient', () => { new protos.google.cloud.compute.v1.GetImageFamilyViewRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.family = ''; + const expectedHeaderRequestParams = 'project=&zone=&family='; const expectedOptions = { otherArgs: { headers: { @@ -202,7 +204,9 @@ describe('v1.ImageFamilyViewsClient', () => { new protos.google.cloud.compute.v1.GetImageFamilyViewRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.family = ''; + const expectedHeaderRequestParams = 'project=&zone=&family='; const expectedOptions = { otherArgs: { headers: { @@ -248,7 +252,9 @@ describe('v1.ImageFamilyViewsClient', () => { new protos.google.cloud.compute.v1.GetImageFamilyViewRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.family = ''; + const expectedHeaderRequestParams = 'project=&zone=&family='; const expectedOptions = { otherArgs: { headers: { @@ -276,6 +282,8 @@ describe('v1.ImageFamilyViewsClient', () => { new protos.google.cloud.compute.v1.GetImageFamilyViewRequest() ); request.project = ''; + request.zone = ''; + request.family = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); diff --git a/test/gapic_images_v1.ts b/test/gapic_images_v1.ts index a484eda7..ada7f5c7 100644 --- a/test/gapic_images_v1.ts +++ b/test/gapic_images_v1.ts @@ -232,7 +232,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.DeleteImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.image = ''; + const expectedHeaderRequestParams = 'project=&image='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +264,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.DeleteImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.image = ''; + const expectedHeaderRequestParams = 'project=&image='; const expectedOptions = { otherArgs: { headers: { @@ -310,7 +312,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.DeleteImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.image = ''; + const expectedHeaderRequestParams = 'project=&image='; const expectedOptions = { otherArgs: { headers: { @@ -338,6 +341,7 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.DeleteImageRequest() ); request.project = ''; + request.image = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -355,7 +359,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.DeprecateImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.image = ''; + const expectedHeaderRequestParams = 'project=&image='; const expectedOptions = { otherArgs: { headers: { @@ -386,7 +391,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.DeprecateImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.image = ''; + const expectedHeaderRequestParams = 'project=&image='; const expectedOptions = { otherArgs: { headers: { @@ -433,7 +439,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.DeprecateImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.image = ''; + const expectedHeaderRequestParams = 'project=&image='; const expectedOptions = { otherArgs: { headers: { @@ -461,6 +468,7 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.DeprecateImageRequest() ); request.project = ''; + request.image = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deprecate(request), expectedError); @@ -478,7 +486,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.GetImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.image = ''; + const expectedHeaderRequestParams = 'project=&image='; const expectedOptions = { otherArgs: { headers: { @@ -509,7 +518,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.GetImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.image = ''; + const expectedHeaderRequestParams = 'project=&image='; const expectedOptions = { otherArgs: { headers: { @@ -555,7 +565,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.GetImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.image = ''; + const expectedHeaderRequestParams = 'project=&image='; const expectedOptions = { otherArgs: { headers: { @@ -583,6 +594,7 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.GetImageRequest() ); request.project = ''; + request.image = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -600,7 +612,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.GetFromFamilyImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.family = ''; + const expectedHeaderRequestParams = 'project=&family='; const expectedOptions = { otherArgs: { headers: { @@ -631,7 +644,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.GetFromFamilyImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.family = ''; + const expectedHeaderRequestParams = 'project=&family='; const expectedOptions = { otherArgs: { headers: { @@ -678,7 +692,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.GetFromFamilyImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.family = ''; + const expectedHeaderRequestParams = 'project=&family='; const expectedOptions = { otherArgs: { headers: { @@ -709,6 +724,7 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.GetFromFamilyImageRequest() ); request.project = ''; + request.family = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getFromFamily(request), expectedError); @@ -726,7 +742,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -757,7 +774,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -804,7 +822,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -835,6 +854,7 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyImageRequest() ); request.project = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getIamPolicy(request), expectedError); @@ -975,7 +995,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.PatchImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.image = ''; + const expectedHeaderRequestParams = 'project=&image='; const expectedOptions = { otherArgs: { headers: { @@ -1006,7 +1027,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.PatchImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.image = ''; + const expectedHeaderRequestParams = 'project=&image='; const expectedOptions = { otherArgs: { headers: { @@ -1052,7 +1074,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.PatchImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.image = ''; + const expectedHeaderRequestParams = 'project=&image='; const expectedOptions = { otherArgs: { headers: { @@ -1080,6 +1103,7 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.PatchImageRequest() ); request.project = ''; + request.image = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -1097,7 +1121,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1128,7 +1153,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1175,7 +1201,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1206,6 +1233,7 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyImageRequest() ); request.project = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setIamPolicy(request), expectedError); @@ -1223,7 +1251,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.SetLabelsImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1254,7 +1283,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.SetLabelsImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1301,7 +1331,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.SetLabelsImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1329,6 +1360,7 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.SetLabelsImageRequest() ); request.project = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setLabels(request), expectedError); @@ -1346,7 +1378,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1378,7 +1411,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1425,7 +1459,8 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1456,6 +1491,7 @@ describe('v1.ImagesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsImageRequest() ); request.project = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.testIamPermissions(request), expectedError); diff --git a/test/gapic_instance_group_managers_v1.ts b/test/gapic_instance_group_managers_v1.ts index 33b1d65a..5e4f28bb 100644 --- a/test/gapic_instance_group_managers_v1.ts +++ b/test/gapic_instance_group_managers_v1.ts @@ -243,7 +243,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.AbandonInstancesInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -275,7 +278,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.AbandonInstancesInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -323,7 +329,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.AbandonInstancesInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -355,6 +364,8 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.AbandonInstancesInstanceGroupManagerRequest() ); request.project = ''; + request.zone = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.abandonInstances(request), expectedError); @@ -373,7 +384,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ApplyUpdatesToInstancesInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -406,7 +420,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ApplyUpdatesToInstancesInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -454,7 +471,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ApplyUpdatesToInstancesInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -489,6 +509,8 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ApplyUpdatesToInstancesInstanceGroupManagerRequest() ); request.project = ''; + request.zone = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -510,7 +532,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.CreateInstancesInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -542,7 +567,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.CreateInstancesInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -590,7 +618,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.CreateInstancesInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -622,6 +653,8 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.CreateInstancesInstanceGroupManagerRequest() ); request.project = ''; + request.zone = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createInstances(request), expectedError); @@ -640,7 +673,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.DeleteInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -672,7 +708,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.DeleteInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -720,7 +759,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.DeleteInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -749,6 +791,8 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.DeleteInstanceGroupManagerRequest() ); request.project = ''; + request.zone = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -767,7 +811,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.DeleteInstancesInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -799,7 +846,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.DeleteInstancesInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -847,7 +897,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.DeleteInstancesInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -879,6 +932,8 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.DeleteInstancesInstanceGroupManagerRequest() ); request.project = ''; + request.zone = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteInstances(request), expectedError); @@ -897,7 +952,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.DeletePerInstanceConfigsInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -930,7 +988,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.DeletePerInstanceConfigsInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -978,7 +1039,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.DeletePerInstanceConfigsInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1013,6 +1077,8 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.DeletePerInstanceConfigsInstanceGroupManagerRequest() ); request.project = ''; + request.zone = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1034,7 +1100,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.GetInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1066,7 +1135,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.GetInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1113,7 +1185,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.GetInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1142,6 +1217,8 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.GetInstanceGroupManagerRequest() ); request.project = ''; + request.zone = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -1160,7 +1237,8 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.InsertInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -1192,7 +1270,8 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.InsertInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -1240,7 +1319,8 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.InsertInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -1269,6 +1349,7 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.InsertInstanceGroupManagerRequest() ); request.project = ''; + request.zone = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -1287,7 +1368,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.PatchInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1319,7 +1403,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.PatchInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1366,7 +1453,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.PatchInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1395,6 +1485,8 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.PatchInstanceGroupManagerRequest() ); request.project = ''; + request.zone = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -1413,7 +1505,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.PatchPerInstanceConfigsInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1446,7 +1541,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.PatchPerInstanceConfigsInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1494,7 +1592,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.PatchPerInstanceConfigsInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1529,6 +1630,8 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.PatchPerInstanceConfigsInstanceGroupManagerRequest() ); request.project = ''; + request.zone = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1550,7 +1653,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.RecreateInstancesInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1582,7 +1688,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.RecreateInstancesInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1630,7 +1739,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.RecreateInstancesInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1662,6 +1774,8 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.RecreateInstancesInstanceGroupManagerRequest() ); request.project = ''; + request.zone = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.recreateInstances(request), expectedError); @@ -1680,7 +1794,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ResizeInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1712,7 +1829,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ResizeInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1760,7 +1880,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ResizeInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1789,6 +1912,8 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ResizeInstanceGroupManagerRequest() ); request.project = ''; + request.zone = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.resize(request), expectedError); @@ -1807,7 +1932,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.SetInstanceTemplateInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1840,7 +1968,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.SetInstanceTemplateInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1888,7 +2019,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.SetInstanceTemplateInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1920,6 +2054,8 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.SetInstanceTemplateInstanceGroupManagerRequest() ); request.project = ''; + request.zone = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setInstanceTemplate(request), expectedError); @@ -1938,7 +2074,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.SetTargetPoolsInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1970,7 +2109,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.SetTargetPoolsInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -2018,7 +2160,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.SetTargetPoolsInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -2050,6 +2195,8 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.SetTargetPoolsInstanceGroupManagerRequest() ); request.project = ''; + request.zone = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setTargetPools(request), expectedError); @@ -2068,7 +2215,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.UpdatePerInstanceConfigsInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -2101,7 +2251,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.UpdatePerInstanceConfigsInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -2149,7 +2302,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.UpdatePerInstanceConfigsInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -2184,6 +2340,8 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.UpdatePerInstanceConfigsInstanceGroupManagerRequest() ); request.project = ''; + request.zone = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2307,7 +2465,8 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -2347,7 +2506,8 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -2404,7 +2564,8 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -2433,7 +2594,8 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.InstanceGroupManager() @@ -2489,7 +2651,8 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -2536,7 +2699,8 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.InstanceGroupManager() @@ -2580,7 +2744,8 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, @@ -2619,7 +2784,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListErrorsInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -2659,7 +2827,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListErrorsInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -2717,7 +2888,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListErrorsInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -2749,7 +2923,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListErrorsInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.InstanceManagedByIgmError() @@ -2808,7 +2985,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListErrorsInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedError = new Error('expected'); client.descriptors.page.listErrors.createStream = stubPageStreamingCall( undefined, @@ -2858,7 +3038,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListErrorsInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.InstanceManagedByIgmError() @@ -2904,7 +3087,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListErrorsInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedError = new Error('expected'); client.descriptors.page.listErrors.asyncIterate = stubAsyncIterationCall( undefined, @@ -2945,7 +3131,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListManagedInstancesInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -2986,7 +3175,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListManagedInstancesInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -3042,7 +3234,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListManagedInstancesInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -3074,7 +3269,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListManagedInstancesInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.ManagedInstance() @@ -3130,7 +3328,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListManagedInstancesInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedError = new Error('expected'); client.descriptors.page.listManagedInstances.createStream = stubPageStreamingCall(undefined, expectedError); @@ -3175,7 +3376,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListManagedInstancesInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.ManagedInstance() @@ -3220,7 +3424,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListManagedInstancesInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedError = new Error('expected'); client.descriptors.page.listManagedInstances.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -3258,7 +3465,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListPerInstanceConfigsInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -3299,7 +3509,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListPerInstanceConfigsInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -3355,7 +3568,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListPerInstanceConfigsInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -3390,7 +3606,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListPerInstanceConfigsInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.PerInstanceConfig() @@ -3451,7 +3670,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListPerInstanceConfigsInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedError = new Error('expected'); client.descriptors.page.listPerInstanceConfigs.createStream = stubPageStreamingCall(undefined, expectedError); @@ -3501,7 +3723,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListPerInstanceConfigsInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.PerInstanceConfig() @@ -3548,7 +3773,10 @@ describe('v1.InstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListPerInstanceConfigsInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=&zone=&instance_group_manager='; const expectedError = new Error('expected'); client.descriptors.page.listPerInstanceConfigs.asyncIterate = stubAsyncIterationCall(undefined, expectedError); diff --git a/test/gapic_instance_groups_v1.ts b/test/gapic_instance_groups_v1.ts index a92be98d..92b2f815 100644 --- a/test/gapic_instance_groups_v1.ts +++ b/test/gapic_instance_groups_v1.ts @@ -234,7 +234,9 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.AddInstancesInstanceGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -265,7 +267,9 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.AddInstancesInstanceGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -312,7 +316,9 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.AddInstancesInstanceGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -343,6 +349,8 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.AddInstancesInstanceGroupRequest() ); request.project = ''; + request.zone = ''; + request.instanceGroup = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.addInstances(request), expectedError); @@ -360,7 +368,9 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.DeleteInstanceGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -391,7 +401,9 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.DeleteInstanceGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -438,7 +450,9 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.DeleteInstanceGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -466,6 +480,8 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.DeleteInstanceGroupRequest() ); request.project = ''; + request.zone = ''; + request.instanceGroup = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -483,7 +499,9 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.GetInstanceGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -514,7 +532,9 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.GetInstanceGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -560,7 +580,9 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.GetInstanceGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -588,6 +610,8 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.GetInstanceGroupRequest() ); request.project = ''; + request.zone = ''; + request.instanceGroup = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -605,7 +629,8 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.InsertInstanceGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -636,7 +661,8 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.InsertInstanceGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -683,7 +709,8 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.InsertInstanceGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -711,6 +738,7 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.InsertInstanceGroupRequest() ); request.project = ''; + request.zone = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -728,7 +756,9 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.RemoveInstancesInstanceGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -759,7 +789,9 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.RemoveInstancesInstanceGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -806,7 +838,9 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.RemoveInstancesInstanceGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -837,6 +871,8 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.RemoveInstancesInstanceGroupRequest() ); request.project = ''; + request.zone = ''; + request.instanceGroup = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.removeInstances(request), expectedError); @@ -854,7 +890,9 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.SetNamedPortsInstanceGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -885,7 +923,9 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.SetNamedPortsInstanceGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -932,7 +972,9 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.SetNamedPortsInstanceGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -963,6 +1005,8 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.SetNamedPortsInstanceGroupRequest() ); request.project = ''; + request.zone = ''; + request.instanceGroup = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setNamedPorts(request), expectedError); @@ -1074,7 +1118,8 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -1113,7 +1158,8 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -1167,7 +1213,8 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -1195,7 +1242,8 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.InstanceGroup() @@ -1249,7 +1297,8 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -1294,7 +1343,8 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.InstanceGroup() @@ -1336,7 +1386,8 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, @@ -1373,7 +1424,9 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListInstancesInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -1412,7 +1465,9 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListInstancesInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -1469,7 +1524,9 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListInstancesInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -1500,7 +1557,9 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListInstancesInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance_group='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.InstanceWithNamedPorts() @@ -1556,7 +1615,9 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListInstancesInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance_group='; const expectedError = new Error('expected'); client.descriptors.page.listInstances.createStream = stubPageStreamingCall(undefined, expectedError); @@ -1601,7 +1662,9 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListInstancesInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance_group='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.InstanceWithNamedPorts() @@ -1646,7 +1709,9 @@ describe('v1.InstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListInstancesInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance_group='; const expectedError = new Error('expected'); client.descriptors.page.listInstances.asyncIterate = stubAsyncIterationCall(undefined, expectedError); diff --git a/test/gapic_instance_templates_v1.ts b/test/gapic_instance_templates_v1.ts index 9b06ffb1..593572d0 100644 --- a/test/gapic_instance_templates_v1.ts +++ b/test/gapic_instance_templates_v1.ts @@ -234,7 +234,8 @@ describe('v1.InstanceTemplatesClient', () => { new protos.google.cloud.compute.v1.DeleteInstanceTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.instanceTemplate = ''; + const expectedHeaderRequestParams = 'project=&instance_template='; const expectedOptions = { otherArgs: { headers: { @@ -265,7 +266,8 @@ describe('v1.InstanceTemplatesClient', () => { new protos.google.cloud.compute.v1.DeleteInstanceTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.instanceTemplate = ''; + const expectedHeaderRequestParams = 'project=&instance_template='; const expectedOptions = { otherArgs: { headers: { @@ -312,7 +314,8 @@ describe('v1.InstanceTemplatesClient', () => { new protos.google.cloud.compute.v1.DeleteInstanceTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.instanceTemplate = ''; + const expectedHeaderRequestParams = 'project=&instance_template='; const expectedOptions = { otherArgs: { headers: { @@ -340,6 +343,7 @@ describe('v1.InstanceTemplatesClient', () => { new protos.google.cloud.compute.v1.DeleteInstanceTemplateRequest() ); request.project = ''; + request.instanceTemplate = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -357,7 +361,8 @@ describe('v1.InstanceTemplatesClient', () => { new protos.google.cloud.compute.v1.GetInstanceTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.instanceTemplate = ''; + const expectedHeaderRequestParams = 'project=&instance_template='; const expectedOptions = { otherArgs: { headers: { @@ -388,7 +393,8 @@ describe('v1.InstanceTemplatesClient', () => { new protos.google.cloud.compute.v1.GetInstanceTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.instanceTemplate = ''; + const expectedHeaderRequestParams = 'project=&instance_template='; const expectedOptions = { otherArgs: { headers: { @@ -434,7 +440,8 @@ describe('v1.InstanceTemplatesClient', () => { new protos.google.cloud.compute.v1.GetInstanceTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.instanceTemplate = ''; + const expectedHeaderRequestParams = 'project=&instance_template='; const expectedOptions = { otherArgs: { headers: { @@ -462,6 +469,7 @@ describe('v1.InstanceTemplatesClient', () => { new protos.google.cloud.compute.v1.GetInstanceTemplateRequest() ); request.project = ''; + request.instanceTemplate = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -479,7 +487,8 @@ describe('v1.InstanceTemplatesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyInstanceTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -510,7 +519,8 @@ describe('v1.InstanceTemplatesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyInstanceTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -557,7 +567,8 @@ describe('v1.InstanceTemplatesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyInstanceTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -588,6 +599,7 @@ describe('v1.InstanceTemplatesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyInstanceTemplateRequest() ); request.project = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getIamPolicy(request), expectedError); @@ -728,7 +740,8 @@ describe('v1.InstanceTemplatesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyInstanceTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -759,7 +772,8 @@ describe('v1.InstanceTemplatesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyInstanceTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -806,7 +820,8 @@ describe('v1.InstanceTemplatesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyInstanceTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -837,6 +852,7 @@ describe('v1.InstanceTemplatesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyInstanceTemplateRequest() ); request.project = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setIamPolicy(request), expectedError); @@ -854,7 +870,8 @@ describe('v1.InstanceTemplatesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsInstanceTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -886,7 +903,8 @@ describe('v1.InstanceTemplatesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsInstanceTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -933,7 +951,8 @@ describe('v1.InstanceTemplatesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsInstanceTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -964,6 +983,7 @@ describe('v1.InstanceTemplatesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsInstanceTemplateRequest() ); request.project = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.testIamPermissions(request), expectedError); diff --git a/test/gapic_instances_v1.ts b/test/gapic_instances_v1.ts index 44eae4bd..0b4fbbee 100644 --- a/test/gapic_instances_v1.ts +++ b/test/gapic_instances_v1.ts @@ -232,7 +232,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.AddAccessConfigInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +265,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.AddAccessConfigInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -310,7 +314,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.AddAccessConfigInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -341,6 +347,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.AddAccessConfigInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.addAccessConfig(request), expectedError); @@ -358,7 +366,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.AddResourcePoliciesInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -390,7 +400,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.AddResourcePoliciesInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -437,7 +449,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.AddResourcePoliciesInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -468,6 +482,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.AddResourcePoliciesInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.addResourcePolicies(request), expectedError); @@ -485,7 +501,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.AttachDiskInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -516,7 +534,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.AttachDiskInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -563,7 +583,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.AttachDiskInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -594,6 +616,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.AttachDiskInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.attachDisk(request), expectedError); @@ -611,7 +635,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.BulkInsertInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -642,7 +667,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.BulkInsertInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -689,7 +715,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.BulkInsertInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -720,6 +747,7 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.BulkInsertInstanceRequest() ); request.project = ''; + request.zone = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.bulkInsert(request), expectedError); @@ -737,7 +765,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.DeleteInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -768,7 +798,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.DeleteInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -815,7 +847,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.DeleteInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -843,6 +877,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.DeleteInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -860,7 +896,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.DeleteAccessConfigInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -892,7 +930,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.DeleteAccessConfigInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -939,7 +979,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.DeleteAccessConfigInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -970,6 +1012,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.DeleteAccessConfigInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteAccessConfig(request), expectedError); @@ -987,7 +1031,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.DetachDiskInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -1018,7 +1064,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.DetachDiskInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -1065,7 +1113,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.DetachDiskInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -1096,6 +1146,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.DetachDiskInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.detachDisk(request), expectedError); @@ -1113,7 +1165,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -1144,7 +1198,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -1190,7 +1246,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -1218,6 +1276,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -1235,7 +1295,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetEffectiveFirewallsInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -1267,7 +1329,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetEffectiveFirewallsInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -1314,7 +1378,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetEffectiveFirewallsInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -1348,6 +1414,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetEffectiveFirewallsInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1368,7 +1436,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetGuestAttributesInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -1400,7 +1470,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetGuestAttributesInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -1447,7 +1519,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetGuestAttributesInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -1478,6 +1552,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetGuestAttributesInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getGuestAttributes(request), expectedError); @@ -1495,7 +1571,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1526,7 +1604,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1573,7 +1653,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1604,6 +1686,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyInstanceRequest() ); request.project = ''; + request.zone = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getIamPolicy(request), expectedError); @@ -1621,7 +1705,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetScreenshotInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -1652,7 +1738,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetScreenshotInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -1699,7 +1787,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetScreenshotInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -1730,6 +1820,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetScreenshotInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getScreenshot(request), expectedError); @@ -1747,7 +1839,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetSerialPortOutputInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -1779,7 +1873,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetSerialPortOutputInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -1826,7 +1922,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetSerialPortOutputInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -1857,6 +1955,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetSerialPortOutputInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getSerialPortOutput(request), expectedError); @@ -1874,7 +1974,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetShieldedInstanceIdentityInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -1906,7 +2008,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetShieldedInstanceIdentityInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -1953,7 +2057,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetShieldedInstanceIdentityInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -1987,6 +2093,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.GetShieldedInstanceIdentityInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2007,7 +2115,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.InsertInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -2038,7 +2147,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.InsertInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -2085,7 +2195,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.InsertInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -2113,6 +2224,7 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.InsertInstanceRequest() ); request.project = ''; + request.zone = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -2130,7 +2242,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.RemoveResourcePoliciesInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -2162,7 +2276,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.RemoveResourcePoliciesInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -2209,7 +2325,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.RemoveResourcePoliciesInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -2243,6 +2361,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.RemoveResourcePoliciesInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2263,7 +2383,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.ResetInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -2294,7 +2416,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.ResetInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -2340,7 +2464,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.ResetInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -2368,6 +2494,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.ResetInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.reset(request), expectedError); @@ -2385,7 +2513,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.ResumeInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -2416,7 +2546,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.ResumeInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -2463,7 +2595,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.ResumeInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -2491,6 +2625,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.ResumeInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.resume(request), expectedError); @@ -2508,7 +2644,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SendDiagnosticInterruptInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -2540,7 +2678,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SendDiagnosticInterruptInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -2587,7 +2727,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SendDiagnosticInterruptInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -2621,6 +2763,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SendDiagnosticInterruptInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2641,7 +2785,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetDeletionProtectionInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -2673,7 +2819,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetDeletionProtectionInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -2720,7 +2868,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetDeletionProtectionInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -2754,6 +2904,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetDeletionProtectionInstanceRequest() ); request.project = ''; + request.zone = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2774,7 +2926,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetDiskAutoDeleteInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -2805,7 +2959,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetDiskAutoDeleteInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -2852,7 +3008,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetDiskAutoDeleteInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -2883,6 +3041,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetDiskAutoDeleteInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setDiskAutoDelete(request), expectedError); @@ -2900,7 +3060,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -2931,7 +3093,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -2978,7 +3142,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -3009,6 +3175,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyInstanceRequest() ); request.project = ''; + request.zone = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setIamPolicy(request), expectedError); @@ -3026,7 +3194,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetLabelsInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -3057,7 +3227,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetLabelsInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -3104,7 +3276,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetLabelsInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -3132,6 +3306,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetLabelsInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setLabels(request), expectedError); @@ -3149,7 +3325,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetMachineResourcesInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -3181,7 +3359,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetMachineResourcesInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -3228,7 +3408,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetMachineResourcesInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -3259,6 +3441,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetMachineResourcesInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setMachineResources(request), expectedError); @@ -3276,7 +3460,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetMachineTypeInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -3307,7 +3493,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetMachineTypeInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -3354,7 +3542,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetMachineTypeInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -3385,6 +3575,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetMachineTypeInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setMachineType(request), expectedError); @@ -3402,7 +3594,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetMetadataInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -3433,7 +3627,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetMetadataInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -3480,7 +3676,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetMetadataInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -3511,6 +3709,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetMetadataInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setMetadata(request), expectedError); @@ -3528,7 +3728,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -3559,7 +3761,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -3606,7 +3810,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -3637,6 +3843,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetMinCpuPlatformInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setMinCpuPlatform(request), expectedError); @@ -3654,7 +3862,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetSchedulingInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -3685,7 +3895,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetSchedulingInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -3732,7 +3944,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetSchedulingInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -3763,6 +3977,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetSchedulingInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setScheduling(request), expectedError); @@ -3780,7 +3996,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetServiceAccountInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -3811,7 +4029,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetServiceAccountInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -3858,7 +4078,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetServiceAccountInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -3889,6 +4111,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetServiceAccountInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setServiceAccount(request), expectedError); @@ -3906,7 +4130,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetShieldedInstanceIntegrityPolicyInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -3940,7 +4166,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetShieldedInstanceIntegrityPolicyInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -3987,7 +4215,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetShieldedInstanceIntegrityPolicyInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -4021,6 +4251,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetShieldedInstanceIntegrityPolicyInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -4041,7 +4273,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetTagsInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -4072,7 +4306,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetTagsInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -4119,7 +4355,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetTagsInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -4147,6 +4385,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SetTagsInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setTags(request), expectedError); @@ -4164,7 +4404,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SimulateMaintenanceEventInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -4196,7 +4438,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SimulateMaintenanceEventInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -4243,7 +4487,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SimulateMaintenanceEventInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -4277,6 +4523,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SimulateMaintenanceEventInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -4297,7 +4545,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.StartInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -4328,7 +4578,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.StartInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -4374,7 +4626,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.StartInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -4402,6 +4656,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.StartInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.start(request), expectedError); @@ -4419,7 +4675,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.StartWithEncryptionKeyInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -4451,7 +4709,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.StartWithEncryptionKeyInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -4498,7 +4758,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.StartWithEncryptionKeyInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -4532,6 +4794,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.StartWithEncryptionKeyInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -4552,7 +4816,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.StopInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -4583,7 +4849,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.StopInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -4629,7 +4897,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.StopInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -4657,6 +4927,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.StopInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.stop(request), expectedError); @@ -4674,7 +4946,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SuspendInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -4705,7 +4979,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SuspendInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -4752,7 +5028,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SuspendInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -4780,6 +5058,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.SuspendInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.suspend(request), expectedError); @@ -4797,7 +5077,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -4829,7 +5111,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -4876,7 +5160,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -4907,6 +5193,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsInstanceRequest() ); request.project = ''; + request.zone = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.testIamPermissions(request), expectedError); @@ -4924,7 +5212,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.UpdateInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -4955,7 +5245,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.UpdateInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -5002,7 +5294,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.UpdateInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -5030,6 +5324,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.UpdateInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.update(request), expectedError); @@ -5047,7 +5343,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.UpdateAccessConfigInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -5079,7 +5377,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.UpdateAccessConfigInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -5126,7 +5426,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.UpdateAccessConfigInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -5157,6 +5459,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.UpdateAccessConfigInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateAccessConfig(request), expectedError); @@ -5174,7 +5478,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.UpdateDisplayDeviceInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -5206,7 +5512,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.UpdateDisplayDeviceInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -5253,7 +5561,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.UpdateDisplayDeviceInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -5284,6 +5594,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.UpdateDisplayDeviceInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateDisplayDevice(request), expectedError); @@ -5301,7 +5613,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.UpdateNetworkInterfaceInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -5333,7 +5647,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.UpdateNetworkInterfaceInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -5380,7 +5696,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.UpdateNetworkInterfaceInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -5414,6 +5732,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.UpdateNetworkInterfaceInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -5434,7 +5754,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.UpdateShieldedInstanceConfigInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -5466,7 +5788,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.UpdateShieldedInstanceConfigInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -5513,7 +5837,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.UpdateShieldedInstanceConfigInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -5547,6 +5873,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.UpdateShieldedInstanceConfigInstanceRequest() ); request.project = ''; + request.zone = ''; + request.instance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -5661,7 +5989,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.ListInstancesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -5694,7 +6023,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.ListInstancesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -5742,7 +6072,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.ListInstancesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -5770,7 +6101,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.ListInstancesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.Instance()), generateSampleMessage(new protos.google.cloud.compute.v1.Instance()), @@ -5818,7 +6150,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.ListInstancesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -5863,7 +6196,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.ListInstancesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.Instance()), generateSampleMessage(new protos.google.cloud.compute.v1.Instance()), @@ -5899,7 +6233,8 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.ListInstancesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, @@ -5936,7 +6271,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.ListReferrersInstancesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -5969,7 +6306,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.ListReferrersInstancesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -6018,7 +6357,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.ListReferrersInstancesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedOptions = { otherArgs: { headers: { @@ -6049,7 +6390,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.ListReferrersInstancesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.Reference()), generateSampleMessage(new protos.google.cloud.compute.v1.Reference()), @@ -6098,7 +6441,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.ListReferrersInstancesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedError = new Error('expected'); client.descriptors.page.listReferrers.createStream = stubPageStreamingCall(undefined, expectedError); @@ -6142,7 +6487,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.ListReferrersInstancesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.Reference()), generateSampleMessage(new protos.google.cloud.compute.v1.Reference()), @@ -6180,7 +6527,9 @@ describe('v1.InstancesClient', () => { new protos.google.cloud.compute.v1.ListReferrersInstancesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.instance = ''; + const expectedHeaderRequestParams = 'project=&zone=&instance='; const expectedError = new Error('expected'); client.descriptors.page.listReferrers.asyncIterate = stubAsyncIterationCall(undefined, expectedError); diff --git a/test/gapic_interconnect_attachments_v1.ts b/test/gapic_interconnect_attachments_v1.ts index 54b9a494..87c4d5ed 100644 --- a/test/gapic_interconnect_attachments_v1.ts +++ b/test/gapic_interconnect_attachments_v1.ts @@ -245,7 +245,10 @@ describe('v1.InterconnectAttachmentsClient', () => { new protos.google.cloud.compute.v1.DeleteInterconnectAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.interconnectAttachment = ''; + const expectedHeaderRequestParams = + 'project=®ion=&interconnect_attachment='; const expectedOptions = { otherArgs: { headers: { @@ -277,7 +280,10 @@ describe('v1.InterconnectAttachmentsClient', () => { new protos.google.cloud.compute.v1.DeleteInterconnectAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.interconnectAttachment = ''; + const expectedHeaderRequestParams = + 'project=®ion=&interconnect_attachment='; const expectedOptions = { otherArgs: { headers: { @@ -325,7 +331,10 @@ describe('v1.InterconnectAttachmentsClient', () => { new protos.google.cloud.compute.v1.DeleteInterconnectAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.interconnectAttachment = ''; + const expectedHeaderRequestParams = + 'project=®ion=&interconnect_attachment='; const expectedOptions = { otherArgs: { headers: { @@ -354,6 +363,8 @@ describe('v1.InterconnectAttachmentsClient', () => { new protos.google.cloud.compute.v1.DeleteInterconnectAttachmentRequest() ); request.project = ''; + request.region = ''; + request.interconnectAttachment = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -372,7 +383,10 @@ describe('v1.InterconnectAttachmentsClient', () => { new protos.google.cloud.compute.v1.GetInterconnectAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.interconnectAttachment = ''; + const expectedHeaderRequestParams = + 'project=®ion=&interconnect_attachment='; const expectedOptions = { otherArgs: { headers: { @@ -404,7 +418,10 @@ describe('v1.InterconnectAttachmentsClient', () => { new protos.google.cloud.compute.v1.GetInterconnectAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.interconnectAttachment = ''; + const expectedHeaderRequestParams = + 'project=®ion=&interconnect_attachment='; const expectedOptions = { otherArgs: { headers: { @@ -451,7 +468,10 @@ describe('v1.InterconnectAttachmentsClient', () => { new protos.google.cloud.compute.v1.GetInterconnectAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.interconnectAttachment = ''; + const expectedHeaderRequestParams = + 'project=®ion=&interconnect_attachment='; const expectedOptions = { otherArgs: { headers: { @@ -480,6 +500,8 @@ describe('v1.InterconnectAttachmentsClient', () => { new protos.google.cloud.compute.v1.GetInterconnectAttachmentRequest() ); request.project = ''; + request.region = ''; + request.interconnectAttachment = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -498,7 +520,8 @@ describe('v1.InterconnectAttachmentsClient', () => { new protos.google.cloud.compute.v1.InsertInterconnectAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -530,7 +553,8 @@ describe('v1.InterconnectAttachmentsClient', () => { new protos.google.cloud.compute.v1.InsertInterconnectAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -578,7 +602,8 @@ describe('v1.InterconnectAttachmentsClient', () => { new protos.google.cloud.compute.v1.InsertInterconnectAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -607,6 +632,7 @@ describe('v1.InterconnectAttachmentsClient', () => { new protos.google.cloud.compute.v1.InsertInterconnectAttachmentRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -625,7 +651,10 @@ describe('v1.InterconnectAttachmentsClient', () => { new protos.google.cloud.compute.v1.PatchInterconnectAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.interconnectAttachment = ''; + const expectedHeaderRequestParams = + 'project=®ion=&interconnect_attachment='; const expectedOptions = { otherArgs: { headers: { @@ -657,7 +686,10 @@ describe('v1.InterconnectAttachmentsClient', () => { new protos.google.cloud.compute.v1.PatchInterconnectAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.interconnectAttachment = ''; + const expectedHeaderRequestParams = + 'project=®ion=&interconnect_attachment='; const expectedOptions = { otherArgs: { headers: { @@ -704,7 +736,10 @@ describe('v1.InterconnectAttachmentsClient', () => { new protos.google.cloud.compute.v1.PatchInterconnectAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.interconnectAttachment = ''; + const expectedHeaderRequestParams = + 'project=®ion=&interconnect_attachment='; const expectedOptions = { otherArgs: { headers: { @@ -733,6 +768,8 @@ describe('v1.InterconnectAttachmentsClient', () => { new protos.google.cloud.compute.v1.PatchInterconnectAttachmentRequest() ); request.project = ''; + request.region = ''; + request.interconnectAttachment = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -853,7 +890,8 @@ describe('v1.InterconnectAttachmentsClient', () => { new protos.google.cloud.compute.v1.ListInterconnectAttachmentsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -893,7 +931,8 @@ describe('v1.InterconnectAttachmentsClient', () => { new protos.google.cloud.compute.v1.ListInterconnectAttachmentsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -950,7 +989,8 @@ describe('v1.InterconnectAttachmentsClient', () => { new protos.google.cloud.compute.v1.ListInterconnectAttachmentsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -979,7 +1019,8 @@ describe('v1.InterconnectAttachmentsClient', () => { new protos.google.cloud.compute.v1.ListInterconnectAttachmentsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.InterconnectAttachment() @@ -1035,7 +1076,8 @@ describe('v1.InterconnectAttachmentsClient', () => { new protos.google.cloud.compute.v1.ListInterconnectAttachmentsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -1082,7 +1124,8 @@ describe('v1.InterconnectAttachmentsClient', () => { new protos.google.cloud.compute.v1.ListInterconnectAttachmentsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.InterconnectAttachment() @@ -1126,7 +1169,8 @@ describe('v1.InterconnectAttachmentsClient', () => { new protos.google.cloud.compute.v1.ListInterconnectAttachmentsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_interconnect_locations_v1.ts b/test/gapic_interconnect_locations_v1.ts index f8130588..1a658c4b 100644 --- a/test/gapic_interconnect_locations_v1.ts +++ b/test/gapic_interconnect_locations_v1.ts @@ -243,7 +243,8 @@ describe('v1.InterconnectLocationsClient', () => { new protos.google.cloud.compute.v1.GetInterconnectLocationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.interconnectLocation = ''; + const expectedHeaderRequestParams = 'project=&interconnect_location='; const expectedOptions = { otherArgs: { headers: { @@ -275,7 +276,8 @@ describe('v1.InterconnectLocationsClient', () => { new protos.google.cloud.compute.v1.GetInterconnectLocationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.interconnectLocation = ''; + const expectedHeaderRequestParams = 'project=&interconnect_location='; const expectedOptions = { otherArgs: { headers: { @@ -322,7 +324,8 @@ describe('v1.InterconnectLocationsClient', () => { new protos.google.cloud.compute.v1.GetInterconnectLocationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.interconnectLocation = ''; + const expectedHeaderRequestParams = 'project=&interconnect_location='; const expectedOptions = { otherArgs: { headers: { @@ -351,6 +354,7 @@ describe('v1.InterconnectLocationsClient', () => { new protos.google.cloud.compute.v1.GetInterconnectLocationRequest() ); request.project = ''; + request.interconnectLocation = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); diff --git a/test/gapic_interconnects_v1.ts b/test/gapic_interconnects_v1.ts index b846d0fd..8ea56fe5 100644 --- a/test/gapic_interconnects_v1.ts +++ b/test/gapic_interconnects_v1.ts @@ -232,7 +232,8 @@ describe('v1.InterconnectsClient', () => { new protos.google.cloud.compute.v1.DeleteInterconnectRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.interconnect = ''; + const expectedHeaderRequestParams = 'project=&interconnect='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +264,8 @@ describe('v1.InterconnectsClient', () => { new protos.google.cloud.compute.v1.DeleteInterconnectRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.interconnect = ''; + const expectedHeaderRequestParams = 'project=&interconnect='; const expectedOptions = { otherArgs: { headers: { @@ -310,7 +312,8 @@ describe('v1.InterconnectsClient', () => { new protos.google.cloud.compute.v1.DeleteInterconnectRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.interconnect = ''; + const expectedHeaderRequestParams = 'project=&interconnect='; const expectedOptions = { otherArgs: { headers: { @@ -338,6 +341,7 @@ describe('v1.InterconnectsClient', () => { new protos.google.cloud.compute.v1.DeleteInterconnectRequest() ); request.project = ''; + request.interconnect = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -355,7 +359,8 @@ describe('v1.InterconnectsClient', () => { new protos.google.cloud.compute.v1.GetInterconnectRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.interconnect = ''; + const expectedHeaderRequestParams = 'project=&interconnect='; const expectedOptions = { otherArgs: { headers: { @@ -386,7 +391,8 @@ describe('v1.InterconnectsClient', () => { new protos.google.cloud.compute.v1.GetInterconnectRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.interconnect = ''; + const expectedHeaderRequestParams = 'project=&interconnect='; const expectedOptions = { otherArgs: { headers: { @@ -432,7 +438,8 @@ describe('v1.InterconnectsClient', () => { new protos.google.cloud.compute.v1.GetInterconnectRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.interconnect = ''; + const expectedHeaderRequestParams = 'project=&interconnect='; const expectedOptions = { otherArgs: { headers: { @@ -460,6 +467,7 @@ describe('v1.InterconnectsClient', () => { new protos.google.cloud.compute.v1.GetInterconnectRequest() ); request.project = ''; + request.interconnect = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -477,7 +485,8 @@ describe('v1.InterconnectsClient', () => { new protos.google.cloud.compute.v1.GetDiagnosticsInterconnectRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.interconnect = ''; + const expectedHeaderRequestParams = 'project=&interconnect='; const expectedOptions = { otherArgs: { headers: { @@ -508,7 +517,8 @@ describe('v1.InterconnectsClient', () => { new protos.google.cloud.compute.v1.GetDiagnosticsInterconnectRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.interconnect = ''; + const expectedHeaderRequestParams = 'project=&interconnect='; const expectedOptions = { otherArgs: { headers: { @@ -555,7 +565,8 @@ describe('v1.InterconnectsClient', () => { new protos.google.cloud.compute.v1.GetDiagnosticsInterconnectRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.interconnect = ''; + const expectedHeaderRequestParams = 'project=&interconnect='; const expectedOptions = { otherArgs: { headers: { @@ -586,6 +597,7 @@ describe('v1.InterconnectsClient', () => { new protos.google.cloud.compute.v1.GetDiagnosticsInterconnectRequest() ); request.project = ''; + request.interconnect = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getDiagnostics(request), expectedError); @@ -726,7 +738,8 @@ describe('v1.InterconnectsClient', () => { new protos.google.cloud.compute.v1.PatchInterconnectRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.interconnect = ''; + const expectedHeaderRequestParams = 'project=&interconnect='; const expectedOptions = { otherArgs: { headers: { @@ -757,7 +770,8 @@ describe('v1.InterconnectsClient', () => { new protos.google.cloud.compute.v1.PatchInterconnectRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.interconnect = ''; + const expectedHeaderRequestParams = 'project=&interconnect='; const expectedOptions = { otherArgs: { headers: { @@ -803,7 +817,8 @@ describe('v1.InterconnectsClient', () => { new protos.google.cloud.compute.v1.PatchInterconnectRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.interconnect = ''; + const expectedHeaderRequestParams = 'project=&interconnect='; const expectedOptions = { otherArgs: { headers: { @@ -831,6 +846,7 @@ describe('v1.InterconnectsClient', () => { new protos.google.cloud.compute.v1.PatchInterconnectRequest() ); request.project = ''; + request.interconnect = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); diff --git a/test/gapic_license_codes_v1.ts b/test/gapic_license_codes_v1.ts index dfd9162f..2b681e56 100644 --- a/test/gapic_license_codes_v1.ts +++ b/test/gapic_license_codes_v1.ts @@ -169,7 +169,8 @@ describe('v1.LicenseCodesClient', () => { new protos.google.cloud.compute.v1.GetLicenseCodeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.licenseCode = ''; + const expectedHeaderRequestParams = 'project=&license_code='; const expectedOptions = { otherArgs: { headers: { @@ -200,7 +201,8 @@ describe('v1.LicenseCodesClient', () => { new protos.google.cloud.compute.v1.GetLicenseCodeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.licenseCode = ''; + const expectedHeaderRequestParams = 'project=&license_code='; const expectedOptions = { otherArgs: { headers: { @@ -246,7 +248,8 @@ describe('v1.LicenseCodesClient', () => { new protos.google.cloud.compute.v1.GetLicenseCodeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.licenseCode = ''; + const expectedHeaderRequestParams = 'project=&license_code='; const expectedOptions = { otherArgs: { headers: { @@ -274,6 +277,7 @@ describe('v1.LicenseCodesClient', () => { new protos.google.cloud.compute.v1.GetLicenseCodeRequest() ); request.project = ''; + request.licenseCode = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -291,7 +295,8 @@ describe('v1.LicenseCodesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsLicenseCodeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -323,7 +328,8 @@ describe('v1.LicenseCodesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsLicenseCodeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -370,7 +376,8 @@ describe('v1.LicenseCodesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsLicenseCodeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -401,6 +408,7 @@ describe('v1.LicenseCodesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsLicenseCodeRequest() ); request.project = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.testIamPermissions(request), expectedError); diff --git a/test/gapic_licenses_v1.ts b/test/gapic_licenses_v1.ts index 95637a52..bac03968 100644 --- a/test/gapic_licenses_v1.ts +++ b/test/gapic_licenses_v1.ts @@ -232,7 +232,8 @@ describe('v1.LicensesClient', () => { new protos.google.cloud.compute.v1.DeleteLicenseRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.license = ''; + const expectedHeaderRequestParams = 'project=&license='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +264,8 @@ describe('v1.LicensesClient', () => { new protos.google.cloud.compute.v1.DeleteLicenseRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.license = ''; + const expectedHeaderRequestParams = 'project=&license='; const expectedOptions = { otherArgs: { headers: { @@ -310,7 +312,8 @@ describe('v1.LicensesClient', () => { new protos.google.cloud.compute.v1.DeleteLicenseRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.license = ''; + const expectedHeaderRequestParams = 'project=&license='; const expectedOptions = { otherArgs: { headers: { @@ -338,6 +341,7 @@ describe('v1.LicensesClient', () => { new protos.google.cloud.compute.v1.DeleteLicenseRequest() ); request.project = ''; + request.license = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -355,7 +359,8 @@ describe('v1.LicensesClient', () => { new protos.google.cloud.compute.v1.GetLicenseRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.license = ''; + const expectedHeaderRequestParams = 'project=&license='; const expectedOptions = { otherArgs: { headers: { @@ -386,7 +391,8 @@ describe('v1.LicensesClient', () => { new protos.google.cloud.compute.v1.GetLicenseRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.license = ''; + const expectedHeaderRequestParams = 'project=&license='; const expectedOptions = { otherArgs: { headers: { @@ -432,7 +438,8 @@ describe('v1.LicensesClient', () => { new protos.google.cloud.compute.v1.GetLicenseRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.license = ''; + const expectedHeaderRequestParams = 'project=&license='; const expectedOptions = { otherArgs: { headers: { @@ -460,6 +467,7 @@ describe('v1.LicensesClient', () => { new protos.google.cloud.compute.v1.GetLicenseRequest() ); request.project = ''; + request.license = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -477,7 +485,8 @@ describe('v1.LicensesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyLicenseRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -508,7 +517,8 @@ describe('v1.LicensesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyLicenseRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -555,7 +565,8 @@ describe('v1.LicensesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyLicenseRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -586,6 +597,7 @@ describe('v1.LicensesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyLicenseRequest() ); request.project = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getIamPolicy(request), expectedError); @@ -726,7 +738,8 @@ describe('v1.LicensesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyLicenseRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -757,7 +770,8 @@ describe('v1.LicensesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyLicenseRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -804,7 +818,8 @@ describe('v1.LicensesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyLicenseRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -835,6 +850,7 @@ describe('v1.LicensesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyLicenseRequest() ); request.project = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setIamPolicy(request), expectedError); @@ -852,7 +868,8 @@ describe('v1.LicensesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsLicenseRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -884,7 +901,8 @@ describe('v1.LicensesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsLicenseRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -931,7 +949,8 @@ describe('v1.LicensesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsLicenseRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -962,6 +981,7 @@ describe('v1.LicensesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsLicenseRequest() ); request.project = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.testIamPermissions(request), expectedError); diff --git a/test/gapic_machine_images_v1.ts b/test/gapic_machine_images_v1.ts index d8538d43..720fe372 100644 --- a/test/gapic_machine_images_v1.ts +++ b/test/gapic_machine_images_v1.ts @@ -232,7 +232,8 @@ describe('v1.MachineImagesClient', () => { new protos.google.cloud.compute.v1.DeleteMachineImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.machineImage = ''; + const expectedHeaderRequestParams = 'project=&machine_image='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +264,8 @@ describe('v1.MachineImagesClient', () => { new protos.google.cloud.compute.v1.DeleteMachineImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.machineImage = ''; + const expectedHeaderRequestParams = 'project=&machine_image='; const expectedOptions = { otherArgs: { headers: { @@ -310,7 +312,8 @@ describe('v1.MachineImagesClient', () => { new protos.google.cloud.compute.v1.DeleteMachineImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.machineImage = ''; + const expectedHeaderRequestParams = 'project=&machine_image='; const expectedOptions = { otherArgs: { headers: { @@ -338,6 +341,7 @@ describe('v1.MachineImagesClient', () => { new protos.google.cloud.compute.v1.DeleteMachineImageRequest() ); request.project = ''; + request.machineImage = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -355,7 +359,8 @@ describe('v1.MachineImagesClient', () => { new protos.google.cloud.compute.v1.GetMachineImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.machineImage = ''; + const expectedHeaderRequestParams = 'project=&machine_image='; const expectedOptions = { otherArgs: { headers: { @@ -386,7 +391,8 @@ describe('v1.MachineImagesClient', () => { new protos.google.cloud.compute.v1.GetMachineImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.machineImage = ''; + const expectedHeaderRequestParams = 'project=&machine_image='; const expectedOptions = { otherArgs: { headers: { @@ -432,7 +438,8 @@ describe('v1.MachineImagesClient', () => { new protos.google.cloud.compute.v1.GetMachineImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.machineImage = ''; + const expectedHeaderRequestParams = 'project=&machine_image='; const expectedOptions = { otherArgs: { headers: { @@ -460,6 +467,7 @@ describe('v1.MachineImagesClient', () => { new protos.google.cloud.compute.v1.GetMachineImageRequest() ); request.project = ''; + request.machineImage = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -477,7 +485,8 @@ describe('v1.MachineImagesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyMachineImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -508,7 +517,8 @@ describe('v1.MachineImagesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyMachineImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -555,7 +565,8 @@ describe('v1.MachineImagesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyMachineImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -586,6 +597,7 @@ describe('v1.MachineImagesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyMachineImageRequest() ); request.project = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getIamPolicy(request), expectedError); @@ -726,7 +738,8 @@ describe('v1.MachineImagesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyMachineImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -757,7 +770,8 @@ describe('v1.MachineImagesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyMachineImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -804,7 +818,8 @@ describe('v1.MachineImagesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyMachineImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -835,6 +850,7 @@ describe('v1.MachineImagesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyMachineImageRequest() ); request.project = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setIamPolicy(request), expectedError); @@ -852,7 +868,8 @@ describe('v1.MachineImagesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsMachineImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -884,7 +901,8 @@ describe('v1.MachineImagesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsMachineImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -931,7 +949,8 @@ describe('v1.MachineImagesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsMachineImageRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -962,6 +981,7 @@ describe('v1.MachineImagesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsMachineImageRequest() ); request.project = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.testIamPermissions(request), expectedError); diff --git a/test/gapic_machine_types_v1.ts b/test/gapic_machine_types_v1.ts index ccc02622..2e63f318 100644 --- a/test/gapic_machine_types_v1.ts +++ b/test/gapic_machine_types_v1.ts @@ -232,7 +232,9 @@ describe('v1.MachineTypesClient', () => { new protos.google.cloud.compute.v1.GetMachineTypeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.machineType = ''; + const expectedHeaderRequestParams = 'project=&zone=&machine_type='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +265,9 @@ describe('v1.MachineTypesClient', () => { new protos.google.cloud.compute.v1.GetMachineTypeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.machineType = ''; + const expectedHeaderRequestParams = 'project=&zone=&machine_type='; const expectedOptions = { otherArgs: { headers: { @@ -309,7 +313,9 @@ describe('v1.MachineTypesClient', () => { new protos.google.cloud.compute.v1.GetMachineTypeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.machineType = ''; + const expectedHeaderRequestParams = 'project=&zone=&machine_type='; const expectedOptions = { otherArgs: { headers: { @@ -337,6 +343,8 @@ describe('v1.MachineTypesClient', () => { new protos.google.cloud.compute.v1.GetMachineTypeRequest() ); request.project = ''; + request.zone = ''; + request.machineType = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -448,7 +456,8 @@ describe('v1.MachineTypesClient', () => { new protos.google.cloud.compute.v1.ListMachineTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -481,7 +490,8 @@ describe('v1.MachineTypesClient', () => { new protos.google.cloud.compute.v1.ListMachineTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -529,7 +539,8 @@ describe('v1.MachineTypesClient', () => { new protos.google.cloud.compute.v1.ListMachineTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -557,7 +568,8 @@ describe('v1.MachineTypesClient', () => { new protos.google.cloud.compute.v1.ListMachineTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.MachineType()), generateSampleMessage(new protos.google.cloud.compute.v1.MachineType()), @@ -605,7 +617,8 @@ describe('v1.MachineTypesClient', () => { new protos.google.cloud.compute.v1.ListMachineTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -650,7 +663,8 @@ describe('v1.MachineTypesClient', () => { new protos.google.cloud.compute.v1.ListMachineTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.MachineType()), generateSampleMessage(new protos.google.cloud.compute.v1.MachineType()), @@ -686,7 +700,8 @@ describe('v1.MachineTypesClient', () => { new protos.google.cloud.compute.v1.ListMachineTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_network_edge_security_services_v1.ts b/test/gapic_network_edge_security_services_v1.ts index 866895d0..53b71231 100644 --- a/test/gapic_network_edge_security_services_v1.ts +++ b/test/gapic_network_edge_security_services_v1.ts @@ -260,7 +260,10 @@ describe('v1.NetworkEdgeSecurityServicesClient', () => { new protos.google.cloud.compute.v1.DeleteNetworkEdgeSecurityServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.networkEdgeSecurityService = ''; + const expectedHeaderRequestParams = + 'project=®ion=&network_edge_security_service='; const expectedOptions = { otherArgs: { headers: { @@ -294,7 +297,10 @@ describe('v1.NetworkEdgeSecurityServicesClient', () => { new protos.google.cloud.compute.v1.DeleteNetworkEdgeSecurityServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.networkEdgeSecurityService = ''; + const expectedHeaderRequestParams = + 'project=®ion=&network_edge_security_service='; const expectedOptions = { otherArgs: { headers: { @@ -344,7 +350,10 @@ describe('v1.NetworkEdgeSecurityServicesClient', () => { new protos.google.cloud.compute.v1.DeleteNetworkEdgeSecurityServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.networkEdgeSecurityService = ''; + const expectedHeaderRequestParams = + 'project=®ion=&network_edge_security_service='; const expectedOptions = { otherArgs: { headers: { @@ -375,6 +384,8 @@ describe('v1.NetworkEdgeSecurityServicesClient', () => { new protos.google.cloud.compute.v1.DeleteNetworkEdgeSecurityServiceRequest() ); request.project = ''; + request.region = ''; + request.networkEdgeSecurityService = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -395,7 +406,10 @@ describe('v1.NetworkEdgeSecurityServicesClient', () => { new protos.google.cloud.compute.v1.GetNetworkEdgeSecurityServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.networkEdgeSecurityService = ''; + const expectedHeaderRequestParams = + 'project=®ion=&network_edge_security_service='; const expectedOptions = { otherArgs: { headers: { @@ -429,7 +443,10 @@ describe('v1.NetworkEdgeSecurityServicesClient', () => { new protos.google.cloud.compute.v1.GetNetworkEdgeSecurityServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.networkEdgeSecurityService = ''; + const expectedHeaderRequestParams = + 'project=®ion=&network_edge_security_service='; const expectedOptions = { otherArgs: { headers: { @@ -478,7 +495,10 @@ describe('v1.NetworkEdgeSecurityServicesClient', () => { new protos.google.cloud.compute.v1.GetNetworkEdgeSecurityServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.networkEdgeSecurityService = ''; + const expectedHeaderRequestParams = + 'project=®ion=&network_edge_security_service='; const expectedOptions = { otherArgs: { headers: { @@ -509,6 +529,8 @@ describe('v1.NetworkEdgeSecurityServicesClient', () => { new protos.google.cloud.compute.v1.GetNetworkEdgeSecurityServiceRequest() ); request.project = ''; + request.region = ''; + request.networkEdgeSecurityService = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -529,7 +551,8 @@ describe('v1.NetworkEdgeSecurityServicesClient', () => { new protos.google.cloud.compute.v1.InsertNetworkEdgeSecurityServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -563,7 +586,8 @@ describe('v1.NetworkEdgeSecurityServicesClient', () => { new protos.google.cloud.compute.v1.InsertNetworkEdgeSecurityServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -613,7 +637,8 @@ describe('v1.NetworkEdgeSecurityServicesClient', () => { new protos.google.cloud.compute.v1.InsertNetworkEdgeSecurityServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -644,6 +669,7 @@ describe('v1.NetworkEdgeSecurityServicesClient', () => { new protos.google.cloud.compute.v1.InsertNetworkEdgeSecurityServiceRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -664,7 +690,10 @@ describe('v1.NetworkEdgeSecurityServicesClient', () => { new protos.google.cloud.compute.v1.PatchNetworkEdgeSecurityServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.networkEdgeSecurityService = ''; + const expectedHeaderRequestParams = + 'project=®ion=&network_edge_security_service='; const expectedOptions = { otherArgs: { headers: { @@ -698,7 +727,10 @@ describe('v1.NetworkEdgeSecurityServicesClient', () => { new protos.google.cloud.compute.v1.PatchNetworkEdgeSecurityServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.networkEdgeSecurityService = ''; + const expectedHeaderRequestParams = + 'project=®ion=&network_edge_security_service='; const expectedOptions = { otherArgs: { headers: { @@ -747,7 +779,10 @@ describe('v1.NetworkEdgeSecurityServicesClient', () => { new protos.google.cloud.compute.v1.PatchNetworkEdgeSecurityServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.networkEdgeSecurityService = ''; + const expectedHeaderRequestParams = + 'project=®ion=&network_edge_security_service='; const expectedOptions = { otherArgs: { headers: { @@ -778,6 +813,8 @@ describe('v1.NetworkEdgeSecurityServicesClient', () => { new protos.google.cloud.compute.v1.PatchNetworkEdgeSecurityServiceRequest() ); request.project = ''; + request.region = ''; + request.networkEdgeSecurityService = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); diff --git a/test/gapic_network_endpoint_groups_v1.ts b/test/gapic_network_endpoint_groups_v1.ts index f4500cd7..7f3cf3cf 100644 --- a/test/gapic_network_endpoint_groups_v1.ts +++ b/test/gapic_network_endpoint_groups_v1.ts @@ -243,7 +243,10 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.AttachNetworkEndpointsNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = + 'project=&zone=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -276,7 +279,10 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.AttachNetworkEndpointsNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = + 'project=&zone=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -324,7 +330,10 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.AttachNetworkEndpointsNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = + 'project=&zone=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -359,6 +368,8 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.AttachNetworkEndpointsNetworkEndpointGroupRequest() ); request.project = ''; + request.zone = ''; + request.networkEndpointGroup = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -380,7 +391,10 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.DeleteNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = + 'project=&zone=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -412,7 +426,10 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.DeleteNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = + 'project=&zone=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -460,7 +477,10 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.DeleteNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = + 'project=&zone=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -489,6 +509,8 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.DeleteNetworkEndpointGroupRequest() ); request.project = ''; + request.zone = ''; + request.networkEndpointGroup = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -507,7 +529,10 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.DetachNetworkEndpointsNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = + 'project=&zone=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -540,7 +565,10 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.DetachNetworkEndpointsNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = + 'project=&zone=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -588,7 +616,10 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.DetachNetworkEndpointsNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = + 'project=&zone=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -623,6 +654,8 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.DetachNetworkEndpointsNetworkEndpointGroupRequest() ); request.project = ''; + request.zone = ''; + request.networkEndpointGroup = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -644,7 +677,10 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.GetNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = + 'project=&zone=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -676,7 +712,10 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.GetNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = + 'project=&zone=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -723,7 +762,10 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.GetNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = + 'project=&zone=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -752,6 +794,8 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.GetNetworkEndpointGroupRequest() ); request.project = ''; + request.zone = ''; + request.networkEndpointGroup = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -770,7 +814,8 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.InsertNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -802,7 +847,8 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.InsertNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -850,7 +896,8 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.InsertNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -879,6 +926,7 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.InsertNetworkEndpointGroupRequest() ); request.project = ''; + request.zone = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -897,7 +945,9 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -930,7 +980,9 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -978,7 +1030,9 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1010,6 +1064,8 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsNetworkEndpointGroupRequest() ); request.project = ''; + request.zone = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.testIamPermissions(request), expectedError); @@ -1130,7 +1186,8 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -1170,7 +1227,8 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -1227,7 +1285,8 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -1256,7 +1315,8 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.NetworkEndpointGroup() @@ -1312,7 +1372,8 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -1359,7 +1420,8 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.NetworkEndpointGroup() @@ -1403,7 +1465,8 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, @@ -1442,7 +1505,10 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListNetworkEndpointsNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = + 'project=&zone=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -1483,7 +1549,10 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListNetworkEndpointsNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = + 'project=&zone=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -1541,7 +1610,10 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListNetworkEndpointsNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = + 'project=&zone=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -1573,7 +1645,10 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListNetworkEndpointsNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = + 'project=&zone=&network_endpoint_group='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.NetworkEndpointWithHealthStatus() @@ -1632,7 +1707,10 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListNetworkEndpointsNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = + 'project=&zone=&network_endpoint_group='; const expectedError = new Error('expected'); client.descriptors.page.listNetworkEndpoints.createStream = stubPageStreamingCall(undefined, expectedError); @@ -1680,7 +1758,10 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListNetworkEndpointsNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = + 'project=&zone=&network_endpoint_group='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.NetworkEndpointWithHealthStatus() @@ -1726,7 +1807,10 @@ describe('v1.NetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListNetworkEndpointsNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = + 'project=&zone=&network_endpoint_group='; const expectedError = new Error('expected'); client.descriptors.page.listNetworkEndpoints.asyncIterate = stubAsyncIterationCall(undefined, expectedError); diff --git a/test/gapic_network_firewall_policies_v1.ts b/test/gapic_network_firewall_policies_v1.ts index f1ff316b..aabb92dd 100644 --- a/test/gapic_network_firewall_policies_v1.ts +++ b/test/gapic_network_firewall_policies_v1.ts @@ -245,7 +245,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.AddAssociationNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -277,7 +278,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.AddAssociationNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -325,7 +327,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.AddAssociationNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -357,6 +360,7 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.AddAssociationNetworkFirewallPolicyRequest() ); request.project = ''; + request.firewallPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.addAssociation(request), expectedError); @@ -375,7 +379,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.AddRuleNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -407,7 +412,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.AddRuleNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -455,7 +461,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.AddRuleNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -484,6 +491,7 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.AddRuleNetworkFirewallPolicyRequest() ); request.project = ''; + request.firewallPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.addRule(request), expectedError); @@ -502,7 +510,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.CloneRulesNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -534,7 +543,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.CloneRulesNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -582,7 +592,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.CloneRulesNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -614,6 +625,7 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.CloneRulesNetworkFirewallPolicyRequest() ); request.project = ''; + request.firewallPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.cloneRules(request), expectedError); @@ -632,7 +644,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.DeleteNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -664,7 +677,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.DeleteNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -712,7 +726,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.DeleteNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -741,6 +756,7 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.DeleteNetworkFirewallPolicyRequest() ); request.project = ''; + request.firewallPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -759,7 +775,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -791,7 +808,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -838,7 +856,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -867,6 +886,7 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetNetworkFirewallPolicyRequest() ); request.project = ''; + request.firewallPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -885,7 +905,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetAssociationNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -917,7 +938,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetAssociationNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -965,7 +987,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetAssociationNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -997,6 +1020,7 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetAssociationNetworkFirewallPolicyRequest() ); request.project = ''; + request.firewallPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getAssociation(request), expectedError); @@ -1015,7 +1039,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1047,7 +1072,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1095,7 +1121,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1127,6 +1154,7 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyNetworkFirewallPolicyRequest() ); request.project = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getIamPolicy(request), expectedError); @@ -1145,7 +1173,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetRuleNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1177,7 +1206,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetRuleNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1225,7 +1255,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetRuleNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1254,6 +1285,7 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetRuleNetworkFirewallPolicyRequest() ); request.project = ''; + request.firewallPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getRule(request), expectedError); @@ -1399,7 +1431,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1431,7 +1464,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1478,7 +1512,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1507,6 +1542,7 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchNetworkFirewallPolicyRequest() ); request.project = ''; + request.firewallPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -1525,7 +1561,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchRuleNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1557,7 +1594,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchRuleNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1605,7 +1643,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchRuleNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1634,6 +1673,7 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchRuleNetworkFirewallPolicyRequest() ); request.project = ''; + request.firewallPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patchRule(request), expectedError); @@ -1652,7 +1692,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.RemoveAssociationNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1684,7 +1725,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.RemoveAssociationNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1732,7 +1774,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.RemoveAssociationNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1764,6 +1807,7 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.RemoveAssociationNetworkFirewallPolicyRequest() ); request.project = ''; + request.firewallPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.removeAssociation(request), expectedError); @@ -1782,7 +1826,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.RemoveRuleNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1814,7 +1859,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.RemoveRuleNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1862,7 +1908,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.RemoveRuleNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1894,6 +1941,7 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.RemoveRuleNetworkFirewallPolicyRequest() ); request.project = ''; + request.firewallPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.removeRule(request), expectedError); @@ -1912,7 +1960,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1944,7 +1993,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1992,7 +2042,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -2024,6 +2075,7 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyNetworkFirewallPolicyRequest() ); request.project = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setIamPolicy(request), expectedError); @@ -2042,7 +2094,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -2075,7 +2128,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -2123,7 +2177,8 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -2155,6 +2210,7 @@ describe('v1.NetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsNetworkFirewallPolicyRequest() ); request.project = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.testIamPermissions(request), expectedError); diff --git a/test/gapic_networks_v1.ts b/test/gapic_networks_v1.ts index 6f041272..08ef5881 100644 --- a/test/gapic_networks_v1.ts +++ b/test/gapic_networks_v1.ts @@ -232,7 +232,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.AddPeeringNetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +264,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.AddPeeringNetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -310,7 +312,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.AddPeeringNetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -341,6 +344,7 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.AddPeeringNetworkRequest() ); request.project = ''; + request.network = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.addPeering(request), expectedError); @@ -358,7 +362,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.DeleteNetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -389,7 +394,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.DeleteNetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -436,7 +442,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.DeleteNetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -464,6 +471,7 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.DeleteNetworkRequest() ); request.project = ''; + request.network = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -481,7 +489,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.GetNetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -512,7 +521,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.GetNetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -558,7 +568,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.GetNetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -586,6 +597,7 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.GetNetworkRequest() ); request.project = ''; + request.network = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -603,7 +615,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.GetEffectiveFirewallsNetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -635,7 +648,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.GetEffectiveFirewallsNetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -682,7 +696,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.GetEffectiveFirewallsNetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -716,6 +731,7 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.GetEffectiveFirewallsNetworkRequest() ); request.project = ''; + request.network = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -859,7 +875,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.PatchNetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -890,7 +907,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.PatchNetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -936,7 +954,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.PatchNetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -964,6 +983,7 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.PatchNetworkRequest() ); request.project = ''; + request.network = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -981,7 +1001,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.RemovePeeringNetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -1012,7 +1033,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.RemovePeeringNetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -1059,7 +1081,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.RemovePeeringNetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -1090,6 +1113,7 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.RemovePeeringNetworkRequest() ); request.project = ''; + request.network = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.removePeering(request), expectedError); @@ -1107,7 +1131,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.SwitchToCustomModeNetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -1139,7 +1164,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.SwitchToCustomModeNetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -1186,7 +1212,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.SwitchToCustomModeNetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -1217,6 +1244,7 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.SwitchToCustomModeNetworkRequest() ); request.project = ''; + request.network = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.switchToCustomMode(request), expectedError); @@ -1234,7 +1262,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.UpdatePeeringNetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -1265,7 +1294,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.UpdatePeeringNetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -1312,7 +1342,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.UpdatePeeringNetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -1343,6 +1374,7 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.UpdatePeeringNetworkRequest() ); request.project = ''; + request.network = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updatePeering(request), expectedError); @@ -1635,7 +1667,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.ListPeeringRoutesNetworksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -1674,7 +1707,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.ListPeeringRoutesNetworksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -1731,7 +1765,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.ListPeeringRoutesNetworksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedOptions = { otherArgs: { headers: { @@ -1762,7 +1797,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.ListPeeringRoutesNetworksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.ExchangedPeeringRoute() @@ -1818,7 +1854,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.ListPeeringRoutesNetworksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedError = new Error('expected'); client.descriptors.page.listPeeringRoutes.createStream = stubPageStreamingCall(undefined, expectedError); @@ -1863,7 +1900,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.ListPeeringRoutesNetworksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.ExchangedPeeringRoute() @@ -1908,7 +1946,8 @@ describe('v1.NetworksClient', () => { new protos.google.cloud.compute.v1.ListPeeringRoutesNetworksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.network = ''; + const expectedHeaderRequestParams = 'project=&network='; const expectedError = new Error('expected'); client.descriptors.page.listPeeringRoutes.asyncIterate = stubAsyncIterationCall(undefined, expectedError); diff --git a/test/gapic_node_groups_v1.ts b/test/gapic_node_groups_v1.ts index 9e6a9fda..969fa694 100644 --- a/test/gapic_node_groups_v1.ts +++ b/test/gapic_node_groups_v1.ts @@ -232,7 +232,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.AddNodesNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_group='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +265,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.AddNodesNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_group='; const expectedOptions = { otherArgs: { headers: { @@ -310,7 +314,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.AddNodesNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_group='; const expectedOptions = { otherArgs: { headers: { @@ -338,6 +344,8 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.AddNodesNodeGroupRequest() ); request.project = ''; + request.zone = ''; + request.nodeGroup = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.addNodes(request), expectedError); @@ -355,7 +363,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.DeleteNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_group='; const expectedOptions = { otherArgs: { headers: { @@ -386,7 +396,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.DeleteNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_group='; const expectedOptions = { otherArgs: { headers: { @@ -433,7 +445,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.DeleteNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_group='; const expectedOptions = { otherArgs: { headers: { @@ -461,6 +475,8 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.DeleteNodeGroupRequest() ); request.project = ''; + request.zone = ''; + request.nodeGroup = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -478,7 +494,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.DeleteNodesNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_group='; const expectedOptions = { otherArgs: { headers: { @@ -509,7 +527,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.DeleteNodesNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_group='; const expectedOptions = { otherArgs: { headers: { @@ -556,7 +576,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.DeleteNodesNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_group='; const expectedOptions = { otherArgs: { headers: { @@ -587,6 +609,8 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.DeleteNodesNodeGroupRequest() ); request.project = ''; + request.zone = ''; + request.nodeGroup = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteNodes(request), expectedError); @@ -604,7 +628,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.GetNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_group='; const expectedOptions = { otherArgs: { headers: { @@ -635,7 +661,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.GetNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_group='; const expectedOptions = { otherArgs: { headers: { @@ -681,7 +709,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.GetNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_group='; const expectedOptions = { otherArgs: { headers: { @@ -709,6 +739,8 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.GetNodeGroupRequest() ); request.project = ''; + request.zone = ''; + request.nodeGroup = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -726,7 +758,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -757,7 +791,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -804,7 +840,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -835,6 +873,8 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyNodeGroupRequest() ); request.project = ''; + request.zone = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getIamPolicy(request), expectedError); @@ -852,7 +892,8 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.InsertNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -883,7 +924,8 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.InsertNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -930,7 +972,8 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.InsertNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -958,6 +1001,7 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.InsertNodeGroupRequest() ); request.project = ''; + request.zone = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -975,7 +1019,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.PatchNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_group='; const expectedOptions = { otherArgs: { headers: { @@ -1006,7 +1052,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.PatchNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_group='; const expectedOptions = { otherArgs: { headers: { @@ -1052,7 +1100,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.PatchNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_group='; const expectedOptions = { otherArgs: { headers: { @@ -1080,6 +1130,8 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.PatchNodeGroupRequest() ); request.project = ''; + request.zone = ''; + request.nodeGroup = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -1097,7 +1149,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1128,7 +1182,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1175,7 +1231,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1206,6 +1264,8 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyNodeGroupRequest() ); request.project = ''; + request.zone = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setIamPolicy(request), expectedError); @@ -1223,7 +1283,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.SetNodeTemplateNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_group='; const expectedOptions = { otherArgs: { headers: { @@ -1254,7 +1316,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.SetNodeTemplateNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_group='; const expectedOptions = { otherArgs: { headers: { @@ -1301,7 +1365,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.SetNodeTemplateNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_group='; const expectedOptions = { otherArgs: { headers: { @@ -1332,6 +1398,8 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.SetNodeTemplateNodeGroupRequest() ); request.project = ''; + request.zone = ''; + request.nodeGroup = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setNodeTemplate(request), expectedError); @@ -1349,7 +1417,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1381,7 +1451,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1428,7 +1500,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsNodeGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1459,6 +1533,8 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsNodeGroupRequest() ); request.project = ''; + request.zone = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.testIamPermissions(request), expectedError); @@ -1570,7 +1646,8 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.ListNodeGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -1603,7 +1680,8 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.ListNodeGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -1651,7 +1729,8 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.ListNodeGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -1679,7 +1758,8 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.ListNodeGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.NodeGroup()), generateSampleMessage(new protos.google.cloud.compute.v1.NodeGroup()), @@ -1727,7 +1807,8 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.ListNodeGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -1772,7 +1853,8 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.ListNodeGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.NodeGroup()), generateSampleMessage(new protos.google.cloud.compute.v1.NodeGroup()), @@ -1808,7 +1890,8 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.ListNodeGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, @@ -1845,7 +1928,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.ListNodesNodeGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_group='; const expectedOptions = { otherArgs: { headers: { @@ -1884,7 +1969,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.ListNodesNodeGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_group='; const expectedOptions = { otherArgs: { headers: { @@ -1939,7 +2026,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.ListNodesNodeGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_group='; const expectedOptions = { otherArgs: { headers: { @@ -1967,7 +2056,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.ListNodesNodeGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_group='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.NodeGroupNode() @@ -2021,7 +2112,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.ListNodesNodeGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_group='; const expectedError = new Error('expected'); client.descriptors.page.listNodes.createStream = stubPageStreamingCall( undefined, @@ -2066,7 +2159,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.ListNodesNodeGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_group='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.NodeGroupNode() @@ -2108,7 +2203,9 @@ describe('v1.NodeGroupsClient', () => { new protos.google.cloud.compute.v1.ListNodesNodeGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeGroup = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_group='; const expectedError = new Error('expected'); client.descriptors.page.listNodes.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_node_templates_v1.ts b/test/gapic_node_templates_v1.ts index ee32099b..9287b1e2 100644 --- a/test/gapic_node_templates_v1.ts +++ b/test/gapic_node_templates_v1.ts @@ -232,7 +232,9 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.DeleteNodeTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.nodeTemplate = ''; + const expectedHeaderRequestParams = 'project=®ion=&node_template='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +265,9 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.DeleteNodeTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.nodeTemplate = ''; + const expectedHeaderRequestParams = 'project=®ion=&node_template='; const expectedOptions = { otherArgs: { headers: { @@ -310,7 +314,9 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.DeleteNodeTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.nodeTemplate = ''; + const expectedHeaderRequestParams = 'project=®ion=&node_template='; const expectedOptions = { otherArgs: { headers: { @@ -338,6 +344,8 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.DeleteNodeTemplateRequest() ); request.project = ''; + request.region = ''; + request.nodeTemplate = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -355,7 +363,9 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.GetNodeTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.nodeTemplate = ''; + const expectedHeaderRequestParams = 'project=®ion=&node_template='; const expectedOptions = { otherArgs: { headers: { @@ -386,7 +396,9 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.GetNodeTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.nodeTemplate = ''; + const expectedHeaderRequestParams = 'project=®ion=&node_template='; const expectedOptions = { otherArgs: { headers: { @@ -432,7 +444,9 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.GetNodeTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.nodeTemplate = ''; + const expectedHeaderRequestParams = 'project=®ion=&node_template='; const expectedOptions = { otherArgs: { headers: { @@ -460,6 +474,8 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.GetNodeTemplateRequest() ); request.project = ''; + request.region = ''; + request.nodeTemplate = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -477,7 +493,9 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyNodeTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -508,7 +526,9 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyNodeTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -555,7 +575,9 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyNodeTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -586,6 +608,8 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyNodeTemplateRequest() ); request.project = ''; + request.region = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getIamPolicy(request), expectedError); @@ -603,7 +627,8 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.InsertNodeTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -634,7 +659,8 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.InsertNodeTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -681,7 +707,8 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.InsertNodeTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -709,6 +736,7 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.InsertNodeTemplateRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -726,7 +754,9 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -757,7 +787,9 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -804,7 +836,9 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -835,6 +869,8 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyNodeTemplateRequest() ); request.project = ''; + request.region = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setIamPolicy(request), expectedError); @@ -852,7 +888,9 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsNodeTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -884,7 +922,9 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsNodeTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -931,7 +971,9 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsNodeTemplateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -962,6 +1004,8 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsNodeTemplateRequest() ); request.project = ''; + request.region = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.testIamPermissions(request), expectedError); @@ -1073,7 +1117,8 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.ListNodeTemplatesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1112,7 +1157,8 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.ListNodeTemplatesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1166,7 +1212,8 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.ListNodeTemplatesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1194,7 +1241,8 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.ListNodeTemplatesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.NodeTemplate() @@ -1248,7 +1296,8 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.ListNodeTemplatesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -1293,7 +1342,8 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.ListNodeTemplatesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.NodeTemplate() @@ -1335,7 +1385,8 @@ describe('v1.NodeTemplatesClient', () => { new protos.google.cloud.compute.v1.ListNodeTemplatesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_node_types_v1.ts b/test/gapic_node_types_v1.ts index 5a0f0020..d82cd62f 100644 --- a/test/gapic_node_types_v1.ts +++ b/test/gapic_node_types_v1.ts @@ -232,7 +232,9 @@ describe('v1.NodeTypesClient', () => { new protos.google.cloud.compute.v1.GetNodeTypeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeType = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_type='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +265,9 @@ describe('v1.NodeTypesClient', () => { new protos.google.cloud.compute.v1.GetNodeTypeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeType = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_type='; const expectedOptions = { otherArgs: { headers: { @@ -309,7 +313,9 @@ describe('v1.NodeTypesClient', () => { new protos.google.cloud.compute.v1.GetNodeTypeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.nodeType = ''; + const expectedHeaderRequestParams = 'project=&zone=&node_type='; const expectedOptions = { otherArgs: { headers: { @@ -337,6 +343,8 @@ describe('v1.NodeTypesClient', () => { new protos.google.cloud.compute.v1.GetNodeTypeRequest() ); request.project = ''; + request.zone = ''; + request.nodeType = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -448,7 +456,8 @@ describe('v1.NodeTypesClient', () => { new protos.google.cloud.compute.v1.ListNodeTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -481,7 +490,8 @@ describe('v1.NodeTypesClient', () => { new protos.google.cloud.compute.v1.ListNodeTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -529,7 +539,8 @@ describe('v1.NodeTypesClient', () => { new protos.google.cloud.compute.v1.ListNodeTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -557,7 +568,8 @@ describe('v1.NodeTypesClient', () => { new protos.google.cloud.compute.v1.ListNodeTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.NodeType()), generateSampleMessage(new protos.google.cloud.compute.v1.NodeType()), @@ -605,7 +617,8 @@ describe('v1.NodeTypesClient', () => { new protos.google.cloud.compute.v1.ListNodeTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -650,7 +663,8 @@ describe('v1.NodeTypesClient', () => { new protos.google.cloud.compute.v1.ListNodeTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.NodeType()), generateSampleMessage(new protos.google.cloud.compute.v1.NodeType()), @@ -686,7 +700,8 @@ describe('v1.NodeTypesClient', () => { new protos.google.cloud.compute.v1.ListNodeTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_packet_mirrorings_v1.ts b/test/gapic_packet_mirrorings_v1.ts index 69e91bf1..6d0ad78f 100644 --- a/test/gapic_packet_mirrorings_v1.ts +++ b/test/gapic_packet_mirrorings_v1.ts @@ -234,7 +234,9 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.DeletePacketMirroringRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.packetMirroring = ''; + const expectedHeaderRequestParams = 'project=®ion=&packet_mirroring='; const expectedOptions = { otherArgs: { headers: { @@ -265,7 +267,9 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.DeletePacketMirroringRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.packetMirroring = ''; + const expectedHeaderRequestParams = 'project=®ion=&packet_mirroring='; const expectedOptions = { otherArgs: { headers: { @@ -312,7 +316,9 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.DeletePacketMirroringRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.packetMirroring = ''; + const expectedHeaderRequestParams = 'project=®ion=&packet_mirroring='; const expectedOptions = { otherArgs: { headers: { @@ -340,6 +346,8 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.DeletePacketMirroringRequest() ); request.project = ''; + request.region = ''; + request.packetMirroring = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -357,7 +365,9 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.GetPacketMirroringRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.packetMirroring = ''; + const expectedHeaderRequestParams = 'project=®ion=&packet_mirroring='; const expectedOptions = { otherArgs: { headers: { @@ -388,7 +398,9 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.GetPacketMirroringRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.packetMirroring = ''; + const expectedHeaderRequestParams = 'project=®ion=&packet_mirroring='; const expectedOptions = { otherArgs: { headers: { @@ -434,7 +446,9 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.GetPacketMirroringRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.packetMirroring = ''; + const expectedHeaderRequestParams = 'project=®ion=&packet_mirroring='; const expectedOptions = { otherArgs: { headers: { @@ -462,6 +476,8 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.GetPacketMirroringRequest() ); request.project = ''; + request.region = ''; + request.packetMirroring = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -479,7 +495,8 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.InsertPacketMirroringRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -510,7 +527,8 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.InsertPacketMirroringRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -557,7 +575,8 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.InsertPacketMirroringRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -585,6 +604,7 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.InsertPacketMirroringRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -602,7 +622,9 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.PatchPacketMirroringRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.packetMirroring = ''; + const expectedHeaderRequestParams = 'project=®ion=&packet_mirroring='; const expectedOptions = { otherArgs: { headers: { @@ -633,7 +655,9 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.PatchPacketMirroringRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.packetMirroring = ''; + const expectedHeaderRequestParams = 'project=®ion=&packet_mirroring='; const expectedOptions = { otherArgs: { headers: { @@ -679,7 +703,9 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.PatchPacketMirroringRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.packetMirroring = ''; + const expectedHeaderRequestParams = 'project=®ion=&packet_mirroring='; const expectedOptions = { otherArgs: { headers: { @@ -707,6 +733,8 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.PatchPacketMirroringRequest() ); request.project = ''; + request.region = ''; + request.packetMirroring = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -724,7 +752,9 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -756,7 +786,9 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -803,7 +835,9 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -834,6 +868,8 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsPacketMirroringRequest() ); request.project = ''; + request.region = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.testIamPermissions(request), expectedError); @@ -945,7 +981,8 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.ListPacketMirroringsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -984,7 +1021,8 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.ListPacketMirroringsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1038,7 +1076,8 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.ListPacketMirroringsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1066,7 +1105,8 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.ListPacketMirroringsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.PacketMirroring() @@ -1120,7 +1160,8 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.ListPacketMirroringsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -1165,7 +1206,8 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.ListPacketMirroringsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.PacketMirroring() @@ -1207,7 +1249,8 @@ describe('v1.PacketMirroringsClient', () => { new protos.google.cloud.compute.v1.ListPacketMirroringsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_public_advertised_prefixes_v1.ts b/test/gapic_public_advertised_prefixes_v1.ts index 8daf646f..ba3a3a88 100644 --- a/test/gapic_public_advertised_prefixes_v1.ts +++ b/test/gapic_public_advertised_prefixes_v1.ts @@ -245,7 +245,8 @@ describe('v1.PublicAdvertisedPrefixesClient', () => { new protos.google.cloud.compute.v1.DeletePublicAdvertisedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.publicAdvertisedPrefix = ''; + const expectedHeaderRequestParams = 'project=&public_advertised_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -277,7 +278,8 @@ describe('v1.PublicAdvertisedPrefixesClient', () => { new protos.google.cloud.compute.v1.DeletePublicAdvertisedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.publicAdvertisedPrefix = ''; + const expectedHeaderRequestParams = 'project=&public_advertised_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -325,7 +327,8 @@ describe('v1.PublicAdvertisedPrefixesClient', () => { new protos.google.cloud.compute.v1.DeletePublicAdvertisedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.publicAdvertisedPrefix = ''; + const expectedHeaderRequestParams = 'project=&public_advertised_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -354,6 +357,7 @@ describe('v1.PublicAdvertisedPrefixesClient', () => { new protos.google.cloud.compute.v1.DeletePublicAdvertisedPrefixeRequest() ); request.project = ''; + request.publicAdvertisedPrefix = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -372,7 +376,8 @@ describe('v1.PublicAdvertisedPrefixesClient', () => { new protos.google.cloud.compute.v1.GetPublicAdvertisedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.publicAdvertisedPrefix = ''; + const expectedHeaderRequestParams = 'project=&public_advertised_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -404,7 +409,8 @@ describe('v1.PublicAdvertisedPrefixesClient', () => { new protos.google.cloud.compute.v1.GetPublicAdvertisedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.publicAdvertisedPrefix = ''; + const expectedHeaderRequestParams = 'project=&public_advertised_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -451,7 +457,8 @@ describe('v1.PublicAdvertisedPrefixesClient', () => { new protos.google.cloud.compute.v1.GetPublicAdvertisedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.publicAdvertisedPrefix = ''; + const expectedHeaderRequestParams = 'project=&public_advertised_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -480,6 +487,7 @@ describe('v1.PublicAdvertisedPrefixesClient', () => { new protos.google.cloud.compute.v1.GetPublicAdvertisedPrefixeRequest() ); request.project = ''; + request.publicAdvertisedPrefix = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -625,7 +633,8 @@ describe('v1.PublicAdvertisedPrefixesClient', () => { new protos.google.cloud.compute.v1.PatchPublicAdvertisedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.publicAdvertisedPrefix = ''; + const expectedHeaderRequestParams = 'project=&public_advertised_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -657,7 +666,8 @@ describe('v1.PublicAdvertisedPrefixesClient', () => { new protos.google.cloud.compute.v1.PatchPublicAdvertisedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.publicAdvertisedPrefix = ''; + const expectedHeaderRequestParams = 'project=&public_advertised_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -704,7 +714,8 @@ describe('v1.PublicAdvertisedPrefixesClient', () => { new protos.google.cloud.compute.v1.PatchPublicAdvertisedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.publicAdvertisedPrefix = ''; + const expectedHeaderRequestParams = 'project=&public_advertised_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -733,6 +744,7 @@ describe('v1.PublicAdvertisedPrefixesClient', () => { new protos.google.cloud.compute.v1.PatchPublicAdvertisedPrefixeRequest() ); request.project = ''; + request.publicAdvertisedPrefix = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); diff --git a/test/gapic_public_delegated_prefixes_v1.ts b/test/gapic_public_delegated_prefixes_v1.ts index 13e350d3..5b058101 100644 --- a/test/gapic_public_delegated_prefixes_v1.ts +++ b/test/gapic_public_delegated_prefixes_v1.ts @@ -245,7 +245,10 @@ describe('v1.PublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.DeletePublicDelegatedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.publicDelegatedPrefix = ''; + const expectedHeaderRequestParams = + 'project=®ion=&public_delegated_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -277,7 +280,10 @@ describe('v1.PublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.DeletePublicDelegatedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.publicDelegatedPrefix = ''; + const expectedHeaderRequestParams = + 'project=®ion=&public_delegated_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -325,7 +331,10 @@ describe('v1.PublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.DeletePublicDelegatedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.publicDelegatedPrefix = ''; + const expectedHeaderRequestParams = + 'project=®ion=&public_delegated_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -354,6 +363,8 @@ describe('v1.PublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.DeletePublicDelegatedPrefixeRequest() ); request.project = ''; + request.region = ''; + request.publicDelegatedPrefix = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -372,7 +383,10 @@ describe('v1.PublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.GetPublicDelegatedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.publicDelegatedPrefix = ''; + const expectedHeaderRequestParams = + 'project=®ion=&public_delegated_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -404,7 +418,10 @@ describe('v1.PublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.GetPublicDelegatedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.publicDelegatedPrefix = ''; + const expectedHeaderRequestParams = + 'project=®ion=&public_delegated_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -451,7 +468,10 @@ describe('v1.PublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.GetPublicDelegatedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.publicDelegatedPrefix = ''; + const expectedHeaderRequestParams = + 'project=®ion=&public_delegated_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -480,6 +500,8 @@ describe('v1.PublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.GetPublicDelegatedPrefixeRequest() ); request.project = ''; + request.region = ''; + request.publicDelegatedPrefix = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -498,7 +520,8 @@ describe('v1.PublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.InsertPublicDelegatedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -530,7 +553,8 @@ describe('v1.PublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.InsertPublicDelegatedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -578,7 +602,8 @@ describe('v1.PublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.InsertPublicDelegatedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -607,6 +632,7 @@ describe('v1.PublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.InsertPublicDelegatedPrefixeRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -625,7 +651,10 @@ describe('v1.PublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.PatchPublicDelegatedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.publicDelegatedPrefix = ''; + const expectedHeaderRequestParams = + 'project=®ion=&public_delegated_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -657,7 +686,10 @@ describe('v1.PublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.PatchPublicDelegatedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.publicDelegatedPrefix = ''; + const expectedHeaderRequestParams = + 'project=®ion=&public_delegated_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -704,7 +736,10 @@ describe('v1.PublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.PatchPublicDelegatedPrefixeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.publicDelegatedPrefix = ''; + const expectedHeaderRequestParams = + 'project=®ion=&public_delegated_prefix='; const expectedOptions = { otherArgs: { headers: { @@ -733,6 +768,8 @@ describe('v1.PublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.PatchPublicDelegatedPrefixeRequest() ); request.project = ''; + request.region = ''; + request.publicDelegatedPrefix = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -853,7 +890,8 @@ describe('v1.PublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -893,7 +931,8 @@ describe('v1.PublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -950,7 +989,8 @@ describe('v1.PublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -979,7 +1019,8 @@ describe('v1.PublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.PublicDelegatedPrefix() @@ -1035,7 +1076,8 @@ describe('v1.PublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -1082,7 +1124,8 @@ describe('v1.PublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.PublicDelegatedPrefix() @@ -1126,7 +1169,8 @@ describe('v1.PublicDelegatedPrefixesClient', () => { new protos.google.cloud.compute.v1.ListPublicDelegatedPrefixesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_region_autoscalers_v1.ts b/test/gapic_region_autoscalers_v1.ts index 74d279a4..69cadf6d 100644 --- a/test/gapic_region_autoscalers_v1.ts +++ b/test/gapic_region_autoscalers_v1.ts @@ -234,7 +234,9 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.DeleteRegionAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.autoscaler = ''; + const expectedHeaderRequestParams = 'project=®ion=&autoscaler='; const expectedOptions = { otherArgs: { headers: { @@ -265,7 +267,9 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.DeleteRegionAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.autoscaler = ''; + const expectedHeaderRequestParams = 'project=®ion=&autoscaler='; const expectedOptions = { otherArgs: { headers: { @@ -312,7 +316,9 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.DeleteRegionAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.autoscaler = ''; + const expectedHeaderRequestParams = 'project=®ion=&autoscaler='; const expectedOptions = { otherArgs: { headers: { @@ -340,6 +346,8 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.DeleteRegionAutoscalerRequest() ); request.project = ''; + request.region = ''; + request.autoscaler = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -357,7 +365,9 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.GetRegionAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.autoscaler = ''; + const expectedHeaderRequestParams = 'project=®ion=&autoscaler='; const expectedOptions = { otherArgs: { headers: { @@ -388,7 +398,9 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.GetRegionAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.autoscaler = ''; + const expectedHeaderRequestParams = 'project=®ion=&autoscaler='; const expectedOptions = { otherArgs: { headers: { @@ -434,7 +446,9 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.GetRegionAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.autoscaler = ''; + const expectedHeaderRequestParams = 'project=®ion=&autoscaler='; const expectedOptions = { otherArgs: { headers: { @@ -462,6 +476,8 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.GetRegionAutoscalerRequest() ); request.project = ''; + request.region = ''; + request.autoscaler = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -479,7 +495,8 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.InsertRegionAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -510,7 +527,8 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.InsertRegionAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -557,7 +575,8 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.InsertRegionAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -585,6 +604,7 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.InsertRegionAutoscalerRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -602,7 +622,8 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.PatchRegionAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -633,7 +654,8 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.PatchRegionAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -679,7 +701,8 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.PatchRegionAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -707,6 +730,7 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.PatchRegionAutoscalerRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -724,7 +748,8 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.UpdateRegionAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -755,7 +780,8 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.UpdateRegionAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -802,7 +828,8 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.UpdateRegionAutoscalerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -830,6 +857,7 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.UpdateRegionAutoscalerRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.update(request), expectedError); @@ -847,7 +875,8 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.ListRegionAutoscalersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -880,7 +909,8 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.ListRegionAutoscalersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -928,7 +958,8 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.ListRegionAutoscalersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -956,7 +987,8 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.ListRegionAutoscalersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.Autoscaler()), generateSampleMessage(new protos.google.cloud.compute.v1.Autoscaler()), @@ -1004,7 +1036,8 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.ListRegionAutoscalersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -1049,7 +1082,8 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.ListRegionAutoscalersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.Autoscaler()), generateSampleMessage(new protos.google.cloud.compute.v1.Autoscaler()), @@ -1085,7 +1119,8 @@ describe('v1.RegionAutoscalersClient', () => { new protos.google.cloud.compute.v1.ListRegionAutoscalersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_region_backend_services_v1.ts b/test/gapic_region_backend_services_v1.ts index ac868957..749b06ef 100644 --- a/test/gapic_region_backend_services_v1.ts +++ b/test/gapic_region_backend_services_v1.ts @@ -243,7 +243,9 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=®ion=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -275,7 +277,9 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=®ion=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -323,7 +327,9 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=®ion=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -352,6 +358,8 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionBackendServiceRequest() ); request.project = ''; + request.region = ''; + request.backendService = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -370,7 +378,9 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.GetRegionBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=®ion=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -402,7 +412,9 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.GetRegionBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=®ion=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -449,7 +461,9 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.GetRegionBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=®ion=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -478,6 +492,8 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.GetRegionBackendServiceRequest() ); request.project = ''; + request.region = ''; + request.backendService = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -496,7 +512,9 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.GetHealthRegionBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=®ion=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -528,7 +546,9 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.GetHealthRegionBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=®ion=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -576,7 +596,9 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.GetHealthRegionBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=®ion=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -605,6 +627,8 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.GetHealthRegionBackendServiceRequest() ); request.project = ''; + request.region = ''; + request.backendService = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getHealth(request), expectedError); @@ -623,7 +647,8 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.InsertRegionBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -655,7 +680,8 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.InsertRegionBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -703,7 +729,8 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.InsertRegionBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -732,6 +759,7 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.InsertRegionBackendServiceRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -750,7 +778,9 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.PatchRegionBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=®ion=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -782,7 +812,9 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.PatchRegionBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=®ion=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -829,7 +861,9 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.PatchRegionBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=®ion=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -858,6 +892,8 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.PatchRegionBackendServiceRequest() ); request.project = ''; + request.region = ''; + request.backendService = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -876,7 +912,9 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.UpdateRegionBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=®ion=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -908,7 +946,9 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.UpdateRegionBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=®ion=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -956,7 +996,9 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.UpdateRegionBackendServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.backendService = ''; + const expectedHeaderRequestParams = 'project=®ion=&backend_service='; const expectedOptions = { otherArgs: { headers: { @@ -985,6 +1027,8 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.UpdateRegionBackendServiceRequest() ); request.project = ''; + request.region = ''; + request.backendService = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.update(request), expectedError); @@ -1003,7 +1047,8 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.ListRegionBackendServicesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1043,7 +1088,8 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.ListRegionBackendServicesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1098,7 +1144,8 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.ListRegionBackendServicesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1127,7 +1174,8 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.ListRegionBackendServicesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.BackendService() @@ -1182,7 +1230,8 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.ListRegionBackendServicesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -1228,7 +1277,8 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.ListRegionBackendServicesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.BackendService() @@ -1271,7 +1321,8 @@ describe('v1.RegionBackendServicesClient', () => { new protos.google.cloud.compute.v1.ListRegionBackendServicesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_region_commitments_v1.ts b/test/gapic_region_commitments_v1.ts index 45a8accc..ae097797 100644 --- a/test/gapic_region_commitments_v1.ts +++ b/test/gapic_region_commitments_v1.ts @@ -234,7 +234,9 @@ describe('v1.RegionCommitmentsClient', () => { new protos.google.cloud.compute.v1.GetRegionCommitmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.commitment = ''; + const expectedHeaderRequestParams = 'project=®ion=&commitment='; const expectedOptions = { otherArgs: { headers: { @@ -265,7 +267,9 @@ describe('v1.RegionCommitmentsClient', () => { new protos.google.cloud.compute.v1.GetRegionCommitmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.commitment = ''; + const expectedHeaderRequestParams = 'project=®ion=&commitment='; const expectedOptions = { otherArgs: { headers: { @@ -311,7 +315,9 @@ describe('v1.RegionCommitmentsClient', () => { new protos.google.cloud.compute.v1.GetRegionCommitmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.commitment = ''; + const expectedHeaderRequestParams = 'project=®ion=&commitment='; const expectedOptions = { otherArgs: { headers: { @@ -339,6 +345,8 @@ describe('v1.RegionCommitmentsClient', () => { new protos.google.cloud.compute.v1.GetRegionCommitmentRequest() ); request.project = ''; + request.region = ''; + request.commitment = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -356,7 +364,8 @@ describe('v1.RegionCommitmentsClient', () => { new protos.google.cloud.compute.v1.InsertRegionCommitmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -387,7 +396,8 @@ describe('v1.RegionCommitmentsClient', () => { new protos.google.cloud.compute.v1.InsertRegionCommitmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -434,7 +444,8 @@ describe('v1.RegionCommitmentsClient', () => { new protos.google.cloud.compute.v1.InsertRegionCommitmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -462,6 +473,7 @@ describe('v1.RegionCommitmentsClient', () => { new protos.google.cloud.compute.v1.InsertRegionCommitmentRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -479,7 +491,9 @@ describe('v1.RegionCommitmentsClient', () => { new protos.google.cloud.compute.v1.UpdateRegionCommitmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.commitment = ''; + const expectedHeaderRequestParams = 'project=®ion=&commitment='; const expectedOptions = { otherArgs: { headers: { @@ -510,7 +524,9 @@ describe('v1.RegionCommitmentsClient', () => { new protos.google.cloud.compute.v1.UpdateRegionCommitmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.commitment = ''; + const expectedHeaderRequestParams = 'project=®ion=&commitment='; const expectedOptions = { otherArgs: { headers: { @@ -557,7 +573,9 @@ describe('v1.RegionCommitmentsClient', () => { new protos.google.cloud.compute.v1.UpdateRegionCommitmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.commitment = ''; + const expectedHeaderRequestParams = 'project=®ion=&commitment='; const expectedOptions = { otherArgs: { headers: { @@ -585,6 +603,8 @@ describe('v1.RegionCommitmentsClient', () => { new protos.google.cloud.compute.v1.UpdateRegionCommitmentRequest() ); request.project = ''; + request.region = ''; + request.commitment = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.update(request), expectedError); @@ -696,7 +716,8 @@ describe('v1.RegionCommitmentsClient', () => { new protos.google.cloud.compute.v1.ListRegionCommitmentsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -729,7 +750,8 @@ describe('v1.RegionCommitmentsClient', () => { new protos.google.cloud.compute.v1.ListRegionCommitmentsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -777,7 +799,8 @@ describe('v1.RegionCommitmentsClient', () => { new protos.google.cloud.compute.v1.ListRegionCommitmentsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -805,7 +828,8 @@ describe('v1.RegionCommitmentsClient', () => { new protos.google.cloud.compute.v1.ListRegionCommitmentsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.Commitment()), generateSampleMessage(new protos.google.cloud.compute.v1.Commitment()), @@ -853,7 +877,8 @@ describe('v1.RegionCommitmentsClient', () => { new protos.google.cloud.compute.v1.ListRegionCommitmentsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -898,7 +923,8 @@ describe('v1.RegionCommitmentsClient', () => { new protos.google.cloud.compute.v1.ListRegionCommitmentsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.Commitment()), generateSampleMessage(new protos.google.cloud.compute.v1.Commitment()), @@ -934,7 +960,8 @@ describe('v1.RegionCommitmentsClient', () => { new protos.google.cloud.compute.v1.ListRegionCommitmentsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_region_disk_types_v1.ts b/test/gapic_region_disk_types_v1.ts index dc533220..39eebd03 100644 --- a/test/gapic_region_disk_types_v1.ts +++ b/test/gapic_region_disk_types_v1.ts @@ -234,7 +234,9 @@ describe('v1.RegionDiskTypesClient', () => { new protos.google.cloud.compute.v1.GetRegionDiskTypeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.diskType = ''; + const expectedHeaderRequestParams = 'project=®ion=&disk_type='; const expectedOptions = { otherArgs: { headers: { @@ -265,7 +267,9 @@ describe('v1.RegionDiskTypesClient', () => { new protos.google.cloud.compute.v1.GetRegionDiskTypeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.diskType = ''; + const expectedHeaderRequestParams = 'project=®ion=&disk_type='; const expectedOptions = { otherArgs: { headers: { @@ -311,7 +315,9 @@ describe('v1.RegionDiskTypesClient', () => { new protos.google.cloud.compute.v1.GetRegionDiskTypeRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.diskType = ''; + const expectedHeaderRequestParams = 'project=®ion=&disk_type='; const expectedOptions = { otherArgs: { headers: { @@ -339,6 +345,8 @@ describe('v1.RegionDiskTypesClient', () => { new protos.google.cloud.compute.v1.GetRegionDiskTypeRequest() ); request.project = ''; + request.region = ''; + request.diskType = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -356,7 +364,8 @@ describe('v1.RegionDiskTypesClient', () => { new protos.google.cloud.compute.v1.ListRegionDiskTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -389,7 +398,8 @@ describe('v1.RegionDiskTypesClient', () => { new protos.google.cloud.compute.v1.ListRegionDiskTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -437,7 +447,8 @@ describe('v1.RegionDiskTypesClient', () => { new protos.google.cloud.compute.v1.ListRegionDiskTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -465,7 +476,8 @@ describe('v1.RegionDiskTypesClient', () => { new protos.google.cloud.compute.v1.ListRegionDiskTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.DiskType()), generateSampleMessage(new protos.google.cloud.compute.v1.DiskType()), @@ -513,7 +525,8 @@ describe('v1.RegionDiskTypesClient', () => { new protos.google.cloud.compute.v1.ListRegionDiskTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -558,7 +571,8 @@ describe('v1.RegionDiskTypesClient', () => { new protos.google.cloud.compute.v1.ListRegionDiskTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.DiskType()), generateSampleMessage(new protos.google.cloud.compute.v1.DiskType()), @@ -594,7 +608,8 @@ describe('v1.RegionDiskTypesClient', () => { new protos.google.cloud.compute.v1.ListRegionDiskTypesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_region_disks_v1.ts b/test/gapic_region_disks_v1.ts index 3bd422e0..d07f294b 100644 --- a/test/gapic_region_disks_v1.ts +++ b/test/gapic_region_disks_v1.ts @@ -232,7 +232,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.AddResourcePoliciesRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=®ion=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -264,7 +266,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.AddResourcePoliciesRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=®ion=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -311,7 +315,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.AddResourcePoliciesRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=®ion=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -342,6 +348,8 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.AddResourcePoliciesRegionDiskRequest() ); request.project = ''; + request.region = ''; + request.disk = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.addResourcePolicies(request), expectedError); @@ -359,7 +367,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.CreateSnapshotRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=®ion=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -390,7 +400,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.CreateSnapshotRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=®ion=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -437,7 +449,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.CreateSnapshotRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=®ion=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -468,6 +482,8 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.CreateSnapshotRegionDiskRequest() ); request.project = ''; + request.region = ''; + request.disk = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createSnapshot(request), expectedError); @@ -485,7 +501,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.DeleteRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=®ion=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -516,7 +534,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.DeleteRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=®ion=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -563,7 +583,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.DeleteRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=®ion=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -591,6 +613,8 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.DeleteRegionDiskRequest() ); request.project = ''; + request.region = ''; + request.disk = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -608,7 +632,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.GetRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=®ion=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -639,7 +665,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.GetRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=®ion=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -685,7 +713,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.GetRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=®ion=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -713,6 +743,8 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.GetRegionDiskRequest() ); request.project = ''; + request.region = ''; + request.disk = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -730,7 +762,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -761,7 +795,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -808,7 +844,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -839,6 +877,8 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyRegionDiskRequest() ); request.project = ''; + request.region = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getIamPolicy(request), expectedError); @@ -856,7 +896,8 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.InsertRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -887,7 +928,8 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.InsertRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -934,7 +976,8 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.InsertRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -962,6 +1005,7 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.InsertRegionDiskRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -979,7 +1023,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.RemoveResourcePoliciesRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=®ion=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -1011,7 +1057,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.RemoveResourcePoliciesRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=®ion=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -1058,7 +1106,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.RemoveResourcePoliciesRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=®ion=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -1092,6 +1142,8 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.RemoveResourcePoliciesRegionDiskRequest() ); request.project = ''; + request.region = ''; + request.disk = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1112,7 +1164,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.ResizeRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=®ion=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -1143,7 +1197,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.ResizeRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=®ion=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -1190,7 +1246,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.ResizeRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.disk = ''; + const expectedHeaderRequestParams = 'project=®ion=&disk='; const expectedOptions = { otherArgs: { headers: { @@ -1218,6 +1276,8 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.ResizeRegionDiskRequest() ); request.project = ''; + request.region = ''; + request.disk = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.resize(request), expectedError); @@ -1235,7 +1295,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1266,7 +1328,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1313,7 +1377,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1344,6 +1410,8 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyRegionDiskRequest() ); request.project = ''; + request.region = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setIamPolicy(request), expectedError); @@ -1361,7 +1429,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.SetLabelsRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1392,7 +1462,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.SetLabelsRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1439,7 +1511,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.SetLabelsRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1467,6 +1541,8 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.SetLabelsRegionDiskRequest() ); request.project = ''; + request.region = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setLabels(request), expectedError); @@ -1484,7 +1560,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1516,7 +1594,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1563,7 +1643,9 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1594,6 +1676,8 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsRegionDiskRequest() ); request.project = ''; + request.region = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.testIamPermissions(request), expectedError); @@ -1611,7 +1695,8 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.ListRegionDisksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1644,7 +1729,8 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.ListRegionDisksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1692,7 +1778,8 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.ListRegionDisksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1720,7 +1807,8 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.ListRegionDisksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.Disk()), generateSampleMessage(new protos.google.cloud.compute.v1.Disk()), @@ -1765,7 +1853,8 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.ListRegionDisksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -1807,7 +1896,8 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.ListRegionDisksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.Disk()), generateSampleMessage(new protos.google.cloud.compute.v1.Disk()), @@ -1843,7 +1933,8 @@ describe('v1.RegionDisksClient', () => { new protos.google.cloud.compute.v1.ListRegionDisksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_region_health_check_services_v1.ts b/test/gapic_region_health_check_services_v1.ts index 44b437ce..db3a6dd3 100644 --- a/test/gapic_region_health_check_services_v1.ts +++ b/test/gapic_region_health_check_services_v1.ts @@ -245,7 +245,10 @@ describe('v1.RegionHealthCheckServicesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionHealthCheckServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.healthCheckService = ''; + const expectedHeaderRequestParams = + 'project=®ion=&health_check_service='; const expectedOptions = { otherArgs: { headers: { @@ -277,7 +280,10 @@ describe('v1.RegionHealthCheckServicesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionHealthCheckServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.healthCheckService = ''; + const expectedHeaderRequestParams = + 'project=®ion=&health_check_service='; const expectedOptions = { otherArgs: { headers: { @@ -325,7 +331,10 @@ describe('v1.RegionHealthCheckServicesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionHealthCheckServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.healthCheckService = ''; + const expectedHeaderRequestParams = + 'project=®ion=&health_check_service='; const expectedOptions = { otherArgs: { headers: { @@ -354,6 +363,8 @@ describe('v1.RegionHealthCheckServicesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionHealthCheckServiceRequest() ); request.project = ''; + request.region = ''; + request.healthCheckService = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -372,7 +383,10 @@ describe('v1.RegionHealthCheckServicesClient', () => { new protos.google.cloud.compute.v1.GetRegionHealthCheckServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.healthCheckService = ''; + const expectedHeaderRequestParams = + 'project=®ion=&health_check_service='; const expectedOptions = { otherArgs: { headers: { @@ -404,7 +418,10 @@ describe('v1.RegionHealthCheckServicesClient', () => { new protos.google.cloud.compute.v1.GetRegionHealthCheckServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.healthCheckService = ''; + const expectedHeaderRequestParams = + 'project=®ion=&health_check_service='; const expectedOptions = { otherArgs: { headers: { @@ -451,7 +468,10 @@ describe('v1.RegionHealthCheckServicesClient', () => { new protos.google.cloud.compute.v1.GetRegionHealthCheckServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.healthCheckService = ''; + const expectedHeaderRequestParams = + 'project=®ion=&health_check_service='; const expectedOptions = { otherArgs: { headers: { @@ -480,6 +500,8 @@ describe('v1.RegionHealthCheckServicesClient', () => { new protos.google.cloud.compute.v1.GetRegionHealthCheckServiceRequest() ); request.project = ''; + request.region = ''; + request.healthCheckService = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -498,7 +520,8 @@ describe('v1.RegionHealthCheckServicesClient', () => { new protos.google.cloud.compute.v1.InsertRegionHealthCheckServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -530,7 +553,8 @@ describe('v1.RegionHealthCheckServicesClient', () => { new protos.google.cloud.compute.v1.InsertRegionHealthCheckServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -578,7 +602,8 @@ describe('v1.RegionHealthCheckServicesClient', () => { new protos.google.cloud.compute.v1.InsertRegionHealthCheckServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -607,6 +632,7 @@ describe('v1.RegionHealthCheckServicesClient', () => { new protos.google.cloud.compute.v1.InsertRegionHealthCheckServiceRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -625,7 +651,10 @@ describe('v1.RegionHealthCheckServicesClient', () => { new protos.google.cloud.compute.v1.PatchRegionHealthCheckServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.healthCheckService = ''; + const expectedHeaderRequestParams = + 'project=®ion=&health_check_service='; const expectedOptions = { otherArgs: { headers: { @@ -657,7 +686,10 @@ describe('v1.RegionHealthCheckServicesClient', () => { new protos.google.cloud.compute.v1.PatchRegionHealthCheckServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.healthCheckService = ''; + const expectedHeaderRequestParams = + 'project=®ion=&health_check_service='; const expectedOptions = { otherArgs: { headers: { @@ -704,7 +736,10 @@ describe('v1.RegionHealthCheckServicesClient', () => { new protos.google.cloud.compute.v1.PatchRegionHealthCheckServiceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.healthCheckService = ''; + const expectedHeaderRequestParams = + 'project=®ion=&health_check_service='; const expectedOptions = { otherArgs: { headers: { @@ -733,6 +768,8 @@ describe('v1.RegionHealthCheckServicesClient', () => { new protos.google.cloud.compute.v1.PatchRegionHealthCheckServiceRequest() ); request.project = ''; + request.region = ''; + request.healthCheckService = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -751,7 +788,8 @@ describe('v1.RegionHealthCheckServicesClient', () => { new protos.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -791,7 +829,8 @@ describe('v1.RegionHealthCheckServicesClient', () => { new protos.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -846,7 +885,8 @@ describe('v1.RegionHealthCheckServicesClient', () => { new protos.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -875,7 +915,8 @@ describe('v1.RegionHealthCheckServicesClient', () => { new protos.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.HealthCheckService() @@ -931,7 +972,8 @@ describe('v1.RegionHealthCheckServicesClient', () => { new protos.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -978,7 +1020,8 @@ describe('v1.RegionHealthCheckServicesClient', () => { new protos.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.HealthCheckService() @@ -1022,7 +1065,8 @@ describe('v1.RegionHealthCheckServicesClient', () => { new protos.google.cloud.compute.v1.ListRegionHealthCheckServicesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_region_health_checks_v1.ts b/test/gapic_region_health_checks_v1.ts index 9e5b4ef4..00cec5ff 100644 --- a/test/gapic_region_health_checks_v1.ts +++ b/test/gapic_region_health_checks_v1.ts @@ -234,7 +234,9 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.DeleteRegionHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.healthCheck = ''; + const expectedHeaderRequestParams = 'project=®ion=&health_check='; const expectedOptions = { otherArgs: { headers: { @@ -265,7 +267,9 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.DeleteRegionHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.healthCheck = ''; + const expectedHeaderRequestParams = 'project=®ion=&health_check='; const expectedOptions = { otherArgs: { headers: { @@ -312,7 +316,9 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.DeleteRegionHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.healthCheck = ''; + const expectedHeaderRequestParams = 'project=®ion=&health_check='; const expectedOptions = { otherArgs: { headers: { @@ -340,6 +346,8 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.DeleteRegionHealthCheckRequest() ); request.project = ''; + request.region = ''; + request.healthCheck = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -357,7 +365,9 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.GetRegionHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.healthCheck = ''; + const expectedHeaderRequestParams = 'project=®ion=&health_check='; const expectedOptions = { otherArgs: { headers: { @@ -388,7 +398,9 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.GetRegionHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.healthCheck = ''; + const expectedHeaderRequestParams = 'project=®ion=&health_check='; const expectedOptions = { otherArgs: { headers: { @@ -434,7 +446,9 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.GetRegionHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.healthCheck = ''; + const expectedHeaderRequestParams = 'project=®ion=&health_check='; const expectedOptions = { otherArgs: { headers: { @@ -462,6 +476,8 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.GetRegionHealthCheckRequest() ); request.project = ''; + request.region = ''; + request.healthCheck = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -479,7 +495,8 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.InsertRegionHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -510,7 +527,8 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.InsertRegionHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -557,7 +575,8 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.InsertRegionHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -585,6 +604,7 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.InsertRegionHealthCheckRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -602,7 +622,9 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.PatchRegionHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.healthCheck = ''; + const expectedHeaderRequestParams = 'project=®ion=&health_check='; const expectedOptions = { otherArgs: { headers: { @@ -633,7 +655,9 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.PatchRegionHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.healthCheck = ''; + const expectedHeaderRequestParams = 'project=®ion=&health_check='; const expectedOptions = { otherArgs: { headers: { @@ -679,7 +703,9 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.PatchRegionHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.healthCheck = ''; + const expectedHeaderRequestParams = 'project=®ion=&health_check='; const expectedOptions = { otherArgs: { headers: { @@ -707,6 +733,8 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.PatchRegionHealthCheckRequest() ); request.project = ''; + request.region = ''; + request.healthCheck = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -724,7 +752,9 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.UpdateRegionHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.healthCheck = ''; + const expectedHeaderRequestParams = 'project=®ion=&health_check='; const expectedOptions = { otherArgs: { headers: { @@ -755,7 +785,9 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.UpdateRegionHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.healthCheck = ''; + const expectedHeaderRequestParams = 'project=®ion=&health_check='; const expectedOptions = { otherArgs: { headers: { @@ -802,7 +834,9 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.UpdateRegionHealthCheckRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.healthCheck = ''; + const expectedHeaderRequestParams = 'project=®ion=&health_check='; const expectedOptions = { otherArgs: { headers: { @@ -830,6 +864,8 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.UpdateRegionHealthCheckRequest() ); request.project = ''; + request.region = ''; + request.healthCheck = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.update(request), expectedError); @@ -847,7 +883,8 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.ListRegionHealthChecksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -880,7 +917,8 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.ListRegionHealthChecksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -928,7 +966,8 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.ListRegionHealthChecksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -956,7 +995,8 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.ListRegionHealthChecksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.HealthCheck()), generateSampleMessage(new protos.google.cloud.compute.v1.HealthCheck()), @@ -1004,7 +1044,8 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.ListRegionHealthChecksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -1049,7 +1090,8 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.ListRegionHealthChecksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.HealthCheck()), generateSampleMessage(new protos.google.cloud.compute.v1.HealthCheck()), @@ -1085,7 +1127,8 @@ describe('v1.RegionHealthChecksClient', () => { new protos.google.cloud.compute.v1.ListRegionHealthChecksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_region_instance_group_managers_v1.ts b/test/gapic_region_instance_group_managers_v1.ts index d97ca019..b14430e0 100644 --- a/test/gapic_region_instance_group_managers_v1.ts +++ b/test/gapic_region_instance_group_managers_v1.ts @@ -260,7 +260,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.AbandonInstancesRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -294,7 +297,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.AbandonInstancesRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -344,7 +350,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.AbandonInstancesRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -378,6 +387,8 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.AbandonInstancesRegionInstanceGroupManagerRequest() ); request.project = ''; + request.region = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.abandonInstances(request), expectedError); @@ -398,7 +409,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -433,7 +447,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -483,7 +500,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -520,6 +540,8 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest() ); request.project = ''; + request.region = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -543,7 +565,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.CreateInstancesRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -577,7 +602,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.CreateInstancesRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -627,7 +655,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.CreateInstancesRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -661,6 +692,8 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.CreateInstancesRegionInstanceGroupManagerRequest() ); request.project = ''; + request.region = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createInstances(request), expectedError); @@ -681,7 +714,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -715,7 +751,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -765,7 +804,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -796,6 +838,8 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.DeleteRegionInstanceGroupManagerRequest() ); request.project = ''; + request.region = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -816,7 +860,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.DeleteInstancesRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -850,7 +897,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.DeleteInstancesRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -900,7 +950,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.DeleteInstancesRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -934,6 +987,8 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.DeleteInstancesRegionInstanceGroupManagerRequest() ); request.project = ''; + request.region = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteInstances(request), expectedError); @@ -954,7 +1009,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.DeletePerInstanceConfigsRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -989,7 +1047,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.DeletePerInstanceConfigsRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1039,7 +1100,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.DeletePerInstanceConfigsRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1076,6 +1140,8 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.DeletePerInstanceConfigsRegionInstanceGroupManagerRequest() ); request.project = ''; + request.region = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1099,7 +1165,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.GetRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1133,7 +1202,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.GetRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1182,7 +1254,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.GetRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1213,6 +1288,8 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.GetRegionInstanceGroupManagerRequest() ); request.project = ''; + request.region = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -1233,7 +1310,8 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.InsertRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1267,7 +1345,8 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.InsertRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1317,7 +1396,8 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.InsertRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1348,6 +1428,7 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.InsertRegionInstanceGroupManagerRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -1368,7 +1449,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.PatchRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1402,7 +1486,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.PatchRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1451,7 +1538,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.PatchRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1482,6 +1572,8 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.PatchRegionInstanceGroupManagerRequest() ); request.project = ''; + request.region = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -1502,7 +1594,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.PatchPerInstanceConfigsRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1537,7 +1632,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.PatchPerInstanceConfigsRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1587,7 +1685,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.PatchPerInstanceConfigsRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1624,6 +1725,8 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.PatchPerInstanceConfigsRegionInstanceGroupManagerRequest() ); request.project = ''; + request.region = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1647,7 +1750,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.RecreateInstancesRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1681,7 +1787,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.RecreateInstancesRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1731,7 +1840,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.RecreateInstancesRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1765,6 +1877,8 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.RecreateInstancesRegionInstanceGroupManagerRequest() ); request.project = ''; + request.region = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.recreateInstances(request), expectedError); @@ -1785,7 +1899,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ResizeRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1819,7 +1936,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ResizeRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1869,7 +1989,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ResizeRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1900,6 +2023,8 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ResizeRegionInstanceGroupManagerRequest() ); request.project = ''; + request.region = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.resize(request), expectedError); @@ -1920,7 +2045,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.SetInstanceTemplateRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -1955,7 +2083,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.SetInstanceTemplateRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -2005,7 +2136,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.SetInstanceTemplateRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -2039,6 +2173,8 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.SetInstanceTemplateRegionInstanceGroupManagerRequest() ); request.project = ''; + request.region = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setInstanceTemplate(request), expectedError); @@ -2059,7 +2195,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.SetTargetPoolsRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -2093,7 +2232,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.SetTargetPoolsRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -2143,7 +2285,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.SetTargetPoolsRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -2177,6 +2322,8 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.SetTargetPoolsRegionInstanceGroupManagerRequest() ); request.project = ''; + request.region = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setTargetPools(request), expectedError); @@ -2197,7 +2344,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -2232,7 +2382,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -2282,7 +2435,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -2319,6 +2475,8 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest() ); request.project = ''; + request.region = ''; + request.instanceGroupManager = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2342,7 +2500,8 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -2384,7 +2543,8 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -2443,7 +2603,8 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -2474,7 +2635,8 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.InstanceGroupManager() @@ -2532,7 +2694,8 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -2581,7 +2744,8 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.InstanceGroupManager() @@ -2627,7 +2791,8 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, @@ -2668,7 +2833,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListErrorsRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -2710,7 +2878,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListErrorsRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -2770,7 +2941,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListErrorsRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -2804,7 +2978,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListErrorsRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.InstanceManagedByIgmError() @@ -2865,7 +3042,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListErrorsRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedError = new Error('expected'); client.descriptors.page.listErrors.createStream = stubPageStreamingCall( undefined, @@ -2917,7 +3097,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListErrorsRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.InstanceManagedByIgmError() @@ -2965,7 +3148,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListErrorsRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedError = new Error('expected'); client.descriptors.page.listErrors.asyncIterate = stubAsyncIterationCall( undefined, @@ -3008,7 +3194,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListManagedInstancesRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -3051,7 +3240,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListManagedInstancesRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -3109,7 +3301,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListManagedInstancesRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -3143,7 +3338,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListManagedInstancesRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.ManagedInstance() @@ -3201,7 +3399,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListManagedInstancesRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedError = new Error('expected'); client.descriptors.page.listManagedInstances.createStream = stubPageStreamingCall(undefined, expectedError); @@ -3248,7 +3449,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListManagedInstancesRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.ManagedInstance() @@ -3295,7 +3499,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListManagedInstancesRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedError = new Error('expected'); client.descriptors.page.listManagedInstances.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -3335,7 +3542,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListPerInstanceConfigsRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -3378,7 +3588,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListPerInstanceConfigsRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -3436,7 +3649,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListPerInstanceConfigsRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedOptions = { otherArgs: { headers: { @@ -3473,7 +3689,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListPerInstanceConfigsRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.PerInstanceConfig() @@ -3536,7 +3755,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListPerInstanceConfigsRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedError = new Error('expected'); client.descriptors.page.listPerInstanceConfigs.createStream = stubPageStreamingCall(undefined, expectedError); @@ -3588,7 +3810,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListPerInstanceConfigsRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.PerInstanceConfig() @@ -3637,7 +3862,10 @@ describe('v1.RegionInstanceGroupManagersClient', () => { new protos.google.cloud.compute.v1.ListPerInstanceConfigsRegionInstanceGroupManagersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroupManager = ''; + const expectedHeaderRequestParams = + 'project=®ion=&instance_group_manager='; const expectedError = new Error('expected'); client.descriptors.page.listPerInstanceConfigs.asyncIterate = stubAsyncIterationCall(undefined, expectedError); diff --git a/test/gapic_region_instance_groups_v1.ts b/test/gapic_region_instance_groups_v1.ts index bccc64d7..af727385 100644 --- a/test/gapic_region_instance_groups_v1.ts +++ b/test/gapic_region_instance_groups_v1.ts @@ -248,7 +248,9 @@ describe('v1.RegionInstanceGroupsClient', () => { new protos.google.cloud.compute.v1.GetRegionInstanceGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=®ion=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -280,7 +282,9 @@ describe('v1.RegionInstanceGroupsClient', () => { new protos.google.cloud.compute.v1.GetRegionInstanceGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=®ion=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -327,7 +331,9 @@ describe('v1.RegionInstanceGroupsClient', () => { new protos.google.cloud.compute.v1.GetRegionInstanceGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=®ion=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -356,6 +362,8 @@ describe('v1.RegionInstanceGroupsClient', () => { new protos.google.cloud.compute.v1.GetRegionInstanceGroupRequest() ); request.project = ''; + request.region = ''; + request.instanceGroup = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -374,7 +382,9 @@ describe('v1.RegionInstanceGroupsClient', () => { new protos.google.cloud.compute.v1.SetNamedPortsRegionInstanceGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=®ion=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -406,7 +416,9 @@ describe('v1.RegionInstanceGroupsClient', () => { new protos.google.cloud.compute.v1.SetNamedPortsRegionInstanceGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=®ion=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -454,7 +466,9 @@ describe('v1.RegionInstanceGroupsClient', () => { new protos.google.cloud.compute.v1.SetNamedPortsRegionInstanceGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=®ion=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -486,6 +500,8 @@ describe('v1.RegionInstanceGroupsClient', () => { new protos.google.cloud.compute.v1.SetNamedPortsRegionInstanceGroupRequest() ); request.project = ''; + request.region = ''; + request.instanceGroup = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setNamedPorts(request), expectedError); @@ -504,7 +520,8 @@ describe('v1.RegionInstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListRegionInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -544,7 +561,8 @@ describe('v1.RegionInstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListRegionInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -599,7 +617,8 @@ describe('v1.RegionInstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListRegionInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -628,7 +647,8 @@ describe('v1.RegionInstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListRegionInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.InstanceGroup() @@ -683,7 +703,8 @@ describe('v1.RegionInstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListRegionInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -729,7 +750,8 @@ describe('v1.RegionInstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListRegionInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.InstanceGroup() @@ -772,7 +794,8 @@ describe('v1.RegionInstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListRegionInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, @@ -810,7 +833,9 @@ describe('v1.RegionInstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=®ion=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -850,7 +875,9 @@ describe('v1.RegionInstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=®ion=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -908,7 +935,9 @@ describe('v1.RegionInstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=®ion=&instance_group='; const expectedOptions = { otherArgs: { headers: { @@ -940,7 +969,9 @@ describe('v1.RegionInstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=®ion=&instance_group='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.InstanceWithNamedPorts() @@ -997,7 +1028,9 @@ describe('v1.RegionInstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=®ion=&instance_group='; const expectedError = new Error('expected'); client.descriptors.page.listInstances.createStream = stubPageStreamingCall(undefined, expectedError); @@ -1043,7 +1076,9 @@ describe('v1.RegionInstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=®ion=&instance_group='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.InstanceWithNamedPorts() @@ -1089,7 +1124,9 @@ describe('v1.RegionInstanceGroupsClient', () => { new protos.google.cloud.compute.v1.ListInstancesRegionInstanceGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.instanceGroup = ''; + const expectedHeaderRequestParams = 'project=®ion=&instance_group='; const expectedError = new Error('expected'); client.descriptors.page.listInstances.asyncIterate = stubAsyncIterationCall(undefined, expectedError); diff --git a/test/gapic_region_instances_v1.ts b/test/gapic_region_instances_v1.ts index 42ec8114..31fef2e0 100644 --- a/test/gapic_region_instances_v1.ts +++ b/test/gapic_region_instances_v1.ts @@ -171,7 +171,8 @@ describe('v1.RegionInstancesClient', () => { new protos.google.cloud.compute.v1.BulkInsertRegionInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -202,7 +203,8 @@ describe('v1.RegionInstancesClient', () => { new protos.google.cloud.compute.v1.BulkInsertRegionInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -249,7 +251,8 @@ describe('v1.RegionInstancesClient', () => { new protos.google.cloud.compute.v1.BulkInsertRegionInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -280,6 +283,7 @@ describe('v1.RegionInstancesClient', () => { new protos.google.cloud.compute.v1.BulkInsertRegionInstanceRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.bulkInsert(request), expectedError); diff --git a/test/gapic_region_network_endpoint_groups_v1.ts b/test/gapic_region_network_endpoint_groups_v1.ts index ebc99700..4e0e6781 100644 --- a/test/gapic_region_network_endpoint_groups_v1.ts +++ b/test/gapic_region_network_endpoint_groups_v1.ts @@ -260,7 +260,10 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.DeleteRegionNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = + 'project=®ion=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -294,7 +297,10 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.DeleteRegionNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = + 'project=®ion=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -344,7 +350,10 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.DeleteRegionNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = + 'project=®ion=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -375,6 +384,8 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.DeleteRegionNetworkEndpointGroupRequest() ); request.project = ''; + request.region = ''; + request.networkEndpointGroup = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -395,7 +406,10 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.GetRegionNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = + 'project=®ion=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -429,7 +443,10 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.GetRegionNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = + 'project=®ion=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -478,7 +495,10 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.GetRegionNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.networkEndpointGroup = ''; + const expectedHeaderRequestParams = + 'project=®ion=&network_endpoint_group='; const expectedOptions = { otherArgs: { headers: { @@ -509,6 +529,8 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.GetRegionNetworkEndpointGroupRequest() ); request.project = ''; + request.region = ''; + request.networkEndpointGroup = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -529,7 +551,8 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -563,7 +586,8 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -613,7 +637,8 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -644,6 +669,7 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.InsertRegionNetworkEndpointGroupRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -664,7 +690,8 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -706,7 +733,8 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -765,7 +793,8 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -796,7 +825,8 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.NetworkEndpointGroup() @@ -854,7 +884,8 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -903,7 +934,8 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.NetworkEndpointGroup() @@ -949,7 +981,8 @@ describe('v1.RegionNetworkEndpointGroupsClient', () => { new protos.google.cloud.compute.v1.ListRegionNetworkEndpointGroupsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_region_network_firewall_policies_v1.ts b/test/gapic_region_network_firewall_policies_v1.ts index b3264feb..e61855f9 100644 --- a/test/gapic_region_network_firewall_policies_v1.ts +++ b/test/gapic_region_network_firewall_policies_v1.ts @@ -260,7 +260,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.AddAssociationRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -294,7 +296,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.AddAssociationRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -344,7 +348,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.AddAssociationRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -378,6 +384,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.AddAssociationRegionNetworkFirewallPolicyRequest() ); request.project = ''; + request.region = ''; + request.firewallPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.addAssociation(request), expectedError); @@ -398,7 +406,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.AddRuleRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -432,7 +442,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.AddRuleRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -482,7 +494,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.AddRuleRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -513,6 +527,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.AddRuleRegionNetworkFirewallPolicyRequest() ); request.project = ''; + request.region = ''; + request.firewallPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.addRule(request), expectedError); @@ -533,7 +549,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.CloneRulesRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -567,7 +585,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.CloneRulesRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -617,7 +637,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.CloneRulesRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -651,6 +673,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.CloneRulesRegionNetworkFirewallPolicyRequest() ); request.project = ''; + request.region = ''; + request.firewallPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.cloneRules(request), expectedError); @@ -671,7 +695,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -705,7 +731,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -755,7 +783,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -786,6 +816,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionNetworkFirewallPolicyRequest() ); request.project = ''; + request.region = ''; + request.firewallPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -806,7 +838,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -840,7 +874,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -889,7 +925,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -920,6 +958,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetRegionNetworkFirewallPolicyRequest() ); request.project = ''; + request.region = ''; + request.firewallPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -940,7 +980,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetAssociationRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -974,7 +1016,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetAssociationRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1024,7 +1068,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetAssociationRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1058,6 +1104,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetAssociationRegionNetworkFirewallPolicyRequest() ); request.project = ''; + request.region = ''; + request.firewallPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getAssociation(request), expectedError); @@ -1078,7 +1126,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1113,7 +1162,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1163,7 +1213,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1200,6 +1251,7 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1223,7 +1275,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1257,7 +1311,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1307,7 +1363,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1341,6 +1399,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyRegionNetworkFirewallPolicyRequest() ); request.project = ''; + request.region = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getIamPolicy(request), expectedError); @@ -1361,7 +1421,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetRuleRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1395,7 +1457,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetRuleRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1445,7 +1509,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetRuleRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1476,6 +1542,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.GetRuleRegionNetworkFirewallPolicyRequest() ); request.project = ''; + request.region = ''; + request.firewallPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getRule(request), expectedError); @@ -1496,7 +1564,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.InsertRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1530,7 +1599,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.InsertRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1580,7 +1650,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.InsertRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1611,6 +1682,7 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.InsertRegionNetworkFirewallPolicyRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -1631,7 +1703,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1665,7 +1739,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1714,7 +1790,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1745,6 +1823,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchRegionNetworkFirewallPolicyRequest() ); request.project = ''; + request.region = ''; + request.firewallPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -1765,7 +1845,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchRuleRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1799,7 +1881,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchRuleRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1849,7 +1933,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchRuleRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1880,6 +1966,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchRuleRegionNetworkFirewallPolicyRequest() ); request.project = ''; + request.region = ''; + request.firewallPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patchRule(request), expectedError); @@ -1900,7 +1988,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.RemoveAssociationRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1934,7 +2024,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.RemoveAssociationRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1984,7 +2076,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.RemoveAssociationRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -2018,6 +2112,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.RemoveAssociationRegionNetworkFirewallPolicyRequest() ); request.project = ''; + request.region = ''; + request.firewallPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.removeAssociation(request), expectedError); @@ -2038,7 +2134,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.RemoveRuleRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -2072,7 +2170,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.RemoveRuleRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -2122,7 +2222,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.RemoveRuleRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.firewallPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&firewall_policy='; const expectedOptions = { otherArgs: { headers: { @@ -2156,6 +2258,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.RemoveRuleRegionNetworkFirewallPolicyRequest() ); request.project = ''; + request.region = ''; + request.firewallPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.removeRule(request), expectedError); @@ -2176,7 +2280,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -2210,7 +2316,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -2260,7 +2368,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -2294,6 +2404,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyRegionNetworkFirewallPolicyRequest() ); request.project = ''; + request.region = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setIamPolicy(request), expectedError); @@ -2314,7 +2426,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -2349,7 +2463,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -2399,7 +2515,9 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -2433,6 +2551,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsRegionNetworkFirewallPolicyRequest() ); request.project = ''; + request.region = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.testIamPermissions(request), expectedError); @@ -2453,7 +2573,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -2495,7 +2616,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -2552,7 +2674,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -2583,7 +2706,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.FirewallPolicy() @@ -2640,7 +2764,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -2688,7 +2813,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.FirewallPolicy() @@ -2733,7 +2859,8 @@ describe('v1.RegionNetworkFirewallPoliciesClient', () => { new protos.google.cloud.compute.v1.ListRegionNetworkFirewallPoliciesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_region_notification_endpoints_v1.ts b/test/gapic_region_notification_endpoints_v1.ts index 48ed6d1b..cb0d90e5 100644 --- a/test/gapic_region_notification_endpoints_v1.ts +++ b/test/gapic_region_notification_endpoints_v1.ts @@ -260,7 +260,10 @@ describe('v1.RegionNotificationEndpointsClient', () => { new protos.google.cloud.compute.v1.DeleteRegionNotificationEndpointRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.notificationEndpoint = ''; + const expectedHeaderRequestParams = + 'project=®ion=¬ification_endpoint='; const expectedOptions = { otherArgs: { headers: { @@ -294,7 +297,10 @@ describe('v1.RegionNotificationEndpointsClient', () => { new protos.google.cloud.compute.v1.DeleteRegionNotificationEndpointRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.notificationEndpoint = ''; + const expectedHeaderRequestParams = + 'project=®ion=¬ification_endpoint='; const expectedOptions = { otherArgs: { headers: { @@ -344,7 +350,10 @@ describe('v1.RegionNotificationEndpointsClient', () => { new protos.google.cloud.compute.v1.DeleteRegionNotificationEndpointRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.notificationEndpoint = ''; + const expectedHeaderRequestParams = + 'project=®ion=¬ification_endpoint='; const expectedOptions = { otherArgs: { headers: { @@ -375,6 +384,8 @@ describe('v1.RegionNotificationEndpointsClient', () => { new protos.google.cloud.compute.v1.DeleteRegionNotificationEndpointRequest() ); request.project = ''; + request.region = ''; + request.notificationEndpoint = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -395,7 +406,10 @@ describe('v1.RegionNotificationEndpointsClient', () => { new protos.google.cloud.compute.v1.GetRegionNotificationEndpointRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.notificationEndpoint = ''; + const expectedHeaderRequestParams = + 'project=®ion=¬ification_endpoint='; const expectedOptions = { otherArgs: { headers: { @@ -429,7 +443,10 @@ describe('v1.RegionNotificationEndpointsClient', () => { new protos.google.cloud.compute.v1.GetRegionNotificationEndpointRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.notificationEndpoint = ''; + const expectedHeaderRequestParams = + 'project=®ion=¬ification_endpoint='; const expectedOptions = { otherArgs: { headers: { @@ -478,7 +495,10 @@ describe('v1.RegionNotificationEndpointsClient', () => { new protos.google.cloud.compute.v1.GetRegionNotificationEndpointRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.notificationEndpoint = ''; + const expectedHeaderRequestParams = + 'project=®ion=¬ification_endpoint='; const expectedOptions = { otherArgs: { headers: { @@ -509,6 +529,8 @@ describe('v1.RegionNotificationEndpointsClient', () => { new protos.google.cloud.compute.v1.GetRegionNotificationEndpointRequest() ); request.project = ''; + request.region = ''; + request.notificationEndpoint = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -529,7 +551,8 @@ describe('v1.RegionNotificationEndpointsClient', () => { new protos.google.cloud.compute.v1.InsertRegionNotificationEndpointRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -563,7 +586,8 @@ describe('v1.RegionNotificationEndpointsClient', () => { new protos.google.cloud.compute.v1.InsertRegionNotificationEndpointRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -613,7 +637,8 @@ describe('v1.RegionNotificationEndpointsClient', () => { new protos.google.cloud.compute.v1.InsertRegionNotificationEndpointRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -644,6 +669,7 @@ describe('v1.RegionNotificationEndpointsClient', () => { new protos.google.cloud.compute.v1.InsertRegionNotificationEndpointRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -664,7 +690,8 @@ describe('v1.RegionNotificationEndpointsClient', () => { new protos.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -706,7 +733,8 @@ describe('v1.RegionNotificationEndpointsClient', () => { new protos.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -765,7 +793,8 @@ describe('v1.RegionNotificationEndpointsClient', () => { new protos.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -796,7 +825,8 @@ describe('v1.RegionNotificationEndpointsClient', () => { new protos.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.NotificationEndpoint() @@ -854,7 +884,8 @@ describe('v1.RegionNotificationEndpointsClient', () => { new protos.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -903,7 +934,8 @@ describe('v1.RegionNotificationEndpointsClient', () => { new protos.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.NotificationEndpoint() @@ -949,7 +981,8 @@ describe('v1.RegionNotificationEndpointsClient', () => { new protos.google.cloud.compute.v1.ListRegionNotificationEndpointsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_region_operations_v1.ts b/test/gapic_region_operations_v1.ts index cfc01ec0..507eb52e 100644 --- a/test/gapic_region_operations_v1.ts +++ b/test/gapic_region_operations_v1.ts @@ -234,7 +234,9 @@ describe('v1.RegionOperationsClient', () => { new protos.google.cloud.compute.v1.DeleteRegionOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.operation = ''; + const expectedHeaderRequestParams = 'project=®ion=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -265,7 +267,9 @@ describe('v1.RegionOperationsClient', () => { new protos.google.cloud.compute.v1.DeleteRegionOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.operation = ''; + const expectedHeaderRequestParams = 'project=®ion=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -312,7 +316,9 @@ describe('v1.RegionOperationsClient', () => { new protos.google.cloud.compute.v1.DeleteRegionOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.operation = ''; + const expectedHeaderRequestParams = 'project=®ion=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -340,6 +346,8 @@ describe('v1.RegionOperationsClient', () => { new protos.google.cloud.compute.v1.DeleteRegionOperationRequest() ); request.project = ''; + request.region = ''; + request.operation = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -357,7 +365,9 @@ describe('v1.RegionOperationsClient', () => { new protos.google.cloud.compute.v1.GetRegionOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.operation = ''; + const expectedHeaderRequestParams = 'project=®ion=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -388,7 +398,9 @@ describe('v1.RegionOperationsClient', () => { new protos.google.cloud.compute.v1.GetRegionOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.operation = ''; + const expectedHeaderRequestParams = 'project=®ion=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -434,7 +446,9 @@ describe('v1.RegionOperationsClient', () => { new protos.google.cloud.compute.v1.GetRegionOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.operation = ''; + const expectedHeaderRequestParams = 'project=®ion=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -462,6 +476,8 @@ describe('v1.RegionOperationsClient', () => { new protos.google.cloud.compute.v1.GetRegionOperationRequest() ); request.project = ''; + request.region = ''; + request.operation = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -479,7 +495,9 @@ describe('v1.RegionOperationsClient', () => { new protos.google.cloud.compute.v1.WaitRegionOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.operation = ''; + const expectedHeaderRequestParams = 'project=®ion=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -510,7 +528,9 @@ describe('v1.RegionOperationsClient', () => { new protos.google.cloud.compute.v1.WaitRegionOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.operation = ''; + const expectedHeaderRequestParams = 'project=®ion=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -556,7 +576,9 @@ describe('v1.RegionOperationsClient', () => { new protos.google.cloud.compute.v1.WaitRegionOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.operation = ''; + const expectedHeaderRequestParams = 'project=®ion=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -584,6 +606,8 @@ describe('v1.RegionOperationsClient', () => { new protos.google.cloud.compute.v1.WaitRegionOperationRequest() ); request.project = ''; + request.region = ''; + request.operation = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.wait(request), expectedError); @@ -601,7 +625,8 @@ describe('v1.RegionOperationsClient', () => { new protos.google.cloud.compute.v1.ListRegionOperationsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -634,7 +659,8 @@ describe('v1.RegionOperationsClient', () => { new protos.google.cloud.compute.v1.ListRegionOperationsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -682,7 +708,8 @@ describe('v1.RegionOperationsClient', () => { new protos.google.cloud.compute.v1.ListRegionOperationsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -710,7 +737,8 @@ describe('v1.RegionOperationsClient', () => { new protos.google.cloud.compute.v1.ListRegionOperationsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.Operation()), generateSampleMessage(new protos.google.cloud.compute.v1.Operation()), @@ -758,7 +786,8 @@ describe('v1.RegionOperationsClient', () => { new protos.google.cloud.compute.v1.ListRegionOperationsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -803,7 +832,8 @@ describe('v1.RegionOperationsClient', () => { new protos.google.cloud.compute.v1.ListRegionOperationsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.Operation()), generateSampleMessage(new protos.google.cloud.compute.v1.Operation()), @@ -839,7 +869,8 @@ describe('v1.RegionOperationsClient', () => { new protos.google.cloud.compute.v1.ListRegionOperationsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_region_operations_v1small.ts b/test/gapic_region_operations_v1small.ts index 5dc72c1a..a055c62f 100644 --- a/test/gapic_region_operations_v1small.ts +++ b/test/gapic_region_operations_v1small.ts @@ -171,7 +171,9 @@ describe('v1small.RegionOperationsClient', () => { new protos.google.cloud.compute.v1small.GetRegionOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.operation = ''; + const expectedHeaderRequestParams = 'project=®ion=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -202,7 +204,9 @@ describe('v1small.RegionOperationsClient', () => { new protos.google.cloud.compute.v1small.GetRegionOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.operation = ''; + const expectedHeaderRequestParams = 'project=®ion=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -248,7 +252,9 @@ describe('v1small.RegionOperationsClient', () => { new protos.google.cloud.compute.v1small.GetRegionOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.operation = ''; + const expectedHeaderRequestParams = 'project=®ion=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -276,6 +282,8 @@ describe('v1small.RegionOperationsClient', () => { new protos.google.cloud.compute.v1small.GetRegionOperationRequest() ); request.project = ''; + request.region = ''; + request.operation = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -293,7 +301,9 @@ describe('v1small.RegionOperationsClient', () => { new protos.google.cloud.compute.v1small.WaitRegionOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.operation = ''; + const expectedHeaderRequestParams = 'project=®ion=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -324,7 +334,9 @@ describe('v1small.RegionOperationsClient', () => { new protos.google.cloud.compute.v1small.WaitRegionOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.operation = ''; + const expectedHeaderRequestParams = 'project=®ion=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -370,7 +382,9 @@ describe('v1small.RegionOperationsClient', () => { new protos.google.cloud.compute.v1small.WaitRegionOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.operation = ''; + const expectedHeaderRequestParams = 'project=®ion=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -398,6 +412,8 @@ describe('v1small.RegionOperationsClient', () => { new protos.google.cloud.compute.v1small.WaitRegionOperationRequest() ); request.project = ''; + request.region = ''; + request.operation = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.wait(request), expectedError); diff --git a/test/gapic_region_security_policies_v1.ts b/test/gapic_region_security_policies_v1.ts index 1dbc2955..b6310210 100644 --- a/test/gapic_region_security_policies_v1.ts +++ b/test/gapic_region_security_policies_v1.ts @@ -243,7 +243,9 @@ describe('v1.RegionSecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -275,7 +277,9 @@ describe('v1.RegionSecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -323,7 +327,9 @@ describe('v1.RegionSecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -352,6 +358,8 @@ describe('v1.RegionSecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionSecurityPolicyRequest() ); request.project = ''; + request.region = ''; + request.securityPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -370,7 +378,9 @@ describe('v1.RegionSecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.GetRegionSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -402,7 +412,9 @@ describe('v1.RegionSecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.GetRegionSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -449,7 +461,9 @@ describe('v1.RegionSecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.GetRegionSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -478,6 +492,8 @@ describe('v1.RegionSecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.GetRegionSecurityPolicyRequest() ); request.project = ''; + request.region = ''; + request.securityPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -496,7 +512,8 @@ describe('v1.RegionSecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.InsertRegionSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -528,7 +545,8 @@ describe('v1.RegionSecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.InsertRegionSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -576,7 +594,8 @@ describe('v1.RegionSecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.InsertRegionSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -605,6 +624,7 @@ describe('v1.RegionSecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.InsertRegionSecurityPolicyRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -623,7 +643,9 @@ describe('v1.RegionSecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchRegionSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -655,7 +677,9 @@ describe('v1.RegionSecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchRegionSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -702,7 +726,9 @@ describe('v1.RegionSecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchRegionSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -731,6 +757,8 @@ describe('v1.RegionSecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchRegionSecurityPolicyRequest() ); request.project = ''; + request.region = ''; + request.securityPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -749,7 +777,8 @@ describe('v1.RegionSecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -789,7 +818,8 @@ describe('v1.RegionSecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -844,7 +874,8 @@ describe('v1.RegionSecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -873,7 +904,8 @@ describe('v1.RegionSecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.SecurityPolicy() @@ -928,7 +960,8 @@ describe('v1.RegionSecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -974,7 +1007,8 @@ describe('v1.RegionSecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.SecurityPolicy() @@ -1017,7 +1051,8 @@ describe('v1.RegionSecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.ListRegionSecurityPoliciesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_region_ssl_certificates_v1.ts b/test/gapic_region_ssl_certificates_v1.ts index 6331244c..7083fdd5 100644 --- a/test/gapic_region_ssl_certificates_v1.ts +++ b/test/gapic_region_ssl_certificates_v1.ts @@ -243,7 +243,9 @@ describe('v1.RegionSslCertificatesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionSslCertificateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.sslCertificate = ''; + const expectedHeaderRequestParams = 'project=®ion=&ssl_certificate='; const expectedOptions = { otherArgs: { headers: { @@ -275,7 +277,9 @@ describe('v1.RegionSslCertificatesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionSslCertificateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.sslCertificate = ''; + const expectedHeaderRequestParams = 'project=®ion=&ssl_certificate='; const expectedOptions = { otherArgs: { headers: { @@ -323,7 +327,9 @@ describe('v1.RegionSslCertificatesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionSslCertificateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.sslCertificate = ''; + const expectedHeaderRequestParams = 'project=®ion=&ssl_certificate='; const expectedOptions = { otherArgs: { headers: { @@ -352,6 +358,8 @@ describe('v1.RegionSslCertificatesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionSslCertificateRequest() ); request.project = ''; + request.region = ''; + request.sslCertificate = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -370,7 +378,9 @@ describe('v1.RegionSslCertificatesClient', () => { new protos.google.cloud.compute.v1.GetRegionSslCertificateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.sslCertificate = ''; + const expectedHeaderRequestParams = 'project=®ion=&ssl_certificate='; const expectedOptions = { otherArgs: { headers: { @@ -402,7 +412,9 @@ describe('v1.RegionSslCertificatesClient', () => { new protos.google.cloud.compute.v1.GetRegionSslCertificateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.sslCertificate = ''; + const expectedHeaderRequestParams = 'project=®ion=&ssl_certificate='; const expectedOptions = { otherArgs: { headers: { @@ -449,7 +461,9 @@ describe('v1.RegionSslCertificatesClient', () => { new protos.google.cloud.compute.v1.GetRegionSslCertificateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.sslCertificate = ''; + const expectedHeaderRequestParams = 'project=®ion=&ssl_certificate='; const expectedOptions = { otherArgs: { headers: { @@ -478,6 +492,8 @@ describe('v1.RegionSslCertificatesClient', () => { new protos.google.cloud.compute.v1.GetRegionSslCertificateRequest() ); request.project = ''; + request.region = ''; + request.sslCertificate = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -496,7 +512,8 @@ describe('v1.RegionSslCertificatesClient', () => { new protos.google.cloud.compute.v1.InsertRegionSslCertificateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -528,7 +545,8 @@ describe('v1.RegionSslCertificatesClient', () => { new protos.google.cloud.compute.v1.InsertRegionSslCertificateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -576,7 +594,8 @@ describe('v1.RegionSslCertificatesClient', () => { new protos.google.cloud.compute.v1.InsertRegionSslCertificateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -605,6 +624,7 @@ describe('v1.RegionSslCertificatesClient', () => { new protos.google.cloud.compute.v1.InsertRegionSslCertificateRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -623,7 +643,8 @@ describe('v1.RegionSslCertificatesClient', () => { new protos.google.cloud.compute.v1.ListRegionSslCertificatesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -663,7 +684,8 @@ describe('v1.RegionSslCertificatesClient', () => { new protos.google.cloud.compute.v1.ListRegionSslCertificatesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -718,7 +740,8 @@ describe('v1.RegionSslCertificatesClient', () => { new protos.google.cloud.compute.v1.ListRegionSslCertificatesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -747,7 +770,8 @@ describe('v1.RegionSslCertificatesClient', () => { new protos.google.cloud.compute.v1.ListRegionSslCertificatesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.SslCertificate() @@ -802,7 +826,8 @@ describe('v1.RegionSslCertificatesClient', () => { new protos.google.cloud.compute.v1.ListRegionSslCertificatesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -848,7 +873,8 @@ describe('v1.RegionSslCertificatesClient', () => { new protos.google.cloud.compute.v1.ListRegionSslCertificatesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.SslCertificate() @@ -891,7 +917,8 @@ describe('v1.RegionSslCertificatesClient', () => { new protos.google.cloud.compute.v1.ListRegionSslCertificatesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_region_target_http_proxies_v1.ts b/test/gapic_region_target_http_proxies_v1.ts index 75a68f0d..cca20615 100644 --- a/test/gapic_region_target_http_proxies_v1.ts +++ b/test/gapic_region_target_http_proxies_v1.ts @@ -245,7 +245,9 @@ describe('v1.RegionTargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionTargetHttpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetHttpProxy = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_http_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -277,7 +279,9 @@ describe('v1.RegionTargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionTargetHttpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetHttpProxy = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_http_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -325,7 +329,9 @@ describe('v1.RegionTargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionTargetHttpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetHttpProxy = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_http_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -354,6 +360,8 @@ describe('v1.RegionTargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionTargetHttpProxyRequest() ); request.project = ''; + request.region = ''; + request.targetHttpProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -372,7 +380,9 @@ describe('v1.RegionTargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.GetRegionTargetHttpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetHttpProxy = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_http_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -404,7 +414,9 @@ describe('v1.RegionTargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.GetRegionTargetHttpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetHttpProxy = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_http_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -451,7 +463,9 @@ describe('v1.RegionTargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.GetRegionTargetHttpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetHttpProxy = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_http_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -480,6 +494,8 @@ describe('v1.RegionTargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.GetRegionTargetHttpProxyRequest() ); request.project = ''; + request.region = ''; + request.targetHttpProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -498,7 +514,8 @@ describe('v1.RegionTargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.InsertRegionTargetHttpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -530,7 +547,8 @@ describe('v1.RegionTargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.InsertRegionTargetHttpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -578,7 +596,8 @@ describe('v1.RegionTargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.InsertRegionTargetHttpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -607,6 +626,7 @@ describe('v1.RegionTargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.InsertRegionTargetHttpProxyRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -625,7 +645,9 @@ describe('v1.RegionTargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.SetUrlMapRegionTargetHttpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetHttpProxy = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_http_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -657,7 +679,9 @@ describe('v1.RegionTargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.SetUrlMapRegionTargetHttpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetHttpProxy = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_http_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -705,7 +729,9 @@ describe('v1.RegionTargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.SetUrlMapRegionTargetHttpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetHttpProxy = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_http_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -734,6 +760,8 @@ describe('v1.RegionTargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.SetUrlMapRegionTargetHttpProxyRequest() ); request.project = ''; + request.region = ''; + request.targetHttpProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setUrlMap(request), expectedError); @@ -752,7 +780,8 @@ describe('v1.RegionTargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -792,7 +821,8 @@ describe('v1.RegionTargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -847,7 +877,8 @@ describe('v1.RegionTargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -876,7 +907,8 @@ describe('v1.RegionTargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.TargetHttpProxy() @@ -931,7 +963,8 @@ describe('v1.RegionTargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -977,7 +1010,8 @@ describe('v1.RegionTargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.TargetHttpProxy() @@ -1020,7 +1054,8 @@ describe('v1.RegionTargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.ListRegionTargetHttpProxiesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_region_target_https_proxies_v1.ts b/test/gapic_region_target_https_proxies_v1.ts index fd6966a5..782c5375 100644 --- a/test/gapic_region_target_https_proxies_v1.ts +++ b/test/gapic_region_target_https_proxies_v1.ts @@ -245,7 +245,10 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = + 'project=®ion=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -277,7 +280,10 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = + 'project=®ion=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -325,7 +331,10 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = + 'project=®ion=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -354,6 +363,8 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteRegionTargetHttpsProxyRequest() ); request.project = ''; + request.region = ''; + request.targetHttpsProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -372,7 +383,10 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.GetRegionTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = + 'project=®ion=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -404,7 +418,10 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.GetRegionTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = + 'project=®ion=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -451,7 +468,10 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.GetRegionTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = + 'project=®ion=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -480,6 +500,8 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.GetRegionTargetHttpsProxyRequest() ); request.project = ''; + request.region = ''; + request.targetHttpsProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -498,7 +520,8 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.InsertRegionTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -530,7 +553,8 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.InsertRegionTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -578,7 +602,8 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.InsertRegionTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -607,6 +632,7 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.InsertRegionTargetHttpsProxyRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -625,7 +651,10 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.PatchRegionTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = + 'project=®ion=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -657,7 +686,10 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.PatchRegionTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = + 'project=®ion=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -704,7 +736,10 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.PatchRegionTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = + 'project=®ion=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -733,6 +768,8 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.PatchRegionTargetHttpsProxyRequest() ); request.project = ''; + request.region = ''; + request.targetHttpsProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -751,7 +788,10 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.SetSslCertificatesRegionTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = + 'project=®ion=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -784,7 +824,10 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.SetSslCertificatesRegionTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = + 'project=®ion=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -832,7 +875,10 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.SetSslCertificatesRegionTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = + 'project=®ion=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -864,6 +910,8 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.SetSslCertificatesRegionTargetHttpsProxyRequest() ); request.project = ''; + request.region = ''; + request.targetHttpsProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setSslCertificates(request), expectedError); @@ -882,7 +930,10 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.SetUrlMapRegionTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = + 'project=®ion=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -914,7 +965,10 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.SetUrlMapRegionTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = + 'project=®ion=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -962,7 +1016,10 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.SetUrlMapRegionTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = + 'project=®ion=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -991,6 +1048,8 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.SetUrlMapRegionTargetHttpsProxyRequest() ); request.project = ''; + request.region = ''; + request.targetHttpsProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setUrlMap(request), expectedError); @@ -1009,7 +1068,8 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1049,7 +1109,8 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1104,7 +1165,8 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1133,7 +1195,8 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.TargetHttpsProxy() @@ -1188,7 +1251,8 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -1234,7 +1298,8 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.TargetHttpsProxy() @@ -1277,7 +1342,8 @@ describe('v1.RegionTargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.ListRegionTargetHttpsProxiesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_region_url_maps_v1.ts b/test/gapic_region_url_maps_v1.ts index d58e2b51..39397fd1 100644 --- a/test/gapic_region_url_maps_v1.ts +++ b/test/gapic_region_url_maps_v1.ts @@ -232,7 +232,9 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.DeleteRegionUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=®ion=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +265,9 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.DeleteRegionUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=®ion=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -310,7 +314,9 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.DeleteRegionUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=®ion=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -338,6 +344,8 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.DeleteRegionUrlMapRequest() ); request.project = ''; + request.region = ''; + request.urlMap = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -355,7 +363,9 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.GetRegionUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=®ion=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -386,7 +396,9 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.GetRegionUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=®ion=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -432,7 +444,9 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.GetRegionUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=®ion=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -460,6 +474,8 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.GetRegionUrlMapRequest() ); request.project = ''; + request.region = ''; + request.urlMap = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -477,7 +493,8 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.InsertRegionUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -508,7 +525,8 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.InsertRegionUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -555,7 +573,8 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.InsertRegionUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -583,6 +602,7 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.InsertRegionUrlMapRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -600,7 +620,9 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.PatchRegionUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=®ion=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -631,7 +653,9 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.PatchRegionUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=®ion=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -677,7 +701,9 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.PatchRegionUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=®ion=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -705,6 +731,8 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.PatchRegionUrlMapRequest() ); request.project = ''; + request.region = ''; + request.urlMap = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -722,7 +750,9 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.UpdateRegionUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=®ion=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -753,7 +783,9 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.UpdateRegionUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=®ion=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -800,7 +832,9 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.UpdateRegionUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=®ion=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -828,6 +862,8 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.UpdateRegionUrlMapRequest() ); request.project = ''; + request.region = ''; + request.urlMap = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.update(request), expectedError); @@ -845,7 +881,9 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.ValidateRegionUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=®ion=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -876,7 +914,9 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.ValidateRegionUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=®ion=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -923,7 +963,9 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.ValidateRegionUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=®ion=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -951,6 +993,8 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.ValidateRegionUrlMapRequest() ); request.project = ''; + request.region = ''; + request.urlMap = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.validate(request), expectedError); @@ -968,7 +1012,8 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.ListRegionUrlMapsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1001,7 +1046,8 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.ListRegionUrlMapsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1049,7 +1095,8 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.ListRegionUrlMapsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1077,7 +1124,8 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.ListRegionUrlMapsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.UrlMap()), generateSampleMessage(new protos.google.cloud.compute.v1.UrlMap()), @@ -1122,7 +1170,8 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.ListRegionUrlMapsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -1164,7 +1213,8 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.ListRegionUrlMapsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.UrlMap()), generateSampleMessage(new protos.google.cloud.compute.v1.UrlMap()), @@ -1200,7 +1250,8 @@ describe('v1.RegionUrlMapsClient', () => { new protos.google.cloud.compute.v1.ListRegionUrlMapsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_regions_v1.ts b/test/gapic_regions_v1.ts index f376cae4..2d0d0322 100644 --- a/test/gapic_regions_v1.ts +++ b/test/gapic_regions_v1.ts @@ -232,7 +232,8 @@ describe('v1.RegionsClient', () => { new protos.google.cloud.compute.v1.GetRegionRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +264,8 @@ describe('v1.RegionsClient', () => { new protos.google.cloud.compute.v1.GetRegionRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -309,7 +311,8 @@ describe('v1.RegionsClient', () => { new protos.google.cloud.compute.v1.GetRegionRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -337,6 +340,7 @@ describe('v1.RegionsClient', () => { new protos.google.cloud.compute.v1.GetRegionRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); diff --git a/test/gapic_reservations_v1.ts b/test/gapic_reservations_v1.ts index 30bbb762..76d3bdcf 100644 --- a/test/gapic_reservations_v1.ts +++ b/test/gapic_reservations_v1.ts @@ -232,7 +232,9 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.DeleteReservationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.reservation = ''; + const expectedHeaderRequestParams = 'project=&zone=&reservation='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +265,9 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.DeleteReservationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.reservation = ''; + const expectedHeaderRequestParams = 'project=&zone=&reservation='; const expectedOptions = { otherArgs: { headers: { @@ -310,7 +314,9 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.DeleteReservationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.reservation = ''; + const expectedHeaderRequestParams = 'project=&zone=&reservation='; const expectedOptions = { otherArgs: { headers: { @@ -338,6 +344,8 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.DeleteReservationRequest() ); request.project = ''; + request.zone = ''; + request.reservation = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -355,7 +363,9 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.GetReservationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.reservation = ''; + const expectedHeaderRequestParams = 'project=&zone=&reservation='; const expectedOptions = { otherArgs: { headers: { @@ -386,7 +396,9 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.GetReservationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.reservation = ''; + const expectedHeaderRequestParams = 'project=&zone=&reservation='; const expectedOptions = { otherArgs: { headers: { @@ -432,7 +444,9 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.GetReservationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.reservation = ''; + const expectedHeaderRequestParams = 'project=&zone=&reservation='; const expectedOptions = { otherArgs: { headers: { @@ -460,6 +474,8 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.GetReservationRequest() ); request.project = ''; + request.zone = ''; + request.reservation = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -477,7 +493,9 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyReservationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -508,7 +526,9 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyReservationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -555,7 +575,9 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyReservationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -586,6 +608,8 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyReservationRequest() ); request.project = ''; + request.zone = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getIamPolicy(request), expectedError); @@ -603,7 +627,8 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.InsertReservationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -634,7 +659,8 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.InsertReservationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -681,7 +707,8 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.InsertReservationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -709,6 +736,7 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.InsertReservationRequest() ); request.project = ''; + request.zone = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -726,7 +754,9 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.ResizeReservationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.reservation = ''; + const expectedHeaderRequestParams = 'project=&zone=&reservation='; const expectedOptions = { otherArgs: { headers: { @@ -757,7 +787,9 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.ResizeReservationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.reservation = ''; + const expectedHeaderRequestParams = 'project=&zone=&reservation='; const expectedOptions = { otherArgs: { headers: { @@ -804,7 +836,9 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.ResizeReservationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.reservation = ''; + const expectedHeaderRequestParams = 'project=&zone=&reservation='; const expectedOptions = { otherArgs: { headers: { @@ -832,6 +866,8 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.ResizeReservationRequest() ); request.project = ''; + request.zone = ''; + request.reservation = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.resize(request), expectedError); @@ -849,7 +885,9 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyReservationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -880,7 +918,9 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyReservationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -927,7 +967,9 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyReservationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -958,6 +1000,8 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyReservationRequest() ); request.project = ''; + request.zone = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setIamPolicy(request), expectedError); @@ -975,7 +1019,9 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsReservationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1007,7 +1053,9 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsReservationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1054,7 +1102,9 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsReservationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&zone=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1085,6 +1135,8 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsReservationRequest() ); request.project = ''; + request.zone = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.testIamPermissions(request), expectedError); @@ -1102,7 +1154,9 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.UpdateReservationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.reservation = ''; + const expectedHeaderRequestParams = 'project=&zone=&reservation='; const expectedOptions = { otherArgs: { headers: { @@ -1133,7 +1187,9 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.UpdateReservationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.reservation = ''; + const expectedHeaderRequestParams = 'project=&zone=&reservation='; const expectedOptions = { otherArgs: { headers: { @@ -1180,7 +1236,9 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.UpdateReservationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.reservation = ''; + const expectedHeaderRequestParams = 'project=&zone=&reservation='; const expectedOptions = { otherArgs: { headers: { @@ -1208,6 +1266,8 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.UpdateReservationRequest() ); request.project = ''; + request.zone = ''; + request.reservation = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.update(request), expectedError); @@ -1319,7 +1379,8 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.ListReservationsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -1352,7 +1413,8 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.ListReservationsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -1400,7 +1462,8 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.ListReservationsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -1428,7 +1491,8 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.ListReservationsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.Reservation()), generateSampleMessage(new protos.google.cloud.compute.v1.Reservation()), @@ -1476,7 +1540,8 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.ListReservationsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -1521,7 +1586,8 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.ListReservationsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.Reservation()), generateSampleMessage(new protos.google.cloud.compute.v1.Reservation()), @@ -1557,7 +1623,8 @@ describe('v1.ReservationsClient', () => { new protos.google.cloud.compute.v1.ListReservationsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_resource_policies_v1.ts b/test/gapic_resource_policies_v1.ts index 3802ff34..62c95322 100644 --- a/test/gapic_resource_policies_v1.ts +++ b/test/gapic_resource_policies_v1.ts @@ -234,7 +234,9 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.DeleteResourcePolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resourcePolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource_policy='; const expectedOptions = { otherArgs: { headers: { @@ -265,7 +267,9 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.DeleteResourcePolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resourcePolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource_policy='; const expectedOptions = { otherArgs: { headers: { @@ -312,7 +316,9 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.DeleteResourcePolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resourcePolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource_policy='; const expectedOptions = { otherArgs: { headers: { @@ -340,6 +346,8 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.DeleteResourcePolicyRequest() ); request.project = ''; + request.region = ''; + request.resourcePolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -357,7 +365,9 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.GetResourcePolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resourcePolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource_policy='; const expectedOptions = { otherArgs: { headers: { @@ -388,7 +398,9 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.GetResourcePolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resourcePolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource_policy='; const expectedOptions = { otherArgs: { headers: { @@ -434,7 +446,9 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.GetResourcePolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resourcePolicy = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource_policy='; const expectedOptions = { otherArgs: { headers: { @@ -462,6 +476,8 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.GetResourcePolicyRequest() ); request.project = ''; + request.region = ''; + request.resourcePolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -479,7 +495,9 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyResourcePolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -510,7 +528,9 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyResourcePolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -557,7 +577,9 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyResourcePolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -588,6 +610,8 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyResourcePolicyRequest() ); request.project = ''; + request.region = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getIamPolicy(request), expectedError); @@ -605,7 +629,8 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.InsertResourcePolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -636,7 +661,8 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.InsertResourcePolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -683,7 +709,8 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.InsertResourcePolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -711,6 +738,7 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.InsertResourcePolicyRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -728,7 +756,9 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyResourcePolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -759,7 +789,9 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyResourcePolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -806,7 +838,9 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyResourcePolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -837,6 +871,8 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyResourcePolicyRequest() ); request.project = ''; + request.region = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setIamPolicy(request), expectedError); @@ -854,7 +890,9 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsResourcePolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -886,7 +924,9 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsResourcePolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -933,7 +973,9 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsResourcePolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -964,6 +1006,8 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsResourcePolicyRequest() ); request.project = ''; + request.region = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.testIamPermissions(request), expectedError); @@ -1075,7 +1119,8 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.ListResourcePoliciesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1114,7 +1159,8 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.ListResourcePoliciesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1168,7 +1214,8 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.ListResourcePoliciesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1196,7 +1243,8 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.ListResourcePoliciesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.ResourcePolicy() @@ -1250,7 +1298,8 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.ListResourcePoliciesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -1295,7 +1344,8 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.ListResourcePoliciesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.ResourcePolicy() @@ -1337,7 +1387,8 @@ describe('v1.ResourcePoliciesClient', () => { new protos.google.cloud.compute.v1.ListResourcePoliciesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_routers_v1.ts b/test/gapic_routers_v1.ts index 2c4c8699..758b5fd8 100644 --- a/test/gapic_routers_v1.ts +++ b/test/gapic_routers_v1.ts @@ -232,7 +232,9 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.DeleteRouterRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.router = ''; + const expectedHeaderRequestParams = 'project=®ion=&router='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +265,9 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.DeleteRouterRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.router = ''; + const expectedHeaderRequestParams = 'project=®ion=&router='; const expectedOptions = { otherArgs: { headers: { @@ -310,7 +314,9 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.DeleteRouterRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.router = ''; + const expectedHeaderRequestParams = 'project=®ion=&router='; const expectedOptions = { otherArgs: { headers: { @@ -338,6 +344,8 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.DeleteRouterRequest() ); request.project = ''; + request.region = ''; + request.router = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -355,7 +363,9 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.GetRouterRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.router = ''; + const expectedHeaderRequestParams = 'project=®ion=&router='; const expectedOptions = { otherArgs: { headers: { @@ -386,7 +396,9 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.GetRouterRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.router = ''; + const expectedHeaderRequestParams = 'project=®ion=&router='; const expectedOptions = { otherArgs: { headers: { @@ -432,7 +444,9 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.GetRouterRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.router = ''; + const expectedHeaderRequestParams = 'project=®ion=&router='; const expectedOptions = { otherArgs: { headers: { @@ -460,6 +474,8 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.GetRouterRequest() ); request.project = ''; + request.region = ''; + request.router = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -477,7 +493,9 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.GetRouterStatusRouterRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.router = ''; + const expectedHeaderRequestParams = 'project=®ion=&router='; const expectedOptions = { otherArgs: { headers: { @@ -508,7 +526,9 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.GetRouterStatusRouterRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.router = ''; + const expectedHeaderRequestParams = 'project=®ion=&router='; const expectedOptions = { otherArgs: { headers: { @@ -555,7 +575,9 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.GetRouterStatusRouterRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.router = ''; + const expectedHeaderRequestParams = 'project=®ion=&router='; const expectedOptions = { otherArgs: { headers: { @@ -586,6 +608,8 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.GetRouterStatusRouterRequest() ); request.project = ''; + request.region = ''; + request.router = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getRouterStatus(request), expectedError); @@ -603,7 +627,8 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.InsertRouterRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -634,7 +659,8 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.InsertRouterRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -681,7 +707,8 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.InsertRouterRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -709,6 +736,7 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.InsertRouterRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -726,7 +754,9 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.PatchRouterRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.router = ''; + const expectedHeaderRequestParams = 'project=®ion=&router='; const expectedOptions = { otherArgs: { headers: { @@ -757,7 +787,9 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.PatchRouterRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.router = ''; + const expectedHeaderRequestParams = 'project=®ion=&router='; const expectedOptions = { otherArgs: { headers: { @@ -803,7 +835,9 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.PatchRouterRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.router = ''; + const expectedHeaderRequestParams = 'project=®ion=&router='; const expectedOptions = { otherArgs: { headers: { @@ -831,6 +865,8 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.PatchRouterRequest() ); request.project = ''; + request.region = ''; + request.router = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -848,7 +884,9 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.PreviewRouterRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.router = ''; + const expectedHeaderRequestParams = 'project=®ion=&router='; const expectedOptions = { otherArgs: { headers: { @@ -879,7 +917,9 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.PreviewRouterRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.router = ''; + const expectedHeaderRequestParams = 'project=®ion=&router='; const expectedOptions = { otherArgs: { headers: { @@ -926,7 +966,9 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.PreviewRouterRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.router = ''; + const expectedHeaderRequestParams = 'project=®ion=&router='; const expectedOptions = { otherArgs: { headers: { @@ -954,6 +996,8 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.PreviewRouterRequest() ); request.project = ''; + request.region = ''; + request.router = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.preview(request), expectedError); @@ -971,7 +1015,9 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.UpdateRouterRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.router = ''; + const expectedHeaderRequestParams = 'project=®ion=&router='; const expectedOptions = { otherArgs: { headers: { @@ -1002,7 +1048,9 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.UpdateRouterRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.router = ''; + const expectedHeaderRequestParams = 'project=®ion=&router='; const expectedOptions = { otherArgs: { headers: { @@ -1049,7 +1097,9 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.UpdateRouterRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.router = ''; + const expectedHeaderRequestParams = 'project=®ion=&router='; const expectedOptions = { otherArgs: { headers: { @@ -1077,6 +1127,8 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.UpdateRouterRequest() ); request.project = ''; + request.region = ''; + request.router = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.update(request), expectedError); @@ -1188,7 +1240,9 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.GetNatMappingInfoRoutersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.router = ''; + const expectedHeaderRequestParams = 'project=®ion=&router='; const expectedOptions = { otherArgs: { headers: { @@ -1227,7 +1281,9 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.GetNatMappingInfoRoutersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.router = ''; + const expectedHeaderRequestParams = 'project=®ion=&router='; const expectedOptions = { otherArgs: { headers: { @@ -1284,7 +1340,9 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.GetNatMappingInfoRoutersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.router = ''; + const expectedHeaderRequestParams = 'project=®ion=&router='; const expectedOptions = { otherArgs: { headers: { @@ -1315,7 +1373,9 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.GetNatMappingInfoRoutersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.router = ''; + const expectedHeaderRequestParams = 'project=®ion=&router='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.VmEndpointNatMappings() @@ -1371,7 +1431,9 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.GetNatMappingInfoRoutersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.router = ''; + const expectedHeaderRequestParams = 'project=®ion=&router='; const expectedError = new Error('expected'); client.descriptors.page.getNatMappingInfo.createStream = stubPageStreamingCall(undefined, expectedError); @@ -1416,7 +1478,9 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.GetNatMappingInfoRoutersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.router = ''; + const expectedHeaderRequestParams = 'project=®ion=&router='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.VmEndpointNatMappings() @@ -1461,7 +1525,9 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.GetNatMappingInfoRoutersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.router = ''; + const expectedHeaderRequestParams = 'project=®ion=&router='; const expectedError = new Error('expected'); client.descriptors.page.getNatMappingInfo.asyncIterate = stubAsyncIterationCall(undefined, expectedError); @@ -1499,7 +1565,8 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.ListRoutersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1532,7 +1599,8 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.ListRoutersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1580,7 +1648,8 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.ListRoutersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1608,7 +1677,8 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.ListRoutersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.Router()), generateSampleMessage(new protos.google.cloud.compute.v1.Router()), @@ -1653,7 +1723,8 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.ListRoutersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -1695,7 +1766,8 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.ListRoutersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.Router()), generateSampleMessage(new protos.google.cloud.compute.v1.Router()), @@ -1731,7 +1803,8 @@ describe('v1.RoutersClient', () => { new protos.google.cloud.compute.v1.ListRoutersRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_routes_v1.ts b/test/gapic_routes_v1.ts index 4d61aab2..90b4d189 100644 --- a/test/gapic_routes_v1.ts +++ b/test/gapic_routes_v1.ts @@ -232,7 +232,8 @@ describe('v1.RoutesClient', () => { new protos.google.cloud.compute.v1.DeleteRouteRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.route = ''; + const expectedHeaderRequestParams = 'project=&route='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +264,8 @@ describe('v1.RoutesClient', () => { new protos.google.cloud.compute.v1.DeleteRouteRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.route = ''; + const expectedHeaderRequestParams = 'project=&route='; const expectedOptions = { otherArgs: { headers: { @@ -310,7 +312,8 @@ describe('v1.RoutesClient', () => { new protos.google.cloud.compute.v1.DeleteRouteRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.route = ''; + const expectedHeaderRequestParams = 'project=&route='; const expectedOptions = { otherArgs: { headers: { @@ -338,6 +341,7 @@ describe('v1.RoutesClient', () => { new protos.google.cloud.compute.v1.DeleteRouteRequest() ); request.project = ''; + request.route = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -355,7 +359,8 @@ describe('v1.RoutesClient', () => { new protos.google.cloud.compute.v1.GetRouteRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.route = ''; + const expectedHeaderRequestParams = 'project=&route='; const expectedOptions = { otherArgs: { headers: { @@ -386,7 +391,8 @@ describe('v1.RoutesClient', () => { new protos.google.cloud.compute.v1.GetRouteRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.route = ''; + const expectedHeaderRequestParams = 'project=&route='; const expectedOptions = { otherArgs: { headers: { @@ -432,7 +438,8 @@ describe('v1.RoutesClient', () => { new protos.google.cloud.compute.v1.GetRouteRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.route = ''; + const expectedHeaderRequestParams = 'project=&route='; const expectedOptions = { otherArgs: { headers: { @@ -460,6 +467,7 @@ describe('v1.RoutesClient', () => { new protos.google.cloud.compute.v1.GetRouteRequest() ); request.project = ''; + request.route = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); diff --git a/test/gapic_security_policies_v1.ts b/test/gapic_security_policies_v1.ts index 94b12609..dfe433a2 100644 --- a/test/gapic_security_policies_v1.ts +++ b/test/gapic_security_policies_v1.ts @@ -234,7 +234,8 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.AddRuleSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -265,7 +266,8 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.AddRuleSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -312,7 +314,8 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.AddRuleSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -340,6 +343,7 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.AddRuleSecurityPolicyRequest() ); request.project = ''; + request.securityPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.addRule(request), expectedError); @@ -357,7 +361,8 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.DeleteSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -388,7 +393,8 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.DeleteSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -435,7 +441,8 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.DeleteSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -463,6 +470,7 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.DeleteSecurityPolicyRequest() ); request.project = ''; + request.securityPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -480,7 +488,8 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.GetSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -511,7 +520,8 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.GetSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -557,7 +567,8 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.GetSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -585,6 +596,7 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.GetSecurityPolicyRequest() ); request.project = ''; + request.securityPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -602,7 +614,8 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.GetRuleSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -633,7 +646,8 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.GetRuleSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -680,7 +694,8 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.GetRuleSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -708,6 +723,7 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.GetRuleSecurityPolicyRequest() ); request.project = ''; + request.securityPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getRule(request), expectedError); @@ -981,7 +997,8 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1012,7 +1029,8 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1058,7 +1076,8 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1086,6 +1105,7 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchSecurityPolicyRequest() ); request.project = ''; + request.securityPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -1103,7 +1123,8 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchRuleSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1134,7 +1155,8 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchRuleSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1181,7 +1203,8 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchRuleSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1209,6 +1232,7 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchRuleSecurityPolicyRequest() ); request.project = ''; + request.securityPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patchRule(request), expectedError); @@ -1226,7 +1250,8 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.RemoveRuleSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1257,7 +1282,8 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.RemoveRuleSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1304,7 +1330,8 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.RemoveRuleSecurityPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.securityPolicy = ''; + const expectedHeaderRequestParams = 'project=&security_policy='; const expectedOptions = { otherArgs: { headers: { @@ -1335,6 +1362,7 @@ describe('v1.SecurityPoliciesClient', () => { new protos.google.cloud.compute.v1.RemoveRuleSecurityPolicyRequest() ); request.project = ''; + request.securityPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.removeRule(request), expectedError); diff --git a/test/gapic_service_attachments_v1.ts b/test/gapic_service_attachments_v1.ts index 3b19f5bb..9ac95270 100644 --- a/test/gapic_service_attachments_v1.ts +++ b/test/gapic_service_attachments_v1.ts @@ -234,7 +234,10 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.DeleteServiceAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.serviceAttachment = ''; + const expectedHeaderRequestParams = + 'project=®ion=&service_attachment='; const expectedOptions = { otherArgs: { headers: { @@ -265,7 +268,10 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.DeleteServiceAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.serviceAttachment = ''; + const expectedHeaderRequestParams = + 'project=®ion=&service_attachment='; const expectedOptions = { otherArgs: { headers: { @@ -312,7 +318,10 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.DeleteServiceAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.serviceAttachment = ''; + const expectedHeaderRequestParams = + 'project=®ion=&service_attachment='; const expectedOptions = { otherArgs: { headers: { @@ -340,6 +349,8 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.DeleteServiceAttachmentRequest() ); request.project = ''; + request.region = ''; + request.serviceAttachment = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -357,7 +368,10 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.GetServiceAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.serviceAttachment = ''; + const expectedHeaderRequestParams = + 'project=®ion=&service_attachment='; const expectedOptions = { otherArgs: { headers: { @@ -388,7 +402,10 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.GetServiceAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.serviceAttachment = ''; + const expectedHeaderRequestParams = + 'project=®ion=&service_attachment='; const expectedOptions = { otherArgs: { headers: { @@ -434,7 +451,10 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.GetServiceAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.serviceAttachment = ''; + const expectedHeaderRequestParams = + 'project=®ion=&service_attachment='; const expectedOptions = { otherArgs: { headers: { @@ -462,6 +482,8 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.GetServiceAttachmentRequest() ); request.project = ''; + request.region = ''; + request.serviceAttachment = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -479,7 +501,9 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyServiceAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -510,7 +534,9 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyServiceAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -557,7 +583,9 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyServiceAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -588,6 +616,8 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.GetIamPolicyServiceAttachmentRequest() ); request.project = ''; + request.region = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getIamPolicy(request), expectedError); @@ -605,7 +635,8 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.InsertServiceAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -636,7 +667,8 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.InsertServiceAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -683,7 +715,8 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.InsertServiceAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -711,6 +744,7 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.InsertServiceAttachmentRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -728,7 +762,10 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.PatchServiceAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.serviceAttachment = ''; + const expectedHeaderRequestParams = + 'project=®ion=&service_attachment='; const expectedOptions = { otherArgs: { headers: { @@ -759,7 +796,10 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.PatchServiceAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.serviceAttachment = ''; + const expectedHeaderRequestParams = + 'project=®ion=&service_attachment='; const expectedOptions = { otherArgs: { headers: { @@ -805,7 +845,10 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.PatchServiceAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.serviceAttachment = ''; + const expectedHeaderRequestParams = + 'project=®ion=&service_attachment='; const expectedOptions = { otherArgs: { headers: { @@ -833,6 +876,8 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.PatchServiceAttachmentRequest() ); request.project = ''; + request.region = ''; + request.serviceAttachment = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -850,7 +895,9 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyServiceAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -881,7 +928,9 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyServiceAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -928,7 +977,9 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyServiceAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -959,6 +1010,8 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.SetIamPolicyServiceAttachmentRequest() ); request.project = ''; + request.region = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setIamPolicy(request), expectedError); @@ -976,7 +1029,9 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsServiceAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1008,7 +1063,9 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsServiceAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1055,7 +1112,9 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsServiceAttachmentRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1086,6 +1145,8 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsServiceAttachmentRequest() ); request.project = ''; + request.region = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.testIamPermissions(request), expectedError); @@ -1197,7 +1258,8 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.ListServiceAttachmentsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1236,7 +1298,8 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.ListServiceAttachmentsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1290,7 +1353,8 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.ListServiceAttachmentsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1318,7 +1382,8 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.ListServiceAttachmentsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.ServiceAttachment() @@ -1373,7 +1438,8 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.ListServiceAttachmentsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -1419,7 +1485,8 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.ListServiceAttachmentsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.ServiceAttachment() @@ -1461,7 +1528,8 @@ describe('v1.ServiceAttachmentsClient', () => { new protos.google.cloud.compute.v1.ListServiceAttachmentsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_snapshots_v1.ts b/test/gapic_snapshots_v1.ts index 055792f2..00927c69 100644 --- a/test/gapic_snapshots_v1.ts +++ b/test/gapic_snapshots_v1.ts @@ -232,7 +232,8 @@ describe('v1.SnapshotsClient', () => { new protos.google.cloud.compute.v1.DeleteSnapshotRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.snapshot = ''; + const expectedHeaderRequestParams = 'project=&snapshot='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +264,8 @@ describe('v1.SnapshotsClient', () => { new protos.google.cloud.compute.v1.DeleteSnapshotRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.snapshot = ''; + const expectedHeaderRequestParams = 'project=&snapshot='; const expectedOptions = { otherArgs: { headers: { @@ -310,7 +312,8 @@ describe('v1.SnapshotsClient', () => { new protos.google.cloud.compute.v1.DeleteSnapshotRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.snapshot = ''; + const expectedHeaderRequestParams = 'project=&snapshot='; const expectedOptions = { otherArgs: { headers: { @@ -338,6 +341,7 @@ describe('v1.SnapshotsClient', () => { new protos.google.cloud.compute.v1.DeleteSnapshotRequest() ); request.project = ''; + request.snapshot = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -355,7 +359,8 @@ describe('v1.SnapshotsClient', () => { new protos.google.cloud.compute.v1.GetSnapshotRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.snapshot = ''; + const expectedHeaderRequestParams = 'project=&snapshot='; const expectedOptions = { otherArgs: { headers: { @@ -386,7 +391,8 @@ describe('v1.SnapshotsClient', () => { new protos.google.cloud.compute.v1.GetSnapshotRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.snapshot = ''; + const expectedHeaderRequestParams = 'project=&snapshot='; const expectedOptions = { otherArgs: { headers: { @@ -432,7 +438,8 @@ describe('v1.SnapshotsClient', () => { new protos.google.cloud.compute.v1.GetSnapshotRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.snapshot = ''; + const expectedHeaderRequestParams = 'project=&snapshot='; const expectedOptions = { otherArgs: { headers: { @@ -460,6 +467,7 @@ describe('v1.SnapshotsClient', () => { new protos.google.cloud.compute.v1.GetSnapshotRequest() ); request.project = ''; + request.snapshot = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -477,7 +485,8 @@ describe('v1.SnapshotsClient', () => { new protos.google.cloud.compute.v1.GetIamPolicySnapshotRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -508,7 +517,8 @@ describe('v1.SnapshotsClient', () => { new protos.google.cloud.compute.v1.GetIamPolicySnapshotRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -555,7 +565,8 @@ describe('v1.SnapshotsClient', () => { new protos.google.cloud.compute.v1.GetIamPolicySnapshotRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -586,6 +597,7 @@ describe('v1.SnapshotsClient', () => { new protos.google.cloud.compute.v1.GetIamPolicySnapshotRequest() ); request.project = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getIamPolicy(request), expectedError); @@ -726,7 +738,8 @@ describe('v1.SnapshotsClient', () => { new protos.google.cloud.compute.v1.SetIamPolicySnapshotRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -757,7 +770,8 @@ describe('v1.SnapshotsClient', () => { new protos.google.cloud.compute.v1.SetIamPolicySnapshotRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -804,7 +818,8 @@ describe('v1.SnapshotsClient', () => { new protos.google.cloud.compute.v1.SetIamPolicySnapshotRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -835,6 +850,7 @@ describe('v1.SnapshotsClient', () => { new protos.google.cloud.compute.v1.SetIamPolicySnapshotRequest() ); request.project = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setIamPolicy(request), expectedError); @@ -852,7 +868,8 @@ describe('v1.SnapshotsClient', () => { new protos.google.cloud.compute.v1.SetLabelsSnapshotRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -883,7 +900,8 @@ describe('v1.SnapshotsClient', () => { new protos.google.cloud.compute.v1.SetLabelsSnapshotRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -930,7 +948,8 @@ describe('v1.SnapshotsClient', () => { new protos.google.cloud.compute.v1.SetLabelsSnapshotRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -958,6 +977,7 @@ describe('v1.SnapshotsClient', () => { new protos.google.cloud.compute.v1.SetLabelsSnapshotRequest() ); request.project = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setLabels(request), expectedError); @@ -975,7 +995,8 @@ describe('v1.SnapshotsClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsSnapshotRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1007,7 +1028,8 @@ describe('v1.SnapshotsClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsSnapshotRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1054,7 +1076,8 @@ describe('v1.SnapshotsClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsSnapshotRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.resource = ''; + const expectedHeaderRequestParams = 'project=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1085,6 +1108,7 @@ describe('v1.SnapshotsClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsSnapshotRequest() ); request.project = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.testIamPermissions(request), expectedError); diff --git a/test/gapic_ssl_certificates_v1.ts b/test/gapic_ssl_certificates_v1.ts index 04537a71..129138ab 100644 --- a/test/gapic_ssl_certificates_v1.ts +++ b/test/gapic_ssl_certificates_v1.ts @@ -234,7 +234,8 @@ describe('v1.SslCertificatesClient', () => { new protos.google.cloud.compute.v1.DeleteSslCertificateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.sslCertificate = ''; + const expectedHeaderRequestParams = 'project=&ssl_certificate='; const expectedOptions = { otherArgs: { headers: { @@ -265,7 +266,8 @@ describe('v1.SslCertificatesClient', () => { new protos.google.cloud.compute.v1.DeleteSslCertificateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.sslCertificate = ''; + const expectedHeaderRequestParams = 'project=&ssl_certificate='; const expectedOptions = { otherArgs: { headers: { @@ -312,7 +314,8 @@ describe('v1.SslCertificatesClient', () => { new protos.google.cloud.compute.v1.DeleteSslCertificateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.sslCertificate = ''; + const expectedHeaderRequestParams = 'project=&ssl_certificate='; const expectedOptions = { otherArgs: { headers: { @@ -340,6 +343,7 @@ describe('v1.SslCertificatesClient', () => { new protos.google.cloud.compute.v1.DeleteSslCertificateRequest() ); request.project = ''; + request.sslCertificate = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -357,7 +361,8 @@ describe('v1.SslCertificatesClient', () => { new protos.google.cloud.compute.v1.GetSslCertificateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.sslCertificate = ''; + const expectedHeaderRequestParams = 'project=&ssl_certificate='; const expectedOptions = { otherArgs: { headers: { @@ -388,7 +393,8 @@ describe('v1.SslCertificatesClient', () => { new protos.google.cloud.compute.v1.GetSslCertificateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.sslCertificate = ''; + const expectedHeaderRequestParams = 'project=&ssl_certificate='; const expectedOptions = { otherArgs: { headers: { @@ -434,7 +440,8 @@ describe('v1.SslCertificatesClient', () => { new protos.google.cloud.compute.v1.GetSslCertificateRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.sslCertificate = ''; + const expectedHeaderRequestParams = 'project=&ssl_certificate='; const expectedOptions = { otherArgs: { headers: { @@ -462,6 +469,7 @@ describe('v1.SslCertificatesClient', () => { new protos.google.cloud.compute.v1.GetSslCertificateRequest() ); request.project = ''; + request.sslCertificate = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); diff --git a/test/gapic_ssl_policies_v1.ts b/test/gapic_ssl_policies_v1.ts index 32969049..5a0941d7 100644 --- a/test/gapic_ssl_policies_v1.ts +++ b/test/gapic_ssl_policies_v1.ts @@ -232,7 +232,8 @@ describe('v1.SslPoliciesClient', () => { new protos.google.cloud.compute.v1.DeleteSslPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.sslPolicy = ''; + const expectedHeaderRequestParams = 'project=&ssl_policy='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +264,8 @@ describe('v1.SslPoliciesClient', () => { new protos.google.cloud.compute.v1.DeleteSslPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.sslPolicy = ''; + const expectedHeaderRequestParams = 'project=&ssl_policy='; const expectedOptions = { otherArgs: { headers: { @@ -310,7 +312,8 @@ describe('v1.SslPoliciesClient', () => { new protos.google.cloud.compute.v1.DeleteSslPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.sslPolicy = ''; + const expectedHeaderRequestParams = 'project=&ssl_policy='; const expectedOptions = { otherArgs: { headers: { @@ -338,6 +341,7 @@ describe('v1.SslPoliciesClient', () => { new protos.google.cloud.compute.v1.DeleteSslPolicyRequest() ); request.project = ''; + request.sslPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -355,7 +359,8 @@ describe('v1.SslPoliciesClient', () => { new protos.google.cloud.compute.v1.GetSslPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.sslPolicy = ''; + const expectedHeaderRequestParams = 'project=&ssl_policy='; const expectedOptions = { otherArgs: { headers: { @@ -386,7 +391,8 @@ describe('v1.SslPoliciesClient', () => { new protos.google.cloud.compute.v1.GetSslPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.sslPolicy = ''; + const expectedHeaderRequestParams = 'project=&ssl_policy='; const expectedOptions = { otherArgs: { headers: { @@ -432,7 +438,8 @@ describe('v1.SslPoliciesClient', () => { new protos.google.cloud.compute.v1.GetSslPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.sslPolicy = ''; + const expectedHeaderRequestParams = 'project=&ssl_policy='; const expectedOptions = { otherArgs: { headers: { @@ -460,6 +467,7 @@ describe('v1.SslPoliciesClient', () => { new protos.google.cloud.compute.v1.GetSslPolicyRequest() ); request.project = ''; + request.sslPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -733,7 +741,8 @@ describe('v1.SslPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchSslPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.sslPolicy = ''; + const expectedHeaderRequestParams = 'project=&ssl_policy='; const expectedOptions = { otherArgs: { headers: { @@ -764,7 +773,8 @@ describe('v1.SslPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchSslPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.sslPolicy = ''; + const expectedHeaderRequestParams = 'project=&ssl_policy='; const expectedOptions = { otherArgs: { headers: { @@ -810,7 +820,8 @@ describe('v1.SslPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchSslPolicyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.sslPolicy = ''; + const expectedHeaderRequestParams = 'project=&ssl_policy='; const expectedOptions = { otherArgs: { headers: { @@ -838,6 +849,7 @@ describe('v1.SslPoliciesClient', () => { new protos.google.cloud.compute.v1.PatchSslPolicyRequest() ); request.project = ''; + request.sslPolicy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); diff --git a/test/gapic_subnetworks_v1.ts b/test/gapic_subnetworks_v1.ts index f4e94ea0..c6a03bfc 100644 --- a/test/gapic_subnetworks_v1.ts +++ b/test/gapic_subnetworks_v1.ts @@ -232,7 +232,9 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.DeleteSubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.subnetwork = ''; + const expectedHeaderRequestParams = 'project=®ion=&subnetwork='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +265,9 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.DeleteSubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.subnetwork = ''; + const expectedHeaderRequestParams = 'project=®ion=&subnetwork='; const expectedOptions = { otherArgs: { headers: { @@ -310,7 +314,9 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.DeleteSubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.subnetwork = ''; + const expectedHeaderRequestParams = 'project=®ion=&subnetwork='; const expectedOptions = { otherArgs: { headers: { @@ -338,6 +344,8 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.DeleteSubnetworkRequest() ); request.project = ''; + request.region = ''; + request.subnetwork = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -355,7 +363,9 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.ExpandIpCidrRangeSubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.subnetwork = ''; + const expectedHeaderRequestParams = 'project=®ion=&subnetwork='; const expectedOptions = { otherArgs: { headers: { @@ -386,7 +396,9 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.ExpandIpCidrRangeSubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.subnetwork = ''; + const expectedHeaderRequestParams = 'project=®ion=&subnetwork='; const expectedOptions = { otherArgs: { headers: { @@ -433,7 +445,9 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.ExpandIpCidrRangeSubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.subnetwork = ''; + const expectedHeaderRequestParams = 'project=®ion=&subnetwork='; const expectedOptions = { otherArgs: { headers: { @@ -464,6 +478,8 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.ExpandIpCidrRangeSubnetworkRequest() ); request.project = ''; + request.region = ''; + request.subnetwork = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.expandIpCidrRange(request), expectedError); @@ -481,7 +497,9 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.GetSubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.subnetwork = ''; + const expectedHeaderRequestParams = 'project=®ion=&subnetwork='; const expectedOptions = { otherArgs: { headers: { @@ -512,7 +530,9 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.GetSubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.subnetwork = ''; + const expectedHeaderRequestParams = 'project=®ion=&subnetwork='; const expectedOptions = { otherArgs: { headers: { @@ -558,7 +578,9 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.GetSubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.subnetwork = ''; + const expectedHeaderRequestParams = 'project=®ion=&subnetwork='; const expectedOptions = { otherArgs: { headers: { @@ -586,6 +608,8 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.GetSubnetworkRequest() ); request.project = ''; + request.region = ''; + request.subnetwork = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -603,7 +627,9 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.GetIamPolicySubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -634,7 +660,9 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.GetIamPolicySubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -681,7 +709,9 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.GetIamPolicySubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -712,6 +742,8 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.GetIamPolicySubnetworkRequest() ); request.project = ''; + request.region = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getIamPolicy(request), expectedError); @@ -729,7 +761,8 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.InsertSubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -760,7 +793,8 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.InsertSubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -807,7 +841,8 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.InsertSubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -835,6 +870,7 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.InsertSubnetworkRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -852,7 +888,9 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.PatchSubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.subnetwork = ''; + const expectedHeaderRequestParams = 'project=®ion=&subnetwork='; const expectedOptions = { otherArgs: { headers: { @@ -883,7 +921,9 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.PatchSubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.subnetwork = ''; + const expectedHeaderRequestParams = 'project=®ion=&subnetwork='; const expectedOptions = { otherArgs: { headers: { @@ -929,7 +969,9 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.PatchSubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.subnetwork = ''; + const expectedHeaderRequestParams = 'project=®ion=&subnetwork='; const expectedOptions = { otherArgs: { headers: { @@ -957,6 +999,8 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.PatchSubnetworkRequest() ); request.project = ''; + request.region = ''; + request.subnetwork = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -974,7 +1018,9 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.SetIamPolicySubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1005,7 +1051,9 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.SetIamPolicySubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1052,7 +1100,9 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.SetIamPolicySubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1083,6 +1133,8 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.SetIamPolicySubnetworkRequest() ); request.project = ''; + request.region = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setIamPolicy(request), expectedError); @@ -1100,7 +1152,9 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.SetPrivateIpGoogleAccessSubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.subnetwork = ''; + const expectedHeaderRequestParams = 'project=®ion=&subnetwork='; const expectedOptions = { otherArgs: { headers: { @@ -1132,7 +1186,9 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.SetPrivateIpGoogleAccessSubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.subnetwork = ''; + const expectedHeaderRequestParams = 'project=®ion=&subnetwork='; const expectedOptions = { otherArgs: { headers: { @@ -1179,7 +1235,9 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.SetPrivateIpGoogleAccessSubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.subnetwork = ''; + const expectedHeaderRequestParams = 'project=®ion=&subnetwork='; const expectedOptions = { otherArgs: { headers: { @@ -1213,6 +1271,8 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.SetPrivateIpGoogleAccessSubnetworkRequest() ); request.project = ''; + request.region = ''; + request.subnetwork = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1233,7 +1293,9 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsSubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1265,7 +1327,9 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsSubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1312,7 +1376,9 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsSubnetworkRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -1343,6 +1409,8 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsSubnetworkRequest() ); request.project = ''; + request.region = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.testIamPermissions(request), expectedError); @@ -1454,7 +1522,8 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.ListSubnetworksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1487,7 +1556,8 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.ListSubnetworksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1535,7 +1605,8 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.ListSubnetworksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1563,7 +1634,8 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.ListSubnetworksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.Subnetwork()), generateSampleMessage(new protos.google.cloud.compute.v1.Subnetwork()), @@ -1611,7 +1683,8 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.ListSubnetworksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -1656,7 +1729,8 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.ListSubnetworksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.Subnetwork()), generateSampleMessage(new protos.google.cloud.compute.v1.Subnetwork()), @@ -1692,7 +1766,8 @@ describe('v1.SubnetworksClient', () => { new protos.google.cloud.compute.v1.ListSubnetworksRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_target_grpc_proxies_v1.ts b/test/gapic_target_grpc_proxies_v1.ts index 5269c27e..f3453d8f 100644 --- a/test/gapic_target_grpc_proxies_v1.ts +++ b/test/gapic_target_grpc_proxies_v1.ts @@ -234,7 +234,8 @@ describe('v1.TargetGrpcProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteTargetGrpcProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetGrpcProxy = ''; + const expectedHeaderRequestParams = 'project=&target_grpc_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -265,7 +266,8 @@ describe('v1.TargetGrpcProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteTargetGrpcProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetGrpcProxy = ''; + const expectedHeaderRequestParams = 'project=&target_grpc_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -312,7 +314,8 @@ describe('v1.TargetGrpcProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteTargetGrpcProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetGrpcProxy = ''; + const expectedHeaderRequestParams = 'project=&target_grpc_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -340,6 +343,7 @@ describe('v1.TargetGrpcProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteTargetGrpcProxyRequest() ); request.project = ''; + request.targetGrpcProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -357,7 +361,8 @@ describe('v1.TargetGrpcProxiesClient', () => { new protos.google.cloud.compute.v1.GetTargetGrpcProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetGrpcProxy = ''; + const expectedHeaderRequestParams = 'project=&target_grpc_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -388,7 +393,8 @@ describe('v1.TargetGrpcProxiesClient', () => { new protos.google.cloud.compute.v1.GetTargetGrpcProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetGrpcProxy = ''; + const expectedHeaderRequestParams = 'project=&target_grpc_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -434,7 +440,8 @@ describe('v1.TargetGrpcProxiesClient', () => { new protos.google.cloud.compute.v1.GetTargetGrpcProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetGrpcProxy = ''; + const expectedHeaderRequestParams = 'project=&target_grpc_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -462,6 +469,7 @@ describe('v1.TargetGrpcProxiesClient', () => { new protos.google.cloud.compute.v1.GetTargetGrpcProxyRequest() ); request.project = ''; + request.targetGrpcProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -602,7 +610,8 @@ describe('v1.TargetGrpcProxiesClient', () => { new protos.google.cloud.compute.v1.PatchTargetGrpcProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetGrpcProxy = ''; + const expectedHeaderRequestParams = 'project=&target_grpc_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -633,7 +642,8 @@ describe('v1.TargetGrpcProxiesClient', () => { new protos.google.cloud.compute.v1.PatchTargetGrpcProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetGrpcProxy = ''; + const expectedHeaderRequestParams = 'project=&target_grpc_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -679,7 +689,8 @@ describe('v1.TargetGrpcProxiesClient', () => { new protos.google.cloud.compute.v1.PatchTargetGrpcProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetGrpcProxy = ''; + const expectedHeaderRequestParams = 'project=&target_grpc_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -707,6 +718,7 @@ describe('v1.TargetGrpcProxiesClient', () => { new protos.google.cloud.compute.v1.PatchTargetGrpcProxyRequest() ); request.project = ''; + request.targetGrpcProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); diff --git a/test/gapic_target_http_proxies_v1.ts b/test/gapic_target_http_proxies_v1.ts index 9f413da6..d1994715 100644 --- a/test/gapic_target_http_proxies_v1.ts +++ b/test/gapic_target_http_proxies_v1.ts @@ -234,7 +234,8 @@ describe('v1.TargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteTargetHttpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpProxy = ''; + const expectedHeaderRequestParams = 'project=&target_http_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -265,7 +266,8 @@ describe('v1.TargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteTargetHttpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpProxy = ''; + const expectedHeaderRequestParams = 'project=&target_http_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -312,7 +314,8 @@ describe('v1.TargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteTargetHttpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpProxy = ''; + const expectedHeaderRequestParams = 'project=&target_http_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -340,6 +343,7 @@ describe('v1.TargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteTargetHttpProxyRequest() ); request.project = ''; + request.targetHttpProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -357,7 +361,8 @@ describe('v1.TargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.GetTargetHttpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpProxy = ''; + const expectedHeaderRequestParams = 'project=&target_http_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -388,7 +393,8 @@ describe('v1.TargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.GetTargetHttpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpProxy = ''; + const expectedHeaderRequestParams = 'project=&target_http_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -434,7 +440,8 @@ describe('v1.TargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.GetTargetHttpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpProxy = ''; + const expectedHeaderRequestParams = 'project=&target_http_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -462,6 +469,7 @@ describe('v1.TargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.GetTargetHttpProxyRequest() ); request.project = ''; + request.targetHttpProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -602,7 +610,8 @@ describe('v1.TargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.PatchTargetHttpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpProxy = ''; + const expectedHeaderRequestParams = 'project=&target_http_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -633,7 +642,8 @@ describe('v1.TargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.PatchTargetHttpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpProxy = ''; + const expectedHeaderRequestParams = 'project=&target_http_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -679,7 +689,8 @@ describe('v1.TargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.PatchTargetHttpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpProxy = ''; + const expectedHeaderRequestParams = 'project=&target_http_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -707,6 +718,7 @@ describe('v1.TargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.PatchTargetHttpProxyRequest() ); request.project = ''; + request.targetHttpProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -724,7 +736,8 @@ describe('v1.TargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.SetUrlMapTargetHttpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpProxy = ''; + const expectedHeaderRequestParams = 'project=&target_http_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -755,7 +768,8 @@ describe('v1.TargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.SetUrlMapTargetHttpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpProxy = ''; + const expectedHeaderRequestParams = 'project=&target_http_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -802,7 +816,8 @@ describe('v1.TargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.SetUrlMapTargetHttpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpProxy = ''; + const expectedHeaderRequestParams = 'project=&target_http_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -830,6 +845,7 @@ describe('v1.TargetHttpProxiesClient', () => { new protos.google.cloud.compute.v1.SetUrlMapTargetHttpProxyRequest() ); request.project = ''; + request.targetHttpProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setUrlMap(request), expectedError); diff --git a/test/gapic_target_https_proxies_v1.ts b/test/gapic_target_https_proxies_v1.ts index e3c25af7..b9aaaaff 100644 --- a/test/gapic_target_https_proxies_v1.ts +++ b/test/gapic_target_https_proxies_v1.ts @@ -234,7 +234,8 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = 'project=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -265,7 +266,8 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = 'project=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -312,7 +314,8 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = 'project=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -340,6 +343,7 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteTargetHttpsProxyRequest() ); request.project = ''; + request.targetHttpsProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -357,7 +361,8 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.GetTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = 'project=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -388,7 +393,8 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.GetTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = 'project=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -434,7 +440,8 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.GetTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = 'project=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -462,6 +469,7 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.GetTargetHttpsProxyRequest() ); request.project = ''; + request.targetHttpsProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -602,7 +610,8 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.PatchTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = 'project=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -633,7 +642,8 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.PatchTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = 'project=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -679,7 +689,8 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.PatchTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = 'project=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -707,6 +718,7 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.PatchTargetHttpsProxyRequest() ); request.project = ''; + request.targetHttpsProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -724,7 +736,8 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.SetQuicOverrideTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = 'project=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -755,7 +768,8 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.SetQuicOverrideTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = 'project=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -802,7 +816,8 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.SetQuicOverrideTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = 'project=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -833,6 +848,7 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.SetQuicOverrideTargetHttpsProxyRequest() ); request.project = ''; + request.targetHttpsProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setQuicOverride(request), expectedError); @@ -850,7 +866,8 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.SetSslCertificatesTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = 'project=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -882,7 +899,8 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.SetSslCertificatesTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = 'project=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -929,7 +947,8 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.SetSslCertificatesTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = 'project=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -960,6 +979,7 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.SetSslCertificatesTargetHttpsProxyRequest() ); request.project = ''; + request.targetHttpsProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setSslCertificates(request), expectedError); @@ -977,7 +997,8 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.SetSslPolicyTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = 'project=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -1008,7 +1029,8 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.SetSslPolicyTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = 'project=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -1055,7 +1077,8 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.SetSslPolicyTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = 'project=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -1086,6 +1109,7 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.SetSslPolicyTargetHttpsProxyRequest() ); request.project = ''; + request.targetHttpsProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setSslPolicy(request), expectedError); @@ -1103,7 +1127,8 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.SetUrlMapTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = 'project=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -1134,7 +1159,8 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.SetUrlMapTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = 'project=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -1181,7 +1207,8 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.SetUrlMapTargetHttpsProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetHttpsProxy = ''; + const expectedHeaderRequestParams = 'project=&target_https_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -1209,6 +1236,7 @@ describe('v1.TargetHttpsProxiesClient', () => { new protos.google.cloud.compute.v1.SetUrlMapTargetHttpsProxyRequest() ); request.project = ''; + request.targetHttpsProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setUrlMap(request), expectedError); diff --git a/test/gapic_target_instances_v1.ts b/test/gapic_target_instances_v1.ts index bd6638b5..733c700d 100644 --- a/test/gapic_target_instances_v1.ts +++ b/test/gapic_target_instances_v1.ts @@ -234,7 +234,9 @@ describe('v1.TargetInstancesClient', () => { new protos.google.cloud.compute.v1.DeleteTargetInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.targetInstance = ''; + const expectedHeaderRequestParams = 'project=&zone=&target_instance='; const expectedOptions = { otherArgs: { headers: { @@ -265,7 +267,9 @@ describe('v1.TargetInstancesClient', () => { new protos.google.cloud.compute.v1.DeleteTargetInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.targetInstance = ''; + const expectedHeaderRequestParams = 'project=&zone=&target_instance='; const expectedOptions = { otherArgs: { headers: { @@ -312,7 +316,9 @@ describe('v1.TargetInstancesClient', () => { new protos.google.cloud.compute.v1.DeleteTargetInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.targetInstance = ''; + const expectedHeaderRequestParams = 'project=&zone=&target_instance='; const expectedOptions = { otherArgs: { headers: { @@ -340,6 +346,8 @@ describe('v1.TargetInstancesClient', () => { new protos.google.cloud.compute.v1.DeleteTargetInstanceRequest() ); request.project = ''; + request.zone = ''; + request.targetInstance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -357,7 +365,9 @@ describe('v1.TargetInstancesClient', () => { new protos.google.cloud.compute.v1.GetTargetInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.targetInstance = ''; + const expectedHeaderRequestParams = 'project=&zone=&target_instance='; const expectedOptions = { otherArgs: { headers: { @@ -388,7 +398,9 @@ describe('v1.TargetInstancesClient', () => { new protos.google.cloud.compute.v1.GetTargetInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.targetInstance = ''; + const expectedHeaderRequestParams = 'project=&zone=&target_instance='; const expectedOptions = { otherArgs: { headers: { @@ -434,7 +446,9 @@ describe('v1.TargetInstancesClient', () => { new protos.google.cloud.compute.v1.GetTargetInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.targetInstance = ''; + const expectedHeaderRequestParams = 'project=&zone=&target_instance='; const expectedOptions = { otherArgs: { headers: { @@ -462,6 +476,8 @@ describe('v1.TargetInstancesClient', () => { new protos.google.cloud.compute.v1.GetTargetInstanceRequest() ); request.project = ''; + request.zone = ''; + request.targetInstance = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -479,7 +495,8 @@ describe('v1.TargetInstancesClient', () => { new protos.google.cloud.compute.v1.InsertTargetInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -510,7 +527,8 @@ describe('v1.TargetInstancesClient', () => { new protos.google.cloud.compute.v1.InsertTargetInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -557,7 +575,8 @@ describe('v1.TargetInstancesClient', () => { new protos.google.cloud.compute.v1.InsertTargetInstanceRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -585,6 +604,7 @@ describe('v1.TargetInstancesClient', () => { new protos.google.cloud.compute.v1.InsertTargetInstanceRequest() ); request.project = ''; + request.zone = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -696,7 +716,8 @@ describe('v1.TargetInstancesClient', () => { new protos.google.cloud.compute.v1.ListTargetInstancesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -735,7 +756,8 @@ describe('v1.TargetInstancesClient', () => { new protos.google.cloud.compute.v1.ListTargetInstancesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -789,7 +811,8 @@ describe('v1.TargetInstancesClient', () => { new protos.google.cloud.compute.v1.ListTargetInstancesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -817,7 +840,8 @@ describe('v1.TargetInstancesClient', () => { new protos.google.cloud.compute.v1.ListTargetInstancesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.TargetInstance() @@ -871,7 +895,8 @@ describe('v1.TargetInstancesClient', () => { new protos.google.cloud.compute.v1.ListTargetInstancesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -916,7 +941,8 @@ describe('v1.TargetInstancesClient', () => { new protos.google.cloud.compute.v1.ListTargetInstancesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.TargetInstance() @@ -958,7 +984,8 @@ describe('v1.TargetInstancesClient', () => { new protos.google.cloud.compute.v1.ListTargetInstancesRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_target_pools_v1.ts b/test/gapic_target_pools_v1.ts index a545e63a..f9f5e3ee 100644 --- a/test/gapic_target_pools_v1.ts +++ b/test/gapic_target_pools_v1.ts @@ -232,7 +232,9 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.AddHealthCheckTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetPool = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_pool='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +265,9 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.AddHealthCheckTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetPool = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_pool='; const expectedOptions = { otherArgs: { headers: { @@ -310,7 +314,9 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.AddHealthCheckTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetPool = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_pool='; const expectedOptions = { otherArgs: { headers: { @@ -341,6 +347,8 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.AddHealthCheckTargetPoolRequest() ); request.project = ''; + request.region = ''; + request.targetPool = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.addHealthCheck(request), expectedError); @@ -358,7 +366,9 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.AddInstanceTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetPool = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_pool='; const expectedOptions = { otherArgs: { headers: { @@ -389,7 +399,9 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.AddInstanceTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetPool = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_pool='; const expectedOptions = { otherArgs: { headers: { @@ -436,7 +448,9 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.AddInstanceTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetPool = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_pool='; const expectedOptions = { otherArgs: { headers: { @@ -467,6 +481,8 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.AddInstanceTargetPoolRequest() ); request.project = ''; + request.region = ''; + request.targetPool = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.addInstance(request), expectedError); @@ -484,7 +500,9 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.DeleteTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetPool = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_pool='; const expectedOptions = { otherArgs: { headers: { @@ -515,7 +533,9 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.DeleteTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetPool = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_pool='; const expectedOptions = { otherArgs: { headers: { @@ -562,7 +582,9 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.DeleteTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetPool = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_pool='; const expectedOptions = { otherArgs: { headers: { @@ -590,6 +612,8 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.DeleteTargetPoolRequest() ); request.project = ''; + request.region = ''; + request.targetPool = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -607,7 +631,9 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.GetTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetPool = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_pool='; const expectedOptions = { otherArgs: { headers: { @@ -638,7 +664,9 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.GetTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetPool = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_pool='; const expectedOptions = { otherArgs: { headers: { @@ -684,7 +712,9 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.GetTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetPool = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_pool='; const expectedOptions = { otherArgs: { headers: { @@ -712,6 +742,8 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.GetTargetPoolRequest() ); request.project = ''; + request.region = ''; + request.targetPool = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -729,7 +761,9 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.GetHealthTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetPool = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_pool='; const expectedOptions = { otherArgs: { headers: { @@ -760,7 +794,9 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.GetHealthTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetPool = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_pool='; const expectedOptions = { otherArgs: { headers: { @@ -807,7 +843,9 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.GetHealthTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetPool = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_pool='; const expectedOptions = { otherArgs: { headers: { @@ -835,6 +873,8 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.GetHealthTargetPoolRequest() ); request.project = ''; + request.region = ''; + request.targetPool = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getHealth(request), expectedError); @@ -852,7 +892,8 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.InsertTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -883,7 +924,8 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.InsertTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -930,7 +972,8 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.InsertTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -958,6 +1001,7 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.InsertTargetPoolRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -975,7 +1019,9 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.RemoveHealthCheckTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetPool = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_pool='; const expectedOptions = { otherArgs: { headers: { @@ -1006,7 +1052,9 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.RemoveHealthCheckTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetPool = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_pool='; const expectedOptions = { otherArgs: { headers: { @@ -1053,7 +1101,9 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.RemoveHealthCheckTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetPool = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_pool='; const expectedOptions = { otherArgs: { headers: { @@ -1084,6 +1134,8 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.RemoveHealthCheckTargetPoolRequest() ); request.project = ''; + request.region = ''; + request.targetPool = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.removeHealthCheck(request), expectedError); @@ -1101,7 +1153,9 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.RemoveInstanceTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetPool = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_pool='; const expectedOptions = { otherArgs: { headers: { @@ -1132,7 +1186,9 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.RemoveInstanceTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetPool = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_pool='; const expectedOptions = { otherArgs: { headers: { @@ -1179,7 +1235,9 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.RemoveInstanceTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetPool = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_pool='; const expectedOptions = { otherArgs: { headers: { @@ -1210,6 +1268,8 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.RemoveInstanceTargetPoolRequest() ); request.project = ''; + request.region = ''; + request.targetPool = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.removeInstance(request), expectedError); @@ -1227,7 +1287,9 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.SetBackupTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetPool = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_pool='; const expectedOptions = { otherArgs: { headers: { @@ -1258,7 +1320,9 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.SetBackupTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetPool = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_pool='; const expectedOptions = { otherArgs: { headers: { @@ -1305,7 +1369,9 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.SetBackupTargetPoolRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetPool = ''; + const expectedHeaderRequestParams = 'project=®ion=&target_pool='; const expectedOptions = { otherArgs: { headers: { @@ -1333,6 +1399,8 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.SetBackupTargetPoolRequest() ); request.project = ''; + request.region = ''; + request.targetPool = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setBackup(request), expectedError); @@ -1444,7 +1512,8 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.ListTargetPoolsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1477,7 +1546,8 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.ListTargetPoolsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1525,7 +1595,8 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.ListTargetPoolsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1553,7 +1624,8 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.ListTargetPoolsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.TargetPool()), generateSampleMessage(new protos.google.cloud.compute.v1.TargetPool()), @@ -1601,7 +1673,8 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.ListTargetPoolsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -1646,7 +1719,8 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.ListTargetPoolsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.TargetPool()), generateSampleMessage(new protos.google.cloud.compute.v1.TargetPool()), @@ -1682,7 +1756,8 @@ describe('v1.TargetPoolsClient', () => { new protos.google.cloud.compute.v1.ListTargetPoolsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_target_ssl_proxies_v1.ts b/test/gapic_target_ssl_proxies_v1.ts index f69ebefc..1aa05ea2 100644 --- a/test/gapic_target_ssl_proxies_v1.ts +++ b/test/gapic_target_ssl_proxies_v1.ts @@ -234,7 +234,8 @@ describe('v1.TargetSslProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteTargetSslProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetSslProxy = ''; + const expectedHeaderRequestParams = 'project=&target_ssl_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -265,7 +266,8 @@ describe('v1.TargetSslProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteTargetSslProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetSslProxy = ''; + const expectedHeaderRequestParams = 'project=&target_ssl_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -312,7 +314,8 @@ describe('v1.TargetSslProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteTargetSslProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetSslProxy = ''; + const expectedHeaderRequestParams = 'project=&target_ssl_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -340,6 +343,7 @@ describe('v1.TargetSslProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteTargetSslProxyRequest() ); request.project = ''; + request.targetSslProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -357,7 +361,8 @@ describe('v1.TargetSslProxiesClient', () => { new protos.google.cloud.compute.v1.GetTargetSslProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetSslProxy = ''; + const expectedHeaderRequestParams = 'project=&target_ssl_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -388,7 +393,8 @@ describe('v1.TargetSslProxiesClient', () => { new protos.google.cloud.compute.v1.GetTargetSslProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetSslProxy = ''; + const expectedHeaderRequestParams = 'project=&target_ssl_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -434,7 +440,8 @@ describe('v1.TargetSslProxiesClient', () => { new protos.google.cloud.compute.v1.GetTargetSslProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetSslProxy = ''; + const expectedHeaderRequestParams = 'project=&target_ssl_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -462,6 +469,7 @@ describe('v1.TargetSslProxiesClient', () => { new protos.google.cloud.compute.v1.GetTargetSslProxyRequest() ); request.project = ''; + request.targetSslProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -602,7 +610,8 @@ describe('v1.TargetSslProxiesClient', () => { new protos.google.cloud.compute.v1.SetBackendServiceTargetSslProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetSslProxy = ''; + const expectedHeaderRequestParams = 'project=&target_ssl_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -633,7 +642,8 @@ describe('v1.TargetSslProxiesClient', () => { new protos.google.cloud.compute.v1.SetBackendServiceTargetSslProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetSslProxy = ''; + const expectedHeaderRequestParams = 'project=&target_ssl_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -680,7 +690,8 @@ describe('v1.TargetSslProxiesClient', () => { new protos.google.cloud.compute.v1.SetBackendServiceTargetSslProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetSslProxy = ''; + const expectedHeaderRequestParams = 'project=&target_ssl_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -711,6 +722,7 @@ describe('v1.TargetSslProxiesClient', () => { new protos.google.cloud.compute.v1.SetBackendServiceTargetSslProxyRequest() ); request.project = ''; + request.targetSslProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setBackendService(request), expectedError); @@ -728,7 +740,8 @@ describe('v1.TargetSslProxiesClient', () => { new protos.google.cloud.compute.v1.SetProxyHeaderTargetSslProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetSslProxy = ''; + const expectedHeaderRequestParams = 'project=&target_ssl_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -759,7 +772,8 @@ describe('v1.TargetSslProxiesClient', () => { new protos.google.cloud.compute.v1.SetProxyHeaderTargetSslProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetSslProxy = ''; + const expectedHeaderRequestParams = 'project=&target_ssl_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -806,7 +820,8 @@ describe('v1.TargetSslProxiesClient', () => { new protos.google.cloud.compute.v1.SetProxyHeaderTargetSslProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetSslProxy = ''; + const expectedHeaderRequestParams = 'project=&target_ssl_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -837,6 +852,7 @@ describe('v1.TargetSslProxiesClient', () => { new protos.google.cloud.compute.v1.SetProxyHeaderTargetSslProxyRequest() ); request.project = ''; + request.targetSslProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setProxyHeader(request), expectedError); @@ -854,7 +870,8 @@ describe('v1.TargetSslProxiesClient', () => { new protos.google.cloud.compute.v1.SetSslCertificatesTargetSslProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetSslProxy = ''; + const expectedHeaderRequestParams = 'project=&target_ssl_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -886,7 +903,8 @@ describe('v1.TargetSslProxiesClient', () => { new protos.google.cloud.compute.v1.SetSslCertificatesTargetSslProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetSslProxy = ''; + const expectedHeaderRequestParams = 'project=&target_ssl_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -933,7 +951,8 @@ describe('v1.TargetSslProxiesClient', () => { new protos.google.cloud.compute.v1.SetSslCertificatesTargetSslProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetSslProxy = ''; + const expectedHeaderRequestParams = 'project=&target_ssl_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -964,6 +983,7 @@ describe('v1.TargetSslProxiesClient', () => { new protos.google.cloud.compute.v1.SetSslCertificatesTargetSslProxyRequest() ); request.project = ''; + request.targetSslProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setSslCertificates(request), expectedError); @@ -981,7 +1001,8 @@ describe('v1.TargetSslProxiesClient', () => { new protos.google.cloud.compute.v1.SetSslPolicyTargetSslProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetSslProxy = ''; + const expectedHeaderRequestParams = 'project=&target_ssl_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -1012,7 +1033,8 @@ describe('v1.TargetSslProxiesClient', () => { new protos.google.cloud.compute.v1.SetSslPolicyTargetSslProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetSslProxy = ''; + const expectedHeaderRequestParams = 'project=&target_ssl_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -1059,7 +1081,8 @@ describe('v1.TargetSslProxiesClient', () => { new protos.google.cloud.compute.v1.SetSslPolicyTargetSslProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetSslProxy = ''; + const expectedHeaderRequestParams = 'project=&target_ssl_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -1090,6 +1113,7 @@ describe('v1.TargetSslProxiesClient', () => { new protos.google.cloud.compute.v1.SetSslPolicyTargetSslProxyRequest() ); request.project = ''; + request.targetSslProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setSslPolicy(request), expectedError); diff --git a/test/gapic_target_tcp_proxies_v1.ts b/test/gapic_target_tcp_proxies_v1.ts index 44867fd4..195a18cc 100644 --- a/test/gapic_target_tcp_proxies_v1.ts +++ b/test/gapic_target_tcp_proxies_v1.ts @@ -234,7 +234,8 @@ describe('v1.TargetTcpProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteTargetTcpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetTcpProxy = ''; + const expectedHeaderRequestParams = 'project=&target_tcp_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -265,7 +266,8 @@ describe('v1.TargetTcpProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteTargetTcpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetTcpProxy = ''; + const expectedHeaderRequestParams = 'project=&target_tcp_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -312,7 +314,8 @@ describe('v1.TargetTcpProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteTargetTcpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetTcpProxy = ''; + const expectedHeaderRequestParams = 'project=&target_tcp_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -340,6 +343,7 @@ describe('v1.TargetTcpProxiesClient', () => { new protos.google.cloud.compute.v1.DeleteTargetTcpProxyRequest() ); request.project = ''; + request.targetTcpProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -357,7 +361,8 @@ describe('v1.TargetTcpProxiesClient', () => { new protos.google.cloud.compute.v1.GetTargetTcpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetTcpProxy = ''; + const expectedHeaderRequestParams = 'project=&target_tcp_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -388,7 +393,8 @@ describe('v1.TargetTcpProxiesClient', () => { new protos.google.cloud.compute.v1.GetTargetTcpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetTcpProxy = ''; + const expectedHeaderRequestParams = 'project=&target_tcp_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -434,7 +440,8 @@ describe('v1.TargetTcpProxiesClient', () => { new protos.google.cloud.compute.v1.GetTargetTcpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetTcpProxy = ''; + const expectedHeaderRequestParams = 'project=&target_tcp_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -462,6 +469,7 @@ describe('v1.TargetTcpProxiesClient', () => { new protos.google.cloud.compute.v1.GetTargetTcpProxyRequest() ); request.project = ''; + request.targetTcpProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -602,7 +610,8 @@ describe('v1.TargetTcpProxiesClient', () => { new protos.google.cloud.compute.v1.SetBackendServiceTargetTcpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetTcpProxy = ''; + const expectedHeaderRequestParams = 'project=&target_tcp_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -633,7 +642,8 @@ describe('v1.TargetTcpProxiesClient', () => { new protos.google.cloud.compute.v1.SetBackendServiceTargetTcpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetTcpProxy = ''; + const expectedHeaderRequestParams = 'project=&target_tcp_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -680,7 +690,8 @@ describe('v1.TargetTcpProxiesClient', () => { new protos.google.cloud.compute.v1.SetBackendServiceTargetTcpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetTcpProxy = ''; + const expectedHeaderRequestParams = 'project=&target_tcp_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -711,6 +722,7 @@ describe('v1.TargetTcpProxiesClient', () => { new protos.google.cloud.compute.v1.SetBackendServiceTargetTcpProxyRequest() ); request.project = ''; + request.targetTcpProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setBackendService(request), expectedError); @@ -728,7 +740,8 @@ describe('v1.TargetTcpProxiesClient', () => { new protos.google.cloud.compute.v1.SetProxyHeaderTargetTcpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetTcpProxy = ''; + const expectedHeaderRequestParams = 'project=&target_tcp_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -759,7 +772,8 @@ describe('v1.TargetTcpProxiesClient', () => { new protos.google.cloud.compute.v1.SetProxyHeaderTargetTcpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetTcpProxy = ''; + const expectedHeaderRequestParams = 'project=&target_tcp_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -806,7 +820,8 @@ describe('v1.TargetTcpProxiesClient', () => { new protos.google.cloud.compute.v1.SetProxyHeaderTargetTcpProxyRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.targetTcpProxy = ''; + const expectedHeaderRequestParams = 'project=&target_tcp_proxy='; const expectedOptions = { otherArgs: { headers: { @@ -837,6 +852,7 @@ describe('v1.TargetTcpProxiesClient', () => { new protos.google.cloud.compute.v1.SetProxyHeaderTargetTcpProxyRequest() ); request.project = ''; + request.targetTcpProxy = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setProxyHeader(request), expectedError); diff --git a/test/gapic_target_vpn_gateways_v1.ts b/test/gapic_target_vpn_gateways_v1.ts index 0e3b3697..35d37a65 100644 --- a/test/gapic_target_vpn_gateways_v1.ts +++ b/test/gapic_target_vpn_gateways_v1.ts @@ -234,7 +234,10 @@ describe('v1.TargetVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.DeleteTargetVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetVpnGateway = ''; + const expectedHeaderRequestParams = + 'project=®ion=&target_vpn_gateway='; const expectedOptions = { otherArgs: { headers: { @@ -265,7 +268,10 @@ describe('v1.TargetVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.DeleteTargetVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetVpnGateway = ''; + const expectedHeaderRequestParams = + 'project=®ion=&target_vpn_gateway='; const expectedOptions = { otherArgs: { headers: { @@ -312,7 +318,10 @@ describe('v1.TargetVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.DeleteTargetVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetVpnGateway = ''; + const expectedHeaderRequestParams = + 'project=®ion=&target_vpn_gateway='; const expectedOptions = { otherArgs: { headers: { @@ -340,6 +349,8 @@ describe('v1.TargetVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.DeleteTargetVpnGatewayRequest() ); request.project = ''; + request.region = ''; + request.targetVpnGateway = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -357,7 +368,10 @@ describe('v1.TargetVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.GetTargetVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetVpnGateway = ''; + const expectedHeaderRequestParams = + 'project=®ion=&target_vpn_gateway='; const expectedOptions = { otherArgs: { headers: { @@ -388,7 +402,10 @@ describe('v1.TargetVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.GetTargetVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetVpnGateway = ''; + const expectedHeaderRequestParams = + 'project=®ion=&target_vpn_gateway='; const expectedOptions = { otherArgs: { headers: { @@ -434,7 +451,10 @@ describe('v1.TargetVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.GetTargetVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.targetVpnGateway = ''; + const expectedHeaderRequestParams = + 'project=®ion=&target_vpn_gateway='; const expectedOptions = { otherArgs: { headers: { @@ -462,6 +482,8 @@ describe('v1.TargetVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.GetTargetVpnGatewayRequest() ); request.project = ''; + request.region = ''; + request.targetVpnGateway = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -479,7 +501,8 @@ describe('v1.TargetVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.InsertTargetVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -510,7 +533,8 @@ describe('v1.TargetVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.InsertTargetVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -557,7 +581,8 @@ describe('v1.TargetVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.InsertTargetVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -585,6 +610,7 @@ describe('v1.TargetVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.InsertTargetVpnGatewayRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -696,7 +722,8 @@ describe('v1.TargetVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.ListTargetVpnGatewaysRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -735,7 +762,8 @@ describe('v1.TargetVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.ListTargetVpnGatewaysRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -789,7 +817,8 @@ describe('v1.TargetVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.ListTargetVpnGatewaysRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -817,7 +846,8 @@ describe('v1.TargetVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.ListTargetVpnGatewaysRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.TargetVpnGateway() @@ -871,7 +901,8 @@ describe('v1.TargetVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.ListTargetVpnGatewaysRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -916,7 +947,8 @@ describe('v1.TargetVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.ListTargetVpnGatewaysRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage( new protos.google.cloud.compute.v1.TargetVpnGateway() @@ -958,7 +990,8 @@ describe('v1.TargetVpnGatewaysClient', () => { new protos.google.cloud.compute.v1.ListTargetVpnGatewaysRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_url_maps_v1.ts b/test/gapic_url_maps_v1.ts index 53126c59..64b4038c 100644 --- a/test/gapic_url_maps_v1.ts +++ b/test/gapic_url_maps_v1.ts @@ -232,7 +232,8 @@ describe('v1.UrlMapsClient', () => { new protos.google.cloud.compute.v1.DeleteUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +264,8 @@ describe('v1.UrlMapsClient', () => { new protos.google.cloud.compute.v1.DeleteUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -310,7 +312,8 @@ describe('v1.UrlMapsClient', () => { new protos.google.cloud.compute.v1.DeleteUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -338,6 +341,7 @@ describe('v1.UrlMapsClient', () => { new protos.google.cloud.compute.v1.DeleteUrlMapRequest() ); request.project = ''; + request.urlMap = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -355,7 +359,8 @@ describe('v1.UrlMapsClient', () => { new protos.google.cloud.compute.v1.GetUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -386,7 +391,8 @@ describe('v1.UrlMapsClient', () => { new protos.google.cloud.compute.v1.GetUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -432,7 +438,8 @@ describe('v1.UrlMapsClient', () => { new protos.google.cloud.compute.v1.GetUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -460,6 +467,7 @@ describe('v1.UrlMapsClient', () => { new protos.google.cloud.compute.v1.GetUrlMapRequest() ); request.project = ''; + request.urlMap = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -600,7 +608,8 @@ describe('v1.UrlMapsClient', () => { new protos.google.cloud.compute.v1.InvalidateCacheUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -631,7 +640,8 @@ describe('v1.UrlMapsClient', () => { new protos.google.cloud.compute.v1.InvalidateCacheUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -678,7 +688,8 @@ describe('v1.UrlMapsClient', () => { new protos.google.cloud.compute.v1.InvalidateCacheUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -709,6 +720,7 @@ describe('v1.UrlMapsClient', () => { new protos.google.cloud.compute.v1.InvalidateCacheUrlMapRequest() ); request.project = ''; + request.urlMap = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.invalidateCache(request), expectedError); @@ -726,7 +738,8 @@ describe('v1.UrlMapsClient', () => { new protos.google.cloud.compute.v1.PatchUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -757,7 +770,8 @@ describe('v1.UrlMapsClient', () => { new protos.google.cloud.compute.v1.PatchUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -803,7 +817,8 @@ describe('v1.UrlMapsClient', () => { new protos.google.cloud.compute.v1.PatchUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -831,6 +846,7 @@ describe('v1.UrlMapsClient', () => { new protos.google.cloud.compute.v1.PatchUrlMapRequest() ); request.project = ''; + request.urlMap = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.patch(request), expectedError); @@ -848,7 +864,8 @@ describe('v1.UrlMapsClient', () => { new protos.google.cloud.compute.v1.UpdateUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -879,7 +896,8 @@ describe('v1.UrlMapsClient', () => { new protos.google.cloud.compute.v1.UpdateUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -926,7 +944,8 @@ describe('v1.UrlMapsClient', () => { new protos.google.cloud.compute.v1.UpdateUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -954,6 +973,7 @@ describe('v1.UrlMapsClient', () => { new protos.google.cloud.compute.v1.UpdateUrlMapRequest() ); request.project = ''; + request.urlMap = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.update(request), expectedError); @@ -971,7 +991,8 @@ describe('v1.UrlMapsClient', () => { new protos.google.cloud.compute.v1.ValidateUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -1002,7 +1023,8 @@ describe('v1.UrlMapsClient', () => { new protos.google.cloud.compute.v1.ValidateUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -1049,7 +1071,8 @@ describe('v1.UrlMapsClient', () => { new protos.google.cloud.compute.v1.ValidateUrlMapRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.urlMap = ''; + const expectedHeaderRequestParams = 'project=&url_map='; const expectedOptions = { otherArgs: { headers: { @@ -1077,6 +1100,7 @@ describe('v1.UrlMapsClient', () => { new protos.google.cloud.compute.v1.ValidateUrlMapRequest() ); request.project = ''; + request.urlMap = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.validate(request), expectedError); diff --git a/test/gapic_vpn_gateways_v1.ts b/test/gapic_vpn_gateways_v1.ts index 527673ab..9a70f28b 100644 --- a/test/gapic_vpn_gateways_v1.ts +++ b/test/gapic_vpn_gateways_v1.ts @@ -232,7 +232,9 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.DeleteVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.vpnGateway = ''; + const expectedHeaderRequestParams = 'project=®ion=&vpn_gateway='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +265,9 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.DeleteVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.vpnGateway = ''; + const expectedHeaderRequestParams = 'project=®ion=&vpn_gateway='; const expectedOptions = { otherArgs: { headers: { @@ -310,7 +314,9 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.DeleteVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.vpnGateway = ''; + const expectedHeaderRequestParams = 'project=®ion=&vpn_gateway='; const expectedOptions = { otherArgs: { headers: { @@ -338,6 +344,8 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.DeleteVpnGatewayRequest() ); request.project = ''; + request.region = ''; + request.vpnGateway = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -355,7 +363,9 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.GetVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.vpnGateway = ''; + const expectedHeaderRequestParams = 'project=®ion=&vpn_gateway='; const expectedOptions = { otherArgs: { headers: { @@ -386,7 +396,9 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.GetVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.vpnGateway = ''; + const expectedHeaderRequestParams = 'project=®ion=&vpn_gateway='; const expectedOptions = { otherArgs: { headers: { @@ -432,7 +444,9 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.GetVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.vpnGateway = ''; + const expectedHeaderRequestParams = 'project=®ion=&vpn_gateway='; const expectedOptions = { otherArgs: { headers: { @@ -460,6 +474,8 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.GetVpnGatewayRequest() ); request.project = ''; + request.region = ''; + request.vpnGateway = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -477,7 +493,9 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.GetStatusVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.vpnGateway = ''; + const expectedHeaderRequestParams = 'project=®ion=&vpn_gateway='; const expectedOptions = { otherArgs: { headers: { @@ -508,7 +526,9 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.GetStatusVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.vpnGateway = ''; + const expectedHeaderRequestParams = 'project=®ion=&vpn_gateway='; const expectedOptions = { otherArgs: { headers: { @@ -555,7 +575,9 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.GetStatusVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.vpnGateway = ''; + const expectedHeaderRequestParams = 'project=®ion=&vpn_gateway='; const expectedOptions = { otherArgs: { headers: { @@ -583,6 +605,8 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.GetStatusVpnGatewayRequest() ); request.project = ''; + request.region = ''; + request.vpnGateway = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getStatus(request), expectedError); @@ -600,7 +624,8 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.InsertVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -631,7 +656,8 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.InsertVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -678,7 +704,8 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.InsertVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -706,6 +733,7 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.InsertVpnGatewayRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -723,7 +751,9 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.SetLabelsVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -754,7 +784,9 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.SetLabelsVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -801,7 +833,9 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.SetLabelsVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -829,6 +863,8 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.SetLabelsVpnGatewayRequest() ); request.project = ''; + request.region = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.setLabels(request), expectedError); @@ -846,7 +882,9 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -878,7 +916,9 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -925,7 +965,9 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsVpnGatewayRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.resource = ''; + const expectedHeaderRequestParams = 'project=®ion=&resource='; const expectedOptions = { otherArgs: { headers: { @@ -956,6 +998,8 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.TestIamPermissionsVpnGatewayRequest() ); request.project = ''; + request.region = ''; + request.resource = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.testIamPermissions(request), expectedError); @@ -1067,7 +1111,8 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.ListVpnGatewaysRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1100,7 +1145,8 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.ListVpnGatewaysRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1148,7 +1194,8 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.ListVpnGatewaysRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -1176,7 +1223,8 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.ListVpnGatewaysRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.VpnGateway()), generateSampleMessage(new protos.google.cloud.compute.v1.VpnGateway()), @@ -1224,7 +1272,8 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.ListVpnGatewaysRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -1269,7 +1318,8 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.ListVpnGatewaysRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.VpnGateway()), generateSampleMessage(new protos.google.cloud.compute.v1.VpnGateway()), @@ -1305,7 +1355,8 @@ describe('v1.VpnGatewaysClient', () => { new protos.google.cloud.compute.v1.ListVpnGatewaysRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_vpn_tunnels_v1.ts b/test/gapic_vpn_tunnels_v1.ts index 2eb7cf5b..9508777a 100644 --- a/test/gapic_vpn_tunnels_v1.ts +++ b/test/gapic_vpn_tunnels_v1.ts @@ -232,7 +232,9 @@ describe('v1.VpnTunnelsClient', () => { new protos.google.cloud.compute.v1.DeleteVpnTunnelRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.vpnTunnel = ''; + const expectedHeaderRequestParams = 'project=®ion=&vpn_tunnel='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +265,9 @@ describe('v1.VpnTunnelsClient', () => { new protos.google.cloud.compute.v1.DeleteVpnTunnelRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.vpnTunnel = ''; + const expectedHeaderRequestParams = 'project=®ion=&vpn_tunnel='; const expectedOptions = { otherArgs: { headers: { @@ -310,7 +314,9 @@ describe('v1.VpnTunnelsClient', () => { new protos.google.cloud.compute.v1.DeleteVpnTunnelRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.vpnTunnel = ''; + const expectedHeaderRequestParams = 'project=®ion=&vpn_tunnel='; const expectedOptions = { otherArgs: { headers: { @@ -338,6 +344,8 @@ describe('v1.VpnTunnelsClient', () => { new protos.google.cloud.compute.v1.DeleteVpnTunnelRequest() ); request.project = ''; + request.region = ''; + request.vpnTunnel = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -355,7 +363,9 @@ describe('v1.VpnTunnelsClient', () => { new protos.google.cloud.compute.v1.GetVpnTunnelRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.vpnTunnel = ''; + const expectedHeaderRequestParams = 'project=®ion=&vpn_tunnel='; const expectedOptions = { otherArgs: { headers: { @@ -386,7 +396,9 @@ describe('v1.VpnTunnelsClient', () => { new protos.google.cloud.compute.v1.GetVpnTunnelRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.vpnTunnel = ''; + const expectedHeaderRequestParams = 'project=®ion=&vpn_tunnel='; const expectedOptions = { otherArgs: { headers: { @@ -432,7 +444,9 @@ describe('v1.VpnTunnelsClient', () => { new protos.google.cloud.compute.v1.GetVpnTunnelRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + request.vpnTunnel = ''; + const expectedHeaderRequestParams = 'project=®ion=&vpn_tunnel='; const expectedOptions = { otherArgs: { headers: { @@ -460,6 +474,8 @@ describe('v1.VpnTunnelsClient', () => { new protos.google.cloud.compute.v1.GetVpnTunnelRequest() ); request.project = ''; + request.region = ''; + request.vpnTunnel = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -477,7 +493,8 @@ describe('v1.VpnTunnelsClient', () => { new protos.google.cloud.compute.v1.InsertVpnTunnelRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -508,7 +525,8 @@ describe('v1.VpnTunnelsClient', () => { new protos.google.cloud.compute.v1.InsertVpnTunnelRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -555,7 +573,8 @@ describe('v1.VpnTunnelsClient', () => { new protos.google.cloud.compute.v1.InsertVpnTunnelRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -583,6 +602,7 @@ describe('v1.VpnTunnelsClient', () => { new protos.google.cloud.compute.v1.InsertVpnTunnelRequest() ); request.project = ''; + request.region = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.insert(request), expectedError); @@ -694,7 +714,8 @@ describe('v1.VpnTunnelsClient', () => { new protos.google.cloud.compute.v1.ListVpnTunnelsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -727,7 +748,8 @@ describe('v1.VpnTunnelsClient', () => { new protos.google.cloud.compute.v1.ListVpnTunnelsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -775,7 +797,8 @@ describe('v1.VpnTunnelsClient', () => { new protos.google.cloud.compute.v1.ListVpnTunnelsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedOptions = { otherArgs: { headers: { @@ -803,7 +826,8 @@ describe('v1.VpnTunnelsClient', () => { new protos.google.cloud.compute.v1.ListVpnTunnelsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.VpnTunnel()), generateSampleMessage(new protos.google.cloud.compute.v1.VpnTunnel()), @@ -851,7 +875,8 @@ describe('v1.VpnTunnelsClient', () => { new protos.google.cloud.compute.v1.ListVpnTunnelsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -896,7 +921,8 @@ describe('v1.VpnTunnelsClient', () => { new protos.google.cloud.compute.v1.ListVpnTunnelsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.VpnTunnel()), generateSampleMessage(new protos.google.cloud.compute.v1.VpnTunnel()), @@ -932,7 +958,8 @@ describe('v1.VpnTunnelsClient', () => { new protos.google.cloud.compute.v1.ListVpnTunnelsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.region = ''; + const expectedHeaderRequestParams = 'project=®ion='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_zone_operations_v1.ts b/test/gapic_zone_operations_v1.ts index f16131d7..aeaa441e 100644 --- a/test/gapic_zone_operations_v1.ts +++ b/test/gapic_zone_operations_v1.ts @@ -234,7 +234,9 @@ describe('v1.ZoneOperationsClient', () => { new protos.google.cloud.compute.v1.DeleteZoneOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.operation = ''; + const expectedHeaderRequestParams = 'project=&zone=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -265,7 +267,9 @@ describe('v1.ZoneOperationsClient', () => { new protos.google.cloud.compute.v1.DeleteZoneOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.operation = ''; + const expectedHeaderRequestParams = 'project=&zone=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -312,7 +316,9 @@ describe('v1.ZoneOperationsClient', () => { new protos.google.cloud.compute.v1.DeleteZoneOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.operation = ''; + const expectedHeaderRequestParams = 'project=&zone=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -340,6 +346,8 @@ describe('v1.ZoneOperationsClient', () => { new protos.google.cloud.compute.v1.DeleteZoneOperationRequest() ); request.project = ''; + request.zone = ''; + request.operation = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.delete(request), expectedError); @@ -357,7 +365,9 @@ describe('v1.ZoneOperationsClient', () => { new protos.google.cloud.compute.v1.GetZoneOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.operation = ''; + const expectedHeaderRequestParams = 'project=&zone=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -388,7 +398,9 @@ describe('v1.ZoneOperationsClient', () => { new protos.google.cloud.compute.v1.GetZoneOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.operation = ''; + const expectedHeaderRequestParams = 'project=&zone=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -434,7 +446,9 @@ describe('v1.ZoneOperationsClient', () => { new protos.google.cloud.compute.v1.GetZoneOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.operation = ''; + const expectedHeaderRequestParams = 'project=&zone=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -462,6 +476,8 @@ describe('v1.ZoneOperationsClient', () => { new protos.google.cloud.compute.v1.GetZoneOperationRequest() ); request.project = ''; + request.zone = ''; + request.operation = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError); @@ -479,7 +495,9 @@ describe('v1.ZoneOperationsClient', () => { new protos.google.cloud.compute.v1.WaitZoneOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.operation = ''; + const expectedHeaderRequestParams = 'project=&zone=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -510,7 +528,9 @@ describe('v1.ZoneOperationsClient', () => { new protos.google.cloud.compute.v1.WaitZoneOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.operation = ''; + const expectedHeaderRequestParams = 'project=&zone=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -556,7 +576,9 @@ describe('v1.ZoneOperationsClient', () => { new protos.google.cloud.compute.v1.WaitZoneOperationRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + request.operation = ''; + const expectedHeaderRequestParams = 'project=&zone=&operation='; const expectedOptions = { otherArgs: { headers: { @@ -584,6 +606,8 @@ describe('v1.ZoneOperationsClient', () => { new protos.google.cloud.compute.v1.WaitZoneOperationRequest() ); request.project = ''; + request.zone = ''; + request.operation = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.wait(request), expectedError); @@ -601,7 +625,8 @@ describe('v1.ZoneOperationsClient', () => { new protos.google.cloud.compute.v1.ListZoneOperationsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -634,7 +659,8 @@ describe('v1.ZoneOperationsClient', () => { new protos.google.cloud.compute.v1.ListZoneOperationsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -682,7 +708,8 @@ describe('v1.ZoneOperationsClient', () => { new protos.google.cloud.compute.v1.ListZoneOperationsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -710,7 +737,8 @@ describe('v1.ZoneOperationsClient', () => { new protos.google.cloud.compute.v1.ListZoneOperationsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.Operation()), generateSampleMessage(new protos.google.cloud.compute.v1.Operation()), @@ -758,7 +786,8 @@ describe('v1.ZoneOperationsClient', () => { new protos.google.cloud.compute.v1.ListZoneOperationsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.createStream = stubPageStreamingCall( undefined, @@ -803,7 +832,8 @@ describe('v1.ZoneOperationsClient', () => { new protos.google.cloud.compute.v1.ListZoneOperationsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedResponse = [ generateSampleMessage(new protos.google.cloud.compute.v1.Operation()), generateSampleMessage(new protos.google.cloud.compute.v1.Operation()), @@ -839,7 +869,8 @@ describe('v1.ZoneOperationsClient', () => { new protos.google.cloud.compute.v1.ListZoneOperationsRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedError = new Error('expected'); client.descriptors.page.list.asyncIterate = stubAsyncIterationCall( undefined, diff --git a/test/gapic_zones_v1.ts b/test/gapic_zones_v1.ts index 05e22465..0c53f21b 100644 --- a/test/gapic_zones_v1.ts +++ b/test/gapic_zones_v1.ts @@ -232,7 +232,8 @@ describe('v1.ZonesClient', () => { new protos.google.cloud.compute.v1.GetZoneRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -263,7 +264,8 @@ describe('v1.ZonesClient', () => { new protos.google.cloud.compute.v1.GetZoneRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -309,7 +311,8 @@ describe('v1.ZonesClient', () => { new protos.google.cloud.compute.v1.GetZoneRequest() ); request.project = ''; - const expectedHeaderRequestParams = 'project='; + request.zone = ''; + const expectedHeaderRequestParams = 'project=&zone='; const expectedOptions = { otherArgs: { headers: { @@ -337,6 +340,7 @@ describe('v1.ZonesClient', () => { new protos.google.cloud.compute.v1.GetZoneRequest() ); request.project = ''; + request.zone = ''; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.get(request), expectedError);