diff --git a/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto b/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto index 313c7874..487497c7 100644 --- a/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto +++ b/protos/google/cloud/aiplatform/v1beta1/batch_prediction_job.proto @@ -200,6 +200,15 @@ message BatchPredictionJob { // must be provided. BatchDedicatedResources dedicated_resources = 7; + // The service account that the DeployedModel's container runs as. If not + // specified, a system generated one will be used, which + // has minimal permissions and the custom container, if used, may not have + // enough permission to access other GCP resources. + // + // Users deploying the Model must have the `iam.serviceAccounts.actAs` + // permission on this service account. + string service_account = 29; + // Immutable. Parameters configuring the batch behavior. Currently only applicable when // [dedicated_resources][google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicated_resources] are used (in other cases Vertex AI does // the tuning itself). diff --git a/protos/protos.d.ts b/protos/protos.d.ts index fcc3a81b..774dd642 100644 --- a/protos/protos.d.ts +++ b/protos/protos.d.ts @@ -61819,6 +61819,9 @@ export namespace google { /** BatchPredictionJob dedicatedResources */ dedicatedResources?: (google.cloud.aiplatform.v1beta1.IBatchDedicatedResources|null); + /** BatchPredictionJob serviceAccount */ + serviceAccount?: (string|null); + /** BatchPredictionJob manualBatchTuningParameters */ manualBatchTuningParameters?: (google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters|null); @@ -61898,6 +61901,9 @@ export namespace google { /** BatchPredictionJob dedicatedResources. */ public dedicatedResources?: (google.cloud.aiplatform.v1beta1.IBatchDedicatedResources|null); + /** BatchPredictionJob serviceAccount. */ + public serviceAccount: string; + /** BatchPredictionJob manualBatchTuningParameters. */ public manualBatchTuningParameters?: (google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters|null); diff --git a/protos/protos.js b/protos/protos.js index 59b22ac5..45107507 100644 --- a/protos/protos.js +++ b/protos/protos.js @@ -147280,6 +147280,7 @@ * @property {google.protobuf.IValue|null} [modelParameters] BatchPredictionJob modelParameters * @property {google.cloud.aiplatform.v1beta1.BatchPredictionJob.IOutputConfig|null} [outputConfig] BatchPredictionJob outputConfig * @property {google.cloud.aiplatform.v1beta1.IBatchDedicatedResources|null} [dedicatedResources] BatchPredictionJob dedicatedResources + * @property {string|null} [serviceAccount] BatchPredictionJob serviceAccount * @property {google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters|null} [manualBatchTuningParameters] BatchPredictionJob manualBatchTuningParameters * @property {boolean|null} [generateExplanation] BatchPredictionJob generateExplanation * @property {google.cloud.aiplatform.v1beta1.IExplanationSpec|null} [explanationSpec] BatchPredictionJob explanationSpec @@ -147378,6 +147379,14 @@ */ BatchPredictionJob.prototype.dedicatedResources = null; + /** + * BatchPredictionJob serviceAccount. + * @member {string} serviceAccount + * @memberof google.cloud.aiplatform.v1beta1.BatchPredictionJob + * @instance + */ + BatchPredictionJob.prototype.serviceAccount = ""; + /** * BatchPredictionJob manualBatchTuningParameters. * @member {google.cloud.aiplatform.v1beta1.IManualBatchTuningParameters|null|undefined} manualBatchTuningParameters @@ -147570,6 +147579,8 @@ $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.encode(message.explanationSpec, writer.uint32(/* id 25, wireType 2 =*/202).fork()).ldelim(); if (message.unmanagedContainerModel != null && Object.hasOwnProperty.call(message, "unmanagedContainerModel")) $root.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.encode(message.unmanagedContainerModel, writer.uint32(/* id 28, wireType 2 =*/226).fork()).ldelim(); + if (message.serviceAccount != null && Object.hasOwnProperty.call(message, "serviceAccount")) + writer.uint32(/* id 29, wireType 2 =*/234).string(message.serviceAccount); return writer; }; @@ -147628,6 +147639,9 @@ case 7: message.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.BatchDedicatedResources.decode(reader, reader.uint32()); break; + case 29: + message.serviceAccount = reader.string(); + break; case 8: message.manualBatchTuningParameters = $root.google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters.decode(reader, reader.uint32()); break; @@ -147763,6 +147777,9 @@ if (error) return "dedicatedResources." + error; } + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + if (!$util.isString(message.serviceAccount)) + return "serviceAccount: string expected"; if (message.manualBatchTuningParameters != null && message.hasOwnProperty("manualBatchTuningParameters")) { var error = $root.google.cloud.aiplatform.v1beta1.ManualBatchTuningParameters.verify(message.manualBatchTuningParameters); if (error) @@ -147900,6 +147917,8 @@ throw TypeError(".google.cloud.aiplatform.v1beta1.BatchPredictionJob.dedicatedResources: object expected"); message.dedicatedResources = $root.google.cloud.aiplatform.v1beta1.BatchDedicatedResources.fromObject(object.dedicatedResources); } + if (object.serviceAccount != null) + message.serviceAccount = String(object.serviceAccount); if (object.manualBatchTuningParameters != null) { if (typeof object.manualBatchTuningParameters !== "object") throw TypeError(".google.cloud.aiplatform.v1beta1.BatchPredictionJob.manualBatchTuningParameters: object expected"); @@ -148058,6 +148077,7 @@ object.encryptionSpec = null; object.explanationSpec = null; object.unmanagedContainerModel = null; + object.serviceAccount = ""; } if (message.name != null && message.hasOwnProperty("name")) object.name = message.name; @@ -148112,6 +148132,8 @@ object.explanationSpec = $root.google.cloud.aiplatform.v1beta1.ExplanationSpec.toObject(message.explanationSpec, options); if (message.unmanagedContainerModel != null && message.hasOwnProperty("unmanagedContainerModel")) object.unmanagedContainerModel = $root.google.cloud.aiplatform.v1beta1.UnmanagedContainerModel.toObject(message.unmanagedContainerModel, options); + if (message.serviceAccount != null && message.hasOwnProperty("serviceAccount")) + object.serviceAccount = message.serviceAccount; return object; }; diff --git a/protos/protos.json b/protos/protos.json index 91d60493..7d4c18de 100644 --- a/protos/protos.json +++ b/protos/protos.json @@ -16777,6 +16777,10 @@ "type": "BatchDedicatedResources", "id": 7 }, + "serviceAccount": { + "type": "string", + "id": 29 + }, "manualBatchTuningParameters": { "type": "ManualBatchTuningParameters", "id": 8, diff --git a/test/gapic_dataset_service_v1.ts b/test/gapic_dataset_service_v1.ts index a1447b2f..16aa53eb 100644 --- a/test/gapic_dataset_service_v1.ts +++ b/test/gapic_dataset_service_v1.ts @@ -362,7 +362,6 @@ describe('v1.DatasetServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetDatasetRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getDataset(request), expectedError); @@ -493,7 +492,6 @@ describe('v1.DatasetServiceClient', () => { ); request.dataset = {}; request.dataset.name = ''; - const expectedHeaderRequestParams = 'dataset.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateDataset(request), expectedError); @@ -620,7 +618,6 @@ describe('v1.DatasetServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetAnnotationSpecRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getAnnotationSpec(request), expectedError); diff --git a/test/gapic_dataset_service_v1beta1.ts b/test/gapic_dataset_service_v1beta1.ts index c52ffd15..22176f61 100644 --- a/test/gapic_dataset_service_v1beta1.ts +++ b/test/gapic_dataset_service_v1beta1.ts @@ -362,7 +362,6 @@ describe('v1beta1.DatasetServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetDatasetRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getDataset(request), expectedError); @@ -493,7 +492,6 @@ describe('v1beta1.DatasetServiceClient', () => { ); request.dataset = {}; request.dataset.name = ''; - const expectedHeaderRequestParams = 'dataset.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateDataset(request), expectedError); @@ -620,7 +618,6 @@ describe('v1beta1.DatasetServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetAnnotationSpecRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getAnnotationSpec(request), expectedError); diff --git a/test/gapic_endpoint_service_v1.ts b/test/gapic_endpoint_service_v1.ts index 390f4689..3e7b5671 100644 --- a/test/gapic_endpoint_service_v1.ts +++ b/test/gapic_endpoint_service_v1.ts @@ -362,7 +362,6 @@ describe('v1.EndpointServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetEndpointRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getEndpoint(request), expectedError); @@ -493,7 +492,6 @@ describe('v1.EndpointServiceClient', () => { ); request.endpoint = {}; request.endpoint.name = ''; - const expectedHeaderRequestParams = 'endpoint.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateEndpoint(request), expectedError); diff --git a/test/gapic_endpoint_service_v1beta1.ts b/test/gapic_endpoint_service_v1beta1.ts index 38eabe07..29ed2a5d 100644 --- a/test/gapic_endpoint_service_v1beta1.ts +++ b/test/gapic_endpoint_service_v1beta1.ts @@ -362,7 +362,6 @@ describe('v1beta1.EndpointServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetEndpointRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getEndpoint(request), expectedError); @@ -493,7 +492,6 @@ describe('v1beta1.EndpointServiceClient', () => { ); request.endpoint = {}; request.endpoint.name = ''; - const expectedHeaderRequestParams = 'endpoint.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateEndpoint(request), expectedError); diff --git a/test/gapic_featurestore_online_serving_service_v1.ts b/test/gapic_featurestore_online_serving_service_v1.ts index e843beae..62141ec9 100644 --- a/test/gapic_featurestore_online_serving_service_v1.ts +++ b/test/gapic_featurestore_online_serving_service_v1.ts @@ -325,7 +325,6 @@ describe('v1.FeaturestoreOnlineServingServiceClient', () => { new protos.google.cloud.aiplatform.v1.ReadFeatureValuesRequest() ); request.entityType = ''; - const expectedHeaderRequestParams = 'entity_type='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.readFeatureValues(request), expectedError); @@ -442,6 +441,7 @@ describe('v1.FeaturestoreOnlineServingServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.StreamingReadFeatureValuesRequest() ); + request.entityType = ''; const expectedError = new Error('The client has already been closed.'); client.close(); const stream = client.streamingReadFeatureValues(request); diff --git a/test/gapic_featurestore_online_serving_service_v1beta1.ts b/test/gapic_featurestore_online_serving_service_v1beta1.ts index aa02fb50..c6ea0660 100644 --- a/test/gapic_featurestore_online_serving_service_v1beta1.ts +++ b/test/gapic_featurestore_online_serving_service_v1beta1.ts @@ -325,7 +325,6 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ReadFeatureValuesRequest() ); request.entityType = ''; - const expectedHeaderRequestParams = 'entity_type='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.readFeatureValues(request), expectedError); @@ -442,6 +441,7 @@ describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.StreamingReadFeatureValuesRequest() ); + request.entityType = ''; const expectedError = new Error('The client has already been closed.'); client.close(); const stream = client.streamingReadFeatureValues(request); diff --git a/test/gapic_featurestore_service_v1.ts b/test/gapic_featurestore_service_v1.ts index d5259398..d009a50d 100644 --- a/test/gapic_featurestore_service_v1.ts +++ b/test/gapic_featurestore_service_v1.ts @@ -370,7 +370,6 @@ describe('v1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetFeaturestoreRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getFeaturestore(request), expectedError); @@ -505,7 +504,6 @@ describe('v1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetEntityTypeRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getEntityType(request), expectedError); @@ -644,7 +642,6 @@ describe('v1.FeaturestoreServiceClient', () => { ); request.entityType = {}; request.entityType.name = ''; - const expectedHeaderRequestParams = 'entity_type.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateEntityType(request), expectedError); @@ -779,7 +776,6 @@ describe('v1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetFeatureRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getFeature(request), expectedError); @@ -918,7 +914,6 @@ describe('v1.FeaturestoreServiceClient', () => { ); request.feature = {}; request.feature.name = ''; - const expectedHeaderRequestParams = 'feature.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateFeature(request), expectedError); diff --git a/test/gapic_featurestore_service_v1beta1.ts b/test/gapic_featurestore_service_v1beta1.ts index 0683f330..c7a271f2 100644 --- a/test/gapic_featurestore_service_v1beta1.ts +++ b/test/gapic_featurestore_service_v1beta1.ts @@ -374,7 +374,6 @@ describe('v1beta1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetFeaturestoreRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getFeaturestore(request), expectedError); @@ -505,7 +504,6 @@ describe('v1beta1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetEntityTypeRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getEntityType(request), expectedError); @@ -640,7 +638,6 @@ describe('v1beta1.FeaturestoreServiceClient', () => { ); request.entityType = {}; request.entityType.name = ''; - const expectedHeaderRequestParams = 'entity_type.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateEntityType(request), expectedError); @@ -771,7 +768,6 @@ describe('v1beta1.FeaturestoreServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetFeatureRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getFeature(request), expectedError); @@ -906,7 +902,6 @@ describe('v1beta1.FeaturestoreServiceClient', () => { ); request.feature = {}; request.feature.name = ''; - const expectedHeaderRequestParams = 'feature.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateFeature(request), expectedError); diff --git a/test/gapic_index_endpoint_service_v1.ts b/test/gapic_index_endpoint_service_v1.ts index af1e52b3..9cced472 100644 --- a/test/gapic_index_endpoint_service_v1.ts +++ b/test/gapic_index_endpoint_service_v1.ts @@ -379,7 +379,6 @@ describe('v1.IndexEndpointServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetIndexEndpointRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getIndexEndpoint(request), expectedError); @@ -515,7 +514,6 @@ describe('v1.IndexEndpointServiceClient', () => { ); request.indexEndpoint = {}; request.indexEndpoint.name = ''; - const expectedHeaderRequestParams = 'index_endpoint.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateIndexEndpoint(request), expectedError); diff --git a/test/gapic_index_endpoint_service_v1beta1.ts b/test/gapic_index_endpoint_service_v1beta1.ts index 3e257063..6654d8ee 100644 --- a/test/gapic_index_endpoint_service_v1beta1.ts +++ b/test/gapic_index_endpoint_service_v1beta1.ts @@ -374,7 +374,6 @@ describe('v1beta1.IndexEndpointServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetIndexEndpointRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getIndexEndpoint(request), expectedError); @@ -510,7 +509,6 @@ describe('v1beta1.IndexEndpointServiceClient', () => { ); request.indexEndpoint = {}; request.indexEndpoint.name = ''; - const expectedHeaderRequestParams = 'index_endpoint.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateIndexEndpoint(request), expectedError); diff --git a/test/gapic_index_service_v1.ts b/test/gapic_index_service_v1.ts index 89cdb97f..010d32e3 100644 --- a/test/gapic_index_service_v1.ts +++ b/test/gapic_index_service_v1.ts @@ -357,7 +357,6 @@ describe('v1.IndexServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetIndexRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getIndex(request), expectedError); diff --git a/test/gapic_index_service_v1beta1.ts b/test/gapic_index_service_v1beta1.ts index b6399ec7..d46beec7 100644 --- a/test/gapic_index_service_v1beta1.ts +++ b/test/gapic_index_service_v1beta1.ts @@ -359,7 +359,6 @@ describe('v1beta1.IndexServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetIndexRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getIndex(request), expectedError); diff --git a/test/gapic_job_service_v1.ts b/test/gapic_job_service_v1.ts index 339a4f04..751d81a4 100644 --- a/test/gapic_job_service_v1.ts +++ b/test/gapic_job_service_v1.ts @@ -360,7 +360,6 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateCustomJobRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createCustomJob(request), expectedError); @@ -487,7 +486,6 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetCustomJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getCustomJob(request), expectedError); @@ -614,7 +612,6 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CancelCustomJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.cancelCustomJob(request), expectedError); @@ -745,7 +742,6 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateDataLabelingJobRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -876,7 +872,6 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetDataLabelingJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getDataLabelingJob(request), expectedError); @@ -1007,7 +1002,6 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CancelDataLabelingJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1141,7 +1135,6 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateHyperparameterTuningJobRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1275,7 +1268,6 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetHyperparameterTuningJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1409,7 +1401,6 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CancelHyperparameterTuningJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1543,7 +1534,6 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateBatchPredictionJobRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1677,7 +1667,6 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetBatchPredictionJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1811,7 +1800,6 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CancelBatchPredictionJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1947,7 +1935,6 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateModelDeploymentMonitoringJobRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2081,7 +2068,6 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetModelDeploymentMonitoringJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2217,7 +2203,6 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.PauseModelDeploymentMonitoringJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2353,7 +2338,6 @@ describe('v1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1.ResumeModelDeploymentMonitoringJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( diff --git a/test/gapic_job_service_v1beta1.ts b/test/gapic_job_service_v1beta1.ts index 92b569ba..707e8c4a 100644 --- a/test/gapic_job_service_v1beta1.ts +++ b/test/gapic_job_service_v1beta1.ts @@ -360,7 +360,6 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateCustomJobRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createCustomJob(request), expectedError); @@ -487,7 +486,6 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetCustomJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getCustomJob(request), expectedError); @@ -614,7 +612,6 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CancelCustomJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.cancelCustomJob(request), expectedError); @@ -745,7 +742,6 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateDataLabelingJobRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -876,7 +872,6 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetDataLabelingJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getDataLabelingJob(request), expectedError); @@ -1007,7 +1002,6 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CancelDataLabelingJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1141,7 +1135,6 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateHyperparameterTuningJobRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1275,7 +1268,6 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetHyperparameterTuningJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1409,7 +1401,6 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CancelHyperparameterTuningJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1543,7 +1534,6 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateBatchPredictionJobRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1677,7 +1667,6 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetBatchPredictionJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1811,7 +1800,6 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CancelBatchPredictionJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1947,7 +1935,6 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateModelDeploymentMonitoringJobRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2081,7 +2068,6 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetModelDeploymentMonitoringJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2217,7 +2203,6 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.PauseModelDeploymentMonitoringJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2353,7 +2338,6 @@ describe('v1beta1.JobServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ResumeModelDeploymentMonitoringJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( diff --git a/test/gapic_metadata_service_v1.ts b/test/gapic_metadata_service_v1.ts index a6c255d9..3a2475aa 100644 --- a/test/gapic_metadata_service_v1.ts +++ b/test/gapic_metadata_service_v1.ts @@ -362,7 +362,6 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetMetadataStoreRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getMetadataStore(request), expectedError); @@ -489,7 +488,6 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateArtifactRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createArtifact(request), expectedError); @@ -616,7 +614,6 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetArtifactRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getArtifact(request), expectedError); @@ -747,7 +744,6 @@ describe('v1.MetadataServiceClient', () => { ); request.artifact = {}; request.artifact.name = ''; - const expectedHeaderRequestParams = 'artifact.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateArtifact(request), expectedError); @@ -874,7 +870,6 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateContextRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createContext(request), expectedError); @@ -1001,7 +996,6 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetContextRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getContext(request), expectedError); @@ -1132,7 +1126,6 @@ describe('v1.MetadataServiceClient', () => { ); request.context = {}; request.context.name = ''; - const expectedHeaderRequestParams = 'context.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateContext(request), expectedError); @@ -1263,7 +1256,6 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.AddContextArtifactsAndExecutionsRequest() ); request.context = ''; - const expectedHeaderRequestParams = 'context='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1394,7 +1386,6 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.AddContextChildrenRequest() ); request.context = ''; - const expectedHeaderRequestParams = 'context='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.addContextChildren(request), expectedError); @@ -1525,7 +1516,6 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.QueryContextLineageSubgraphRequest() ); request.context = ''; - const expectedHeaderRequestParams = 'context='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1655,7 +1645,6 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateExecutionRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createExecution(request), expectedError); @@ -1782,7 +1771,6 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetExecutionRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getExecution(request), expectedError); @@ -1913,7 +1901,6 @@ describe('v1.MetadataServiceClient', () => { ); request.execution = {}; request.execution.name = ''; - const expectedHeaderRequestParams = 'execution.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateExecution(request), expectedError); @@ -2041,7 +2028,6 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.AddExecutionEventsRequest() ); request.execution = ''; - const expectedHeaderRequestParams = 'execution='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.addExecutionEvents(request), expectedError); @@ -2172,7 +2158,6 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.QueryExecutionInputsAndOutputsRequest() ); request.execution = ''; - const expectedHeaderRequestParams = 'execution='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2303,7 +2288,6 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateMetadataSchemaRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createMetadataSchema(request), expectedError); @@ -2430,7 +2414,6 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetMetadataSchemaRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getMetadataSchema(request), expectedError); @@ -2561,7 +2544,6 @@ describe('v1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1.QueryArtifactLineageSubgraphRequest() ); request.artifact = ''; - const expectedHeaderRequestParams = 'artifact='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( diff --git a/test/gapic_metadata_service_v1beta1.ts b/test/gapic_metadata_service_v1beta1.ts index 353a1813..9f38568b 100644 --- a/test/gapic_metadata_service_v1beta1.ts +++ b/test/gapic_metadata_service_v1beta1.ts @@ -362,7 +362,6 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetMetadataStoreRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getMetadataStore(request), expectedError); @@ -489,7 +488,6 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateArtifactRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createArtifact(request), expectedError); @@ -616,7 +614,6 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetArtifactRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getArtifact(request), expectedError); @@ -747,7 +744,6 @@ describe('v1beta1.MetadataServiceClient', () => { ); request.artifact = {}; request.artifact.name = ''; - const expectedHeaderRequestParams = 'artifact.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateArtifact(request), expectedError); @@ -874,7 +870,6 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateContextRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createContext(request), expectedError); @@ -1001,7 +996,6 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetContextRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getContext(request), expectedError); @@ -1132,7 +1126,6 @@ describe('v1beta1.MetadataServiceClient', () => { ); request.context = {}; request.context.name = ''; - const expectedHeaderRequestParams = 'context.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateContext(request), expectedError); @@ -1263,7 +1256,6 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.AddContextArtifactsAndExecutionsRequest() ); request.context = ''; - const expectedHeaderRequestParams = 'context='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1394,7 +1386,6 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.AddContextChildrenRequest() ); request.context = ''; - const expectedHeaderRequestParams = 'context='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.addContextChildren(request), expectedError); @@ -1525,7 +1516,6 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.QueryContextLineageSubgraphRequest() ); request.context = ''; - const expectedHeaderRequestParams = 'context='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1655,7 +1645,6 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateExecutionRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createExecution(request), expectedError); @@ -1782,7 +1771,6 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetExecutionRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getExecution(request), expectedError); @@ -1913,7 +1901,6 @@ describe('v1beta1.MetadataServiceClient', () => { ); request.execution = {}; request.execution.name = ''; - const expectedHeaderRequestParams = 'execution.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateExecution(request), expectedError); @@ -2041,7 +2028,6 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.AddExecutionEventsRequest() ); request.execution = ''; - const expectedHeaderRequestParams = 'execution='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.addExecutionEvents(request), expectedError); @@ -2172,7 +2158,6 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.QueryExecutionInputsAndOutputsRequest() ); request.execution = ''; - const expectedHeaderRequestParams = 'execution='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2303,7 +2288,6 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateMetadataSchemaRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createMetadataSchema(request), expectedError); @@ -2430,7 +2414,6 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetMetadataSchemaRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getMetadataSchema(request), expectedError); @@ -2561,7 +2544,6 @@ describe('v1beta1.MetadataServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.QueryArtifactLineageSubgraphRequest() ); request.artifact = ''; - const expectedHeaderRequestParams = 'artifact='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( diff --git a/test/gapic_model_service_v1.ts b/test/gapic_model_service_v1.ts index 04beed89..451ae34d 100644 --- a/test/gapic_model_service_v1.ts +++ b/test/gapic_model_service_v1.ts @@ -357,7 +357,6 @@ describe('v1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetModelRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getModel(request), expectedError); @@ -488,7 +487,6 @@ describe('v1.ModelServiceClient', () => { ); request.model = {}; request.model.name = ''; - const expectedHeaderRequestParams = 'model.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateModel(request), expectedError); @@ -616,7 +614,6 @@ describe('v1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetModelEvaluationRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getModelEvaluation(request), expectedError); @@ -747,7 +744,6 @@ describe('v1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetModelEvaluationSliceRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( diff --git a/test/gapic_model_service_v1beta1.ts b/test/gapic_model_service_v1beta1.ts index 8fad2523..93f9bca3 100644 --- a/test/gapic_model_service_v1beta1.ts +++ b/test/gapic_model_service_v1beta1.ts @@ -359,7 +359,6 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetModelRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getModel(request), expectedError); @@ -490,7 +489,6 @@ describe('v1beta1.ModelServiceClient', () => { ); request.model = {}; request.model.name = ''; - const expectedHeaderRequestParams = 'model.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateModel(request), expectedError); @@ -618,7 +616,6 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetModelEvaluationRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getModelEvaluation(request), expectedError); @@ -749,7 +746,6 @@ describe('v1beta1.ModelServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetModelEvaluationSliceRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( diff --git a/test/gapic_pipeline_service_v1.ts b/test/gapic_pipeline_service_v1.ts index 2d851cd9..9ca17ef8 100644 --- a/test/gapic_pipeline_service_v1.ts +++ b/test/gapic_pipeline_service_v1.ts @@ -366,7 +366,6 @@ describe('v1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateTrainingPipelineRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -497,7 +496,6 @@ describe('v1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetTrainingPipelineRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getTrainingPipeline(request), expectedError); @@ -628,7 +626,6 @@ describe('v1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1.CancelTrainingPipelineRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -758,7 +755,6 @@ describe('v1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreatePipelineJobRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createPipelineJob(request), expectedError); @@ -885,7 +881,6 @@ describe('v1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetPipelineJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getPipelineJob(request), expectedError); @@ -1012,7 +1007,6 @@ describe('v1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1.CancelPipelineJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.cancelPipelineJob(request), expectedError); diff --git a/test/gapic_pipeline_service_v1beta1.ts b/test/gapic_pipeline_service_v1beta1.ts index 6b78ffca..2a81bec6 100644 --- a/test/gapic_pipeline_service_v1beta1.ts +++ b/test/gapic_pipeline_service_v1beta1.ts @@ -366,7 +366,6 @@ describe('v1beta1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateTrainingPipelineRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -497,7 +496,6 @@ describe('v1beta1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetTrainingPipelineRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getTrainingPipeline(request), expectedError); @@ -628,7 +626,6 @@ describe('v1beta1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CancelTrainingPipelineRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -758,7 +755,6 @@ describe('v1beta1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreatePipelineJobRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createPipelineJob(request), expectedError); @@ -885,7 +881,6 @@ describe('v1beta1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetPipelineJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getPipelineJob(request), expectedError); @@ -1012,7 +1007,6 @@ describe('v1beta1.PipelineServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CancelPipelineJobRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.cancelPipelineJob(request), expectedError); diff --git a/test/gapic_prediction_service_v1.ts b/test/gapic_prediction_service_v1.ts index ca7b5254..c91f3d04 100644 --- a/test/gapic_prediction_service_v1.ts +++ b/test/gapic_prediction_service_v1.ts @@ -264,7 +264,6 @@ describe('v1.PredictionServiceClient', () => { new protos.google.cloud.aiplatform.v1.PredictRequest() ); request.endpoint = ''; - const expectedHeaderRequestParams = 'endpoint='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.predict(request), expectedError); @@ -388,7 +387,6 @@ describe('v1.PredictionServiceClient', () => { new protos.google.cloud.aiplatform.v1.RawPredictRequest() ); request.endpoint = ''; - const expectedHeaderRequestParams = 'endpoint='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.rawPredict(request), expectedError); @@ -512,7 +510,6 @@ describe('v1.PredictionServiceClient', () => { new protos.google.cloud.aiplatform.v1.ExplainRequest() ); request.endpoint = ''; - const expectedHeaderRequestParams = 'endpoint='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.explain(request), expectedError); diff --git a/test/gapic_prediction_service_v1beta1.ts b/test/gapic_prediction_service_v1beta1.ts index 2bb79f7a..dc034a44 100644 --- a/test/gapic_prediction_service_v1beta1.ts +++ b/test/gapic_prediction_service_v1beta1.ts @@ -269,7 +269,6 @@ describe('v1beta1.PredictionServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.PredictRequest() ); request.endpoint = ''; - const expectedHeaderRequestParams = 'endpoint='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.predict(request), expectedError); @@ -397,7 +396,6 @@ describe('v1beta1.PredictionServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.RawPredictRequest() ); request.endpoint = ''; - const expectedHeaderRequestParams = 'endpoint='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.rawPredict(request), expectedError); @@ -525,7 +523,6 @@ describe('v1beta1.PredictionServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ExplainRequest() ); request.endpoint = ''; - const expectedHeaderRequestParams = 'endpoint='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.explain(request), expectedError); diff --git a/test/gapic_specialist_pool_service_v1.ts b/test/gapic_specialist_pool_service_v1.ts index 4bef0639..f836bc08 100644 --- a/test/gapic_specialist_pool_service_v1.ts +++ b/test/gapic_specialist_pool_service_v1.ts @@ -374,7 +374,6 @@ describe('v1.SpecialistPoolServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetSpecialistPoolRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getSpecialistPool(request), expectedError); diff --git a/test/gapic_specialist_pool_service_v1beta1.ts b/test/gapic_specialist_pool_service_v1beta1.ts index be9eac29..2f3996c0 100644 --- a/test/gapic_specialist_pool_service_v1beta1.ts +++ b/test/gapic_specialist_pool_service_v1beta1.ts @@ -376,7 +376,6 @@ describe('v1beta1.SpecialistPoolServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetSpecialistPoolRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getSpecialistPool(request), expectedError); diff --git a/test/gapic_tensorboard_service_v1.ts b/test/gapic_tensorboard_service_v1.ts index efd40162..b432dce1 100644 --- a/test/gapic_tensorboard_service_v1.ts +++ b/test/gapic_tensorboard_service_v1.ts @@ -383,7 +383,6 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetTensorboardRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getTensorboard(request), expectedError); @@ -514,7 +513,6 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateTensorboardExperimentRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -648,7 +646,6 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetTensorboardExperimentRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -786,7 +783,6 @@ describe('v1.TensorboardServiceClient', () => { ); request.tensorboardExperiment = {}; request.tensorboardExperiment.name = ''; - const expectedHeaderRequestParams = 'tensorboard_experiment.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -917,7 +913,6 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateTensorboardRunRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createTensorboardRun(request), expectedError); @@ -1048,7 +1043,6 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchCreateTensorboardRunsRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1178,7 +1172,6 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetTensorboardRunRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getTensorboardRun(request), expectedError); @@ -1310,7 +1303,6 @@ describe('v1.TensorboardServiceClient', () => { ); request.tensorboardRun = {}; request.tensorboardRun.name = ''; - const expectedHeaderRequestParams = 'tensorboard_run.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateTensorboardRun(request), expectedError); @@ -1441,7 +1433,6 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchCreateTensorboardTimeSeriesRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1575,7 +1566,6 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateTensorboardTimeSeriesRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1709,7 +1699,6 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetTensorboardTimeSeriesRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1847,7 +1836,6 @@ describe('v1.TensorboardServiceClient', () => { ); request.tensorboardTimeSeries = {}; request.tensorboardTimeSeries.name = ''; - const expectedHeaderRequestParams = 'tensorboard_time_series.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1983,7 +1971,6 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.BatchReadTensorboardTimeSeriesDataRequest() ); request.tensorboard = ''; - const expectedHeaderRequestParams = 'tensorboard='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2117,7 +2104,6 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.ReadTensorboardTimeSeriesDataRequest() ); request.tensorboardTimeSeries = ''; - const expectedHeaderRequestParams = 'tensorboard_time_series='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2251,7 +2237,6 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.WriteTensorboardExperimentDataRequest() ); request.tensorboardExperiment = ''; - const expectedHeaderRequestParams = 'tensorboard_experiment='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2385,7 +2370,6 @@ describe('v1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1.WriteTensorboardRunDataRequest() ); request.tensorboardRun = ''; - const expectedHeaderRequestParams = 'tensorboard_run='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -3672,6 +3656,7 @@ describe('v1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1.ReadTensorboardBlobDataRequest() ); + request.timeSeries = ''; const expectedError = new Error('The client has already been closed.'); client.close(); const stream = client.readTensorboardBlobData(request); diff --git a/test/gapic_tensorboard_service_v1beta1.ts b/test/gapic_tensorboard_service_v1beta1.ts index 91839b5b..90317033 100644 --- a/test/gapic_tensorboard_service_v1beta1.ts +++ b/test/gapic_tensorboard_service_v1beta1.ts @@ -394,7 +394,6 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetTensorboardRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getTensorboard(request), expectedError); @@ -529,7 +528,6 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateTensorboardExperimentRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -667,7 +665,6 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetTensorboardExperimentRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -809,7 +806,6 @@ describe('v1beta1.TensorboardServiceClient', () => { ); request.tensorboardExperiment = {}; request.tensorboardExperiment.name = ''; - const expectedHeaderRequestParams = 'tensorboard_experiment.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -944,7 +940,6 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateTensorboardRunRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createTensorboardRun(request), expectedError); @@ -1079,7 +1074,6 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardRunsRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1213,7 +1207,6 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetTensorboardRunRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getTensorboardRun(request), expectedError); @@ -1349,7 +1342,6 @@ describe('v1beta1.TensorboardServiceClient', () => { ); request.tensorboardRun = {}; request.tensorboardRun.name = ''; - const expectedHeaderRequestParams = 'tensorboard_run.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.updateTensorboardRun(request), expectedError); @@ -1484,7 +1476,6 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchCreateTensorboardTimeSeriesRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1622,7 +1613,6 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateTensorboardTimeSeriesRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1760,7 +1750,6 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetTensorboardTimeSeriesRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -1902,7 +1891,6 @@ describe('v1beta1.TensorboardServiceClient', () => { ); request.tensorboardTimeSeries = {}; request.tensorboardTimeSeries.name = ''; - const expectedHeaderRequestParams = 'tensorboard_time_series.name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2042,7 +2030,6 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.BatchReadTensorboardTimeSeriesDataRequest() ); request.tensorboard = ''; - const expectedHeaderRequestParams = 'tensorboard='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2180,7 +2167,6 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ReadTensorboardTimeSeriesDataRequest() ); request.tensorboardTimeSeries = ''; - const expectedHeaderRequestParams = 'tensorboard_time_series='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2318,7 +2304,6 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.WriteTensorboardExperimentDataRequest() ); request.tensorboardExperiment = ''; - const expectedHeaderRequestParams = 'tensorboard_experiment='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -2456,7 +2441,6 @@ describe('v1beta1.TensorboardServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.WriteTensorboardRunDataRequest() ); request.tensorboardRun = ''; - const expectedHeaderRequestParams = 'tensorboard_run='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects( @@ -3782,6 +3766,7 @@ describe('v1beta1.TensorboardServiceClient', () => { const request = generateSampleMessage( new protos.google.cloud.aiplatform.v1beta1.ReadTensorboardBlobDataRequest() ); + request.timeSeries = ''; const expectedError = new Error('The client has already been closed.'); client.close(); const stream = client.readTensorboardBlobData(request); diff --git a/test/gapic_vizier_service_v1.ts b/test/gapic_vizier_service_v1.ts index cfc31acd..f023d74f 100644 --- a/test/gapic_vizier_service_v1.ts +++ b/test/gapic_vizier_service_v1.ts @@ -360,7 +360,6 @@ describe('v1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateStudyRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createStudy(request), expectedError); @@ -484,7 +483,6 @@ describe('v1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetStudyRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getStudy(request), expectedError); @@ -611,7 +609,6 @@ describe('v1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteStudyRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteStudy(request), expectedError); @@ -738,7 +735,6 @@ describe('v1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1.LookupStudyRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.lookupStudy(request), expectedError); @@ -865,7 +861,6 @@ describe('v1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1.CreateTrialRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createTrial(request), expectedError); @@ -989,7 +984,6 @@ describe('v1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1.GetTrialRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getTrial(request), expectedError); @@ -1117,7 +1111,6 @@ describe('v1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1.AddTrialMeasurementRequest() ); request.trialName = ''; - const expectedHeaderRequestParams = 'trial_name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.addTrialMeasurement(request), expectedError); @@ -1244,7 +1237,6 @@ describe('v1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1.CompleteTrialRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.completeTrial(request), expectedError); @@ -1371,7 +1363,6 @@ describe('v1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1.DeleteTrialRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteTrial(request), expectedError); @@ -1495,7 +1486,6 @@ describe('v1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1.StopTrialRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.stopTrial(request), expectedError); @@ -1622,7 +1612,6 @@ describe('v1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1.ListOptimalTrialsRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.listOptimalTrials(request), expectedError); diff --git a/test/gapic_vizier_service_v1beta1.ts b/test/gapic_vizier_service_v1beta1.ts index 9f166e15..8db8bdc5 100644 --- a/test/gapic_vizier_service_v1beta1.ts +++ b/test/gapic_vizier_service_v1beta1.ts @@ -362,7 +362,6 @@ describe('v1beta1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateStudyRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createStudy(request), expectedError); @@ -486,7 +485,6 @@ describe('v1beta1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetStudyRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getStudy(request), expectedError); @@ -613,7 +611,6 @@ describe('v1beta1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteStudyRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteStudy(request), expectedError); @@ -740,7 +737,6 @@ describe('v1beta1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.LookupStudyRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.lookupStudy(request), expectedError); @@ -867,7 +863,6 @@ describe('v1beta1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CreateTrialRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.createTrial(request), expectedError); @@ -991,7 +986,6 @@ describe('v1beta1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.GetTrialRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.getTrial(request), expectedError); @@ -1119,7 +1113,6 @@ describe('v1beta1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.AddTrialMeasurementRequest() ); request.trialName = ''; - const expectedHeaderRequestParams = 'trial_name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.addTrialMeasurement(request), expectedError); @@ -1246,7 +1239,6 @@ describe('v1beta1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.CompleteTrialRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.completeTrial(request), expectedError); @@ -1373,7 +1365,6 @@ describe('v1beta1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.DeleteTrialRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.deleteTrial(request), expectedError); @@ -1497,7 +1488,6 @@ describe('v1beta1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.StopTrialRequest() ); request.name = ''; - const expectedHeaderRequestParams = 'name='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.stopTrial(request), expectedError); @@ -1624,7 +1614,6 @@ describe('v1beta1.VizierServiceClient', () => { new protos.google.cloud.aiplatform.v1beta1.ListOptimalTrialsRequest() ); request.parent = ''; - const expectedHeaderRequestParams = 'parent='; const expectedError = new Error('The client has already been closed.'); client.close(); await assert.rejects(client.listOptimalTrials(request), expectedError);