diff --git a/samples/generated/v1/dataset_service.create_dataset.js b/samples/generated/v1/dataset_service.create_dataset.js index 5c3a07eb..b7a02130 100644 --- a/samples/generated/v1/dataset_service.create_dataset.js +++ b/samples/generated/v1/dataset_service.create_dataset.js @@ -23,6 +23,9 @@ function main(parent, dataset) { // [START aiplatform_v1_generated_DatasetService_CreateDataset_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/dataset_service.delete_dataset.js b/samples/generated/v1/dataset_service.delete_dataset.js index e07ea85e..9d774875 100644 --- a/samples/generated/v1/dataset_service.delete_dataset.js +++ b/samples/generated/v1/dataset_service.delete_dataset.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_DatasetService_DeleteDataset_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/dataset_service.export_data.js b/samples/generated/v1/dataset_service.export_data.js index 99121ead..d4323dba 100644 --- a/samples/generated/v1/dataset_service.export_data.js +++ b/samples/generated/v1/dataset_service.export_data.js @@ -23,6 +23,9 @@ function main(name, exportConfig) { // [START aiplatform_v1_generated_DatasetService_ExportData_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/dataset_service.get_annotation_spec.js b/samples/generated/v1/dataset_service.get_annotation_spec.js index 0cfb50b2..5fc9c43b 100644 --- a/samples/generated/v1/dataset_service.get_annotation_spec.js +++ b/samples/generated/v1/dataset_service.get_annotation_spec.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_DatasetService_GetAnnotationSpec_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/dataset_service.get_dataset.js b/samples/generated/v1/dataset_service.get_dataset.js index ad5a81b5..6e4606aa 100644 --- a/samples/generated/v1/dataset_service.get_dataset.js +++ b/samples/generated/v1/dataset_service.get_dataset.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_DatasetService_GetDataset_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/dataset_service.import_data.js b/samples/generated/v1/dataset_service.import_data.js index ebc333f8..7d49c2e9 100644 --- a/samples/generated/v1/dataset_service.import_data.js +++ b/samples/generated/v1/dataset_service.import_data.js @@ -23,6 +23,9 @@ function main(name, importConfigs) { // [START aiplatform_v1_generated_DatasetService_ImportData_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/dataset_service.list_annotations.js b/samples/generated/v1/dataset_service.list_annotations.js index 9059339c..7c093cb1 100644 --- a/samples/generated/v1/dataset_service.list_annotations.js +++ b/samples/generated/v1/dataset_service.list_annotations.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_DatasetService_ListAnnotations_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/dataset_service.list_data_items.js b/samples/generated/v1/dataset_service.list_data_items.js index d9b1dec0..eeb37502 100644 --- a/samples/generated/v1/dataset_service.list_data_items.js +++ b/samples/generated/v1/dataset_service.list_data_items.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_DatasetService_ListDataItems_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/dataset_service.list_datasets.js b/samples/generated/v1/dataset_service.list_datasets.js index 4008c2d5..cbe66aeb 100644 --- a/samples/generated/v1/dataset_service.list_datasets.js +++ b/samples/generated/v1/dataset_service.list_datasets.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_DatasetService_ListDatasets_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/dataset_service.list_saved_queries.js b/samples/generated/v1/dataset_service.list_saved_queries.js index 60e18bd9..2ff96e7c 100644 --- a/samples/generated/v1/dataset_service.list_saved_queries.js +++ b/samples/generated/v1/dataset_service.list_saved_queries.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_DatasetService_ListSavedQueries_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/dataset_service.update_dataset.js b/samples/generated/v1/dataset_service.update_dataset.js index 8ae795a5..56c0f96b 100644 --- a/samples/generated/v1/dataset_service.update_dataset.js +++ b/samples/generated/v1/dataset_service.update_dataset.js @@ -23,6 +23,9 @@ function main(dataset, updateMask) { // [START aiplatform_v1_generated_DatasetService_UpdateDataset_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/endpoint_service.create_endpoint.js b/samples/generated/v1/endpoint_service.create_endpoint.js index 788cdd38..bfb43a41 100644 --- a/samples/generated/v1/endpoint_service.create_endpoint.js +++ b/samples/generated/v1/endpoint_service.create_endpoint.js @@ -23,6 +23,9 @@ function main(parent, endpoint, endpointId) { // [START aiplatform_v1_generated_EndpointService_CreateEndpoint_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/endpoint_service.delete_endpoint.js b/samples/generated/v1/endpoint_service.delete_endpoint.js index da8578eb..f51a8acf 100644 --- a/samples/generated/v1/endpoint_service.delete_endpoint.js +++ b/samples/generated/v1/endpoint_service.delete_endpoint.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_EndpointService_DeleteEndpoint_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/endpoint_service.deploy_model.js b/samples/generated/v1/endpoint_service.deploy_model.js index cbb452da..33554f93 100644 --- a/samples/generated/v1/endpoint_service.deploy_model.js +++ b/samples/generated/v1/endpoint_service.deploy_model.js @@ -23,6 +23,9 @@ function main(endpoint, deployedModel) { // [START aiplatform_v1_generated_EndpointService_DeployModel_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/endpoint_service.get_endpoint.js b/samples/generated/v1/endpoint_service.get_endpoint.js index 80263767..02ca00cf 100644 --- a/samples/generated/v1/endpoint_service.get_endpoint.js +++ b/samples/generated/v1/endpoint_service.get_endpoint.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_EndpointService_GetEndpoint_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/endpoint_service.list_endpoints.js b/samples/generated/v1/endpoint_service.list_endpoints.js index 3ed9d01a..b5d7007a 100644 --- a/samples/generated/v1/endpoint_service.list_endpoints.js +++ b/samples/generated/v1/endpoint_service.list_endpoints.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_EndpointService_ListEndpoints_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/endpoint_service.undeploy_model.js b/samples/generated/v1/endpoint_service.undeploy_model.js index f13e9f4e..03778c13 100644 --- a/samples/generated/v1/endpoint_service.undeploy_model.js +++ b/samples/generated/v1/endpoint_service.undeploy_model.js @@ -23,6 +23,9 @@ function main(endpoint, deployedModelId) { // [START aiplatform_v1_generated_EndpointService_UndeployModel_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/endpoint_service.update_endpoint.js b/samples/generated/v1/endpoint_service.update_endpoint.js index 5896a11e..46c5ebe2 100644 --- a/samples/generated/v1/endpoint_service.update_endpoint.js +++ b/samples/generated/v1/endpoint_service.update_endpoint.js @@ -23,6 +23,9 @@ function main(endpoint, updateMask) { // [START aiplatform_v1_generated_EndpointService_UpdateEndpoint_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/featurestore_online_serving_service.read_feature_values.js b/samples/generated/v1/featurestore_online_serving_service.read_feature_values.js index 62a7a409..22a53813 100644 --- a/samples/generated/v1/featurestore_online_serving_service.read_feature_values.js +++ b/samples/generated/v1/featurestore_online_serving_service.read_feature_values.js @@ -23,6 +23,9 @@ function main(entityType, entityId, featureSelector) { // [START aiplatform_v1_generated_FeaturestoreOnlineServingService_ReadFeatureValues_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/featurestore_online_serving_service.streaming_read_feature_values.js b/samples/generated/v1/featurestore_online_serving_service.streaming_read_feature_values.js index 025feecb..803b0838 100644 --- a/samples/generated/v1/featurestore_online_serving_service.streaming_read_feature_values.js +++ b/samples/generated/v1/featurestore_online_serving_service.streaming_read_feature_values.js @@ -23,6 +23,9 @@ function main(entityType, entityIds, featureSelector) { // [START aiplatform_v1_generated_FeaturestoreOnlineServingService_StreamingReadFeatureValues_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/featurestore_service.batch_create_features.js b/samples/generated/v1/featurestore_service.batch_create_features.js index 51099823..3ec849cd 100644 --- a/samples/generated/v1/featurestore_service.batch_create_features.js +++ b/samples/generated/v1/featurestore_service.batch_create_features.js @@ -23,6 +23,9 @@ function main(parent, requests) { // [START aiplatform_v1_generated_FeaturestoreService_BatchCreateFeatures_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/featurestore_service.batch_read_feature_values.js b/samples/generated/v1/featurestore_service.batch_read_feature_values.js index b1aadd55..d23e3ce5 100644 --- a/samples/generated/v1/featurestore_service.batch_read_feature_values.js +++ b/samples/generated/v1/featurestore_service.batch_read_feature_values.js @@ -23,6 +23,9 @@ function main(featurestore, destination, entityTypeSpecs) { // [START aiplatform_v1_generated_FeaturestoreService_BatchReadFeatureValues_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/featurestore_service.create_entity_type.js b/samples/generated/v1/featurestore_service.create_entity_type.js index 72f30762..e276520f 100644 --- a/samples/generated/v1/featurestore_service.create_entity_type.js +++ b/samples/generated/v1/featurestore_service.create_entity_type.js @@ -23,6 +23,9 @@ function main(parent, entityTypeId) { // [START aiplatform_v1_generated_FeaturestoreService_CreateEntityType_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/featurestore_service.create_feature.js b/samples/generated/v1/featurestore_service.create_feature.js index 553fcbcc..501ca5fd 100644 --- a/samples/generated/v1/featurestore_service.create_feature.js +++ b/samples/generated/v1/featurestore_service.create_feature.js @@ -23,6 +23,9 @@ function main(parent, feature, featureId) { // [START aiplatform_v1_generated_FeaturestoreService_CreateFeature_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/featurestore_service.create_featurestore.js b/samples/generated/v1/featurestore_service.create_featurestore.js index 40ddf1d6..bc6f82bc 100644 --- a/samples/generated/v1/featurestore_service.create_featurestore.js +++ b/samples/generated/v1/featurestore_service.create_featurestore.js @@ -23,6 +23,9 @@ function main(parent, featurestore, featurestoreId) { // [START aiplatform_v1_generated_FeaturestoreService_CreateFeaturestore_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/featurestore_service.delete_entity_type.js b/samples/generated/v1/featurestore_service.delete_entity_type.js index 1fcceb31..35a524f9 100644 --- a/samples/generated/v1/featurestore_service.delete_entity_type.js +++ b/samples/generated/v1/featurestore_service.delete_entity_type.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_FeaturestoreService_DeleteEntityType_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/featurestore_service.delete_feature.js b/samples/generated/v1/featurestore_service.delete_feature.js index 8fad0773..99e88823 100644 --- a/samples/generated/v1/featurestore_service.delete_feature.js +++ b/samples/generated/v1/featurestore_service.delete_feature.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_FeaturestoreService_DeleteFeature_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/featurestore_service.delete_featurestore.js b/samples/generated/v1/featurestore_service.delete_featurestore.js index 189593e9..87129231 100644 --- a/samples/generated/v1/featurestore_service.delete_featurestore.js +++ b/samples/generated/v1/featurestore_service.delete_featurestore.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_FeaturestoreService_DeleteFeaturestore_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/featurestore_service.export_feature_values.js b/samples/generated/v1/featurestore_service.export_feature_values.js index 60a8f2e9..44f3d068 100644 --- a/samples/generated/v1/featurestore_service.export_feature_values.js +++ b/samples/generated/v1/featurestore_service.export_feature_values.js @@ -23,6 +23,9 @@ function main(entityType, destination, featureSelector) { // [START aiplatform_v1_generated_FeaturestoreService_ExportFeatureValues_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/featurestore_service.get_entity_type.js b/samples/generated/v1/featurestore_service.get_entity_type.js index 3b15a35f..6c0f82b3 100644 --- a/samples/generated/v1/featurestore_service.get_entity_type.js +++ b/samples/generated/v1/featurestore_service.get_entity_type.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_FeaturestoreService_GetEntityType_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/featurestore_service.get_feature.js b/samples/generated/v1/featurestore_service.get_feature.js index 718bd241..86677d01 100644 --- a/samples/generated/v1/featurestore_service.get_feature.js +++ b/samples/generated/v1/featurestore_service.get_feature.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_FeaturestoreService_GetFeature_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/featurestore_service.get_featurestore.js b/samples/generated/v1/featurestore_service.get_featurestore.js index 97c5e813..acae2e51 100644 --- a/samples/generated/v1/featurestore_service.get_featurestore.js +++ b/samples/generated/v1/featurestore_service.get_featurestore.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_FeaturestoreService_GetFeaturestore_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/featurestore_service.import_feature_values.js b/samples/generated/v1/featurestore_service.import_feature_values.js index 5443267c..b194ada8 100644 --- a/samples/generated/v1/featurestore_service.import_feature_values.js +++ b/samples/generated/v1/featurestore_service.import_feature_values.js @@ -23,6 +23,9 @@ function main(entityType, featureSpecs) { // [START aiplatform_v1_generated_FeaturestoreService_ImportFeatureValues_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/featurestore_service.list_entity_types.js b/samples/generated/v1/featurestore_service.list_entity_types.js index 39f24ec4..4dc7a5ed 100644 --- a/samples/generated/v1/featurestore_service.list_entity_types.js +++ b/samples/generated/v1/featurestore_service.list_entity_types.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_FeaturestoreService_ListEntityTypes_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/featurestore_service.list_features.js b/samples/generated/v1/featurestore_service.list_features.js index 6598851a..14d7902e 100644 --- a/samples/generated/v1/featurestore_service.list_features.js +++ b/samples/generated/v1/featurestore_service.list_features.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_FeaturestoreService_ListFeatures_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/featurestore_service.list_featurestores.js b/samples/generated/v1/featurestore_service.list_featurestores.js index 39ff9411..44e9e19e 100644 --- a/samples/generated/v1/featurestore_service.list_featurestores.js +++ b/samples/generated/v1/featurestore_service.list_featurestores.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_FeaturestoreService_ListFeaturestores_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/featurestore_service.search_features.js b/samples/generated/v1/featurestore_service.search_features.js index faa5dc77..611c707d 100644 --- a/samples/generated/v1/featurestore_service.search_features.js +++ b/samples/generated/v1/featurestore_service.search_features.js @@ -23,6 +23,9 @@ function main(location) { // [START aiplatform_v1_generated_FeaturestoreService_SearchFeatures_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/featurestore_service.update_entity_type.js b/samples/generated/v1/featurestore_service.update_entity_type.js index 9fc84d8e..9757c943 100644 --- a/samples/generated/v1/featurestore_service.update_entity_type.js +++ b/samples/generated/v1/featurestore_service.update_entity_type.js @@ -23,6 +23,9 @@ function main(entityType) { // [START aiplatform_v1_generated_FeaturestoreService_UpdateEntityType_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/featurestore_service.update_feature.js b/samples/generated/v1/featurestore_service.update_feature.js index d310af86..819a2320 100644 --- a/samples/generated/v1/featurestore_service.update_feature.js +++ b/samples/generated/v1/featurestore_service.update_feature.js @@ -23,6 +23,9 @@ function main(feature) { // [START aiplatform_v1_generated_FeaturestoreService_UpdateFeature_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/featurestore_service.update_featurestore.js b/samples/generated/v1/featurestore_service.update_featurestore.js index 8de8984c..f8d43801 100644 --- a/samples/generated/v1/featurestore_service.update_featurestore.js +++ b/samples/generated/v1/featurestore_service.update_featurestore.js @@ -23,6 +23,9 @@ function main(featurestore) { // [START aiplatform_v1_generated_FeaturestoreService_UpdateFeaturestore_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/index_endpoint_service.create_index_endpoint.js b/samples/generated/v1/index_endpoint_service.create_index_endpoint.js index 1f4d918f..b727f13e 100644 --- a/samples/generated/v1/index_endpoint_service.create_index_endpoint.js +++ b/samples/generated/v1/index_endpoint_service.create_index_endpoint.js @@ -23,6 +23,9 @@ function main(parent, indexEndpoint) { // [START aiplatform_v1_generated_IndexEndpointService_CreateIndexEndpoint_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/index_endpoint_service.delete_index_endpoint.js b/samples/generated/v1/index_endpoint_service.delete_index_endpoint.js index ee3c30a7..ba6a0437 100644 --- a/samples/generated/v1/index_endpoint_service.delete_index_endpoint.js +++ b/samples/generated/v1/index_endpoint_service.delete_index_endpoint.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_IndexEndpointService_DeleteIndexEndpoint_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/index_endpoint_service.deploy_index.js b/samples/generated/v1/index_endpoint_service.deploy_index.js index ec63210f..2dc6b7e4 100644 --- a/samples/generated/v1/index_endpoint_service.deploy_index.js +++ b/samples/generated/v1/index_endpoint_service.deploy_index.js @@ -23,6 +23,9 @@ function main(indexEndpoint, deployedIndex) { // [START aiplatform_v1_generated_IndexEndpointService_DeployIndex_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/index_endpoint_service.get_index_endpoint.js b/samples/generated/v1/index_endpoint_service.get_index_endpoint.js index cd081a81..ed0867b7 100644 --- a/samples/generated/v1/index_endpoint_service.get_index_endpoint.js +++ b/samples/generated/v1/index_endpoint_service.get_index_endpoint.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_IndexEndpointService_GetIndexEndpoint_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/index_endpoint_service.list_index_endpoints.js b/samples/generated/v1/index_endpoint_service.list_index_endpoints.js index e7206843..c9d1bb51 100644 --- a/samples/generated/v1/index_endpoint_service.list_index_endpoints.js +++ b/samples/generated/v1/index_endpoint_service.list_index_endpoints.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_IndexEndpointService_ListIndexEndpoints_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/index_endpoint_service.mutate_deployed_index.js b/samples/generated/v1/index_endpoint_service.mutate_deployed_index.js index 56fade38..cfce6c9a 100644 --- a/samples/generated/v1/index_endpoint_service.mutate_deployed_index.js +++ b/samples/generated/v1/index_endpoint_service.mutate_deployed_index.js @@ -23,6 +23,9 @@ function main(indexEndpoint, deployedIndex) { // [START aiplatform_v1_generated_IndexEndpointService_MutateDeployedIndex_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/index_endpoint_service.undeploy_index.js b/samples/generated/v1/index_endpoint_service.undeploy_index.js index e208b201..c3ae344f 100644 --- a/samples/generated/v1/index_endpoint_service.undeploy_index.js +++ b/samples/generated/v1/index_endpoint_service.undeploy_index.js @@ -23,6 +23,9 @@ function main(indexEndpoint, deployedIndexId) { // [START aiplatform_v1_generated_IndexEndpointService_UndeployIndex_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/index_endpoint_service.update_index_endpoint.js b/samples/generated/v1/index_endpoint_service.update_index_endpoint.js index ee3f0686..5ffece31 100644 --- a/samples/generated/v1/index_endpoint_service.update_index_endpoint.js +++ b/samples/generated/v1/index_endpoint_service.update_index_endpoint.js @@ -23,6 +23,9 @@ function main(indexEndpoint, updateMask) { // [START aiplatform_v1_generated_IndexEndpointService_UpdateIndexEndpoint_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/index_service.create_index.js b/samples/generated/v1/index_service.create_index.js index a40cc607..96c8fac0 100644 --- a/samples/generated/v1/index_service.create_index.js +++ b/samples/generated/v1/index_service.create_index.js @@ -23,6 +23,9 @@ function main(parent, index) { // [START aiplatform_v1_generated_IndexService_CreateIndex_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/index_service.delete_index.js b/samples/generated/v1/index_service.delete_index.js index 5a102dad..40781b02 100644 --- a/samples/generated/v1/index_service.delete_index.js +++ b/samples/generated/v1/index_service.delete_index.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_IndexService_DeleteIndex_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/index_service.get_index.js b/samples/generated/v1/index_service.get_index.js index 842c5864..8f746f02 100644 --- a/samples/generated/v1/index_service.get_index.js +++ b/samples/generated/v1/index_service.get_index.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_IndexService_GetIndex_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/index_service.list_indexes.js b/samples/generated/v1/index_service.list_indexes.js index dfe07e2c..bc39d123 100644 --- a/samples/generated/v1/index_service.list_indexes.js +++ b/samples/generated/v1/index_service.list_indexes.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_IndexService_ListIndexes_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/index_service.update_index.js b/samples/generated/v1/index_service.update_index.js index 73715273..0cc48da6 100644 --- a/samples/generated/v1/index_service.update_index.js +++ b/samples/generated/v1/index_service.update_index.js @@ -23,6 +23,9 @@ function main(index) { // [START aiplatform_v1_generated_IndexService_UpdateIndex_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.cancel_batch_prediction_job.js b/samples/generated/v1/job_service.cancel_batch_prediction_job.js index aa35ebd4..06f335e2 100644 --- a/samples/generated/v1/job_service.cancel_batch_prediction_job.js +++ b/samples/generated/v1/job_service.cancel_batch_prediction_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_JobService_CancelBatchPredictionJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.cancel_custom_job.js b/samples/generated/v1/job_service.cancel_custom_job.js index 6999c1cc..146ab7d1 100644 --- a/samples/generated/v1/job_service.cancel_custom_job.js +++ b/samples/generated/v1/job_service.cancel_custom_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_JobService_CancelCustomJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.cancel_data_labeling_job.js b/samples/generated/v1/job_service.cancel_data_labeling_job.js index bf2086c2..8b3cf916 100644 --- a/samples/generated/v1/job_service.cancel_data_labeling_job.js +++ b/samples/generated/v1/job_service.cancel_data_labeling_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_JobService_CancelDataLabelingJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.cancel_hyperparameter_tuning_job.js b/samples/generated/v1/job_service.cancel_hyperparameter_tuning_job.js index 1056802e..d22114a6 100644 --- a/samples/generated/v1/job_service.cancel_hyperparameter_tuning_job.js +++ b/samples/generated/v1/job_service.cancel_hyperparameter_tuning_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_JobService_CancelHyperparameterTuningJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.create_batch_prediction_job.js b/samples/generated/v1/job_service.create_batch_prediction_job.js index 96626ce5..1b16ec02 100644 --- a/samples/generated/v1/job_service.create_batch_prediction_job.js +++ b/samples/generated/v1/job_service.create_batch_prediction_job.js @@ -23,6 +23,9 @@ function main(parent, batchPredictionJob) { // [START aiplatform_v1_generated_JobService_CreateBatchPredictionJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.create_custom_job.js b/samples/generated/v1/job_service.create_custom_job.js index 3e135d7b..51ebeba2 100644 --- a/samples/generated/v1/job_service.create_custom_job.js +++ b/samples/generated/v1/job_service.create_custom_job.js @@ -23,6 +23,9 @@ function main(parent, customJob) { // [START aiplatform_v1_generated_JobService_CreateCustomJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.create_data_labeling_job.js b/samples/generated/v1/job_service.create_data_labeling_job.js index a9ec0837..df0d4bc1 100644 --- a/samples/generated/v1/job_service.create_data_labeling_job.js +++ b/samples/generated/v1/job_service.create_data_labeling_job.js @@ -23,6 +23,9 @@ function main(parent, dataLabelingJob) { // [START aiplatform_v1_generated_JobService_CreateDataLabelingJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.create_hyperparameter_tuning_job.js b/samples/generated/v1/job_service.create_hyperparameter_tuning_job.js index 30fc3ff8..537ed99c 100644 --- a/samples/generated/v1/job_service.create_hyperparameter_tuning_job.js +++ b/samples/generated/v1/job_service.create_hyperparameter_tuning_job.js @@ -23,6 +23,9 @@ function main(parent, hyperparameterTuningJob) { // [START aiplatform_v1_generated_JobService_CreateHyperparameterTuningJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.create_model_deployment_monitoring_job.js b/samples/generated/v1/job_service.create_model_deployment_monitoring_job.js index 5f73d7b1..362a1d9e 100644 --- a/samples/generated/v1/job_service.create_model_deployment_monitoring_job.js +++ b/samples/generated/v1/job_service.create_model_deployment_monitoring_job.js @@ -23,6 +23,9 @@ function main(parent, modelDeploymentMonitoringJob) { // [START aiplatform_v1_generated_JobService_CreateModelDeploymentMonitoringJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.delete_batch_prediction_job.js b/samples/generated/v1/job_service.delete_batch_prediction_job.js index 250c6a3e..4a35d1b0 100644 --- a/samples/generated/v1/job_service.delete_batch_prediction_job.js +++ b/samples/generated/v1/job_service.delete_batch_prediction_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_JobService_DeleteBatchPredictionJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.delete_custom_job.js b/samples/generated/v1/job_service.delete_custom_job.js index 028fb18f..72f14f66 100644 --- a/samples/generated/v1/job_service.delete_custom_job.js +++ b/samples/generated/v1/job_service.delete_custom_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_JobService_DeleteCustomJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.delete_data_labeling_job.js b/samples/generated/v1/job_service.delete_data_labeling_job.js index 93bc1a24..7df44262 100644 --- a/samples/generated/v1/job_service.delete_data_labeling_job.js +++ b/samples/generated/v1/job_service.delete_data_labeling_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_JobService_DeleteDataLabelingJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.delete_hyperparameter_tuning_job.js b/samples/generated/v1/job_service.delete_hyperparameter_tuning_job.js index 8bbc93d8..6b934dcc 100644 --- a/samples/generated/v1/job_service.delete_hyperparameter_tuning_job.js +++ b/samples/generated/v1/job_service.delete_hyperparameter_tuning_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_JobService_DeleteHyperparameterTuningJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.delete_model_deployment_monitoring_job.js b/samples/generated/v1/job_service.delete_model_deployment_monitoring_job.js index c6fa6b3e..ce3e2d8f 100644 --- a/samples/generated/v1/job_service.delete_model_deployment_monitoring_job.js +++ b/samples/generated/v1/job_service.delete_model_deployment_monitoring_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_JobService_DeleteModelDeploymentMonitoringJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.get_batch_prediction_job.js b/samples/generated/v1/job_service.get_batch_prediction_job.js index 15da9257..d006e476 100644 --- a/samples/generated/v1/job_service.get_batch_prediction_job.js +++ b/samples/generated/v1/job_service.get_batch_prediction_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_JobService_GetBatchPredictionJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.get_custom_job.js b/samples/generated/v1/job_service.get_custom_job.js index 4270de5e..7a270254 100644 --- a/samples/generated/v1/job_service.get_custom_job.js +++ b/samples/generated/v1/job_service.get_custom_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_JobService_GetCustomJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.get_data_labeling_job.js b/samples/generated/v1/job_service.get_data_labeling_job.js index f972430a..6968b5ff 100644 --- a/samples/generated/v1/job_service.get_data_labeling_job.js +++ b/samples/generated/v1/job_service.get_data_labeling_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_JobService_GetDataLabelingJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.get_hyperparameter_tuning_job.js b/samples/generated/v1/job_service.get_hyperparameter_tuning_job.js index 0762c56e..3e2455ae 100644 --- a/samples/generated/v1/job_service.get_hyperparameter_tuning_job.js +++ b/samples/generated/v1/job_service.get_hyperparameter_tuning_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_JobService_GetHyperparameterTuningJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.get_model_deployment_monitoring_job.js b/samples/generated/v1/job_service.get_model_deployment_monitoring_job.js index d0db6537..10bc1e05 100644 --- a/samples/generated/v1/job_service.get_model_deployment_monitoring_job.js +++ b/samples/generated/v1/job_service.get_model_deployment_monitoring_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_JobService_GetModelDeploymentMonitoringJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.list_batch_prediction_jobs.js b/samples/generated/v1/job_service.list_batch_prediction_jobs.js index c780c356..161e1e57 100644 --- a/samples/generated/v1/job_service.list_batch_prediction_jobs.js +++ b/samples/generated/v1/job_service.list_batch_prediction_jobs.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_JobService_ListBatchPredictionJobs_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.list_custom_jobs.js b/samples/generated/v1/job_service.list_custom_jobs.js index b8cf81c9..64478c89 100644 --- a/samples/generated/v1/job_service.list_custom_jobs.js +++ b/samples/generated/v1/job_service.list_custom_jobs.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_JobService_ListCustomJobs_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.list_data_labeling_jobs.js b/samples/generated/v1/job_service.list_data_labeling_jobs.js index 50b366e0..414ecf04 100644 --- a/samples/generated/v1/job_service.list_data_labeling_jobs.js +++ b/samples/generated/v1/job_service.list_data_labeling_jobs.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_JobService_ListDataLabelingJobs_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.list_hyperparameter_tuning_jobs.js b/samples/generated/v1/job_service.list_hyperparameter_tuning_jobs.js index 0ed88b15..eddca31d 100644 --- a/samples/generated/v1/job_service.list_hyperparameter_tuning_jobs.js +++ b/samples/generated/v1/job_service.list_hyperparameter_tuning_jobs.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_JobService_ListHyperparameterTuningJobs_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.list_model_deployment_monitoring_jobs.js b/samples/generated/v1/job_service.list_model_deployment_monitoring_jobs.js index 7b79ae2e..8429b5d5 100644 --- a/samples/generated/v1/job_service.list_model_deployment_monitoring_jobs.js +++ b/samples/generated/v1/job_service.list_model_deployment_monitoring_jobs.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_JobService_ListModelDeploymentMonitoringJobs_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.pause_model_deployment_monitoring_job.js b/samples/generated/v1/job_service.pause_model_deployment_monitoring_job.js index 012e9a9b..2007cdeb 100644 --- a/samples/generated/v1/job_service.pause_model_deployment_monitoring_job.js +++ b/samples/generated/v1/job_service.pause_model_deployment_monitoring_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_JobService_PauseModelDeploymentMonitoringJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.resume_model_deployment_monitoring_job.js b/samples/generated/v1/job_service.resume_model_deployment_monitoring_job.js index 3f974100..06a80f59 100644 --- a/samples/generated/v1/job_service.resume_model_deployment_monitoring_job.js +++ b/samples/generated/v1/job_service.resume_model_deployment_monitoring_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_JobService_ResumeModelDeploymentMonitoringJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.search_model_deployment_monitoring_stats_anomalies.js b/samples/generated/v1/job_service.search_model_deployment_monitoring_stats_anomalies.js index 55d1b876..f63ad857 100644 --- a/samples/generated/v1/job_service.search_model_deployment_monitoring_stats_anomalies.js +++ b/samples/generated/v1/job_service.search_model_deployment_monitoring_stats_anomalies.js @@ -23,6 +23,9 @@ function main(modelDeploymentMonitoringJob, deployedModelId, objectives) { // [START aiplatform_v1_generated_JobService_SearchModelDeploymentMonitoringStatsAnomalies_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/job_service.update_model_deployment_monitoring_job.js b/samples/generated/v1/job_service.update_model_deployment_monitoring_job.js index 0c188214..0d3a751f 100644 --- a/samples/generated/v1/job_service.update_model_deployment_monitoring_job.js +++ b/samples/generated/v1/job_service.update_model_deployment_monitoring_job.js @@ -23,6 +23,9 @@ function main(modelDeploymentMonitoringJob, updateMask) { // [START aiplatform_v1_generated_JobService_UpdateModelDeploymentMonitoringJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.add_context_artifacts_and_executions.js b/samples/generated/v1/metadata_service.add_context_artifacts_and_executions.js index f7e1233f..6d5ca63e 100644 --- a/samples/generated/v1/metadata_service.add_context_artifacts_and_executions.js +++ b/samples/generated/v1/metadata_service.add_context_artifacts_and_executions.js @@ -23,6 +23,9 @@ function main(context) { // [START aiplatform_v1_generated_MetadataService_AddContextArtifactsAndExecutions_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.add_context_children.js b/samples/generated/v1/metadata_service.add_context_children.js index 04bd1fbd..a9d2b920 100644 --- a/samples/generated/v1/metadata_service.add_context_children.js +++ b/samples/generated/v1/metadata_service.add_context_children.js @@ -23,6 +23,9 @@ function main(context) { // [START aiplatform_v1_generated_MetadataService_AddContextChildren_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.add_execution_events.js b/samples/generated/v1/metadata_service.add_execution_events.js index 95050f6f..b029b738 100644 --- a/samples/generated/v1/metadata_service.add_execution_events.js +++ b/samples/generated/v1/metadata_service.add_execution_events.js @@ -23,6 +23,9 @@ function main(execution) { // [START aiplatform_v1_generated_MetadataService_AddExecutionEvents_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.create_artifact.js b/samples/generated/v1/metadata_service.create_artifact.js index 4762e4ce..68275734 100644 --- a/samples/generated/v1/metadata_service.create_artifact.js +++ b/samples/generated/v1/metadata_service.create_artifact.js @@ -23,6 +23,9 @@ function main(parent, artifact) { // [START aiplatform_v1_generated_MetadataService_CreateArtifact_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.create_context.js b/samples/generated/v1/metadata_service.create_context.js index 4935f97d..bf0d9c3d 100644 --- a/samples/generated/v1/metadata_service.create_context.js +++ b/samples/generated/v1/metadata_service.create_context.js @@ -23,6 +23,9 @@ function main(parent, context) { // [START aiplatform_v1_generated_MetadataService_CreateContext_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.create_execution.js b/samples/generated/v1/metadata_service.create_execution.js index eb19ccb4..eb0a6ae3 100644 --- a/samples/generated/v1/metadata_service.create_execution.js +++ b/samples/generated/v1/metadata_service.create_execution.js @@ -23,6 +23,9 @@ function main(parent, execution) { // [START aiplatform_v1_generated_MetadataService_CreateExecution_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.create_metadata_schema.js b/samples/generated/v1/metadata_service.create_metadata_schema.js index ac7897cf..c1a796d9 100644 --- a/samples/generated/v1/metadata_service.create_metadata_schema.js +++ b/samples/generated/v1/metadata_service.create_metadata_schema.js @@ -23,6 +23,9 @@ function main(parent, metadataSchema) { // [START aiplatform_v1_generated_MetadataService_CreateMetadataSchema_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.create_metadata_store.js b/samples/generated/v1/metadata_service.create_metadata_store.js index aca065cf..2767869b 100644 --- a/samples/generated/v1/metadata_service.create_metadata_store.js +++ b/samples/generated/v1/metadata_service.create_metadata_store.js @@ -23,6 +23,9 @@ function main(parent, metadataStore) { // [START aiplatform_v1_generated_MetadataService_CreateMetadataStore_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.delete_artifact.js b/samples/generated/v1/metadata_service.delete_artifact.js index 5063dabb..54f61b88 100644 --- a/samples/generated/v1/metadata_service.delete_artifact.js +++ b/samples/generated/v1/metadata_service.delete_artifact.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_MetadataService_DeleteArtifact_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.delete_context.js b/samples/generated/v1/metadata_service.delete_context.js index 2752b0ad..07840fb1 100644 --- a/samples/generated/v1/metadata_service.delete_context.js +++ b/samples/generated/v1/metadata_service.delete_context.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_MetadataService_DeleteContext_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.delete_execution.js b/samples/generated/v1/metadata_service.delete_execution.js index b5518a2a..bb4423a3 100644 --- a/samples/generated/v1/metadata_service.delete_execution.js +++ b/samples/generated/v1/metadata_service.delete_execution.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_MetadataService_DeleteExecution_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.delete_metadata_store.js b/samples/generated/v1/metadata_service.delete_metadata_store.js index 8ed1a718..8e547f47 100644 --- a/samples/generated/v1/metadata_service.delete_metadata_store.js +++ b/samples/generated/v1/metadata_service.delete_metadata_store.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_MetadataService_DeleteMetadataStore_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.get_artifact.js b/samples/generated/v1/metadata_service.get_artifact.js index c9efdb46..d84a6aaf 100644 --- a/samples/generated/v1/metadata_service.get_artifact.js +++ b/samples/generated/v1/metadata_service.get_artifact.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_MetadataService_GetArtifact_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.get_context.js b/samples/generated/v1/metadata_service.get_context.js index 58969142..6f6cb2f0 100644 --- a/samples/generated/v1/metadata_service.get_context.js +++ b/samples/generated/v1/metadata_service.get_context.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_MetadataService_GetContext_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.get_execution.js b/samples/generated/v1/metadata_service.get_execution.js index 343d0037..cb12920c 100644 --- a/samples/generated/v1/metadata_service.get_execution.js +++ b/samples/generated/v1/metadata_service.get_execution.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_MetadataService_GetExecution_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.get_metadata_schema.js b/samples/generated/v1/metadata_service.get_metadata_schema.js index 5b1d550a..673d1831 100644 --- a/samples/generated/v1/metadata_service.get_metadata_schema.js +++ b/samples/generated/v1/metadata_service.get_metadata_schema.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_MetadataService_GetMetadataSchema_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.get_metadata_store.js b/samples/generated/v1/metadata_service.get_metadata_store.js index 2151a300..fbd429e3 100644 --- a/samples/generated/v1/metadata_service.get_metadata_store.js +++ b/samples/generated/v1/metadata_service.get_metadata_store.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_MetadataService_GetMetadataStore_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.list_artifacts.js b/samples/generated/v1/metadata_service.list_artifacts.js index c407a448..b38c0759 100644 --- a/samples/generated/v1/metadata_service.list_artifacts.js +++ b/samples/generated/v1/metadata_service.list_artifacts.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_MetadataService_ListArtifacts_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.list_contexts.js b/samples/generated/v1/metadata_service.list_contexts.js index 659722ff..62daa69a 100644 --- a/samples/generated/v1/metadata_service.list_contexts.js +++ b/samples/generated/v1/metadata_service.list_contexts.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_MetadataService_ListContexts_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.list_executions.js b/samples/generated/v1/metadata_service.list_executions.js index ce6b4525..6c654a57 100644 --- a/samples/generated/v1/metadata_service.list_executions.js +++ b/samples/generated/v1/metadata_service.list_executions.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_MetadataService_ListExecutions_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.list_metadata_schemas.js b/samples/generated/v1/metadata_service.list_metadata_schemas.js index 6dbc7bea..9d3f9726 100644 --- a/samples/generated/v1/metadata_service.list_metadata_schemas.js +++ b/samples/generated/v1/metadata_service.list_metadata_schemas.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_MetadataService_ListMetadataSchemas_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.list_metadata_stores.js b/samples/generated/v1/metadata_service.list_metadata_stores.js index d38a8f9e..ad311f16 100644 --- a/samples/generated/v1/metadata_service.list_metadata_stores.js +++ b/samples/generated/v1/metadata_service.list_metadata_stores.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_MetadataService_ListMetadataStores_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.purge_artifacts.js b/samples/generated/v1/metadata_service.purge_artifacts.js index 5df69f26..25744524 100644 --- a/samples/generated/v1/metadata_service.purge_artifacts.js +++ b/samples/generated/v1/metadata_service.purge_artifacts.js @@ -23,6 +23,9 @@ function main(parent, filter) { // [START aiplatform_v1_generated_MetadataService_PurgeArtifacts_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.purge_contexts.js b/samples/generated/v1/metadata_service.purge_contexts.js index d299969c..4ec1aef6 100644 --- a/samples/generated/v1/metadata_service.purge_contexts.js +++ b/samples/generated/v1/metadata_service.purge_contexts.js @@ -23,6 +23,9 @@ function main(parent, filter) { // [START aiplatform_v1_generated_MetadataService_PurgeContexts_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.purge_executions.js b/samples/generated/v1/metadata_service.purge_executions.js index 4dc5fc7c..f33acefe 100644 --- a/samples/generated/v1/metadata_service.purge_executions.js +++ b/samples/generated/v1/metadata_service.purge_executions.js @@ -23,6 +23,9 @@ function main(parent, filter) { // [START aiplatform_v1_generated_MetadataService_PurgeExecutions_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.query_artifact_lineage_subgraph.js b/samples/generated/v1/metadata_service.query_artifact_lineage_subgraph.js index 96b1b03c..267069f3 100644 --- a/samples/generated/v1/metadata_service.query_artifact_lineage_subgraph.js +++ b/samples/generated/v1/metadata_service.query_artifact_lineage_subgraph.js @@ -23,6 +23,9 @@ function main(artifact) { // [START aiplatform_v1_generated_MetadataService_QueryArtifactLineageSubgraph_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.query_context_lineage_subgraph.js b/samples/generated/v1/metadata_service.query_context_lineage_subgraph.js index 0095f3a5..d220da30 100644 --- a/samples/generated/v1/metadata_service.query_context_lineage_subgraph.js +++ b/samples/generated/v1/metadata_service.query_context_lineage_subgraph.js @@ -23,6 +23,9 @@ function main(context) { // [START aiplatform_v1_generated_MetadataService_QueryContextLineageSubgraph_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.query_execution_inputs_and_outputs.js b/samples/generated/v1/metadata_service.query_execution_inputs_and_outputs.js index b1d7a186..f26601d3 100644 --- a/samples/generated/v1/metadata_service.query_execution_inputs_and_outputs.js +++ b/samples/generated/v1/metadata_service.query_execution_inputs_and_outputs.js @@ -23,6 +23,9 @@ function main(execution) { // [START aiplatform_v1_generated_MetadataService_QueryExecutionInputsAndOutputs_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.update_artifact.js b/samples/generated/v1/metadata_service.update_artifact.js index d341fb89..b448b66b 100644 --- a/samples/generated/v1/metadata_service.update_artifact.js +++ b/samples/generated/v1/metadata_service.update_artifact.js @@ -23,6 +23,9 @@ function main(artifact) { // [START aiplatform_v1_generated_MetadataService_UpdateArtifact_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.update_context.js b/samples/generated/v1/metadata_service.update_context.js index f4a2bfdd..d1f592fa 100644 --- a/samples/generated/v1/metadata_service.update_context.js +++ b/samples/generated/v1/metadata_service.update_context.js @@ -23,6 +23,9 @@ function main(context) { // [START aiplatform_v1_generated_MetadataService_UpdateContext_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/metadata_service.update_execution.js b/samples/generated/v1/metadata_service.update_execution.js index 15bb46b5..be8ad363 100644 --- a/samples/generated/v1/metadata_service.update_execution.js +++ b/samples/generated/v1/metadata_service.update_execution.js @@ -23,6 +23,9 @@ function main(execution) { // [START aiplatform_v1_generated_MetadataService_UpdateExecution_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/migration_service.batch_migrate_resources.js b/samples/generated/v1/migration_service.batch_migrate_resources.js index e3055d91..54ae5c5d 100644 --- a/samples/generated/v1/migration_service.batch_migrate_resources.js +++ b/samples/generated/v1/migration_service.batch_migrate_resources.js @@ -23,6 +23,9 @@ function main(parent, migrateResourceRequests) { // [START aiplatform_v1_generated_MigrationService_BatchMigrateResources_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/migration_service.search_migratable_resources.js b/samples/generated/v1/migration_service.search_migratable_resources.js index 7d329e01..a00413f2 100644 --- a/samples/generated/v1/migration_service.search_migratable_resources.js +++ b/samples/generated/v1/migration_service.search_migratable_resources.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_MigrationService_SearchMigratableResources_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/model_service.batch_import_model_evaluation_slices.js b/samples/generated/v1/model_service.batch_import_model_evaluation_slices.js index d2e37c42..9e174fdc 100644 --- a/samples/generated/v1/model_service.batch_import_model_evaluation_slices.js +++ b/samples/generated/v1/model_service.batch_import_model_evaluation_slices.js @@ -23,6 +23,9 @@ function main(parent, modelEvaluationSlices) { // [START aiplatform_v1_generated_ModelService_BatchImportModelEvaluationSlices_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/model_service.delete_model.js b/samples/generated/v1/model_service.delete_model.js index 99ffd4e9..15a3fd79 100644 --- a/samples/generated/v1/model_service.delete_model.js +++ b/samples/generated/v1/model_service.delete_model.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_ModelService_DeleteModel_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/model_service.delete_model_version.js b/samples/generated/v1/model_service.delete_model_version.js index d8281c9c..333d8f96 100644 --- a/samples/generated/v1/model_service.delete_model_version.js +++ b/samples/generated/v1/model_service.delete_model_version.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_ModelService_DeleteModelVersion_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/model_service.export_model.js b/samples/generated/v1/model_service.export_model.js index ade52c6c..41567d3b 100644 --- a/samples/generated/v1/model_service.export_model.js +++ b/samples/generated/v1/model_service.export_model.js @@ -23,6 +23,9 @@ function main(name, outputConfig) { // [START aiplatform_v1_generated_ModelService_ExportModel_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/model_service.get_model.js b/samples/generated/v1/model_service.get_model.js index 5d380bb6..1784f5e1 100644 --- a/samples/generated/v1/model_service.get_model.js +++ b/samples/generated/v1/model_service.get_model.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_ModelService_GetModel_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/model_service.get_model_evaluation.js b/samples/generated/v1/model_service.get_model_evaluation.js index 62111bc7..071ae0cf 100644 --- a/samples/generated/v1/model_service.get_model_evaluation.js +++ b/samples/generated/v1/model_service.get_model_evaluation.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_ModelService_GetModelEvaluation_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/model_service.get_model_evaluation_slice.js b/samples/generated/v1/model_service.get_model_evaluation_slice.js index 0c36c6ea..4c99c75e 100644 --- a/samples/generated/v1/model_service.get_model_evaluation_slice.js +++ b/samples/generated/v1/model_service.get_model_evaluation_slice.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_ModelService_GetModelEvaluationSlice_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/model_service.import_model_evaluation.js b/samples/generated/v1/model_service.import_model_evaluation.js index 3aa60678..19d05d29 100644 --- a/samples/generated/v1/model_service.import_model_evaluation.js +++ b/samples/generated/v1/model_service.import_model_evaluation.js @@ -23,6 +23,9 @@ function main(parent, modelEvaluation) { // [START aiplatform_v1_generated_ModelService_ImportModelEvaluation_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/model_service.list_model_evaluation_slices.js b/samples/generated/v1/model_service.list_model_evaluation_slices.js index b250b5bb..d009365f 100644 --- a/samples/generated/v1/model_service.list_model_evaluation_slices.js +++ b/samples/generated/v1/model_service.list_model_evaluation_slices.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_ModelService_ListModelEvaluationSlices_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/model_service.list_model_evaluations.js b/samples/generated/v1/model_service.list_model_evaluations.js index a51e0b92..32d43823 100644 --- a/samples/generated/v1/model_service.list_model_evaluations.js +++ b/samples/generated/v1/model_service.list_model_evaluations.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_ModelService_ListModelEvaluations_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/model_service.list_model_versions.js b/samples/generated/v1/model_service.list_model_versions.js index 0faa6953..487de862 100644 --- a/samples/generated/v1/model_service.list_model_versions.js +++ b/samples/generated/v1/model_service.list_model_versions.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_ModelService_ListModelVersions_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/model_service.list_models.js b/samples/generated/v1/model_service.list_models.js index 5ab134a1..cf0a6ddb 100644 --- a/samples/generated/v1/model_service.list_models.js +++ b/samples/generated/v1/model_service.list_models.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_ModelService_ListModels_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/model_service.merge_version_aliases.js b/samples/generated/v1/model_service.merge_version_aliases.js index e9ebcf65..4c3a5353 100644 --- a/samples/generated/v1/model_service.merge_version_aliases.js +++ b/samples/generated/v1/model_service.merge_version_aliases.js @@ -23,6 +23,9 @@ function main(name, versionAliases) { // [START aiplatform_v1_generated_ModelService_MergeVersionAliases_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/model_service.update_model.js b/samples/generated/v1/model_service.update_model.js index 55c147f7..4e4c2721 100644 --- a/samples/generated/v1/model_service.update_model.js +++ b/samples/generated/v1/model_service.update_model.js @@ -23,6 +23,9 @@ function main(model, updateMask) { // [START aiplatform_v1_generated_ModelService_UpdateModel_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/model_service.upload_model.js b/samples/generated/v1/model_service.upload_model.js index 677da742..d96da4f8 100644 --- a/samples/generated/v1/model_service.upload_model.js +++ b/samples/generated/v1/model_service.upload_model.js @@ -23,6 +23,9 @@ function main(parent, model) { // [START aiplatform_v1_generated_ModelService_UploadModel_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/pipeline_service.cancel_pipeline_job.js b/samples/generated/v1/pipeline_service.cancel_pipeline_job.js index 95e0f6a9..4b9560a9 100644 --- a/samples/generated/v1/pipeline_service.cancel_pipeline_job.js +++ b/samples/generated/v1/pipeline_service.cancel_pipeline_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_PipelineService_CancelPipelineJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/pipeline_service.cancel_training_pipeline.js b/samples/generated/v1/pipeline_service.cancel_training_pipeline.js index 5231e99a..38ba30b5 100644 --- a/samples/generated/v1/pipeline_service.cancel_training_pipeline.js +++ b/samples/generated/v1/pipeline_service.cancel_training_pipeline.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_PipelineService_CancelTrainingPipeline_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/pipeline_service.create_pipeline_job.js b/samples/generated/v1/pipeline_service.create_pipeline_job.js index 980f8078..992d9784 100644 --- a/samples/generated/v1/pipeline_service.create_pipeline_job.js +++ b/samples/generated/v1/pipeline_service.create_pipeline_job.js @@ -23,6 +23,9 @@ function main(parent, pipelineJob) { // [START aiplatform_v1_generated_PipelineService_CreatePipelineJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/pipeline_service.create_training_pipeline.js b/samples/generated/v1/pipeline_service.create_training_pipeline.js index e36572a6..644661d7 100644 --- a/samples/generated/v1/pipeline_service.create_training_pipeline.js +++ b/samples/generated/v1/pipeline_service.create_training_pipeline.js @@ -23,6 +23,9 @@ function main(parent, trainingPipeline) { // [START aiplatform_v1_generated_PipelineService_CreateTrainingPipeline_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/pipeline_service.delete_pipeline_job.js b/samples/generated/v1/pipeline_service.delete_pipeline_job.js index f5b7ac6e..a8a65dc2 100644 --- a/samples/generated/v1/pipeline_service.delete_pipeline_job.js +++ b/samples/generated/v1/pipeline_service.delete_pipeline_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_PipelineService_DeletePipelineJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/pipeline_service.delete_training_pipeline.js b/samples/generated/v1/pipeline_service.delete_training_pipeline.js index 2d3f80f6..adae4e51 100644 --- a/samples/generated/v1/pipeline_service.delete_training_pipeline.js +++ b/samples/generated/v1/pipeline_service.delete_training_pipeline.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_PipelineService_DeleteTrainingPipeline_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/pipeline_service.get_pipeline_job.js b/samples/generated/v1/pipeline_service.get_pipeline_job.js index d51e23ae..d73fb0d2 100644 --- a/samples/generated/v1/pipeline_service.get_pipeline_job.js +++ b/samples/generated/v1/pipeline_service.get_pipeline_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_PipelineService_GetPipelineJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/pipeline_service.get_training_pipeline.js b/samples/generated/v1/pipeline_service.get_training_pipeline.js index 563215f4..b39ea1e4 100644 --- a/samples/generated/v1/pipeline_service.get_training_pipeline.js +++ b/samples/generated/v1/pipeline_service.get_training_pipeline.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_PipelineService_GetTrainingPipeline_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/pipeline_service.list_pipeline_jobs.js b/samples/generated/v1/pipeline_service.list_pipeline_jobs.js index 96038aa8..a911a5ec 100644 --- a/samples/generated/v1/pipeline_service.list_pipeline_jobs.js +++ b/samples/generated/v1/pipeline_service.list_pipeline_jobs.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_PipelineService_ListPipelineJobs_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/pipeline_service.list_training_pipelines.js b/samples/generated/v1/pipeline_service.list_training_pipelines.js index 138ea14e..fcb67468 100644 --- a/samples/generated/v1/pipeline_service.list_training_pipelines.js +++ b/samples/generated/v1/pipeline_service.list_training_pipelines.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_PipelineService_ListTrainingPipelines_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/prediction_service.explain.js b/samples/generated/v1/prediction_service.explain.js index 170dbdf0..b73994f7 100644 --- a/samples/generated/v1/prediction_service.explain.js +++ b/samples/generated/v1/prediction_service.explain.js @@ -23,6 +23,9 @@ function main(endpoint, instances) { // [START aiplatform_v1_generated_PredictionService_Explain_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/prediction_service.predict.js b/samples/generated/v1/prediction_service.predict.js index b261763e..62de4f91 100644 --- a/samples/generated/v1/prediction_service.predict.js +++ b/samples/generated/v1/prediction_service.predict.js @@ -23,6 +23,9 @@ function main(endpoint, instances) { // [START aiplatform_v1_generated_PredictionService_Predict_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/prediction_service.raw_predict.js b/samples/generated/v1/prediction_service.raw_predict.js index efa2a94c..b7ffd239 100644 --- a/samples/generated/v1/prediction_service.raw_predict.js +++ b/samples/generated/v1/prediction_service.raw_predict.js @@ -23,6 +23,9 @@ function main(endpoint) { // [START aiplatform_v1_generated_PredictionService_RawPredict_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json b/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json index bfe24c1f..16f4fbb2 100644 --- a/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json +++ b/samples/generated/v1/snippet_metadata.google.cloud.aiplatform.v1.json @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -66,7 +66,7 @@ "segments": [ { "start": 25, - "end": 54, + "end": 57, "type": "FULL" } ], @@ -110,7 +110,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -154,7 +154,7 @@ "segments": [ { "start": 25, - "end": 88, + "end": 91, "type": "FULL" } ], @@ -214,7 +214,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -254,7 +254,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -298,7 +298,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -342,7 +342,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 78, "type": "FULL" } ], @@ -402,7 +402,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 78, "type": "FULL" } ], @@ -462,7 +462,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -506,7 +506,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 78, "type": "FULL" } ], @@ -566,7 +566,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -614,7 +614,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -654,7 +654,7 @@ "segments": [ { "start": 25, - "end": 94, + "end": 97, "type": "FULL" } ], @@ -714,7 +714,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -758,7 +758,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -798,7 +798,7 @@ "segments": [ { "start": 25, - "end": 73, + "end": 76, "type": "FULL" } ], @@ -846,7 +846,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -894,7 +894,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -942,7 +942,7 @@ "segments": [ { "start": 25, - "end": 70, + "end": 73, "type": "FULL" } ], @@ -990,7 +990,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 70, "type": "FULL" } ], @@ -1038,7 +1038,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -1078,7 +1078,7 @@ "segments": [ { "start": 25, - "end": 102, + "end": 105, "type": "FULL" } ], @@ -1138,7 +1138,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -1182,7 +1182,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -1226,7 +1226,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -1274,7 +1274,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1314,7 +1314,7 @@ "segments": [ { "start": 25, - "end": 101, + "end": 104, "type": "FULL" } ], @@ -1374,7 +1374,7 @@ "segments": [ { "start": 25, - "end": 73, + "end": 76, "type": "FULL" } ], @@ -1418,7 +1418,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -1462,7 +1462,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 70, "type": "FULL" } ], @@ -1510,7 +1510,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 64, "type": "FULL" } ], @@ -1554,7 +1554,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1594,7 +1594,7 @@ "segments": [ { "start": 25, - "end": 111, + "end": 114, "type": "FULL" } ], @@ -1658,7 +1658,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 70, "type": "FULL" } ], @@ -1702,7 +1702,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -1742,7 +1742,7 @@ "segments": [ { "start": 25, - "end": 103, + "end": 106, "type": "FULL" } ], @@ -1822,7 +1822,7 @@ "segments": [ { "start": 25, - "end": 100, + "end": 103, "type": "FULL" } ], @@ -1882,7 +1882,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -1942,7 +1942,7 @@ "segments": [ { "start": 25, - "end": 121, + "end": 124, "type": "FULL" } ], @@ -1994,7 +1994,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -2038,7 +2038,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -2078,7 +2078,7 @@ "segments": [ { "start": 25, - "end": 87, + "end": 90, "type": "FULL" } ], @@ -2134,7 +2134,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -2178,7 +2178,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -2218,7 +2218,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -2262,7 +2262,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -2306,7 +2306,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -2350,7 +2350,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -2394,7 +2394,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -2434,7 +2434,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -2490,7 +2490,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -2534,7 +2534,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -2574,7 +2574,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -2618,7 +2618,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -2658,7 +2658,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 85, "type": "FULL" } ], @@ -2714,7 +2714,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -2754,7 +2754,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -2794,7 +2794,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -2838,7 +2838,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -2878,7 +2878,7 @@ "segments": [ { "start": 25, - "end": 88, + "end": 91, "type": "FULL" } ], @@ -2938,7 +2938,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -2978,7 +2978,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -3018,7 +3018,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -3062,7 +3062,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -3102,7 +3102,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 85, "type": "FULL" } ], @@ -3158,7 +3158,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -3198,7 +3198,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -3238,7 +3238,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -3282,7 +3282,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -3322,7 +3322,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 86, "type": "FULL" } ], @@ -3378,7 +3378,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -3418,7 +3418,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -3458,7 +3458,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -3502,7 +3502,7 @@ "segments": [ { "start": 25, - "end": 92, + "end": 95, "type": "FULL" } ], @@ -3570,7 +3570,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -3610,7 +3610,7 @@ "segments": [ { "start": 25, - "end": 79, + "end": 82, "type": "FULL" } ], @@ -3666,7 +3666,7 @@ "segments": [ { "start": 25, - "end": 81, + "end": 84, "type": "FULL" } ], @@ -3710,7 +3710,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -3750,7 +3750,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -3790,7 +3790,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -3830,7 +3830,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -3878,7 +3878,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -3918,7 +3918,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -3966,7 +3966,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -4010,7 +4010,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -4058,7 +4058,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -4098,7 +4098,7 @@ "segments": [ { "start": 25, - "end": 94, + "end": 97, "type": "FULL" } ], @@ -4150,7 +4150,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -4198,7 +4198,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -4242,7 +4242,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -4290,7 +4290,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -4338,7 +4338,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -4378,7 +4378,7 @@ "segments": [ { "start": 25, - "end": 97, + "end": 100, "type": "FULL" } ], @@ -4430,7 +4430,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -4478,7 +4478,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -4526,7 +4526,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -4574,7 +4574,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -4622,7 +4622,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -4666,7 +4666,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -4706,7 +4706,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -4754,7 +4754,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -4794,7 +4794,7 @@ "segments": [ { "start": 25, - "end": 94, + "end": 97, "type": "FULL" } ], @@ -4846,7 +4846,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -4894,7 +4894,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -4938,7 +4938,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -4986,7 +4986,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -5030,7 +5030,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -5070,7 +5070,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -5118,7 +5118,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -5158,7 +5158,7 @@ "segments": [ { "start": 25, - "end": 73, + "end": 76, "type": "FULL" } ], @@ -5210,7 +5210,7 @@ "segments": [ { "start": 25, - "end": 85, + "end": 88, "type": "FULL" } ], @@ -5258,7 +5258,7 @@ "segments": [ { "start": 25, - "end": 79, + "end": 82, "type": "FULL" } ], @@ -5310,7 +5310,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -5354,7 +5354,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -5406,7 +5406,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -5446,7 +5446,7 @@ "segments": [ { "start": 25, - "end": 94, + "end": 97, "type": "FULL" } ], @@ -5506,7 +5506,7 @@ "segments": [ { "start": 25, - "end": 78, + "end": 81, "type": "FULL" } ], @@ -5562,7 +5562,7 @@ "segments": [ { "start": 25, - "end": 73, + "end": 76, "type": "FULL" } ], @@ -5606,7 +5606,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -5646,7 +5646,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -5686,7 +5686,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 70, "type": "FULL" } ], @@ -5730,7 +5730,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -5774,7 +5774,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -5818,7 +5818,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -5862,7 +5862,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -5902,7 +5902,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -5958,7 +5958,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -5998,7 +5998,7 @@ "segments": [ { "start": 25, - "end": 74, + "end": 77, "type": "FULL" } ], @@ -6054,7 +6054,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -6098,7 +6098,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -6138,7 +6138,7 @@ "segments": [ { "start": 25, - "end": 84, + "end": 87, "type": "FULL" } ], @@ -6194,7 +6194,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -6234,7 +6234,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -6274,7 +6274,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -6322,7 +6322,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -6362,7 +6362,7 @@ "segments": [ { "start": 25, - "end": 111, + "end": 114, "type": "FULL" } ], @@ -6418,7 +6418,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -6458,7 +6458,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -6498,7 +6498,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -6546,7 +6546,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -6590,7 +6590,7 @@ "segments": [ { "start": 25, - "end": 88, + "end": 91, "type": "FULL" } ], @@ -6646,7 +6646,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -6690,7 +6690,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -6730,7 +6730,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -6782,7 +6782,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -6826,7 +6826,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -6870,7 +6870,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -6914,7 +6914,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -6954,7 +6954,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -6998,7 +6998,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 85, "type": "FULL" } ], @@ -7058,7 +7058,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -7098,7 +7098,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -7146,7 +7146,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -7186,7 +7186,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -7230,7 +7230,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 85, "type": "FULL" } ], @@ -7290,7 +7290,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -7330,7 +7330,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -7378,7 +7378,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -7422,7 +7422,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -7462,7 +7462,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -7506,7 +7506,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 85, "type": "FULL" } ], @@ -7566,7 +7566,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -7606,7 +7606,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -7650,7 +7650,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -7698,7 +7698,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -7738,7 +7738,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -7782,7 +7782,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 85, "type": "FULL" } ], @@ -7842,7 +7842,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -7882,7 +7882,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -7926,7 +7926,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -7974,7 +7974,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -8018,7 +8018,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -8062,7 +8062,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 64, "type": "FULL" } ], @@ -8106,7 +8106,7 @@ "segments": [ { "start": 25, - "end": 79, + "end": 82, "type": "FULL" } ], @@ -8162,7 +8162,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -8206,7 +8206,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -8246,7 +8246,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -8294,7 +8294,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -8334,7 +8334,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -8378,7 +8378,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -8426,7 +8426,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -8470,7 +8470,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -8510,7 +8510,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -8558,7 +8558,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -8602,7 +8602,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -8654,7 +8654,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -8694,7 +8694,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -8734,7 +8734,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -8774,7 +8774,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], diff --git a/samples/generated/v1/specialist_pool_service.create_specialist_pool.js b/samples/generated/v1/specialist_pool_service.create_specialist_pool.js index 74a44498..7293b20e 100644 --- a/samples/generated/v1/specialist_pool_service.create_specialist_pool.js +++ b/samples/generated/v1/specialist_pool_service.create_specialist_pool.js @@ -23,6 +23,9 @@ function main(parent, specialistPool) { // [START aiplatform_v1_generated_SpecialistPoolService_CreateSpecialistPool_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/specialist_pool_service.delete_specialist_pool.js b/samples/generated/v1/specialist_pool_service.delete_specialist_pool.js index 4591902f..af0dbcc5 100644 --- a/samples/generated/v1/specialist_pool_service.delete_specialist_pool.js +++ b/samples/generated/v1/specialist_pool_service.delete_specialist_pool.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_SpecialistPoolService_DeleteSpecialistPool_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/specialist_pool_service.get_specialist_pool.js b/samples/generated/v1/specialist_pool_service.get_specialist_pool.js index 0840b976..686df681 100644 --- a/samples/generated/v1/specialist_pool_service.get_specialist_pool.js +++ b/samples/generated/v1/specialist_pool_service.get_specialist_pool.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_SpecialistPoolService_GetSpecialistPool_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/specialist_pool_service.list_specialist_pools.js b/samples/generated/v1/specialist_pool_service.list_specialist_pools.js index 6938bd46..e240a9bb 100644 --- a/samples/generated/v1/specialist_pool_service.list_specialist_pools.js +++ b/samples/generated/v1/specialist_pool_service.list_specialist_pools.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_SpecialistPoolService_ListSpecialistPools_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/specialist_pool_service.update_specialist_pool.js b/samples/generated/v1/specialist_pool_service.update_specialist_pool.js index 4dab9237..6cb64c32 100644 --- a/samples/generated/v1/specialist_pool_service.update_specialist_pool.js +++ b/samples/generated/v1/specialist_pool_service.update_specialist_pool.js @@ -23,6 +23,9 @@ function main(specialistPool, updateMask) { // [START aiplatform_v1_generated_SpecialistPoolService_UpdateSpecialistPool_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.batch_create_tensorboard_runs.js b/samples/generated/v1/tensorboard_service.batch_create_tensorboard_runs.js index 2f694697..799d7654 100644 --- a/samples/generated/v1/tensorboard_service.batch_create_tensorboard_runs.js +++ b/samples/generated/v1/tensorboard_service.batch_create_tensorboard_runs.js @@ -23,6 +23,9 @@ function main(parent, requests) { // [START aiplatform_v1_generated_TensorboardService_BatchCreateTensorboardRuns_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.batch_create_tensorboard_time_series.js b/samples/generated/v1/tensorboard_service.batch_create_tensorboard_time_series.js index 3a76136c..b2ec7764 100644 --- a/samples/generated/v1/tensorboard_service.batch_create_tensorboard_time_series.js +++ b/samples/generated/v1/tensorboard_service.batch_create_tensorboard_time_series.js @@ -23,6 +23,9 @@ function main(parent, requests) { // [START aiplatform_v1_generated_TensorboardService_BatchCreateTensorboardTimeSeries_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.batch_read_tensorboard_time_series_data.js b/samples/generated/v1/tensorboard_service.batch_read_tensorboard_time_series_data.js index 904cf6ef..3eee1e7e 100644 --- a/samples/generated/v1/tensorboard_service.batch_read_tensorboard_time_series_data.js +++ b/samples/generated/v1/tensorboard_service.batch_read_tensorboard_time_series_data.js @@ -23,6 +23,9 @@ function main(tensorboard, timeSeries) { // [START aiplatform_v1_generated_TensorboardService_BatchReadTensorboardTimeSeriesData_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.create_tensorboard.js b/samples/generated/v1/tensorboard_service.create_tensorboard.js index d90f4b4b..24c676a3 100644 --- a/samples/generated/v1/tensorboard_service.create_tensorboard.js +++ b/samples/generated/v1/tensorboard_service.create_tensorboard.js @@ -23,6 +23,9 @@ function main(parent, tensorboard) { // [START aiplatform_v1_generated_TensorboardService_CreateTensorboard_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.create_tensorboard_experiment.js b/samples/generated/v1/tensorboard_service.create_tensorboard_experiment.js index 19402413..7f5eb4fb 100644 --- a/samples/generated/v1/tensorboard_service.create_tensorboard_experiment.js +++ b/samples/generated/v1/tensorboard_service.create_tensorboard_experiment.js @@ -23,6 +23,9 @@ function main(parent, tensorboardExperimentId) { // [START aiplatform_v1_generated_TensorboardService_CreateTensorboardExperiment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.create_tensorboard_run.js b/samples/generated/v1/tensorboard_service.create_tensorboard_run.js index b2f82d83..3b871b13 100644 --- a/samples/generated/v1/tensorboard_service.create_tensorboard_run.js +++ b/samples/generated/v1/tensorboard_service.create_tensorboard_run.js @@ -23,6 +23,9 @@ function main(parent, tensorboardRun, tensorboardRunId) { // [START aiplatform_v1_generated_TensorboardService_CreateTensorboardRun_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.create_tensorboard_time_series.js b/samples/generated/v1/tensorboard_service.create_tensorboard_time_series.js index 28f0b52a..ab5ce78a 100644 --- a/samples/generated/v1/tensorboard_service.create_tensorboard_time_series.js +++ b/samples/generated/v1/tensorboard_service.create_tensorboard_time_series.js @@ -23,6 +23,9 @@ function main(parent, tensorboardTimeSeries) { // [START aiplatform_v1_generated_TensorboardService_CreateTensorboardTimeSeries_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.delete_tensorboard.js b/samples/generated/v1/tensorboard_service.delete_tensorboard.js index 4909da64..15f6a1a5 100644 --- a/samples/generated/v1/tensorboard_service.delete_tensorboard.js +++ b/samples/generated/v1/tensorboard_service.delete_tensorboard.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_TensorboardService_DeleteTensorboard_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.delete_tensorboard_experiment.js b/samples/generated/v1/tensorboard_service.delete_tensorboard_experiment.js index a0b188a6..8a5210aa 100644 --- a/samples/generated/v1/tensorboard_service.delete_tensorboard_experiment.js +++ b/samples/generated/v1/tensorboard_service.delete_tensorboard_experiment.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_TensorboardService_DeleteTensorboardExperiment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.delete_tensorboard_run.js b/samples/generated/v1/tensorboard_service.delete_tensorboard_run.js index 3e02a8f4..59eff3b2 100644 --- a/samples/generated/v1/tensorboard_service.delete_tensorboard_run.js +++ b/samples/generated/v1/tensorboard_service.delete_tensorboard_run.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_TensorboardService_DeleteTensorboardRun_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.delete_tensorboard_time_series.js b/samples/generated/v1/tensorboard_service.delete_tensorboard_time_series.js index 2a5bca36..c826a7c2 100644 --- a/samples/generated/v1/tensorboard_service.delete_tensorboard_time_series.js +++ b/samples/generated/v1/tensorboard_service.delete_tensorboard_time_series.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_TensorboardService_DeleteTensorboardTimeSeries_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.export_tensorboard_time_series_data.js b/samples/generated/v1/tensorboard_service.export_tensorboard_time_series_data.js index 879fb03e..cab15668 100644 --- a/samples/generated/v1/tensorboard_service.export_tensorboard_time_series_data.js +++ b/samples/generated/v1/tensorboard_service.export_tensorboard_time_series_data.js @@ -23,6 +23,9 @@ function main(tensorboardTimeSeries) { // [START aiplatform_v1_generated_TensorboardService_ExportTensorboardTimeSeriesData_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.get_tensorboard.js b/samples/generated/v1/tensorboard_service.get_tensorboard.js index 614c0edf..64941c8c 100644 --- a/samples/generated/v1/tensorboard_service.get_tensorboard.js +++ b/samples/generated/v1/tensorboard_service.get_tensorboard.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_TensorboardService_GetTensorboard_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.get_tensorboard_experiment.js b/samples/generated/v1/tensorboard_service.get_tensorboard_experiment.js index bf41f768..8e15bba4 100644 --- a/samples/generated/v1/tensorboard_service.get_tensorboard_experiment.js +++ b/samples/generated/v1/tensorboard_service.get_tensorboard_experiment.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_TensorboardService_GetTensorboardExperiment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.get_tensorboard_run.js b/samples/generated/v1/tensorboard_service.get_tensorboard_run.js index e6c45e7c..73c3a736 100644 --- a/samples/generated/v1/tensorboard_service.get_tensorboard_run.js +++ b/samples/generated/v1/tensorboard_service.get_tensorboard_run.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_TensorboardService_GetTensorboardRun_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.get_tensorboard_time_series.js b/samples/generated/v1/tensorboard_service.get_tensorboard_time_series.js index e6d5c2a7..a184731d 100644 --- a/samples/generated/v1/tensorboard_service.get_tensorboard_time_series.js +++ b/samples/generated/v1/tensorboard_service.get_tensorboard_time_series.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_TensorboardService_GetTensorboardTimeSeries_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.list_tensorboard_experiments.js b/samples/generated/v1/tensorboard_service.list_tensorboard_experiments.js index e35a7757..18ba1611 100644 --- a/samples/generated/v1/tensorboard_service.list_tensorboard_experiments.js +++ b/samples/generated/v1/tensorboard_service.list_tensorboard_experiments.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_TensorboardService_ListTensorboardExperiments_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.list_tensorboard_runs.js b/samples/generated/v1/tensorboard_service.list_tensorboard_runs.js index 22b78268..a23885eb 100644 --- a/samples/generated/v1/tensorboard_service.list_tensorboard_runs.js +++ b/samples/generated/v1/tensorboard_service.list_tensorboard_runs.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_TensorboardService_ListTensorboardRuns_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.list_tensorboard_time_series.js b/samples/generated/v1/tensorboard_service.list_tensorboard_time_series.js index 8da5964f..42d7cf63 100644 --- a/samples/generated/v1/tensorboard_service.list_tensorboard_time_series.js +++ b/samples/generated/v1/tensorboard_service.list_tensorboard_time_series.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_TensorboardService_ListTensorboardTimeSeries_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.list_tensorboards.js b/samples/generated/v1/tensorboard_service.list_tensorboards.js index 21cd57b2..382c9563 100644 --- a/samples/generated/v1/tensorboard_service.list_tensorboards.js +++ b/samples/generated/v1/tensorboard_service.list_tensorboards.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_TensorboardService_ListTensorboards_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.read_tensorboard_blob_data.js b/samples/generated/v1/tensorboard_service.read_tensorboard_blob_data.js index 34a806e7..80de1a94 100644 --- a/samples/generated/v1/tensorboard_service.read_tensorboard_blob_data.js +++ b/samples/generated/v1/tensorboard_service.read_tensorboard_blob_data.js @@ -23,6 +23,9 @@ function main(timeSeries) { // [START aiplatform_v1_generated_TensorboardService_ReadTensorboardBlobData_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.read_tensorboard_time_series_data.js b/samples/generated/v1/tensorboard_service.read_tensorboard_time_series_data.js index 1a2b5d3e..78c9fe0d 100644 --- a/samples/generated/v1/tensorboard_service.read_tensorboard_time_series_data.js +++ b/samples/generated/v1/tensorboard_service.read_tensorboard_time_series_data.js @@ -23,6 +23,9 @@ function main(tensorboardTimeSeries) { // [START aiplatform_v1_generated_TensorboardService_ReadTensorboardTimeSeriesData_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.update_tensorboard.js b/samples/generated/v1/tensorboard_service.update_tensorboard.js index 7e3826fe..a7e18a29 100644 --- a/samples/generated/v1/tensorboard_service.update_tensorboard.js +++ b/samples/generated/v1/tensorboard_service.update_tensorboard.js @@ -23,6 +23,9 @@ function main(updateMask, tensorboard) { // [START aiplatform_v1_generated_TensorboardService_UpdateTensorboard_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.update_tensorboard_experiment.js b/samples/generated/v1/tensorboard_service.update_tensorboard_experiment.js index f5e599ae..a7d2f468 100644 --- a/samples/generated/v1/tensorboard_service.update_tensorboard_experiment.js +++ b/samples/generated/v1/tensorboard_service.update_tensorboard_experiment.js @@ -23,6 +23,9 @@ function main(updateMask, tensorboardExperiment) { // [START aiplatform_v1_generated_TensorboardService_UpdateTensorboardExperiment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.update_tensorboard_run.js b/samples/generated/v1/tensorboard_service.update_tensorboard_run.js index cd5615f5..bb39cc2f 100644 --- a/samples/generated/v1/tensorboard_service.update_tensorboard_run.js +++ b/samples/generated/v1/tensorboard_service.update_tensorboard_run.js @@ -23,6 +23,9 @@ function main(updateMask, tensorboardRun) { // [START aiplatform_v1_generated_TensorboardService_UpdateTensorboardRun_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.update_tensorboard_time_series.js b/samples/generated/v1/tensorboard_service.update_tensorboard_time_series.js index f4530eb0..e088739b 100644 --- a/samples/generated/v1/tensorboard_service.update_tensorboard_time_series.js +++ b/samples/generated/v1/tensorboard_service.update_tensorboard_time_series.js @@ -23,6 +23,9 @@ function main(updateMask, tensorboardTimeSeries) { // [START aiplatform_v1_generated_TensorboardService_UpdateTensorboardTimeSeries_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.write_tensorboard_experiment_data.js b/samples/generated/v1/tensorboard_service.write_tensorboard_experiment_data.js index 3a62d16b..1d4b1f72 100644 --- a/samples/generated/v1/tensorboard_service.write_tensorboard_experiment_data.js +++ b/samples/generated/v1/tensorboard_service.write_tensorboard_experiment_data.js @@ -23,6 +23,9 @@ function main(tensorboardExperiment, writeRunDataRequests) { // [START aiplatform_v1_generated_TensorboardService_WriteTensorboardExperimentData_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/tensorboard_service.write_tensorboard_run_data.js b/samples/generated/v1/tensorboard_service.write_tensorboard_run_data.js index 679b7757..3832a834 100644 --- a/samples/generated/v1/tensorboard_service.write_tensorboard_run_data.js +++ b/samples/generated/v1/tensorboard_service.write_tensorboard_run_data.js @@ -23,6 +23,9 @@ function main(tensorboardRun, timeSeriesData) { // [START aiplatform_v1_generated_TensorboardService_WriteTensorboardRunData_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/vizier_service.add_trial_measurement.js b/samples/generated/v1/vizier_service.add_trial_measurement.js index f57b3eb3..4f82bef7 100644 --- a/samples/generated/v1/vizier_service.add_trial_measurement.js +++ b/samples/generated/v1/vizier_service.add_trial_measurement.js @@ -23,6 +23,9 @@ function main(trialName, measurement) { // [START aiplatform_v1_generated_VizierService_AddTrialMeasurement_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/vizier_service.check_trial_early_stopping_state.js b/samples/generated/v1/vizier_service.check_trial_early_stopping_state.js index 53f43ef6..3e2a0bee 100644 --- a/samples/generated/v1/vizier_service.check_trial_early_stopping_state.js +++ b/samples/generated/v1/vizier_service.check_trial_early_stopping_state.js @@ -23,6 +23,9 @@ function main(trialName) { // [START aiplatform_v1_generated_VizierService_CheckTrialEarlyStoppingState_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/vizier_service.complete_trial.js b/samples/generated/v1/vizier_service.complete_trial.js index a2a7f480..7959a784 100644 --- a/samples/generated/v1/vizier_service.complete_trial.js +++ b/samples/generated/v1/vizier_service.complete_trial.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_VizierService_CompleteTrial_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/vizier_service.create_study.js b/samples/generated/v1/vizier_service.create_study.js index 3778e7dc..9ba62741 100644 --- a/samples/generated/v1/vizier_service.create_study.js +++ b/samples/generated/v1/vizier_service.create_study.js @@ -23,6 +23,9 @@ function main(parent, study) { // [START aiplatform_v1_generated_VizierService_CreateStudy_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/vizier_service.create_trial.js b/samples/generated/v1/vizier_service.create_trial.js index 95a5b995..22234d93 100644 --- a/samples/generated/v1/vizier_service.create_trial.js +++ b/samples/generated/v1/vizier_service.create_trial.js @@ -23,6 +23,9 @@ function main(parent, trial) { // [START aiplatform_v1_generated_VizierService_CreateTrial_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/vizier_service.delete_study.js b/samples/generated/v1/vizier_service.delete_study.js index fa3a72cc..f02d7776 100644 --- a/samples/generated/v1/vizier_service.delete_study.js +++ b/samples/generated/v1/vizier_service.delete_study.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_VizierService_DeleteStudy_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/vizier_service.delete_trial.js b/samples/generated/v1/vizier_service.delete_trial.js index ff2b2e1c..cea002eb 100644 --- a/samples/generated/v1/vizier_service.delete_trial.js +++ b/samples/generated/v1/vizier_service.delete_trial.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_VizierService_DeleteTrial_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/vizier_service.get_study.js b/samples/generated/v1/vizier_service.get_study.js index d534711b..9433a10e 100644 --- a/samples/generated/v1/vizier_service.get_study.js +++ b/samples/generated/v1/vizier_service.get_study.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_VizierService_GetStudy_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/vizier_service.get_trial.js b/samples/generated/v1/vizier_service.get_trial.js index 032a9024..12cf8b9a 100644 --- a/samples/generated/v1/vizier_service.get_trial.js +++ b/samples/generated/v1/vizier_service.get_trial.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_VizierService_GetTrial_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/vizier_service.list_optimal_trials.js b/samples/generated/v1/vizier_service.list_optimal_trials.js index eae77f1f..beb5b901 100644 --- a/samples/generated/v1/vizier_service.list_optimal_trials.js +++ b/samples/generated/v1/vizier_service.list_optimal_trials.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_VizierService_ListOptimalTrials_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/vizier_service.list_studies.js b/samples/generated/v1/vizier_service.list_studies.js index 0ba579ce..d1cc9b92 100644 --- a/samples/generated/v1/vizier_service.list_studies.js +++ b/samples/generated/v1/vizier_service.list_studies.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_VizierService_ListStudies_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/vizier_service.list_trials.js b/samples/generated/v1/vizier_service.list_trials.js index f1956c74..8d98e211 100644 --- a/samples/generated/v1/vizier_service.list_trials.js +++ b/samples/generated/v1/vizier_service.list_trials.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1_generated_VizierService_ListTrials_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/vizier_service.lookup_study.js b/samples/generated/v1/vizier_service.lookup_study.js index 324b7c68..7d346802 100644 --- a/samples/generated/v1/vizier_service.lookup_study.js +++ b/samples/generated/v1/vizier_service.lookup_study.js @@ -23,6 +23,9 @@ function main(parent, displayName) { // [START aiplatform_v1_generated_VizierService_LookupStudy_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/vizier_service.stop_trial.js b/samples/generated/v1/vizier_service.stop_trial.js index e9c4732c..06c84064 100644 --- a/samples/generated/v1/vizier_service.stop_trial.js +++ b/samples/generated/v1/vizier_service.stop_trial.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1_generated_VizierService_StopTrial_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1/vizier_service.suggest_trials.js b/samples/generated/v1/vizier_service.suggest_trials.js index e229f7f7..f5257908 100644 --- a/samples/generated/v1/vizier_service.suggest_trials.js +++ b/samples/generated/v1/vizier_service.suggest_trials.js @@ -23,6 +23,9 @@ function main(parent, suggestionCount, clientId) { // [START aiplatform_v1_generated_VizierService_SuggestTrials_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataset_service.create_dataset.js b/samples/generated/v1beta1/dataset_service.create_dataset.js index f32effc0..b0c64681 100644 --- a/samples/generated/v1beta1/dataset_service.create_dataset.js +++ b/samples/generated/v1beta1/dataset_service.create_dataset.js @@ -23,6 +23,9 @@ function main(parent, dataset) { // [START aiplatform_v1beta1_generated_DatasetService_CreateDataset_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataset_service.delete_dataset.js b/samples/generated/v1beta1/dataset_service.delete_dataset.js index fdbf798a..6432c8d6 100644 --- a/samples/generated/v1beta1/dataset_service.delete_dataset.js +++ b/samples/generated/v1beta1/dataset_service.delete_dataset.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_DatasetService_DeleteDataset_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataset_service.export_data.js b/samples/generated/v1beta1/dataset_service.export_data.js index 1e93e77c..63939a79 100644 --- a/samples/generated/v1beta1/dataset_service.export_data.js +++ b/samples/generated/v1beta1/dataset_service.export_data.js @@ -23,6 +23,9 @@ function main(name, exportConfig) { // [START aiplatform_v1beta1_generated_DatasetService_ExportData_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataset_service.get_annotation_spec.js b/samples/generated/v1beta1/dataset_service.get_annotation_spec.js index f65060d0..a7fc64fe 100644 --- a/samples/generated/v1beta1/dataset_service.get_annotation_spec.js +++ b/samples/generated/v1beta1/dataset_service.get_annotation_spec.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_DatasetService_GetAnnotationSpec_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataset_service.get_dataset.js b/samples/generated/v1beta1/dataset_service.get_dataset.js index 94d4ab5a..71879dc8 100644 --- a/samples/generated/v1beta1/dataset_service.get_dataset.js +++ b/samples/generated/v1beta1/dataset_service.get_dataset.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_DatasetService_GetDataset_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataset_service.import_data.js b/samples/generated/v1beta1/dataset_service.import_data.js index 105f9481..0cb8aa08 100644 --- a/samples/generated/v1beta1/dataset_service.import_data.js +++ b/samples/generated/v1beta1/dataset_service.import_data.js @@ -23,6 +23,9 @@ function main(name, importConfigs) { // [START aiplatform_v1beta1_generated_DatasetService_ImportData_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataset_service.list_annotations.js b/samples/generated/v1beta1/dataset_service.list_annotations.js index d0aef959..9fc64663 100644 --- a/samples/generated/v1beta1/dataset_service.list_annotations.js +++ b/samples/generated/v1beta1/dataset_service.list_annotations.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_DatasetService_ListAnnotations_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataset_service.list_data_items.js b/samples/generated/v1beta1/dataset_service.list_data_items.js index 65fc694e..a4d6f655 100644 --- a/samples/generated/v1beta1/dataset_service.list_data_items.js +++ b/samples/generated/v1beta1/dataset_service.list_data_items.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_DatasetService_ListDataItems_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataset_service.list_datasets.js b/samples/generated/v1beta1/dataset_service.list_datasets.js index 94fddd8c..e63d0d90 100644 --- a/samples/generated/v1beta1/dataset_service.list_datasets.js +++ b/samples/generated/v1beta1/dataset_service.list_datasets.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_DatasetService_ListDatasets_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataset_service.list_saved_queries.js b/samples/generated/v1beta1/dataset_service.list_saved_queries.js index bf596263..642b10d8 100644 --- a/samples/generated/v1beta1/dataset_service.list_saved_queries.js +++ b/samples/generated/v1beta1/dataset_service.list_saved_queries.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_DatasetService_ListSavedQueries_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/dataset_service.update_dataset.js b/samples/generated/v1beta1/dataset_service.update_dataset.js index e0cdd05c..554a1882 100644 --- a/samples/generated/v1beta1/dataset_service.update_dataset.js +++ b/samples/generated/v1beta1/dataset_service.update_dataset.js @@ -23,6 +23,9 @@ function main(dataset, updateMask) { // [START aiplatform_v1beta1_generated_DatasetService_UpdateDataset_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/deployment_resource_pool_service.create_deployment_resource_pool.js b/samples/generated/v1beta1/deployment_resource_pool_service.create_deployment_resource_pool.js index 72af047f..7d4e8f3a 100644 --- a/samples/generated/v1beta1/deployment_resource_pool_service.create_deployment_resource_pool.js +++ b/samples/generated/v1beta1/deployment_resource_pool_service.create_deployment_resource_pool.js @@ -23,6 +23,9 @@ function main(parent, deploymentResourcePool, deploymentResourcePoolId) { // [START aiplatform_v1beta1_generated_DeploymentResourcePoolService_CreateDeploymentResourcePool_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/deployment_resource_pool_service.delete_deployment_resource_pool.js b/samples/generated/v1beta1/deployment_resource_pool_service.delete_deployment_resource_pool.js index b7765681..4ce318f1 100644 --- a/samples/generated/v1beta1/deployment_resource_pool_service.delete_deployment_resource_pool.js +++ b/samples/generated/v1beta1/deployment_resource_pool_service.delete_deployment_resource_pool.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_DeploymentResourcePoolService_DeleteDeploymentResourcePool_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/deployment_resource_pool_service.get_deployment_resource_pool.js b/samples/generated/v1beta1/deployment_resource_pool_service.get_deployment_resource_pool.js index 55412f8c..5f41499f 100644 --- a/samples/generated/v1beta1/deployment_resource_pool_service.get_deployment_resource_pool.js +++ b/samples/generated/v1beta1/deployment_resource_pool_service.get_deployment_resource_pool.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_DeploymentResourcePoolService_GetDeploymentResourcePool_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/deployment_resource_pool_service.list_deployment_resource_pools.js b/samples/generated/v1beta1/deployment_resource_pool_service.list_deployment_resource_pools.js index c074e9a9..870cb8e9 100644 --- a/samples/generated/v1beta1/deployment_resource_pool_service.list_deployment_resource_pools.js +++ b/samples/generated/v1beta1/deployment_resource_pool_service.list_deployment_resource_pools.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_DeploymentResourcePoolService_ListDeploymentResourcePools_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/deployment_resource_pool_service.query_deployed_models.js b/samples/generated/v1beta1/deployment_resource_pool_service.query_deployed_models.js index a7879e74..42e8f330 100644 --- a/samples/generated/v1beta1/deployment_resource_pool_service.query_deployed_models.js +++ b/samples/generated/v1beta1/deployment_resource_pool_service.query_deployed_models.js @@ -23,6 +23,9 @@ function main(deploymentResourcePool) { // [START aiplatform_v1beta1_generated_DeploymentResourcePoolService_QueryDeployedModels_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/endpoint_service.create_endpoint.js b/samples/generated/v1beta1/endpoint_service.create_endpoint.js index 63f7438b..29f037af 100644 --- a/samples/generated/v1beta1/endpoint_service.create_endpoint.js +++ b/samples/generated/v1beta1/endpoint_service.create_endpoint.js @@ -23,6 +23,9 @@ function main(parent, endpoint, endpointId) { // [START aiplatform_v1beta1_generated_EndpointService_CreateEndpoint_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/endpoint_service.delete_endpoint.js b/samples/generated/v1beta1/endpoint_service.delete_endpoint.js index 383ae8d9..d8c0df48 100644 --- a/samples/generated/v1beta1/endpoint_service.delete_endpoint.js +++ b/samples/generated/v1beta1/endpoint_service.delete_endpoint.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_EndpointService_DeleteEndpoint_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/endpoint_service.deploy_model.js b/samples/generated/v1beta1/endpoint_service.deploy_model.js index 41217ebb..04467707 100644 --- a/samples/generated/v1beta1/endpoint_service.deploy_model.js +++ b/samples/generated/v1beta1/endpoint_service.deploy_model.js @@ -23,6 +23,9 @@ function main(endpoint, deployedModel) { // [START aiplatform_v1beta1_generated_EndpointService_DeployModel_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/endpoint_service.get_endpoint.js b/samples/generated/v1beta1/endpoint_service.get_endpoint.js index 7412969c..35c27ab6 100644 --- a/samples/generated/v1beta1/endpoint_service.get_endpoint.js +++ b/samples/generated/v1beta1/endpoint_service.get_endpoint.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_EndpointService_GetEndpoint_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/endpoint_service.list_endpoints.js b/samples/generated/v1beta1/endpoint_service.list_endpoints.js index 0df00615..ed766d27 100644 --- a/samples/generated/v1beta1/endpoint_service.list_endpoints.js +++ b/samples/generated/v1beta1/endpoint_service.list_endpoints.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_EndpointService_ListEndpoints_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/endpoint_service.undeploy_model.js b/samples/generated/v1beta1/endpoint_service.undeploy_model.js index 77d21d13..75c7ffa0 100644 --- a/samples/generated/v1beta1/endpoint_service.undeploy_model.js +++ b/samples/generated/v1beta1/endpoint_service.undeploy_model.js @@ -23,6 +23,9 @@ function main(endpoint, deployedModelId) { // [START aiplatform_v1beta1_generated_EndpointService_UndeployModel_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/endpoint_service.update_endpoint.js b/samples/generated/v1beta1/endpoint_service.update_endpoint.js index 6cd9ba2b..b8aa6e28 100644 --- a/samples/generated/v1beta1/endpoint_service.update_endpoint.js +++ b/samples/generated/v1beta1/endpoint_service.update_endpoint.js @@ -23,6 +23,9 @@ function main(endpoint, updateMask) { // [START aiplatform_v1beta1_generated_EndpointService_UpdateEndpoint_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/featurestore_online_serving_service.read_feature_values.js b/samples/generated/v1beta1/featurestore_online_serving_service.read_feature_values.js index a3e9fedd..aca11e1a 100644 --- a/samples/generated/v1beta1/featurestore_online_serving_service.read_feature_values.js +++ b/samples/generated/v1beta1/featurestore_online_serving_service.read_feature_values.js @@ -23,6 +23,9 @@ function main(entityType, entityId, featureSelector) { // [START aiplatform_v1beta1_generated_FeaturestoreOnlineServingService_ReadFeatureValues_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/featurestore_online_serving_service.streaming_read_feature_values.js b/samples/generated/v1beta1/featurestore_online_serving_service.streaming_read_feature_values.js index a8eef569..65a09e96 100644 --- a/samples/generated/v1beta1/featurestore_online_serving_service.streaming_read_feature_values.js +++ b/samples/generated/v1beta1/featurestore_online_serving_service.streaming_read_feature_values.js @@ -23,6 +23,9 @@ function main(entityType, entityIds, featureSelector) { // [START aiplatform_v1beta1_generated_FeaturestoreOnlineServingService_StreamingReadFeatureValues_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/featurestore_online_serving_service.write_feature_values.js b/samples/generated/v1beta1/featurestore_online_serving_service.write_feature_values.js index e08d8961..98b7838f 100644 --- a/samples/generated/v1beta1/featurestore_online_serving_service.write_feature_values.js +++ b/samples/generated/v1beta1/featurestore_online_serving_service.write_feature_values.js @@ -23,6 +23,9 @@ function main(entityType, payloads) { // [START aiplatform_v1beta1_generated_FeaturestoreOnlineServingService_WriteFeatureValues_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/featurestore_service.batch_create_features.js b/samples/generated/v1beta1/featurestore_service.batch_create_features.js index d2a75612..644be813 100644 --- a/samples/generated/v1beta1/featurestore_service.batch_create_features.js +++ b/samples/generated/v1beta1/featurestore_service.batch_create_features.js @@ -23,6 +23,9 @@ function main(parent, requests) { // [START aiplatform_v1beta1_generated_FeaturestoreService_BatchCreateFeatures_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/featurestore_service.batch_read_feature_values.js b/samples/generated/v1beta1/featurestore_service.batch_read_feature_values.js index 2fb6e1a2..67b7c629 100644 --- a/samples/generated/v1beta1/featurestore_service.batch_read_feature_values.js +++ b/samples/generated/v1beta1/featurestore_service.batch_read_feature_values.js @@ -23,6 +23,9 @@ function main(featurestore, destination, entityTypeSpecs) { // [START aiplatform_v1beta1_generated_FeaturestoreService_BatchReadFeatureValues_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/featurestore_service.create_entity_type.js b/samples/generated/v1beta1/featurestore_service.create_entity_type.js index 3b9c1008..bbc00325 100644 --- a/samples/generated/v1beta1/featurestore_service.create_entity_type.js +++ b/samples/generated/v1beta1/featurestore_service.create_entity_type.js @@ -23,6 +23,9 @@ function main(parent, entityTypeId) { // [START aiplatform_v1beta1_generated_FeaturestoreService_CreateEntityType_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/featurestore_service.create_feature.js b/samples/generated/v1beta1/featurestore_service.create_feature.js index ea1de064..8d3bfe1d 100644 --- a/samples/generated/v1beta1/featurestore_service.create_feature.js +++ b/samples/generated/v1beta1/featurestore_service.create_feature.js @@ -23,6 +23,9 @@ function main(parent, feature, featureId) { // [START aiplatform_v1beta1_generated_FeaturestoreService_CreateFeature_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/featurestore_service.create_featurestore.js b/samples/generated/v1beta1/featurestore_service.create_featurestore.js index f0b27b17..c86b5c07 100644 --- a/samples/generated/v1beta1/featurestore_service.create_featurestore.js +++ b/samples/generated/v1beta1/featurestore_service.create_featurestore.js @@ -23,6 +23,9 @@ function main(parent, featurestore, featurestoreId) { // [START aiplatform_v1beta1_generated_FeaturestoreService_CreateFeaturestore_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/featurestore_service.delete_entity_type.js b/samples/generated/v1beta1/featurestore_service.delete_entity_type.js index 4ad11c93..1caf807a 100644 --- a/samples/generated/v1beta1/featurestore_service.delete_entity_type.js +++ b/samples/generated/v1beta1/featurestore_service.delete_entity_type.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_FeaturestoreService_DeleteEntityType_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/featurestore_service.delete_feature.js b/samples/generated/v1beta1/featurestore_service.delete_feature.js index 6ff71bde..264496df 100644 --- a/samples/generated/v1beta1/featurestore_service.delete_feature.js +++ b/samples/generated/v1beta1/featurestore_service.delete_feature.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_FeaturestoreService_DeleteFeature_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/featurestore_service.delete_featurestore.js b/samples/generated/v1beta1/featurestore_service.delete_featurestore.js index ebab971c..7b6989e4 100644 --- a/samples/generated/v1beta1/featurestore_service.delete_featurestore.js +++ b/samples/generated/v1beta1/featurestore_service.delete_featurestore.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_FeaturestoreService_DeleteFeaturestore_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/featurestore_service.export_feature_values.js b/samples/generated/v1beta1/featurestore_service.export_feature_values.js index 16f08cf7..e53cedf2 100644 --- a/samples/generated/v1beta1/featurestore_service.export_feature_values.js +++ b/samples/generated/v1beta1/featurestore_service.export_feature_values.js @@ -23,6 +23,9 @@ function main(entityType, destination, featureSelector) { // [START aiplatform_v1beta1_generated_FeaturestoreService_ExportFeatureValues_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/featurestore_service.get_entity_type.js b/samples/generated/v1beta1/featurestore_service.get_entity_type.js index bf668625..c8a7ad53 100644 --- a/samples/generated/v1beta1/featurestore_service.get_entity_type.js +++ b/samples/generated/v1beta1/featurestore_service.get_entity_type.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_FeaturestoreService_GetEntityType_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/featurestore_service.get_feature.js b/samples/generated/v1beta1/featurestore_service.get_feature.js index e9bdb273..97bfbd58 100644 --- a/samples/generated/v1beta1/featurestore_service.get_feature.js +++ b/samples/generated/v1beta1/featurestore_service.get_feature.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_FeaturestoreService_GetFeature_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/featurestore_service.get_featurestore.js b/samples/generated/v1beta1/featurestore_service.get_featurestore.js index bb3e663c..641a7f29 100644 --- a/samples/generated/v1beta1/featurestore_service.get_featurestore.js +++ b/samples/generated/v1beta1/featurestore_service.get_featurestore.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_FeaturestoreService_GetFeaturestore_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/featurestore_service.import_feature_values.js b/samples/generated/v1beta1/featurestore_service.import_feature_values.js index 3d9d1df8..ddddbc1f 100644 --- a/samples/generated/v1beta1/featurestore_service.import_feature_values.js +++ b/samples/generated/v1beta1/featurestore_service.import_feature_values.js @@ -23,6 +23,9 @@ function main(entityType, featureSpecs) { // [START aiplatform_v1beta1_generated_FeaturestoreService_ImportFeatureValues_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/featurestore_service.list_entity_types.js b/samples/generated/v1beta1/featurestore_service.list_entity_types.js index 325c194a..c0508c7a 100644 --- a/samples/generated/v1beta1/featurestore_service.list_entity_types.js +++ b/samples/generated/v1beta1/featurestore_service.list_entity_types.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_FeaturestoreService_ListEntityTypes_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/featurestore_service.list_features.js b/samples/generated/v1beta1/featurestore_service.list_features.js index 637f755b..9027ed85 100644 --- a/samples/generated/v1beta1/featurestore_service.list_features.js +++ b/samples/generated/v1beta1/featurestore_service.list_features.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_FeaturestoreService_ListFeatures_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/featurestore_service.list_featurestores.js b/samples/generated/v1beta1/featurestore_service.list_featurestores.js index 7f6dbc4e..7c10d168 100644 --- a/samples/generated/v1beta1/featurestore_service.list_featurestores.js +++ b/samples/generated/v1beta1/featurestore_service.list_featurestores.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_FeaturestoreService_ListFeaturestores_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/featurestore_service.search_features.js b/samples/generated/v1beta1/featurestore_service.search_features.js index e3c8a897..6c4e645c 100644 --- a/samples/generated/v1beta1/featurestore_service.search_features.js +++ b/samples/generated/v1beta1/featurestore_service.search_features.js @@ -23,6 +23,9 @@ function main(location) { // [START aiplatform_v1beta1_generated_FeaturestoreService_SearchFeatures_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/featurestore_service.update_entity_type.js b/samples/generated/v1beta1/featurestore_service.update_entity_type.js index 5d2eedcc..c42f32b2 100644 --- a/samples/generated/v1beta1/featurestore_service.update_entity_type.js +++ b/samples/generated/v1beta1/featurestore_service.update_entity_type.js @@ -23,6 +23,9 @@ function main(entityType) { // [START aiplatform_v1beta1_generated_FeaturestoreService_UpdateEntityType_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/featurestore_service.update_feature.js b/samples/generated/v1beta1/featurestore_service.update_feature.js index 3ea97673..f9edba30 100644 --- a/samples/generated/v1beta1/featurestore_service.update_feature.js +++ b/samples/generated/v1beta1/featurestore_service.update_feature.js @@ -23,6 +23,9 @@ function main(feature) { // [START aiplatform_v1beta1_generated_FeaturestoreService_UpdateFeature_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/featurestore_service.update_featurestore.js b/samples/generated/v1beta1/featurestore_service.update_featurestore.js index 6b2bf9c4..8b8c2b64 100644 --- a/samples/generated/v1beta1/featurestore_service.update_featurestore.js +++ b/samples/generated/v1beta1/featurestore_service.update_featurestore.js @@ -23,6 +23,9 @@ function main(featurestore) { // [START aiplatform_v1beta1_generated_FeaturestoreService_UpdateFeaturestore_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/index_endpoint_service.create_index_endpoint.js b/samples/generated/v1beta1/index_endpoint_service.create_index_endpoint.js index 1e25f0af..e18e8635 100644 --- a/samples/generated/v1beta1/index_endpoint_service.create_index_endpoint.js +++ b/samples/generated/v1beta1/index_endpoint_service.create_index_endpoint.js @@ -23,6 +23,9 @@ function main(parent, indexEndpoint) { // [START aiplatform_v1beta1_generated_IndexEndpointService_CreateIndexEndpoint_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/index_endpoint_service.delete_index_endpoint.js b/samples/generated/v1beta1/index_endpoint_service.delete_index_endpoint.js index 1abdaf07..dadab827 100644 --- a/samples/generated/v1beta1/index_endpoint_service.delete_index_endpoint.js +++ b/samples/generated/v1beta1/index_endpoint_service.delete_index_endpoint.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_IndexEndpointService_DeleteIndexEndpoint_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/index_endpoint_service.deploy_index.js b/samples/generated/v1beta1/index_endpoint_service.deploy_index.js index efe90d98..6f26f684 100644 --- a/samples/generated/v1beta1/index_endpoint_service.deploy_index.js +++ b/samples/generated/v1beta1/index_endpoint_service.deploy_index.js @@ -23,6 +23,9 @@ function main(indexEndpoint, deployedIndex) { // [START aiplatform_v1beta1_generated_IndexEndpointService_DeployIndex_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/index_endpoint_service.get_index_endpoint.js b/samples/generated/v1beta1/index_endpoint_service.get_index_endpoint.js index a5b10ed1..4019571e 100644 --- a/samples/generated/v1beta1/index_endpoint_service.get_index_endpoint.js +++ b/samples/generated/v1beta1/index_endpoint_service.get_index_endpoint.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_IndexEndpointService_GetIndexEndpoint_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/index_endpoint_service.list_index_endpoints.js b/samples/generated/v1beta1/index_endpoint_service.list_index_endpoints.js index 756f5c16..a128bb83 100644 --- a/samples/generated/v1beta1/index_endpoint_service.list_index_endpoints.js +++ b/samples/generated/v1beta1/index_endpoint_service.list_index_endpoints.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_IndexEndpointService_ListIndexEndpoints_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/index_endpoint_service.mutate_deployed_index.js b/samples/generated/v1beta1/index_endpoint_service.mutate_deployed_index.js index 67b074c2..25a37193 100644 --- a/samples/generated/v1beta1/index_endpoint_service.mutate_deployed_index.js +++ b/samples/generated/v1beta1/index_endpoint_service.mutate_deployed_index.js @@ -23,6 +23,9 @@ function main(indexEndpoint, deployedIndex) { // [START aiplatform_v1beta1_generated_IndexEndpointService_MutateDeployedIndex_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/index_endpoint_service.undeploy_index.js b/samples/generated/v1beta1/index_endpoint_service.undeploy_index.js index 445223be..b0038ccf 100644 --- a/samples/generated/v1beta1/index_endpoint_service.undeploy_index.js +++ b/samples/generated/v1beta1/index_endpoint_service.undeploy_index.js @@ -23,6 +23,9 @@ function main(indexEndpoint, deployedIndexId) { // [START aiplatform_v1beta1_generated_IndexEndpointService_UndeployIndex_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/index_endpoint_service.update_index_endpoint.js b/samples/generated/v1beta1/index_endpoint_service.update_index_endpoint.js index 5b266754..8b1dc383 100644 --- a/samples/generated/v1beta1/index_endpoint_service.update_index_endpoint.js +++ b/samples/generated/v1beta1/index_endpoint_service.update_index_endpoint.js @@ -23,6 +23,9 @@ function main(indexEndpoint, updateMask) { // [START aiplatform_v1beta1_generated_IndexEndpointService_UpdateIndexEndpoint_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/index_service.create_index.js b/samples/generated/v1beta1/index_service.create_index.js index e978e153..3c7c2e27 100644 --- a/samples/generated/v1beta1/index_service.create_index.js +++ b/samples/generated/v1beta1/index_service.create_index.js @@ -23,6 +23,9 @@ function main(parent, index) { // [START aiplatform_v1beta1_generated_IndexService_CreateIndex_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/index_service.delete_index.js b/samples/generated/v1beta1/index_service.delete_index.js index 925072e5..0ca8ce4a 100644 --- a/samples/generated/v1beta1/index_service.delete_index.js +++ b/samples/generated/v1beta1/index_service.delete_index.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_IndexService_DeleteIndex_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/index_service.get_index.js b/samples/generated/v1beta1/index_service.get_index.js index 16fa87c0..89c7a5f1 100644 --- a/samples/generated/v1beta1/index_service.get_index.js +++ b/samples/generated/v1beta1/index_service.get_index.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_IndexService_GetIndex_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/index_service.list_indexes.js b/samples/generated/v1beta1/index_service.list_indexes.js index 1a332560..78827f58 100644 --- a/samples/generated/v1beta1/index_service.list_indexes.js +++ b/samples/generated/v1beta1/index_service.list_indexes.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_IndexService_ListIndexes_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/index_service.update_index.js b/samples/generated/v1beta1/index_service.update_index.js index 32f10b18..5c353e52 100644 --- a/samples/generated/v1beta1/index_service.update_index.js +++ b/samples/generated/v1beta1/index_service.update_index.js @@ -23,6 +23,9 @@ function main(index) { // [START aiplatform_v1beta1_generated_IndexService_UpdateIndex_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.cancel_batch_prediction_job.js b/samples/generated/v1beta1/job_service.cancel_batch_prediction_job.js index dc707532..7a9bfece 100644 --- a/samples/generated/v1beta1/job_service.cancel_batch_prediction_job.js +++ b/samples/generated/v1beta1/job_service.cancel_batch_prediction_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_JobService_CancelBatchPredictionJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.cancel_custom_job.js b/samples/generated/v1beta1/job_service.cancel_custom_job.js index 95248f0e..d6727e19 100644 --- a/samples/generated/v1beta1/job_service.cancel_custom_job.js +++ b/samples/generated/v1beta1/job_service.cancel_custom_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_JobService_CancelCustomJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.cancel_data_labeling_job.js b/samples/generated/v1beta1/job_service.cancel_data_labeling_job.js index c6e12fbf..fb32d8ae 100644 --- a/samples/generated/v1beta1/job_service.cancel_data_labeling_job.js +++ b/samples/generated/v1beta1/job_service.cancel_data_labeling_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_JobService_CancelDataLabelingJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.cancel_hyperparameter_tuning_job.js b/samples/generated/v1beta1/job_service.cancel_hyperparameter_tuning_job.js index 75da4a35..e18cf5b3 100644 --- a/samples/generated/v1beta1/job_service.cancel_hyperparameter_tuning_job.js +++ b/samples/generated/v1beta1/job_service.cancel_hyperparameter_tuning_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_JobService_CancelHyperparameterTuningJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.create_batch_prediction_job.js b/samples/generated/v1beta1/job_service.create_batch_prediction_job.js index eff414fa..d4c21054 100644 --- a/samples/generated/v1beta1/job_service.create_batch_prediction_job.js +++ b/samples/generated/v1beta1/job_service.create_batch_prediction_job.js @@ -23,6 +23,9 @@ function main(parent, batchPredictionJob) { // [START aiplatform_v1beta1_generated_JobService_CreateBatchPredictionJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.create_custom_job.js b/samples/generated/v1beta1/job_service.create_custom_job.js index 85f139fd..27bcfaf5 100644 --- a/samples/generated/v1beta1/job_service.create_custom_job.js +++ b/samples/generated/v1beta1/job_service.create_custom_job.js @@ -23,6 +23,9 @@ function main(parent, customJob) { // [START aiplatform_v1beta1_generated_JobService_CreateCustomJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.create_data_labeling_job.js b/samples/generated/v1beta1/job_service.create_data_labeling_job.js index 09884e48..358376e4 100644 --- a/samples/generated/v1beta1/job_service.create_data_labeling_job.js +++ b/samples/generated/v1beta1/job_service.create_data_labeling_job.js @@ -23,6 +23,9 @@ function main(parent, dataLabelingJob) { // [START aiplatform_v1beta1_generated_JobService_CreateDataLabelingJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.create_hyperparameter_tuning_job.js b/samples/generated/v1beta1/job_service.create_hyperparameter_tuning_job.js index 07084eee..c5d5a22b 100644 --- a/samples/generated/v1beta1/job_service.create_hyperparameter_tuning_job.js +++ b/samples/generated/v1beta1/job_service.create_hyperparameter_tuning_job.js @@ -23,6 +23,9 @@ function main(parent, hyperparameterTuningJob) { // [START aiplatform_v1beta1_generated_JobService_CreateHyperparameterTuningJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.create_model_deployment_monitoring_job.js b/samples/generated/v1beta1/job_service.create_model_deployment_monitoring_job.js index 8669bf6a..8486b853 100644 --- a/samples/generated/v1beta1/job_service.create_model_deployment_monitoring_job.js +++ b/samples/generated/v1beta1/job_service.create_model_deployment_monitoring_job.js @@ -23,6 +23,9 @@ function main(parent, modelDeploymentMonitoringJob) { // [START aiplatform_v1beta1_generated_JobService_CreateModelDeploymentMonitoringJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.delete_batch_prediction_job.js b/samples/generated/v1beta1/job_service.delete_batch_prediction_job.js index 75ab78e5..e10dc90d 100644 --- a/samples/generated/v1beta1/job_service.delete_batch_prediction_job.js +++ b/samples/generated/v1beta1/job_service.delete_batch_prediction_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_JobService_DeleteBatchPredictionJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.delete_custom_job.js b/samples/generated/v1beta1/job_service.delete_custom_job.js index bad2a9c2..e3ebba42 100644 --- a/samples/generated/v1beta1/job_service.delete_custom_job.js +++ b/samples/generated/v1beta1/job_service.delete_custom_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_JobService_DeleteCustomJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.delete_data_labeling_job.js b/samples/generated/v1beta1/job_service.delete_data_labeling_job.js index da3214ec..011f2429 100644 --- a/samples/generated/v1beta1/job_service.delete_data_labeling_job.js +++ b/samples/generated/v1beta1/job_service.delete_data_labeling_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_JobService_DeleteDataLabelingJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.delete_hyperparameter_tuning_job.js b/samples/generated/v1beta1/job_service.delete_hyperparameter_tuning_job.js index 9822d8e5..e57075ae 100644 --- a/samples/generated/v1beta1/job_service.delete_hyperparameter_tuning_job.js +++ b/samples/generated/v1beta1/job_service.delete_hyperparameter_tuning_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_JobService_DeleteHyperparameterTuningJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.delete_model_deployment_monitoring_job.js b/samples/generated/v1beta1/job_service.delete_model_deployment_monitoring_job.js index 00ff55d5..f65e3a60 100644 --- a/samples/generated/v1beta1/job_service.delete_model_deployment_monitoring_job.js +++ b/samples/generated/v1beta1/job_service.delete_model_deployment_monitoring_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_JobService_DeleteModelDeploymentMonitoringJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.get_batch_prediction_job.js b/samples/generated/v1beta1/job_service.get_batch_prediction_job.js index 103a9ed4..51970f9e 100644 --- a/samples/generated/v1beta1/job_service.get_batch_prediction_job.js +++ b/samples/generated/v1beta1/job_service.get_batch_prediction_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_JobService_GetBatchPredictionJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.get_custom_job.js b/samples/generated/v1beta1/job_service.get_custom_job.js index 2eb4d942..18c41bed 100644 --- a/samples/generated/v1beta1/job_service.get_custom_job.js +++ b/samples/generated/v1beta1/job_service.get_custom_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_JobService_GetCustomJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.get_data_labeling_job.js b/samples/generated/v1beta1/job_service.get_data_labeling_job.js index 86d2d709..46946260 100644 --- a/samples/generated/v1beta1/job_service.get_data_labeling_job.js +++ b/samples/generated/v1beta1/job_service.get_data_labeling_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_JobService_GetDataLabelingJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.get_hyperparameter_tuning_job.js b/samples/generated/v1beta1/job_service.get_hyperparameter_tuning_job.js index 964c8bf0..317b105b 100644 --- a/samples/generated/v1beta1/job_service.get_hyperparameter_tuning_job.js +++ b/samples/generated/v1beta1/job_service.get_hyperparameter_tuning_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_JobService_GetHyperparameterTuningJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.get_model_deployment_monitoring_job.js b/samples/generated/v1beta1/job_service.get_model_deployment_monitoring_job.js index a0d67279..452018b4 100644 --- a/samples/generated/v1beta1/job_service.get_model_deployment_monitoring_job.js +++ b/samples/generated/v1beta1/job_service.get_model_deployment_monitoring_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_JobService_GetModelDeploymentMonitoringJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.list_batch_prediction_jobs.js b/samples/generated/v1beta1/job_service.list_batch_prediction_jobs.js index 199ee21c..598ad5c5 100644 --- a/samples/generated/v1beta1/job_service.list_batch_prediction_jobs.js +++ b/samples/generated/v1beta1/job_service.list_batch_prediction_jobs.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_JobService_ListBatchPredictionJobs_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.list_custom_jobs.js b/samples/generated/v1beta1/job_service.list_custom_jobs.js index 03682953..4de9d205 100644 --- a/samples/generated/v1beta1/job_service.list_custom_jobs.js +++ b/samples/generated/v1beta1/job_service.list_custom_jobs.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_JobService_ListCustomJobs_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.list_data_labeling_jobs.js b/samples/generated/v1beta1/job_service.list_data_labeling_jobs.js index 7ee1c171..ca1ee203 100644 --- a/samples/generated/v1beta1/job_service.list_data_labeling_jobs.js +++ b/samples/generated/v1beta1/job_service.list_data_labeling_jobs.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_JobService_ListDataLabelingJobs_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.list_hyperparameter_tuning_jobs.js b/samples/generated/v1beta1/job_service.list_hyperparameter_tuning_jobs.js index d3e7d9cb..7bcd2114 100644 --- a/samples/generated/v1beta1/job_service.list_hyperparameter_tuning_jobs.js +++ b/samples/generated/v1beta1/job_service.list_hyperparameter_tuning_jobs.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_JobService_ListHyperparameterTuningJobs_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.list_model_deployment_monitoring_jobs.js b/samples/generated/v1beta1/job_service.list_model_deployment_monitoring_jobs.js index 589074b3..956fe991 100644 --- a/samples/generated/v1beta1/job_service.list_model_deployment_monitoring_jobs.js +++ b/samples/generated/v1beta1/job_service.list_model_deployment_monitoring_jobs.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_JobService_ListModelDeploymentMonitoringJobs_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.pause_model_deployment_monitoring_job.js b/samples/generated/v1beta1/job_service.pause_model_deployment_monitoring_job.js index a113f94a..4c6f9c40 100644 --- a/samples/generated/v1beta1/job_service.pause_model_deployment_monitoring_job.js +++ b/samples/generated/v1beta1/job_service.pause_model_deployment_monitoring_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_JobService_PauseModelDeploymentMonitoringJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.resume_model_deployment_monitoring_job.js b/samples/generated/v1beta1/job_service.resume_model_deployment_monitoring_job.js index 04c08311..66e89d35 100644 --- a/samples/generated/v1beta1/job_service.resume_model_deployment_monitoring_job.js +++ b/samples/generated/v1beta1/job_service.resume_model_deployment_monitoring_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_JobService_ResumeModelDeploymentMonitoringJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.search_model_deployment_monitoring_stats_anomalies.js b/samples/generated/v1beta1/job_service.search_model_deployment_monitoring_stats_anomalies.js index 5a9f0610..1c221286 100644 --- a/samples/generated/v1beta1/job_service.search_model_deployment_monitoring_stats_anomalies.js +++ b/samples/generated/v1beta1/job_service.search_model_deployment_monitoring_stats_anomalies.js @@ -23,6 +23,9 @@ function main(modelDeploymentMonitoringJob, deployedModelId, objectives) { // [START aiplatform_v1beta1_generated_JobService_SearchModelDeploymentMonitoringStatsAnomalies_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/job_service.update_model_deployment_monitoring_job.js b/samples/generated/v1beta1/job_service.update_model_deployment_monitoring_job.js index 9c504028..9e09ddd2 100644 --- a/samples/generated/v1beta1/job_service.update_model_deployment_monitoring_job.js +++ b/samples/generated/v1beta1/job_service.update_model_deployment_monitoring_job.js @@ -23,6 +23,9 @@ function main(modelDeploymentMonitoringJob, updateMask) { // [START aiplatform_v1beta1_generated_JobService_UpdateModelDeploymentMonitoringJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.add_context_artifacts_and_executions.js b/samples/generated/v1beta1/metadata_service.add_context_artifacts_and_executions.js index fe17f59a..9d047755 100644 --- a/samples/generated/v1beta1/metadata_service.add_context_artifacts_and_executions.js +++ b/samples/generated/v1beta1/metadata_service.add_context_artifacts_and_executions.js @@ -23,6 +23,9 @@ function main(context) { // [START aiplatform_v1beta1_generated_MetadataService_AddContextArtifactsAndExecutions_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.add_context_children.js b/samples/generated/v1beta1/metadata_service.add_context_children.js index 76b70eea..b8c62fc4 100644 --- a/samples/generated/v1beta1/metadata_service.add_context_children.js +++ b/samples/generated/v1beta1/metadata_service.add_context_children.js @@ -23,6 +23,9 @@ function main(context) { // [START aiplatform_v1beta1_generated_MetadataService_AddContextChildren_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.add_execution_events.js b/samples/generated/v1beta1/metadata_service.add_execution_events.js index 271ffea8..ed8fe2d0 100644 --- a/samples/generated/v1beta1/metadata_service.add_execution_events.js +++ b/samples/generated/v1beta1/metadata_service.add_execution_events.js @@ -23,6 +23,9 @@ function main(execution) { // [START aiplatform_v1beta1_generated_MetadataService_AddExecutionEvents_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.create_artifact.js b/samples/generated/v1beta1/metadata_service.create_artifact.js index 1b2d2183..ebb09c8b 100644 --- a/samples/generated/v1beta1/metadata_service.create_artifact.js +++ b/samples/generated/v1beta1/metadata_service.create_artifact.js @@ -23,6 +23,9 @@ function main(parent, artifact) { // [START aiplatform_v1beta1_generated_MetadataService_CreateArtifact_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.create_context.js b/samples/generated/v1beta1/metadata_service.create_context.js index 9f24f4ca..73d20aee 100644 --- a/samples/generated/v1beta1/metadata_service.create_context.js +++ b/samples/generated/v1beta1/metadata_service.create_context.js @@ -23,6 +23,9 @@ function main(parent, context) { // [START aiplatform_v1beta1_generated_MetadataService_CreateContext_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.create_execution.js b/samples/generated/v1beta1/metadata_service.create_execution.js index 12f5833f..64e4257e 100644 --- a/samples/generated/v1beta1/metadata_service.create_execution.js +++ b/samples/generated/v1beta1/metadata_service.create_execution.js @@ -23,6 +23,9 @@ function main(parent, execution) { // [START aiplatform_v1beta1_generated_MetadataService_CreateExecution_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.create_metadata_schema.js b/samples/generated/v1beta1/metadata_service.create_metadata_schema.js index dfad1bb6..5b1fbe09 100644 --- a/samples/generated/v1beta1/metadata_service.create_metadata_schema.js +++ b/samples/generated/v1beta1/metadata_service.create_metadata_schema.js @@ -23,6 +23,9 @@ function main(parent, metadataSchema) { // [START aiplatform_v1beta1_generated_MetadataService_CreateMetadataSchema_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.create_metadata_store.js b/samples/generated/v1beta1/metadata_service.create_metadata_store.js index 8fc399fe..935f9bd9 100644 --- a/samples/generated/v1beta1/metadata_service.create_metadata_store.js +++ b/samples/generated/v1beta1/metadata_service.create_metadata_store.js @@ -23,6 +23,9 @@ function main(parent, metadataStore) { // [START aiplatform_v1beta1_generated_MetadataService_CreateMetadataStore_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.delete_artifact.js b/samples/generated/v1beta1/metadata_service.delete_artifact.js index aee5c167..c5135771 100644 --- a/samples/generated/v1beta1/metadata_service.delete_artifact.js +++ b/samples/generated/v1beta1/metadata_service.delete_artifact.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_MetadataService_DeleteArtifact_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.delete_context.js b/samples/generated/v1beta1/metadata_service.delete_context.js index 91d87cab..652169cd 100644 --- a/samples/generated/v1beta1/metadata_service.delete_context.js +++ b/samples/generated/v1beta1/metadata_service.delete_context.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_MetadataService_DeleteContext_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.delete_execution.js b/samples/generated/v1beta1/metadata_service.delete_execution.js index 493cc39e..ed796159 100644 --- a/samples/generated/v1beta1/metadata_service.delete_execution.js +++ b/samples/generated/v1beta1/metadata_service.delete_execution.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_MetadataService_DeleteExecution_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.delete_metadata_store.js b/samples/generated/v1beta1/metadata_service.delete_metadata_store.js index 44ef5180..3484c7c4 100644 --- a/samples/generated/v1beta1/metadata_service.delete_metadata_store.js +++ b/samples/generated/v1beta1/metadata_service.delete_metadata_store.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_MetadataService_DeleteMetadataStore_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.get_artifact.js b/samples/generated/v1beta1/metadata_service.get_artifact.js index c9a36468..0f036d42 100644 --- a/samples/generated/v1beta1/metadata_service.get_artifact.js +++ b/samples/generated/v1beta1/metadata_service.get_artifact.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_MetadataService_GetArtifact_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.get_context.js b/samples/generated/v1beta1/metadata_service.get_context.js index b743371a..2980f049 100644 --- a/samples/generated/v1beta1/metadata_service.get_context.js +++ b/samples/generated/v1beta1/metadata_service.get_context.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_MetadataService_GetContext_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.get_execution.js b/samples/generated/v1beta1/metadata_service.get_execution.js index 19da0278..bb74f265 100644 --- a/samples/generated/v1beta1/metadata_service.get_execution.js +++ b/samples/generated/v1beta1/metadata_service.get_execution.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_MetadataService_GetExecution_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.get_metadata_schema.js b/samples/generated/v1beta1/metadata_service.get_metadata_schema.js index 2d7bb01f..1a1fbd09 100644 --- a/samples/generated/v1beta1/metadata_service.get_metadata_schema.js +++ b/samples/generated/v1beta1/metadata_service.get_metadata_schema.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_MetadataService_GetMetadataSchema_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.get_metadata_store.js b/samples/generated/v1beta1/metadata_service.get_metadata_store.js index 000d5403..6fa55c28 100644 --- a/samples/generated/v1beta1/metadata_service.get_metadata_store.js +++ b/samples/generated/v1beta1/metadata_service.get_metadata_store.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_MetadataService_GetMetadataStore_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.list_artifacts.js b/samples/generated/v1beta1/metadata_service.list_artifacts.js index f4561c59..d16176f4 100644 --- a/samples/generated/v1beta1/metadata_service.list_artifacts.js +++ b/samples/generated/v1beta1/metadata_service.list_artifacts.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_MetadataService_ListArtifacts_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.list_contexts.js b/samples/generated/v1beta1/metadata_service.list_contexts.js index 463a41c6..034711b7 100644 --- a/samples/generated/v1beta1/metadata_service.list_contexts.js +++ b/samples/generated/v1beta1/metadata_service.list_contexts.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_MetadataService_ListContexts_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.list_executions.js b/samples/generated/v1beta1/metadata_service.list_executions.js index 47b73964..db7b8ca9 100644 --- a/samples/generated/v1beta1/metadata_service.list_executions.js +++ b/samples/generated/v1beta1/metadata_service.list_executions.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_MetadataService_ListExecutions_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.list_metadata_schemas.js b/samples/generated/v1beta1/metadata_service.list_metadata_schemas.js index a46ea4c8..2c731934 100644 --- a/samples/generated/v1beta1/metadata_service.list_metadata_schemas.js +++ b/samples/generated/v1beta1/metadata_service.list_metadata_schemas.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_MetadataService_ListMetadataSchemas_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.list_metadata_stores.js b/samples/generated/v1beta1/metadata_service.list_metadata_stores.js index 35abf8e3..bd9ba7b4 100644 --- a/samples/generated/v1beta1/metadata_service.list_metadata_stores.js +++ b/samples/generated/v1beta1/metadata_service.list_metadata_stores.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_MetadataService_ListMetadataStores_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.purge_artifacts.js b/samples/generated/v1beta1/metadata_service.purge_artifacts.js index d37b393c..d64b6380 100644 --- a/samples/generated/v1beta1/metadata_service.purge_artifacts.js +++ b/samples/generated/v1beta1/metadata_service.purge_artifacts.js @@ -23,6 +23,9 @@ function main(parent, filter) { // [START aiplatform_v1beta1_generated_MetadataService_PurgeArtifacts_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.purge_contexts.js b/samples/generated/v1beta1/metadata_service.purge_contexts.js index 019ed88f..462a9887 100644 --- a/samples/generated/v1beta1/metadata_service.purge_contexts.js +++ b/samples/generated/v1beta1/metadata_service.purge_contexts.js @@ -23,6 +23,9 @@ function main(parent, filter) { // [START aiplatform_v1beta1_generated_MetadataService_PurgeContexts_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.purge_executions.js b/samples/generated/v1beta1/metadata_service.purge_executions.js index ed9e9415..32166957 100644 --- a/samples/generated/v1beta1/metadata_service.purge_executions.js +++ b/samples/generated/v1beta1/metadata_service.purge_executions.js @@ -23,6 +23,9 @@ function main(parent, filter) { // [START aiplatform_v1beta1_generated_MetadataService_PurgeExecutions_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.query_artifact_lineage_subgraph.js b/samples/generated/v1beta1/metadata_service.query_artifact_lineage_subgraph.js index 0b443faa..88154e29 100644 --- a/samples/generated/v1beta1/metadata_service.query_artifact_lineage_subgraph.js +++ b/samples/generated/v1beta1/metadata_service.query_artifact_lineage_subgraph.js @@ -23,6 +23,9 @@ function main(artifact) { // [START aiplatform_v1beta1_generated_MetadataService_QueryArtifactLineageSubgraph_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.query_context_lineage_subgraph.js b/samples/generated/v1beta1/metadata_service.query_context_lineage_subgraph.js index 0ca63d34..adc32bdc 100644 --- a/samples/generated/v1beta1/metadata_service.query_context_lineage_subgraph.js +++ b/samples/generated/v1beta1/metadata_service.query_context_lineage_subgraph.js @@ -23,6 +23,9 @@ function main(context) { // [START aiplatform_v1beta1_generated_MetadataService_QueryContextLineageSubgraph_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.query_execution_inputs_and_outputs.js b/samples/generated/v1beta1/metadata_service.query_execution_inputs_and_outputs.js index 5ea21b77..c924e445 100644 --- a/samples/generated/v1beta1/metadata_service.query_execution_inputs_and_outputs.js +++ b/samples/generated/v1beta1/metadata_service.query_execution_inputs_and_outputs.js @@ -23,6 +23,9 @@ function main(execution) { // [START aiplatform_v1beta1_generated_MetadataService_QueryExecutionInputsAndOutputs_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.update_artifact.js b/samples/generated/v1beta1/metadata_service.update_artifact.js index d7ff3654..34b8012a 100644 --- a/samples/generated/v1beta1/metadata_service.update_artifact.js +++ b/samples/generated/v1beta1/metadata_service.update_artifact.js @@ -23,6 +23,9 @@ function main(artifact) { // [START aiplatform_v1beta1_generated_MetadataService_UpdateArtifact_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.update_context.js b/samples/generated/v1beta1/metadata_service.update_context.js index 537a57a6..176ca7a1 100644 --- a/samples/generated/v1beta1/metadata_service.update_context.js +++ b/samples/generated/v1beta1/metadata_service.update_context.js @@ -23,6 +23,9 @@ function main(context) { // [START aiplatform_v1beta1_generated_MetadataService_UpdateContext_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/metadata_service.update_execution.js b/samples/generated/v1beta1/metadata_service.update_execution.js index c230d74a..c6fb4602 100644 --- a/samples/generated/v1beta1/metadata_service.update_execution.js +++ b/samples/generated/v1beta1/metadata_service.update_execution.js @@ -23,6 +23,9 @@ function main(execution) { // [START aiplatform_v1beta1_generated_MetadataService_UpdateExecution_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/migration_service.batch_migrate_resources.js b/samples/generated/v1beta1/migration_service.batch_migrate_resources.js index 69b3c538..6a06659e 100644 --- a/samples/generated/v1beta1/migration_service.batch_migrate_resources.js +++ b/samples/generated/v1beta1/migration_service.batch_migrate_resources.js @@ -23,6 +23,9 @@ function main(parent, migrateResourceRequests) { // [START aiplatform_v1beta1_generated_MigrationService_BatchMigrateResources_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/migration_service.search_migratable_resources.js b/samples/generated/v1beta1/migration_service.search_migratable_resources.js index a0502323..7470e76a 100644 --- a/samples/generated/v1beta1/migration_service.search_migratable_resources.js +++ b/samples/generated/v1beta1/migration_service.search_migratable_resources.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_MigrationService_SearchMigratableResources_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/model_service.batch_import_model_evaluation_slices.js b/samples/generated/v1beta1/model_service.batch_import_model_evaluation_slices.js index 8aacdc80..a5ba00be 100644 --- a/samples/generated/v1beta1/model_service.batch_import_model_evaluation_slices.js +++ b/samples/generated/v1beta1/model_service.batch_import_model_evaluation_slices.js @@ -23,6 +23,9 @@ function main(parent, modelEvaluationSlices) { // [START aiplatform_v1beta1_generated_ModelService_BatchImportModelEvaluationSlices_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/model_service.delete_model.js b/samples/generated/v1beta1/model_service.delete_model.js index 7a564119..b0328943 100644 --- a/samples/generated/v1beta1/model_service.delete_model.js +++ b/samples/generated/v1beta1/model_service.delete_model.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_ModelService_DeleteModel_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/model_service.delete_model_version.js b/samples/generated/v1beta1/model_service.delete_model_version.js index c5bdee4f..7c37987a 100644 --- a/samples/generated/v1beta1/model_service.delete_model_version.js +++ b/samples/generated/v1beta1/model_service.delete_model_version.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_ModelService_DeleteModelVersion_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/model_service.export_model.js b/samples/generated/v1beta1/model_service.export_model.js index 01f38fdc..1e59804e 100644 --- a/samples/generated/v1beta1/model_service.export_model.js +++ b/samples/generated/v1beta1/model_service.export_model.js @@ -23,6 +23,9 @@ function main(name, outputConfig) { // [START aiplatform_v1beta1_generated_ModelService_ExportModel_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/model_service.get_model.js b/samples/generated/v1beta1/model_service.get_model.js index 189e9f87..22bb2535 100644 --- a/samples/generated/v1beta1/model_service.get_model.js +++ b/samples/generated/v1beta1/model_service.get_model.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_ModelService_GetModel_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/model_service.get_model_evaluation.js b/samples/generated/v1beta1/model_service.get_model_evaluation.js index 09943678..079a5710 100644 --- a/samples/generated/v1beta1/model_service.get_model_evaluation.js +++ b/samples/generated/v1beta1/model_service.get_model_evaluation.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_ModelService_GetModelEvaluation_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/model_service.get_model_evaluation_slice.js b/samples/generated/v1beta1/model_service.get_model_evaluation_slice.js index 79fc6b4e..7c421bc6 100644 --- a/samples/generated/v1beta1/model_service.get_model_evaluation_slice.js +++ b/samples/generated/v1beta1/model_service.get_model_evaluation_slice.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_ModelService_GetModelEvaluationSlice_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/model_service.import_model_evaluation.js b/samples/generated/v1beta1/model_service.import_model_evaluation.js index 1f4795b7..ada50ddf 100644 --- a/samples/generated/v1beta1/model_service.import_model_evaluation.js +++ b/samples/generated/v1beta1/model_service.import_model_evaluation.js @@ -23,6 +23,9 @@ function main(parent, modelEvaluation) { // [START aiplatform_v1beta1_generated_ModelService_ImportModelEvaluation_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/model_service.list_model_evaluation_slices.js b/samples/generated/v1beta1/model_service.list_model_evaluation_slices.js index 572fa32a..f932db34 100644 --- a/samples/generated/v1beta1/model_service.list_model_evaluation_slices.js +++ b/samples/generated/v1beta1/model_service.list_model_evaluation_slices.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_ModelService_ListModelEvaluationSlices_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/model_service.list_model_evaluations.js b/samples/generated/v1beta1/model_service.list_model_evaluations.js index 2e3805dc..b9c13949 100644 --- a/samples/generated/v1beta1/model_service.list_model_evaluations.js +++ b/samples/generated/v1beta1/model_service.list_model_evaluations.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_ModelService_ListModelEvaluations_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/model_service.list_model_versions.js b/samples/generated/v1beta1/model_service.list_model_versions.js index 703f5450..90da425f 100644 --- a/samples/generated/v1beta1/model_service.list_model_versions.js +++ b/samples/generated/v1beta1/model_service.list_model_versions.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_ModelService_ListModelVersions_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/model_service.list_models.js b/samples/generated/v1beta1/model_service.list_models.js index 26254b04..1544b6e0 100644 --- a/samples/generated/v1beta1/model_service.list_models.js +++ b/samples/generated/v1beta1/model_service.list_models.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_ModelService_ListModels_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/model_service.merge_version_aliases.js b/samples/generated/v1beta1/model_service.merge_version_aliases.js index 93004d1a..63ea32d5 100644 --- a/samples/generated/v1beta1/model_service.merge_version_aliases.js +++ b/samples/generated/v1beta1/model_service.merge_version_aliases.js @@ -23,6 +23,9 @@ function main(name, versionAliases) { // [START aiplatform_v1beta1_generated_ModelService_MergeVersionAliases_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/model_service.update_explanation_dataset.js b/samples/generated/v1beta1/model_service.update_explanation_dataset.js index 0fb2dd9d..47c8f21f 100644 --- a/samples/generated/v1beta1/model_service.update_explanation_dataset.js +++ b/samples/generated/v1beta1/model_service.update_explanation_dataset.js @@ -23,6 +23,9 @@ function main(model) { // [START aiplatform_v1beta1_generated_ModelService_UpdateExplanationDataset_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/model_service.update_model.js b/samples/generated/v1beta1/model_service.update_model.js index 6bf2ef34..02dba574 100644 --- a/samples/generated/v1beta1/model_service.update_model.js +++ b/samples/generated/v1beta1/model_service.update_model.js @@ -23,6 +23,9 @@ function main(model, updateMask) { // [START aiplatform_v1beta1_generated_ModelService_UpdateModel_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/model_service.upload_model.js b/samples/generated/v1beta1/model_service.upload_model.js index baa1edd0..b9c1810f 100644 --- a/samples/generated/v1beta1/model_service.upload_model.js +++ b/samples/generated/v1beta1/model_service.upload_model.js @@ -23,6 +23,9 @@ function main(parent, model) { // [START aiplatform_v1beta1_generated_ModelService_UploadModel_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/pipeline_service.cancel_pipeline_job.js b/samples/generated/v1beta1/pipeline_service.cancel_pipeline_job.js index f2024dfb..62c3e656 100644 --- a/samples/generated/v1beta1/pipeline_service.cancel_pipeline_job.js +++ b/samples/generated/v1beta1/pipeline_service.cancel_pipeline_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_PipelineService_CancelPipelineJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/pipeline_service.cancel_training_pipeline.js b/samples/generated/v1beta1/pipeline_service.cancel_training_pipeline.js index e222c198..a4dc9c78 100644 --- a/samples/generated/v1beta1/pipeline_service.cancel_training_pipeline.js +++ b/samples/generated/v1beta1/pipeline_service.cancel_training_pipeline.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_PipelineService_CancelTrainingPipeline_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/pipeline_service.create_pipeline_job.js b/samples/generated/v1beta1/pipeline_service.create_pipeline_job.js index 52987c3b..b9312e09 100644 --- a/samples/generated/v1beta1/pipeline_service.create_pipeline_job.js +++ b/samples/generated/v1beta1/pipeline_service.create_pipeline_job.js @@ -23,6 +23,9 @@ function main(parent, pipelineJob) { // [START aiplatform_v1beta1_generated_PipelineService_CreatePipelineJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/pipeline_service.create_training_pipeline.js b/samples/generated/v1beta1/pipeline_service.create_training_pipeline.js index 6afc845e..5c72fcfd 100644 --- a/samples/generated/v1beta1/pipeline_service.create_training_pipeline.js +++ b/samples/generated/v1beta1/pipeline_service.create_training_pipeline.js @@ -23,6 +23,9 @@ function main(parent, trainingPipeline) { // [START aiplatform_v1beta1_generated_PipelineService_CreateTrainingPipeline_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/pipeline_service.delete_pipeline_job.js b/samples/generated/v1beta1/pipeline_service.delete_pipeline_job.js index b68cefd9..53b38d3d 100644 --- a/samples/generated/v1beta1/pipeline_service.delete_pipeline_job.js +++ b/samples/generated/v1beta1/pipeline_service.delete_pipeline_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_PipelineService_DeletePipelineJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/pipeline_service.delete_training_pipeline.js b/samples/generated/v1beta1/pipeline_service.delete_training_pipeline.js index 15fe0810..289eb19a 100644 --- a/samples/generated/v1beta1/pipeline_service.delete_training_pipeline.js +++ b/samples/generated/v1beta1/pipeline_service.delete_training_pipeline.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_PipelineService_DeleteTrainingPipeline_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/pipeline_service.get_pipeline_job.js b/samples/generated/v1beta1/pipeline_service.get_pipeline_job.js index fdc3f88a..1f2d1f37 100644 --- a/samples/generated/v1beta1/pipeline_service.get_pipeline_job.js +++ b/samples/generated/v1beta1/pipeline_service.get_pipeline_job.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_PipelineService_GetPipelineJob_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/pipeline_service.get_training_pipeline.js b/samples/generated/v1beta1/pipeline_service.get_training_pipeline.js index 7bcc7e41..e0181609 100644 --- a/samples/generated/v1beta1/pipeline_service.get_training_pipeline.js +++ b/samples/generated/v1beta1/pipeline_service.get_training_pipeline.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_PipelineService_GetTrainingPipeline_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/pipeline_service.list_pipeline_jobs.js b/samples/generated/v1beta1/pipeline_service.list_pipeline_jobs.js index 62010969..79e9c809 100644 --- a/samples/generated/v1beta1/pipeline_service.list_pipeline_jobs.js +++ b/samples/generated/v1beta1/pipeline_service.list_pipeline_jobs.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_PipelineService_ListPipelineJobs_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/pipeline_service.list_training_pipelines.js b/samples/generated/v1beta1/pipeline_service.list_training_pipelines.js index e164ebcf..20afd526 100644 --- a/samples/generated/v1beta1/pipeline_service.list_training_pipelines.js +++ b/samples/generated/v1beta1/pipeline_service.list_training_pipelines.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_PipelineService_ListTrainingPipelines_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/prediction_service.explain.js b/samples/generated/v1beta1/prediction_service.explain.js index 0025e6f4..0c35a5a0 100644 --- a/samples/generated/v1beta1/prediction_service.explain.js +++ b/samples/generated/v1beta1/prediction_service.explain.js @@ -23,6 +23,9 @@ function main(endpoint, instances) { // [START aiplatform_v1beta1_generated_PredictionService_Explain_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/prediction_service.predict.js b/samples/generated/v1beta1/prediction_service.predict.js index fa0e4096..3cabc926 100644 --- a/samples/generated/v1beta1/prediction_service.predict.js +++ b/samples/generated/v1beta1/prediction_service.predict.js @@ -23,6 +23,9 @@ function main(endpoint, instances) { // [START aiplatform_v1beta1_generated_PredictionService_Predict_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/prediction_service.raw_predict.js b/samples/generated/v1beta1/prediction_service.raw_predict.js index 84ae9d29..b4c6ea93 100644 --- a/samples/generated/v1beta1/prediction_service.raw_predict.js +++ b/samples/generated/v1beta1/prediction_service.raw_predict.js @@ -23,6 +23,9 @@ function main(endpoint) { // [START aiplatform_v1beta1_generated_PredictionService_RawPredict_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json b/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json index 229d9ffc..222c196c 100644 --- a/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json +++ b/samples/generated/v1beta1/snippet_metadata.google.cloud.aiplatform.v1beta1.json @@ -22,7 +22,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -66,7 +66,7 @@ "segments": [ { "start": 25, - "end": 54, + "end": 57, "type": "FULL" } ], @@ -110,7 +110,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -154,7 +154,7 @@ "segments": [ { "start": 25, - "end": 88, + "end": 91, "type": "FULL" } ], @@ -214,7 +214,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -254,7 +254,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -298,7 +298,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -342,7 +342,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 78, "type": "FULL" } ], @@ -402,7 +402,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 78, "type": "FULL" } ], @@ -462,7 +462,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -506,7 +506,7 @@ "segments": [ { "start": 25, - "end": 75, + "end": 78, "type": "FULL" } ], @@ -566,7 +566,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -614,7 +614,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -654,7 +654,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -702,7 +702,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -742,7 +742,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 70, "type": "FULL" } ], @@ -790,7 +790,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -838,7 +838,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -878,7 +878,7 @@ "segments": [ { "start": 25, - "end": 84, + "end": 87, "type": "FULL" } ], @@ -934,7 +934,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -978,7 +978,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -1018,7 +1018,7 @@ "segments": [ { "start": 25, - "end": 73, + "end": 76, "type": "FULL" } ], @@ -1066,7 +1066,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -1114,7 +1114,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -1162,7 +1162,7 @@ "segments": [ { "start": 25, - "end": 70, + "end": 73, "type": "FULL" } ], @@ -1210,7 +1210,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -1254,7 +1254,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 70, "type": "FULL" } ], @@ -1302,7 +1302,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], @@ -1342,7 +1342,7 @@ "segments": [ { "start": 25, - "end": 102, + "end": 105, "type": "FULL" } ], @@ -1402,7 +1402,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -1446,7 +1446,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -1490,7 +1490,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -1538,7 +1538,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1578,7 +1578,7 @@ "segments": [ { "start": 25, - "end": 101, + "end": 104, "type": "FULL" } ], @@ -1638,7 +1638,7 @@ "segments": [ { "start": 25, - "end": 73, + "end": 76, "type": "FULL" } ], @@ -1682,7 +1682,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -1726,7 +1726,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 70, "type": "FULL" } ], @@ -1774,7 +1774,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 64, "type": "FULL" } ], @@ -1818,7 +1818,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -1858,7 +1858,7 @@ "segments": [ { "start": 25, - "end": 111, + "end": 114, "type": "FULL" } ], @@ -1922,7 +1922,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 70, "type": "FULL" } ], @@ -1966,7 +1966,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -2006,7 +2006,7 @@ "segments": [ { "start": 25, - "end": 103, + "end": 106, "type": "FULL" } ], @@ -2086,7 +2086,7 @@ "segments": [ { "start": 25, - "end": 100, + "end": 103, "type": "FULL" } ], @@ -2146,7 +2146,7 @@ "segments": [ { "start": 25, - "end": 77, + "end": 80, "type": "FULL" } ], @@ -2206,7 +2206,7 @@ "segments": [ { "start": 25, - "end": 121, + "end": 124, "type": "FULL" } ], @@ -2258,7 +2258,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -2302,7 +2302,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -2342,7 +2342,7 @@ "segments": [ { "start": 25, - "end": 87, + "end": 90, "type": "FULL" } ], @@ -2398,7 +2398,7 @@ "segments": [ { "start": 25, - "end": 55, + "end": 58, "type": "FULL" } ], @@ -2442,7 +2442,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -2482,7 +2482,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -2526,7 +2526,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -2570,7 +2570,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -2614,7 +2614,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -2658,7 +2658,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -2698,7 +2698,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -2754,7 +2754,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -2798,7 +2798,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -2838,7 +2838,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -2882,7 +2882,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -2922,7 +2922,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 85, "type": "FULL" } ], @@ -2978,7 +2978,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -3018,7 +3018,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -3058,7 +3058,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -3102,7 +3102,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -3142,7 +3142,7 @@ "segments": [ { "start": 25, - "end": 88, + "end": 91, "type": "FULL" } ], @@ -3202,7 +3202,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -3242,7 +3242,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -3282,7 +3282,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -3326,7 +3326,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -3366,7 +3366,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 85, "type": "FULL" } ], @@ -3422,7 +3422,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -3462,7 +3462,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -3502,7 +3502,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -3546,7 +3546,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -3586,7 +3586,7 @@ "segments": [ { "start": 25, - "end": 83, + "end": 86, "type": "FULL" } ], @@ -3642,7 +3642,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -3682,7 +3682,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -3722,7 +3722,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -3766,7 +3766,7 @@ "segments": [ { "start": 25, - "end": 92, + "end": 95, "type": "FULL" } ], @@ -3834,7 +3834,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -3874,7 +3874,7 @@ "segments": [ { "start": 25, - "end": 79, + "end": 82, "type": "FULL" } ], @@ -3930,7 +3930,7 @@ "segments": [ { "start": 25, - "end": 81, + "end": 84, "type": "FULL" } ], @@ -3974,7 +3974,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -4014,7 +4014,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -4054,7 +4054,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -4094,7 +4094,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -4142,7 +4142,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -4182,7 +4182,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -4230,7 +4230,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -4274,7 +4274,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -4322,7 +4322,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -4362,7 +4362,7 @@ "segments": [ { "start": 25, - "end": 94, + "end": 97, "type": "FULL" } ], @@ -4414,7 +4414,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -4462,7 +4462,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -4506,7 +4506,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -4554,7 +4554,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -4602,7 +4602,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -4642,7 +4642,7 @@ "segments": [ { "start": 25, - "end": 97, + "end": 100, "type": "FULL" } ], @@ -4694,7 +4694,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -4742,7 +4742,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -4790,7 +4790,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -4838,7 +4838,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -4886,7 +4886,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -4930,7 +4930,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -4970,7 +4970,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -5018,7 +5018,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -5058,7 +5058,7 @@ "segments": [ { "start": 25, - "end": 94, + "end": 97, "type": "FULL" } ], @@ -5110,7 +5110,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -5158,7 +5158,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -5202,7 +5202,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -5250,7 +5250,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -5294,7 +5294,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -5334,7 +5334,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -5382,7 +5382,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -5422,7 +5422,7 @@ "segments": [ { "start": 25, - "end": 73, + "end": 76, "type": "FULL" } ], @@ -5474,7 +5474,7 @@ "segments": [ { "start": 25, - "end": 85, + "end": 88, "type": "FULL" } ], @@ -5522,7 +5522,7 @@ "segments": [ { "start": 25, - "end": 79, + "end": 82, "type": "FULL" } ], @@ -5574,7 +5574,7 @@ "segments": [ { "start": 25, - "end": 59, + "end": 62, "type": "FULL" } ], @@ -5618,7 +5618,7 @@ "segments": [ { "start": 25, - "end": 69, + "end": 72, "type": "FULL" } ], @@ -5670,7 +5670,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -5710,7 +5710,7 @@ "segments": [ { "start": 25, - "end": 84, + "end": 87, "type": "FULL" } ], @@ -5766,7 +5766,7 @@ "segments": [ { "start": 25, - "end": 78, + "end": 81, "type": "FULL" } ], @@ -5822,7 +5822,7 @@ "segments": [ { "start": 25, - "end": 73, + "end": 76, "type": "FULL" } ], @@ -5866,7 +5866,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -5910,7 +5910,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -5950,7 +5950,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -5990,7 +5990,7 @@ "segments": [ { "start": 25, - "end": 67, + "end": 70, "type": "FULL" } ], @@ -6034,7 +6034,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -6078,7 +6078,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -6122,7 +6122,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -6166,7 +6166,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -6206,7 +6206,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -6262,7 +6262,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -6302,7 +6302,7 @@ "segments": [ { "start": 25, - "end": 74, + "end": 77, "type": "FULL" } ], @@ -6358,7 +6358,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -6402,7 +6402,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -6442,7 +6442,7 @@ "segments": [ { "start": 25, - "end": 84, + "end": 87, "type": "FULL" } ], @@ -6498,7 +6498,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -6538,7 +6538,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -6578,7 +6578,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -6626,7 +6626,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -6666,7 +6666,7 @@ "segments": [ { "start": 25, - "end": 111, + "end": 114, "type": "FULL" } ], @@ -6722,7 +6722,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -6762,7 +6762,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -6802,7 +6802,7 @@ "segments": [ { "start": 25, - "end": 72, + "end": 75, "type": "FULL" } ], @@ -6850,7 +6850,7 @@ "segments": [ { "start": 25, - "end": 66, + "end": 69, "type": "FULL" } ], @@ -6894,7 +6894,7 @@ "segments": [ { "start": 25, - "end": 88, + "end": 91, "type": "FULL" } ], @@ -6950,7 +6950,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -6994,7 +6994,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -7034,7 +7034,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -7086,7 +7086,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -7130,7 +7130,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -7174,7 +7174,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -7218,7 +7218,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -7258,7 +7258,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -7302,7 +7302,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 85, "type": "FULL" } ], @@ -7362,7 +7362,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -7402,7 +7402,7 @@ "segments": [ { "start": 25, - "end": 64, + "end": 67, "type": "FULL" } ], @@ -7450,7 +7450,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -7490,7 +7490,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -7534,7 +7534,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 85, "type": "FULL" } ], @@ -7594,7 +7594,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -7634,7 +7634,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -7682,7 +7682,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -7726,7 +7726,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -7766,7 +7766,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -7810,7 +7810,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 85, "type": "FULL" } ], @@ -7870,7 +7870,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -7910,7 +7910,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -7954,7 +7954,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -8002,7 +8002,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -8042,7 +8042,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -8086,7 +8086,7 @@ "segments": [ { "start": 25, - "end": 82, + "end": 85, "type": "FULL" } ], @@ -8146,7 +8146,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -8186,7 +8186,7 @@ "segments": [ { "start": 25, - "end": 60, + "end": 63, "type": "FULL" } ], @@ -8230,7 +8230,7 @@ "segments": [ { "start": 25, - "end": 62, + "end": 65, "type": "FULL" } ], @@ -8278,7 +8278,7 @@ "segments": [ { "start": 25, - "end": 58, + "end": 61, "type": "FULL" } ], @@ -8322,7 +8322,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -8366,7 +8366,7 @@ "segments": [ { "start": 25, - "end": 61, + "end": 64, "type": "FULL" } ], @@ -8410,7 +8410,7 @@ "segments": [ { "start": 25, - "end": 79, + "end": 82, "type": "FULL" } ], @@ -8466,7 +8466,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -8510,7 +8510,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -8550,7 +8550,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -8598,7 +8598,7 @@ "segments": [ { "start": 25, - "end": 51, + "end": 54, "type": "FULL" } ], @@ -8638,7 +8638,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -8682,7 +8682,7 @@ "segments": [ { "start": 25, - "end": 65, + "end": 68, "type": "FULL" } ], @@ -8730,7 +8730,7 @@ "segments": [ { "start": 25, - "end": 56, + "end": 59, "type": "FULL" } ], @@ -8774,7 +8774,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -8814,7 +8814,7 @@ "segments": [ { "start": 25, - "end": 63, + "end": 66, "type": "FULL" } ], @@ -8862,7 +8862,7 @@ "segments": [ { "start": 25, - "end": 57, + "end": 60, "type": "FULL" } ], @@ -8906,7 +8906,7 @@ "segments": [ { "start": 25, - "end": 68, + "end": 71, "type": "FULL" } ], @@ -8958,7 +8958,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -8998,7 +8998,7 @@ "segments": [ { "start": 25, - "end": 53, + "end": 56, "type": "FULL" } ], @@ -9038,7 +9038,7 @@ "segments": [ { "start": 25, - "end": 52, + "end": 55, "type": "FULL" } ], @@ -9078,7 +9078,7 @@ "segments": [ { "start": 25, - "end": 50, + "end": 53, "type": "FULL" } ], diff --git a/samples/generated/v1beta1/specialist_pool_service.create_specialist_pool.js b/samples/generated/v1beta1/specialist_pool_service.create_specialist_pool.js index 1f16b059..3adcd396 100644 --- a/samples/generated/v1beta1/specialist_pool_service.create_specialist_pool.js +++ b/samples/generated/v1beta1/specialist_pool_service.create_specialist_pool.js @@ -23,6 +23,9 @@ function main(parent, specialistPool) { // [START aiplatform_v1beta1_generated_SpecialistPoolService_CreateSpecialistPool_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/specialist_pool_service.delete_specialist_pool.js b/samples/generated/v1beta1/specialist_pool_service.delete_specialist_pool.js index 9a519ef4..1201df40 100644 --- a/samples/generated/v1beta1/specialist_pool_service.delete_specialist_pool.js +++ b/samples/generated/v1beta1/specialist_pool_service.delete_specialist_pool.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_SpecialistPoolService_DeleteSpecialistPool_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/specialist_pool_service.get_specialist_pool.js b/samples/generated/v1beta1/specialist_pool_service.get_specialist_pool.js index 91551365..e5dff722 100644 --- a/samples/generated/v1beta1/specialist_pool_service.get_specialist_pool.js +++ b/samples/generated/v1beta1/specialist_pool_service.get_specialist_pool.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_SpecialistPoolService_GetSpecialistPool_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/specialist_pool_service.list_specialist_pools.js b/samples/generated/v1beta1/specialist_pool_service.list_specialist_pools.js index 555a249d..18e48844 100644 --- a/samples/generated/v1beta1/specialist_pool_service.list_specialist_pools.js +++ b/samples/generated/v1beta1/specialist_pool_service.list_specialist_pools.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_SpecialistPoolService_ListSpecialistPools_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/specialist_pool_service.update_specialist_pool.js b/samples/generated/v1beta1/specialist_pool_service.update_specialist_pool.js index a804464d..2bcb18f8 100644 --- a/samples/generated/v1beta1/specialist_pool_service.update_specialist_pool.js +++ b/samples/generated/v1beta1/specialist_pool_service.update_specialist_pool.js @@ -23,6 +23,9 @@ function main(specialistPool, updateMask) { // [START aiplatform_v1beta1_generated_SpecialistPoolService_UpdateSpecialistPool_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.batch_create_tensorboard_runs.js b/samples/generated/v1beta1/tensorboard_service.batch_create_tensorboard_runs.js index 3857d9b0..180c7e68 100644 --- a/samples/generated/v1beta1/tensorboard_service.batch_create_tensorboard_runs.js +++ b/samples/generated/v1beta1/tensorboard_service.batch_create_tensorboard_runs.js @@ -23,6 +23,9 @@ function main(parent, requests) { // [START aiplatform_v1beta1_generated_TensorboardService_BatchCreateTensorboardRuns_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.batch_create_tensorboard_time_series.js b/samples/generated/v1beta1/tensorboard_service.batch_create_tensorboard_time_series.js index 6d3edc04..e8566dcd 100644 --- a/samples/generated/v1beta1/tensorboard_service.batch_create_tensorboard_time_series.js +++ b/samples/generated/v1beta1/tensorboard_service.batch_create_tensorboard_time_series.js @@ -23,6 +23,9 @@ function main(parent, requests) { // [START aiplatform_v1beta1_generated_TensorboardService_BatchCreateTensorboardTimeSeries_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.batch_read_tensorboard_time_series_data.js b/samples/generated/v1beta1/tensorboard_service.batch_read_tensorboard_time_series_data.js index 672b0a65..c660faf0 100644 --- a/samples/generated/v1beta1/tensorboard_service.batch_read_tensorboard_time_series_data.js +++ b/samples/generated/v1beta1/tensorboard_service.batch_read_tensorboard_time_series_data.js @@ -23,6 +23,9 @@ function main(tensorboard, timeSeries) { // [START aiplatform_v1beta1_generated_TensorboardService_BatchReadTensorboardTimeSeriesData_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.create_tensorboard.js b/samples/generated/v1beta1/tensorboard_service.create_tensorboard.js index 441ca373..b0ba37fd 100644 --- a/samples/generated/v1beta1/tensorboard_service.create_tensorboard.js +++ b/samples/generated/v1beta1/tensorboard_service.create_tensorboard.js @@ -23,6 +23,9 @@ function main(parent, tensorboard) { // [START aiplatform_v1beta1_generated_TensorboardService_CreateTensorboard_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.create_tensorboard_experiment.js b/samples/generated/v1beta1/tensorboard_service.create_tensorboard_experiment.js index cd28787c..60c0e504 100644 --- a/samples/generated/v1beta1/tensorboard_service.create_tensorboard_experiment.js +++ b/samples/generated/v1beta1/tensorboard_service.create_tensorboard_experiment.js @@ -23,6 +23,9 @@ function main(parent, tensorboardExperimentId) { // [START aiplatform_v1beta1_generated_TensorboardService_CreateTensorboardExperiment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.create_tensorboard_run.js b/samples/generated/v1beta1/tensorboard_service.create_tensorboard_run.js index 497fd06a..a2f63d51 100644 --- a/samples/generated/v1beta1/tensorboard_service.create_tensorboard_run.js +++ b/samples/generated/v1beta1/tensorboard_service.create_tensorboard_run.js @@ -23,6 +23,9 @@ function main(parent, tensorboardRun, tensorboardRunId) { // [START aiplatform_v1beta1_generated_TensorboardService_CreateTensorboardRun_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.create_tensorboard_time_series.js b/samples/generated/v1beta1/tensorboard_service.create_tensorboard_time_series.js index 78bc5141..5f83b15e 100644 --- a/samples/generated/v1beta1/tensorboard_service.create_tensorboard_time_series.js +++ b/samples/generated/v1beta1/tensorboard_service.create_tensorboard_time_series.js @@ -23,6 +23,9 @@ function main(parent, tensorboardTimeSeries) { // [START aiplatform_v1beta1_generated_TensorboardService_CreateTensorboardTimeSeries_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.delete_tensorboard.js b/samples/generated/v1beta1/tensorboard_service.delete_tensorboard.js index 864195a1..db8c965f 100644 --- a/samples/generated/v1beta1/tensorboard_service.delete_tensorboard.js +++ b/samples/generated/v1beta1/tensorboard_service.delete_tensorboard.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboard_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.delete_tensorboard_experiment.js b/samples/generated/v1beta1/tensorboard_service.delete_tensorboard_experiment.js index 9a07a042..2bac02c2 100644 --- a/samples/generated/v1beta1/tensorboard_service.delete_tensorboard_experiment.js +++ b/samples/generated/v1beta1/tensorboard_service.delete_tensorboard_experiment.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboardExperiment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.delete_tensorboard_run.js b/samples/generated/v1beta1/tensorboard_service.delete_tensorboard_run.js index b951afdf..a544165a 100644 --- a/samples/generated/v1beta1/tensorboard_service.delete_tensorboard_run.js +++ b/samples/generated/v1beta1/tensorboard_service.delete_tensorboard_run.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboardRun_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.delete_tensorboard_time_series.js b/samples/generated/v1beta1/tensorboard_service.delete_tensorboard_time_series.js index 6b103484..9b269b8e 100644 --- a/samples/generated/v1beta1/tensorboard_service.delete_tensorboard_time_series.js +++ b/samples/generated/v1beta1/tensorboard_service.delete_tensorboard_time_series.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_TensorboardService_DeleteTensorboardTimeSeries_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.export_tensorboard_time_series_data.js b/samples/generated/v1beta1/tensorboard_service.export_tensorboard_time_series_data.js index 869d1d26..c83147c3 100644 --- a/samples/generated/v1beta1/tensorboard_service.export_tensorboard_time_series_data.js +++ b/samples/generated/v1beta1/tensorboard_service.export_tensorboard_time_series_data.js @@ -23,6 +23,9 @@ function main(tensorboardTimeSeries) { // [START aiplatform_v1beta1_generated_TensorboardService_ExportTensorboardTimeSeriesData_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.get_tensorboard.js b/samples/generated/v1beta1/tensorboard_service.get_tensorboard.js index 7c075378..d803ada8 100644 --- a/samples/generated/v1beta1/tensorboard_service.get_tensorboard.js +++ b/samples/generated/v1beta1/tensorboard_service.get_tensorboard.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_TensorboardService_GetTensorboard_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.get_tensorboard_experiment.js b/samples/generated/v1beta1/tensorboard_service.get_tensorboard_experiment.js index 4a9270ae..3ccbd39e 100644 --- a/samples/generated/v1beta1/tensorboard_service.get_tensorboard_experiment.js +++ b/samples/generated/v1beta1/tensorboard_service.get_tensorboard_experiment.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_TensorboardService_GetTensorboardExperiment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.get_tensorboard_run.js b/samples/generated/v1beta1/tensorboard_service.get_tensorboard_run.js index e7dde058..14df8157 100644 --- a/samples/generated/v1beta1/tensorboard_service.get_tensorboard_run.js +++ b/samples/generated/v1beta1/tensorboard_service.get_tensorboard_run.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_TensorboardService_GetTensorboardRun_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.get_tensorboard_time_series.js b/samples/generated/v1beta1/tensorboard_service.get_tensorboard_time_series.js index 652c8e97..4c20724f 100644 --- a/samples/generated/v1beta1/tensorboard_service.get_tensorboard_time_series.js +++ b/samples/generated/v1beta1/tensorboard_service.get_tensorboard_time_series.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_TensorboardService_GetTensorboardTimeSeries_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.list_tensorboard_experiments.js b/samples/generated/v1beta1/tensorboard_service.list_tensorboard_experiments.js index 7d465f54..1d93e6c1 100644 --- a/samples/generated/v1beta1/tensorboard_service.list_tensorboard_experiments.js +++ b/samples/generated/v1beta1/tensorboard_service.list_tensorboard_experiments.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_TensorboardService_ListTensorboardExperiments_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.list_tensorboard_runs.js b/samples/generated/v1beta1/tensorboard_service.list_tensorboard_runs.js index 482b71de..5bcd80b0 100644 --- a/samples/generated/v1beta1/tensorboard_service.list_tensorboard_runs.js +++ b/samples/generated/v1beta1/tensorboard_service.list_tensorboard_runs.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_TensorboardService_ListTensorboardRuns_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.list_tensorboard_time_series.js b/samples/generated/v1beta1/tensorboard_service.list_tensorboard_time_series.js index 824744d4..19c420d5 100644 --- a/samples/generated/v1beta1/tensorboard_service.list_tensorboard_time_series.js +++ b/samples/generated/v1beta1/tensorboard_service.list_tensorboard_time_series.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_TensorboardService_ListTensorboardTimeSeries_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.list_tensorboards.js b/samples/generated/v1beta1/tensorboard_service.list_tensorboards.js index 432c281a..762b5915 100644 --- a/samples/generated/v1beta1/tensorboard_service.list_tensorboards.js +++ b/samples/generated/v1beta1/tensorboard_service.list_tensorboards.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_TensorboardService_ListTensorboards_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.read_tensorboard_blob_data.js b/samples/generated/v1beta1/tensorboard_service.read_tensorboard_blob_data.js index 5ba489da..0092407c 100644 --- a/samples/generated/v1beta1/tensorboard_service.read_tensorboard_blob_data.js +++ b/samples/generated/v1beta1/tensorboard_service.read_tensorboard_blob_data.js @@ -23,6 +23,9 @@ function main(timeSeries) { // [START aiplatform_v1beta1_generated_TensorboardService_ReadTensorboardBlobData_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.read_tensorboard_time_series_data.js b/samples/generated/v1beta1/tensorboard_service.read_tensorboard_time_series_data.js index a5e63433..9e5f79fd 100644 --- a/samples/generated/v1beta1/tensorboard_service.read_tensorboard_time_series_data.js +++ b/samples/generated/v1beta1/tensorboard_service.read_tensorboard_time_series_data.js @@ -23,6 +23,9 @@ function main(tensorboardTimeSeries) { // [START aiplatform_v1beta1_generated_TensorboardService_ReadTensorboardTimeSeriesData_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.update_tensorboard.js b/samples/generated/v1beta1/tensorboard_service.update_tensorboard.js index 4cd023d4..ba8f468d 100644 --- a/samples/generated/v1beta1/tensorboard_service.update_tensorboard.js +++ b/samples/generated/v1beta1/tensorboard_service.update_tensorboard.js @@ -23,6 +23,9 @@ function main(updateMask, tensorboard) { // [START aiplatform_v1beta1_generated_TensorboardService_UpdateTensorboard_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.update_tensorboard_experiment.js b/samples/generated/v1beta1/tensorboard_service.update_tensorboard_experiment.js index 8e31fcd6..bd6bbeaa 100644 --- a/samples/generated/v1beta1/tensorboard_service.update_tensorboard_experiment.js +++ b/samples/generated/v1beta1/tensorboard_service.update_tensorboard_experiment.js @@ -23,6 +23,9 @@ function main(updateMask, tensorboardExperiment) { // [START aiplatform_v1beta1_generated_TensorboardService_UpdateTensorboardExperiment_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.update_tensorboard_run.js b/samples/generated/v1beta1/tensorboard_service.update_tensorboard_run.js index 8e05d21c..d250a3a1 100644 --- a/samples/generated/v1beta1/tensorboard_service.update_tensorboard_run.js +++ b/samples/generated/v1beta1/tensorboard_service.update_tensorboard_run.js @@ -23,6 +23,9 @@ function main(updateMask, tensorboardRun) { // [START aiplatform_v1beta1_generated_TensorboardService_UpdateTensorboardRun_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.update_tensorboard_time_series.js b/samples/generated/v1beta1/tensorboard_service.update_tensorboard_time_series.js index 92fe6c27..fb384b47 100644 --- a/samples/generated/v1beta1/tensorboard_service.update_tensorboard_time_series.js +++ b/samples/generated/v1beta1/tensorboard_service.update_tensorboard_time_series.js @@ -23,6 +23,9 @@ function main(updateMask, tensorboardTimeSeries) { // [START aiplatform_v1beta1_generated_TensorboardService_UpdateTensorboardTimeSeries_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.write_tensorboard_experiment_data.js b/samples/generated/v1beta1/tensorboard_service.write_tensorboard_experiment_data.js index 7d93cacb..9d7b69e4 100644 --- a/samples/generated/v1beta1/tensorboard_service.write_tensorboard_experiment_data.js +++ b/samples/generated/v1beta1/tensorboard_service.write_tensorboard_experiment_data.js @@ -23,6 +23,9 @@ function main(tensorboardExperiment, writeRunDataRequests) { // [START aiplatform_v1beta1_generated_TensorboardService_WriteTensorboardExperimentData_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/tensorboard_service.write_tensorboard_run_data.js b/samples/generated/v1beta1/tensorboard_service.write_tensorboard_run_data.js index d704292c..28617125 100644 --- a/samples/generated/v1beta1/tensorboard_service.write_tensorboard_run_data.js +++ b/samples/generated/v1beta1/tensorboard_service.write_tensorboard_run_data.js @@ -23,6 +23,9 @@ function main(tensorboardRun, timeSeriesData) { // [START aiplatform_v1beta1_generated_TensorboardService_WriteTensorboardRunData_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/vizier_service.add_trial_measurement.js b/samples/generated/v1beta1/vizier_service.add_trial_measurement.js index c7356cd1..28271abf 100644 --- a/samples/generated/v1beta1/vizier_service.add_trial_measurement.js +++ b/samples/generated/v1beta1/vizier_service.add_trial_measurement.js @@ -23,6 +23,9 @@ function main(trialName, measurement) { // [START aiplatform_v1beta1_generated_VizierService_AddTrialMeasurement_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/vizier_service.check_trial_early_stopping_state.js b/samples/generated/v1beta1/vizier_service.check_trial_early_stopping_state.js index 35e62401..27989052 100644 --- a/samples/generated/v1beta1/vizier_service.check_trial_early_stopping_state.js +++ b/samples/generated/v1beta1/vizier_service.check_trial_early_stopping_state.js @@ -23,6 +23,9 @@ function main(trialName) { // [START aiplatform_v1beta1_generated_VizierService_CheckTrialEarlyStoppingState_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/vizier_service.complete_trial.js b/samples/generated/v1beta1/vizier_service.complete_trial.js index e09682cf..fc2447df 100644 --- a/samples/generated/v1beta1/vizier_service.complete_trial.js +++ b/samples/generated/v1beta1/vizier_service.complete_trial.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_VizierService_CompleteTrial_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/vizier_service.create_study.js b/samples/generated/v1beta1/vizier_service.create_study.js index 72a59288..f6cdaba4 100644 --- a/samples/generated/v1beta1/vizier_service.create_study.js +++ b/samples/generated/v1beta1/vizier_service.create_study.js @@ -23,6 +23,9 @@ function main(parent, study) { // [START aiplatform_v1beta1_generated_VizierService_CreateStudy_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/vizier_service.create_trial.js b/samples/generated/v1beta1/vizier_service.create_trial.js index 66d2c15d..f8afe5b1 100644 --- a/samples/generated/v1beta1/vizier_service.create_trial.js +++ b/samples/generated/v1beta1/vizier_service.create_trial.js @@ -23,6 +23,9 @@ function main(parent, trial) { // [START aiplatform_v1beta1_generated_VizierService_CreateTrial_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/vizier_service.delete_study.js b/samples/generated/v1beta1/vizier_service.delete_study.js index 334e6f56..8ff5fcdc 100644 --- a/samples/generated/v1beta1/vizier_service.delete_study.js +++ b/samples/generated/v1beta1/vizier_service.delete_study.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_VizierService_DeleteStudy_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/vizier_service.delete_trial.js b/samples/generated/v1beta1/vizier_service.delete_trial.js index 0e84f976..b33de2c3 100644 --- a/samples/generated/v1beta1/vizier_service.delete_trial.js +++ b/samples/generated/v1beta1/vizier_service.delete_trial.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_VizierService_DeleteTrial_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/vizier_service.get_study.js b/samples/generated/v1beta1/vizier_service.get_study.js index 0c002e7a..0eccef49 100644 --- a/samples/generated/v1beta1/vizier_service.get_study.js +++ b/samples/generated/v1beta1/vizier_service.get_study.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_VizierService_GetStudy_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/vizier_service.get_trial.js b/samples/generated/v1beta1/vizier_service.get_trial.js index d75bc2d3..d1ff22d3 100644 --- a/samples/generated/v1beta1/vizier_service.get_trial.js +++ b/samples/generated/v1beta1/vizier_service.get_trial.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_VizierService_GetTrial_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/vizier_service.list_optimal_trials.js b/samples/generated/v1beta1/vizier_service.list_optimal_trials.js index bef9739f..dcd6452d 100644 --- a/samples/generated/v1beta1/vizier_service.list_optimal_trials.js +++ b/samples/generated/v1beta1/vizier_service.list_optimal_trials.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_VizierService_ListOptimalTrials_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/vizier_service.list_studies.js b/samples/generated/v1beta1/vizier_service.list_studies.js index 32397d72..b61e2496 100644 --- a/samples/generated/v1beta1/vizier_service.list_studies.js +++ b/samples/generated/v1beta1/vizier_service.list_studies.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_VizierService_ListStudies_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/vizier_service.list_trials.js b/samples/generated/v1beta1/vizier_service.list_trials.js index e621ccec..ad56495e 100644 --- a/samples/generated/v1beta1/vizier_service.list_trials.js +++ b/samples/generated/v1beta1/vizier_service.list_trials.js @@ -23,6 +23,9 @@ function main(parent) { // [START aiplatform_v1beta1_generated_VizierService_ListTrials_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/vizier_service.lookup_study.js b/samples/generated/v1beta1/vizier_service.lookup_study.js index de4e3acc..c77ec93a 100644 --- a/samples/generated/v1beta1/vizier_service.lookup_study.js +++ b/samples/generated/v1beta1/vizier_service.lookup_study.js @@ -23,6 +23,9 @@ function main(parent, displayName) { // [START aiplatform_v1beta1_generated_VizierService_LookupStudy_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/vizier_service.stop_trial.js b/samples/generated/v1beta1/vizier_service.stop_trial.js index fed73437..e0ae4bc4 100644 --- a/samples/generated/v1beta1/vizier_service.stop_trial.js +++ b/samples/generated/v1beta1/vizier_service.stop_trial.js @@ -23,6 +23,9 @@ function main(name) { // [START aiplatform_v1beta1_generated_VizierService_StopTrial_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/samples/generated/v1beta1/vizier_service.suggest_trials.js b/samples/generated/v1beta1/vizier_service.suggest_trials.js index 4a32fdfb..a159b3ac 100644 --- a/samples/generated/v1beta1/vizier_service.suggest_trials.js +++ b/samples/generated/v1beta1/vizier_service.suggest_trials.js @@ -23,6 +23,9 @@ function main(parent, suggestionCount, clientId) { // [START aiplatform_v1beta1_generated_VizierService_SuggestTrials_async] /** + * This snippet has been automatically generated and should be regarded as a code template only. + * It will require modifications to work. + * It may require correct/in-range values for request initialization. * TODO(developer): Uncomment these variables before running the sample. */ /** diff --git a/src/v1/dataset_service_client.ts b/src/v1/dataset_service_client.ts index 74480616..d0f5c17e 100644 --- a/src/v1/dataset_service_client.ts +++ b/src/v1/dataset_service_client.ts @@ -34,7 +34,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -1392,7 +1391,8 @@ export class DatasetServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1869,7 +1869,7 @@ export class DatasetServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createDataset, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.Dataset, @@ -2008,7 +2008,7 @@ export class DatasetServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteDataset, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2150,7 +2150,7 @@ export class DatasetServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.importData, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.ImportDataResponse, @@ -2291,7 +2291,7 @@ export class DatasetServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.exportData, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.ExportDataResponse, @@ -2487,7 +2487,7 @@ export class DatasetServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listDatasets.createStream( - this.innerApiCalls.listDatasets as gax.GaxCall, + this.innerApiCalls.listDatasets as GaxCall, request, callSettings ); @@ -2561,7 +2561,7 @@ export class DatasetServiceClient { this.initialize(); return this.descriptors.page.listDatasets.asyncIterate( this.innerApiCalls['listDatasets'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -2720,7 +2720,7 @@ export class DatasetServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listDataItems.createStream( - this.innerApiCalls.listDataItems as gax.GaxCall, + this.innerApiCalls.listDataItems as GaxCall, request, callSettings ); @@ -2777,7 +2777,7 @@ export class DatasetServiceClient { this.initialize(); return this.descriptors.page.listDataItems.asyncIterate( this.innerApiCalls['listDataItems'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -2936,7 +2936,7 @@ export class DatasetServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listSavedQueries.createStream( - this.innerApiCalls.listSavedQueries as gax.GaxCall, + this.innerApiCalls.listSavedQueries as GaxCall, request, callSettings ); @@ -2993,7 +2993,7 @@ export class DatasetServiceClient { this.initialize(); return this.descriptors.page.listSavedQueries.asyncIterate( this.innerApiCalls['listSavedQueries'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -3152,7 +3152,7 @@ export class DatasetServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listAnnotations.createStream( - this.innerApiCalls.listAnnotations as gax.GaxCall, + this.innerApiCalls.listAnnotations as GaxCall, request, callSettings ); @@ -3209,7 +3209,7 @@ export class DatasetServiceClient { this.initialize(); return this.descriptors.page.listAnnotations.asyncIterate( this.innerApiCalls['listAnnotations'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/endpoint_service_client.ts b/src/v1/endpoint_service_client.ts index af07dba1..5faebb29 100644 --- a/src/v1/endpoint_service_client.ts +++ b/src/v1/endpoint_service_client.ts @@ -34,7 +34,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -1372,7 +1371,8 @@ export class EndpointServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1757,7 +1757,7 @@ export class EndpointServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createEndpoint, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.Endpoint, @@ -1896,7 +1896,7 @@ export class EndpointServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteEndpoint, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2052,7 +2052,7 @@ export class EndpointServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deployModel, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.DeployModelResponse, @@ -2202,7 +2202,7 @@ export class EndpointServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.undeployModel, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.UndeployModelResponse, @@ -2408,7 +2408,7 @@ export class EndpointServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listEndpoints.createStream( - this.innerApiCalls.listEndpoints as gax.GaxCall, + this.innerApiCalls.listEndpoints as GaxCall, request, callSettings ); @@ -2487,7 +2487,7 @@ export class EndpointServiceClient { this.initialize(); return this.descriptors.page.listEndpoints.asyncIterate( this.innerApiCalls['listEndpoints'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/featurestore_online_serving_service_client.ts b/src/v1/featurestore_online_serving_service_client.ts index 1b14310a..96431293 100644 --- a/src/v1/featurestore_online_serving_service_client.ts +++ b/src/v1/featurestore_online_serving_service_client.ts @@ -40,7 +40,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './featurestore_online_serving_service_client_config.json'; -import {operationsProtos} from 'google-gax'; + const version = require('../../../package.json').version; /** @@ -1323,7 +1323,8 @@ export class FeaturestoreOnlineServingServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; diff --git a/src/v1/featurestore_service_client.ts b/src/v1/featurestore_service_client.ts index e3279bb2..d9a859bf 100644 --- a/src/v1/featurestore_service_client.ts +++ b/src/v1/featurestore_service_client.ts @@ -34,7 +34,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -1484,7 +1483,8 @@ export class FeaturestoreServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -2182,7 +2182,7 @@ export class FeaturestoreServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createFeaturestore, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.Featurestore, @@ -2336,7 +2336,7 @@ export class FeaturestoreServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.updateFeaturestore, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.Featurestore, @@ -2480,7 +2480,7 @@ export class FeaturestoreServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteFeaturestore, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2629,7 +2629,7 @@ export class FeaturestoreServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createEntityType, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.EntityType, @@ -2772,7 +2772,7 @@ export class FeaturestoreServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteEntityType, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2921,7 +2921,7 @@ export class FeaturestoreServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createFeature, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.Feature, @@ -3065,7 +3065,7 @@ export class FeaturestoreServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.batchCreateFeatures, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.BatchCreateFeaturesResponse, @@ -3204,7 +3204,7 @@ export class FeaturestoreServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteFeature, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -3391,7 +3391,7 @@ export class FeaturestoreServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.importFeatureValues, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.ImportFeatureValuesResponse, @@ -3582,7 +3582,7 @@ export class FeaturestoreServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.batchReadFeatureValues, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.BatchReadFeatureValuesResponse, @@ -3733,7 +3733,7 @@ export class FeaturestoreServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.exportFeatureValues, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.ExportFeatureValuesResponse, @@ -3959,7 +3959,7 @@ export class FeaturestoreServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listFeaturestores.createStream( - this.innerApiCalls.listFeaturestores as gax.GaxCall, + this.innerApiCalls.listFeaturestores as GaxCall, request, callSettings ); @@ -4048,7 +4048,7 @@ export class FeaturestoreServiceClient { this.initialize(); return this.descriptors.page.listFeaturestores.asyncIterate( this.innerApiCalls['listFeaturestores'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -4271,7 +4271,7 @@ export class FeaturestoreServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listEntityTypes.createStream( - this.innerApiCalls.listEntityTypes as gax.GaxCall, + this.innerApiCalls.listEntityTypes as GaxCall, request, callSettings ); @@ -4360,7 +4360,7 @@ export class FeaturestoreServiceClient { this.initialize(); return this.descriptors.page.listEntityTypes.asyncIterate( this.innerApiCalls['listEntityTypes'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -4597,7 +4597,7 @@ export class FeaturestoreServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listFeatures.createStream( - this.innerApiCalls.listFeatures as gax.GaxCall, + this.innerApiCalls.listFeatures as GaxCall, request, callSettings ); @@ -4693,7 +4693,7 @@ export class FeaturestoreServiceClient { this.initialize(); return this.descriptors.page.listFeatures.asyncIterate( this.innerApiCalls['listFeatures'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -4976,7 +4976,7 @@ export class FeaturestoreServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.searchFeatures.createStream( - this.innerApiCalls.searchFeatures as gax.GaxCall, + this.innerApiCalls.searchFeatures as GaxCall, request, callSettings ); @@ -5095,7 +5095,7 @@ export class FeaturestoreServiceClient { this.initialize(); return this.descriptors.page.searchFeatures.asyncIterate( this.innerApiCalls['searchFeatures'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/index_endpoint_service_client.ts b/src/v1/index_endpoint_service_client.ts index 01f428ea..e2437551 100644 --- a/src/v1/index_endpoint_service_client.ts +++ b/src/v1/index_endpoint_service_client.ts @@ -34,7 +34,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -1384,7 +1383,8 @@ export class IndexEndpointServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1766,7 +1766,7 @@ export class IndexEndpointServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createIndexEndpoint, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.IndexEndpoint, @@ -1905,7 +1905,7 @@ export class IndexEndpointServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteIndexEndpoint, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2048,7 +2048,7 @@ export class IndexEndpointServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deployIndex, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.DeployIndexResponse, @@ -2190,7 +2190,7 @@ export class IndexEndpointServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.undeployIndex, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.UndeployIndexResponse, @@ -2333,7 +2333,7 @@ export class IndexEndpointServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.mutateDeployedIndex, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.MutateDeployedIndexResponse, @@ -2527,7 +2527,7 @@ export class IndexEndpointServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listIndexEndpoints.createStream( - this.innerApiCalls.listIndexEndpoints as gax.GaxCall, + this.innerApiCalls.listIndexEndpoints as GaxCall, request, callSettings ); @@ -2600,7 +2600,7 @@ export class IndexEndpointServiceClient { this.initialize(); return this.descriptors.page.listIndexEndpoints.asyncIterate( this.innerApiCalls['listIndexEndpoints'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/index_service_client.ts b/src/v1/index_service_client.ts index bdab80c6..fe1512ec 100644 --- a/src/v1/index_service_client.ts +++ b/src/v1/index_service_client.ts @@ -34,7 +34,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -1359,7 +1358,8 @@ export class IndexServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1640,7 +1640,7 @@ export class IndexServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createIndex, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.Index, @@ -1780,7 +1780,7 @@ export class IndexServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.updateIndex, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.Index, @@ -1921,7 +1921,7 @@ export class IndexServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteIndex, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2075,7 +2075,7 @@ export class IndexServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listIndexes.createStream( - this.innerApiCalls.listIndexes as gax.GaxCall, + this.innerApiCalls.listIndexes as GaxCall, request, callSettings ); @@ -2131,7 +2131,7 @@ export class IndexServiceClient { this.initialize(); return this.descriptors.page.listIndexes.asyncIterate( this.innerApiCalls['listIndexes'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/job_service_client.ts b/src/v1/job_service_client.ts index 0819ef34..5cd216ae 100644 --- a/src/v1/job_service_client.ts +++ b/src/v1/job_service_client.ts @@ -34,7 +34,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -1461,7 +1460,8 @@ export class JobServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -3285,7 +3285,7 @@ export class JobServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteCustomJob, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -3424,7 +3424,7 @@ export class JobServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteDataLabelingJob, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -3567,7 +3567,7 @@ export class JobServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteHyperparameterTuningJob, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -3711,7 +3711,7 @@ export class JobServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteBatchPredictionJob, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -3882,7 +3882,7 @@ export class JobServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.updateModelDeploymentMonitoringJob, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.ModelDeploymentMonitoringJob, @@ -4025,7 +4025,7 @@ export class JobServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteModelDeploymentMonitoringJob, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -4213,7 +4213,7 @@ export class JobServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listCustomJobs.createStream( - this.innerApiCalls.listCustomJobs as gax.GaxCall, + this.innerApiCalls.listCustomJobs as GaxCall, request, callSettings ); @@ -4283,7 +4283,7 @@ export class JobServiceClient { this.initialize(); return this.descriptors.page.listCustomJobs.asyncIterate( this.innerApiCalls['listCustomJobs'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -4476,7 +4476,7 @@ export class JobServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listDataLabelingJobs.createStream( - this.innerApiCalls.listDataLabelingJobs as gax.GaxCall, + this.innerApiCalls.listDataLabelingJobs as GaxCall, request, callSettings ); @@ -4550,7 +4550,7 @@ export class JobServiceClient { this.initialize(); return this.descriptors.page.listDataLabelingJobs.asyncIterate( this.innerApiCalls['listDataLabelingJobs'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -4739,7 +4739,7 @@ export class JobServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listHyperparameterTuningJobs.createStream( - this.innerApiCalls.listHyperparameterTuningJobs as gax.GaxCall, + this.innerApiCalls.listHyperparameterTuningJobs as GaxCall, request, callSettings ); @@ -4809,7 +4809,7 @@ export class JobServiceClient { this.initialize(); return this.descriptors.page.listHyperparameterTuningJobs.asyncIterate( this.innerApiCalls['listHyperparameterTuningJobs'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5000,7 +5000,7 @@ export class JobServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listBatchPredictionJobs.createStream( - this.innerApiCalls.listBatchPredictionJobs as gax.GaxCall, + this.innerApiCalls.listBatchPredictionJobs as GaxCall, request, callSettings ); @@ -5071,7 +5071,7 @@ export class JobServiceClient { this.initialize(); return this.descriptors.page.listBatchPredictionJobs.asyncIterate( this.innerApiCalls['listBatchPredictionJobs'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5260,7 +5260,7 @@ export class JobServiceClient { this.initialize(); return this.descriptors.page.searchModelDeploymentMonitoringStatsAnomalies.createStream( this.innerApiCalls - .searchModelDeploymentMonitoringStatsAnomalies as gax.GaxCall, + .searchModelDeploymentMonitoringStatsAnomalies as GaxCall, request, callSettings ); @@ -5332,7 +5332,7 @@ export class JobServiceClient { this.innerApiCalls[ 'searchModelDeploymentMonitoringStatsAnomalies' ] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5516,7 +5516,7 @@ export class JobServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listModelDeploymentMonitoringJobs.createStream( - this.innerApiCalls.listModelDeploymentMonitoringJobs as gax.GaxCall, + this.innerApiCalls.listModelDeploymentMonitoringJobs as GaxCall, request, callSettings ); @@ -5584,7 +5584,7 @@ export class JobServiceClient { this.initialize(); return this.descriptors.page.listModelDeploymentMonitoringJobs.asyncIterate( this.innerApiCalls['listModelDeploymentMonitoringJobs'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/metadata_service_client.ts b/src/v1/metadata_service_client.ts index 9b94cf37..3aa9715a 100644 --- a/src/v1/metadata_service_client.ts +++ b/src/v1/metadata_service_client.ts @@ -34,7 +34,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -1463,7 +1462,8 @@ export class MetadataServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -3511,7 +3511,7 @@ export class MetadataServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createMetadataStore, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.MetadataStore, @@ -3653,7 +3653,7 @@ export class MetadataServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteMetadataStore, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -3796,7 +3796,7 @@ export class MetadataServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteArtifact, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -3942,7 +3942,7 @@ export class MetadataServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.purgeArtifacts, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.PurgeArtifactsResponse, @@ -4088,7 +4088,7 @@ export class MetadataServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteContext, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -4234,7 +4234,7 @@ export class MetadataServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.purgeContexts, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.PurgeContextsResponse, @@ -4377,7 +4377,7 @@ export class MetadataServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteExecution, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -4523,7 +4523,7 @@ export class MetadataServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.purgeExecutions, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.PurgeExecutionsResponse, @@ -4687,7 +4687,7 @@ export class MetadataServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listMetadataStores.createStream( - this.innerApiCalls.listMetadataStores as gax.GaxCall, + this.innerApiCalls.listMetadataStores as GaxCall, request, callSettings ); @@ -4745,7 +4745,7 @@ export class MetadataServiceClient { this.initialize(); return this.descriptors.page.listMetadataStores.asyncIterate( this.innerApiCalls['listMetadataStores'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -4958,7 +4958,7 @@ export class MetadataServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listArtifacts.createStream( - this.innerApiCalls.listArtifacts as gax.GaxCall, + this.innerApiCalls.listArtifacts as GaxCall, request, callSettings ); @@ -5042,7 +5042,7 @@ export class MetadataServiceClient { this.initialize(); return this.descriptors.page.listArtifacts.asyncIterate( this.innerApiCalls['listArtifacts'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5263,7 +5263,7 @@ export class MetadataServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listContexts.createStream( - this.innerApiCalls.listContexts as gax.GaxCall, + this.innerApiCalls.listContexts as GaxCall, request, callSettings ); @@ -5351,7 +5351,7 @@ export class MetadataServiceClient { this.initialize(); return this.descriptors.page.listContexts.asyncIterate( this.innerApiCalls['listContexts'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5562,7 +5562,7 @@ export class MetadataServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listExecutions.createStream( - this.innerApiCalls.listExecutions as gax.GaxCall, + this.innerApiCalls.listExecutions as GaxCall, request, callSettings ); @@ -5645,7 +5645,7 @@ export class MetadataServiceClient { this.initialize(); return this.descriptors.page.listExecutions.asyncIterate( this.innerApiCalls['listExecutions'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5810,7 +5810,7 @@ export class MetadataServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listMetadataSchemas.createStream( - this.innerApiCalls.listMetadataSchemas as gax.GaxCall, + this.innerApiCalls.listMetadataSchemas as GaxCall, request, callSettings ); @@ -5870,7 +5870,7 @@ export class MetadataServiceClient { this.initialize(); return this.descriptors.page.listMetadataSchemas.asyncIterate( this.innerApiCalls['listMetadataSchemas'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/migration_service_client.ts b/src/v1/migration_service_client.ts index 52a6cc1f..c9d8dac9 100644 --- a/src/v1/migration_service_client.ts +++ b/src/v1/migration_service_client.ts @@ -34,7 +34,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -1337,7 +1336,8 @@ export class MigrationServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1536,7 +1536,7 @@ export class MigrationServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.batchMigrateResources, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.BatchMigrateResourcesResponse, @@ -1722,7 +1722,7 @@ export class MigrationServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.searchMigratableResources.createStream( - this.innerApiCalls.searchMigratableResources as gax.GaxCall, + this.innerApiCalls.searchMigratableResources as GaxCall, request, callSettings ); @@ -1788,7 +1788,7 @@ export class MigrationServiceClient { this.initialize(); return this.descriptors.page.searchMigratableResources.asyncIterate( this.innerApiCalls['searchMigratableResources'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/model_service_client.ts b/src/v1/model_service_client.ts index 46cc3b96..b50905fb 100644 --- a/src/v1/model_service_client.ts +++ b/src/v1/model_service_client.ts @@ -34,7 +34,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -1395,7 +1394,8 @@ export class ModelServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -2307,7 +2307,7 @@ export class ModelServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.uploadModel, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.UploadModelResponse, @@ -2449,7 +2449,7 @@ export class ModelServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteModel, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2593,7 +2593,7 @@ export class ModelServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteModelVersion, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2736,7 +2736,7 @@ export class ModelServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.exportModel, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.ExportModelResponse, @@ -2940,7 +2940,7 @@ export class ModelServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listModels.createStream( - this.innerApiCalls.listModels as gax.GaxCall, + this.innerApiCalls.listModels as GaxCall, request, callSettings ); @@ -3021,7 +3021,7 @@ export class ModelServiceClient { this.initialize(); return this.descriptors.page.listModels.asyncIterate( this.innerApiCalls['listModels'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -3196,7 +3196,7 @@ export class ModelServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listModelVersions.createStream( - this.innerApiCalls.listModelVersions as gax.GaxCall, + this.innerApiCalls.listModelVersions as GaxCall, request, callSettings ); @@ -3261,7 +3261,7 @@ export class ModelServiceClient { this.initialize(); return this.descriptors.page.listModelVersions.asyncIterate( this.innerApiCalls['listModelVersions'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -3418,7 +3418,7 @@ export class ModelServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listModelEvaluations.createStream( - this.innerApiCalls.listModelEvaluations as gax.GaxCall, + this.innerApiCalls.listModelEvaluations as GaxCall, request, callSettings ); @@ -3474,7 +3474,7 @@ export class ModelServiceClient { this.initialize(); return this.descriptors.page.listModelEvaluations.asyncIterate( this.innerApiCalls['listModelEvaluations'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -3641,7 +3641,7 @@ export class ModelServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listModelEvaluationSlices.createStream( - this.innerApiCalls.listModelEvaluationSlices as gax.GaxCall, + this.innerApiCalls.listModelEvaluationSlices as GaxCall, request, callSettings ); @@ -3700,7 +3700,7 @@ export class ModelServiceClient { this.initialize(); return this.descriptors.page.listModelEvaluationSlices.asyncIterate( this.innerApiCalls['listModelEvaluationSlices'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/pipeline_service_client.ts b/src/v1/pipeline_service_client.ts index 15e48784..9f349b3f 100644 --- a/src/v1/pipeline_service_client.ts +++ b/src/v1/pipeline_service_client.ts @@ -34,7 +34,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -1364,7 +1363,8 @@ export class PipelineServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -2169,7 +2169,7 @@ export class PipelineServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteTrainingPipeline, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2308,7 +2308,7 @@ export class PipelineServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deletePipelineJob, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2500,7 +2500,7 @@ export class PipelineServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listTrainingPipelines.createStream( - this.innerApiCalls.listTrainingPipelines as gax.GaxCall, + this.innerApiCalls.listTrainingPipelines as GaxCall, request, callSettings ); @@ -2572,7 +2572,7 @@ export class PipelineServiceClient { this.initialize(); return this.descriptors.page.listTrainingPipelines.asyncIterate( this.innerApiCalls['listTrainingPipelines'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -2819,7 +2819,7 @@ export class PipelineServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listPipelineJobs.createStream( - this.innerApiCalls.listPipelineJobs as gax.GaxCall, + this.innerApiCalls.listPipelineJobs as GaxCall, request, callSettings ); @@ -2920,7 +2920,7 @@ export class PipelineServiceClient { this.initialize(); return this.descriptors.page.listPipelineJobs.asyncIterate( this.innerApiCalls['listPipelineJobs'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/prediction_service_client.ts b/src/v1/prediction_service_client.ts index c2ca857e..3f548fe5 100644 --- a/src/v1/prediction_service_client.ts +++ b/src/v1/prediction_service_client.ts @@ -38,7 +38,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './prediction_service_client_config.json'; -import {operationsProtos} from 'google-gax'; + const version = require('../../../package.json').version; /** @@ -1297,7 +1297,8 @@ export class PredictionServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; diff --git a/src/v1/specialist_pool_service_client.ts b/src/v1/specialist_pool_service_client.ts index 96057c41..adfca479 100644 --- a/src/v1/specialist_pool_service_client.ts +++ b/src/v1/specialist_pool_service_client.ts @@ -34,7 +34,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -1366,7 +1365,8 @@ export class SpecialistPoolServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1655,7 +1655,7 @@ export class SpecialistPoolServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createSpecialistPool, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.SpecialistPool, @@ -1797,7 +1797,7 @@ export class SpecialistPoolServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteSpecialistPool, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -1936,7 +1936,7 @@ export class SpecialistPoolServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.updateSpecialistPool, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.SpecialistPool, @@ -2092,7 +2092,7 @@ export class SpecialistPoolServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listSpecialistPools.createStream( - this.innerApiCalls.listSpecialistPools as gax.GaxCall, + this.innerApiCalls.listSpecialistPools as GaxCall, request, callSettings ); @@ -2146,7 +2146,7 @@ export class SpecialistPoolServiceClient { this.initialize(); return this.descriptors.page.listSpecialistPools.asyncIterate( this.innerApiCalls['listSpecialistPools'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/tensorboard_service_client.ts b/src/v1/tensorboard_service_client.ts index 98c3cf66..d98efef6 100644 --- a/src/v1/tensorboard_service_client.ts +++ b/src/v1/tensorboard_service_client.ts @@ -35,7 +35,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import {PassThrough} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -1468,7 +1467,8 @@ export class TensorboardServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -3419,7 +3419,7 @@ export class TensorboardServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createTensorboard, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.Tensorboard, @@ -3565,7 +3565,7 @@ export class TensorboardServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.updateTensorboard, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.Tensorboard, @@ -3704,7 +3704,7 @@ export class TensorboardServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteTensorboard, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -3847,7 +3847,7 @@ export class TensorboardServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteTensorboardExperiment, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -3986,7 +3986,7 @@ export class TensorboardServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteTensorboardRun, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -4129,7 +4129,7 @@ export class TensorboardServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteTensorboardTimeSeries, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -4307,7 +4307,7 @@ export class TensorboardServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listTensorboards.createStream( - this.innerApiCalls.listTensorboards as gax.GaxCall, + this.innerApiCalls.listTensorboards as GaxCall, request, callSettings ); @@ -4372,7 +4372,7 @@ export class TensorboardServiceClient { this.initialize(); return this.descriptors.page.listTensorboards.asyncIterate( this.innerApiCalls['listTensorboards'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -4551,7 +4551,7 @@ export class TensorboardServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listTensorboardExperiments.createStream( - this.innerApiCalls.listTensorboardExperiments as gax.GaxCall, + this.innerApiCalls.listTensorboardExperiments as GaxCall, request, callSettings ); @@ -4616,7 +4616,7 @@ export class TensorboardServiceClient { this.initialize(); return this.descriptors.page.listTensorboardExperiments.asyncIterate( this.innerApiCalls['listTensorboardExperiments'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -4791,7 +4791,7 @@ export class TensorboardServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listTensorboardRuns.createStream( - this.innerApiCalls.listTensorboardRuns as gax.GaxCall, + this.innerApiCalls.listTensorboardRuns as GaxCall, request, callSettings ); @@ -4856,7 +4856,7 @@ export class TensorboardServiceClient { this.initialize(); return this.descriptors.page.listTensorboardRuns.asyncIterate( this.innerApiCalls['listTensorboardRuns'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5035,7 +5035,7 @@ export class TensorboardServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listTensorboardTimeSeries.createStream( - this.innerApiCalls.listTensorboardTimeSeries as gax.GaxCall, + this.innerApiCalls.listTensorboardTimeSeries as GaxCall, request, callSettings ); @@ -5100,7 +5100,7 @@ export class TensorboardServiceClient { this.initialize(); return this.descriptors.page.listTensorboardTimeSeries.asyncIterate( this.innerApiCalls['listTensorboardTimeSeries'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5279,7 +5279,7 @@ export class TensorboardServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.exportTensorboardTimeSeriesData.createStream( - this.innerApiCalls.exportTensorboardTimeSeriesData as gax.GaxCall, + this.innerApiCalls.exportTensorboardTimeSeriesData as GaxCall, request, callSettings ); @@ -5344,7 +5344,7 @@ export class TensorboardServiceClient { this.initialize(); return this.descriptors.page.exportTensorboardTimeSeriesData.asyncIterate( this.innerApiCalls['exportTensorboardTimeSeriesData'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1/vizier_service_client.ts b/src/v1/vizier_service_client.ts index 1c7b7eb1..7e3ad3fe 100644 --- a/src/v1/vizier_service_client.ts +++ b/src/v1/vizier_service_client.ts @@ -34,7 +34,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -1371,7 +1370,8 @@ export class VizierServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -2565,7 +2565,7 @@ export class VizierServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.suggestTrials, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.SuggestTrialsResponse, @@ -2711,7 +2711,7 @@ export class VizierServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.checkTrialEarlyStoppingState, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1.CheckTrialEarlyStoppingStateResponse, @@ -2855,7 +2855,7 @@ export class VizierServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listStudies.createStream( - this.innerApiCalls.listStudies as gax.GaxCall, + this.innerApiCalls.listStudies as GaxCall, request, callSettings ); @@ -2906,7 +2906,7 @@ export class VizierServiceClient { this.initialize(); return this.descriptors.page.listStudies.asyncIterate( this.innerApiCalls['listStudies'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -3047,7 +3047,7 @@ export class VizierServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listTrials.createStream( - this.innerApiCalls.listTrials as gax.GaxCall, + this.innerApiCalls.listTrials as GaxCall, request, callSettings ); @@ -3098,7 +3098,7 @@ export class VizierServiceClient { this.initialize(); return this.descriptors.page.listTrials.asyncIterate( this.innerApiCalls['listTrials'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1beta1/dataset_service_client.ts b/src/v1beta1/dataset_service_client.ts index a0be3fd9..1c969e62 100644 --- a/src/v1beta1/dataset_service_client.ts +++ b/src/v1beta1/dataset_service_client.ts @@ -34,7 +34,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -1460,7 +1459,8 @@ export class DatasetServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1949,7 +1949,7 @@ export class DatasetServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createDataset, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.Dataset, @@ -2088,7 +2088,7 @@ export class DatasetServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteDataset, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2230,7 +2230,7 @@ export class DatasetServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.importData, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.ImportDataResponse, @@ -2371,7 +2371,7 @@ export class DatasetServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.exportData, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.ExportDataResponse, @@ -2567,7 +2567,7 @@ export class DatasetServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listDatasets.createStream( - this.innerApiCalls.listDatasets as gax.GaxCall, + this.innerApiCalls.listDatasets as GaxCall, request, callSettings ); @@ -2641,7 +2641,7 @@ export class DatasetServiceClient { this.initialize(); return this.descriptors.page.listDatasets.asyncIterate( this.innerApiCalls['listDatasets'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -2800,7 +2800,7 @@ export class DatasetServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listDataItems.createStream( - this.innerApiCalls.listDataItems as gax.GaxCall, + this.innerApiCalls.listDataItems as GaxCall, request, callSettings ); @@ -2857,7 +2857,7 @@ export class DatasetServiceClient { this.initialize(); return this.descriptors.page.listDataItems.asyncIterate( this.innerApiCalls['listDataItems'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -3016,7 +3016,7 @@ export class DatasetServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listSavedQueries.createStream( - this.innerApiCalls.listSavedQueries as gax.GaxCall, + this.innerApiCalls.listSavedQueries as GaxCall, request, callSettings ); @@ -3073,7 +3073,7 @@ export class DatasetServiceClient { this.initialize(); return this.descriptors.page.listSavedQueries.asyncIterate( this.innerApiCalls['listSavedQueries'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -3232,7 +3232,7 @@ export class DatasetServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listAnnotations.createStream( - this.innerApiCalls.listAnnotations as gax.GaxCall, + this.innerApiCalls.listAnnotations as GaxCall, request, callSettings ); @@ -3289,7 +3289,7 @@ export class DatasetServiceClient { this.initialize(); return this.descriptors.page.listAnnotations.asyncIterate( this.innerApiCalls['listAnnotations'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1beta1/deployment_resource_pool_service_client.ts b/src/v1beta1/deployment_resource_pool_service_client.ts index d6c5a6a9..4c530591 100644 --- a/src/v1beta1/deployment_resource_pool_service_client.ts +++ b/src/v1beta1/deployment_resource_pool_service_client.ts @@ -34,7 +34,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -1434,7 +1433,8 @@ export class DeploymentResourcePoolServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1744,7 +1744,7 @@ export class DeploymentResourcePoolServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createDeploymentResourcePool, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.DeploymentResourcePool, @@ -1887,7 +1887,7 @@ export class DeploymentResourcePoolServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteDeploymentResourcePool, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2049,7 +2049,7 @@ export class DeploymentResourcePoolServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listDeploymentResourcePools.createStream( - this.innerApiCalls.listDeploymentResourcePools as gax.GaxCall, + this.innerApiCalls.listDeploymentResourcePools as GaxCall, request, callSettings ); @@ -2104,7 +2104,7 @@ export class DeploymentResourcePoolServiceClient { this.initialize(); return this.descriptors.page.listDeploymentResourcePools.asyncIterate( this.innerApiCalls['listDeploymentResourcePools'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -2261,7 +2261,7 @@ export class DeploymentResourcePoolServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.queryDeployedModels.createStream( - this.innerApiCalls.queryDeployedModels as gax.GaxCall, + this.innerApiCalls.queryDeployedModels as GaxCall, request, callSettings ); @@ -2317,7 +2317,7 @@ export class DeploymentResourcePoolServiceClient { this.initialize(); return this.descriptors.page.queryDeployedModels.asyncIterate( this.innerApiCalls['queryDeployedModels'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1beta1/endpoint_service_client.ts b/src/v1beta1/endpoint_service_client.ts index bb5cd777..77640855 100644 --- a/src/v1beta1/endpoint_service_client.ts +++ b/src/v1beta1/endpoint_service_client.ts @@ -34,7 +34,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -1440,7 +1439,8 @@ export class EndpointServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1831,7 +1831,7 @@ export class EndpointServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createEndpoint, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.Endpoint, @@ -1970,7 +1970,7 @@ export class EndpointServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteEndpoint, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2126,7 +2126,7 @@ export class EndpointServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deployModel, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.DeployModelResponse, @@ -2276,7 +2276,7 @@ export class EndpointServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.undeployModel, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.UndeployModelResponse, @@ -2464,7 +2464,7 @@ export class EndpointServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listEndpoints.createStream( - this.innerApiCalls.listEndpoints as gax.GaxCall, + this.innerApiCalls.listEndpoints as GaxCall, request, callSettings ); @@ -2534,7 +2534,7 @@ export class EndpointServiceClient { this.initialize(); return this.descriptors.page.listEndpoints.asyncIterate( this.innerApiCalls['listEndpoints'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1beta1/featurestore_online_serving_service_client.ts b/src/v1beta1/featurestore_online_serving_service_client.ts index 9b968c1a..ea37865b 100644 --- a/src/v1beta1/featurestore_online_serving_service_client.ts +++ b/src/v1beta1/featurestore_online_serving_service_client.ts @@ -40,7 +40,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './featurestore_online_serving_service_client_config.json'; -import {operationsProtos} from 'google-gax'; + const version = require('../../../package.json').version; /** @@ -1392,7 +1392,8 @@ export class FeaturestoreOnlineServingServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; diff --git a/src/v1beta1/featurestore_service_client.ts b/src/v1beta1/featurestore_service_client.ts index d830f901..2d7e70ee 100644 --- a/src/v1beta1/featurestore_service_client.ts +++ b/src/v1beta1/featurestore_service_client.ts @@ -34,7 +34,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -1553,7 +1552,8 @@ export class FeaturestoreServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -2269,7 +2269,7 @@ export class FeaturestoreServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createFeaturestore, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.Featurestore, @@ -2423,7 +2423,7 @@ export class FeaturestoreServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.updateFeaturestore, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.Featurestore, @@ -2567,7 +2567,7 @@ export class FeaturestoreServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteFeaturestore, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2716,7 +2716,7 @@ export class FeaturestoreServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createEntityType, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.EntityType, @@ -2859,7 +2859,7 @@ export class FeaturestoreServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteEntityType, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -3008,7 +3008,7 @@ export class FeaturestoreServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createFeature, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.Feature, @@ -3152,7 +3152,7 @@ export class FeaturestoreServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.batchCreateFeatures, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.BatchCreateFeaturesResponse, @@ -3291,7 +3291,7 @@ export class FeaturestoreServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteFeature, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -3478,7 +3478,7 @@ export class FeaturestoreServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.importFeatureValues, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.ImportFeatureValuesResponse, @@ -3669,7 +3669,7 @@ export class FeaturestoreServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.batchReadFeatureValues, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.BatchReadFeatureValuesResponse, @@ -3820,7 +3820,7 @@ export class FeaturestoreServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.exportFeatureValues, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.ExportFeatureValuesResponse, @@ -4046,7 +4046,7 @@ export class FeaturestoreServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listFeaturestores.createStream( - this.innerApiCalls.listFeaturestores as gax.GaxCall, + this.innerApiCalls.listFeaturestores as GaxCall, request, callSettings ); @@ -4135,7 +4135,7 @@ export class FeaturestoreServiceClient { this.initialize(); return this.descriptors.page.listFeaturestores.asyncIterate( this.innerApiCalls['listFeaturestores'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -4358,7 +4358,7 @@ export class FeaturestoreServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listEntityTypes.createStream( - this.innerApiCalls.listEntityTypes as gax.GaxCall, + this.innerApiCalls.listEntityTypes as GaxCall, request, callSettings ); @@ -4447,7 +4447,7 @@ export class FeaturestoreServiceClient { this.initialize(); return this.descriptors.page.listEntityTypes.asyncIterate( this.innerApiCalls['listEntityTypes'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -4684,7 +4684,7 @@ export class FeaturestoreServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listFeatures.createStream( - this.innerApiCalls.listFeatures as gax.GaxCall, + this.innerApiCalls.listFeatures as GaxCall, request, callSettings ); @@ -4780,7 +4780,7 @@ export class FeaturestoreServiceClient { this.initialize(); return this.descriptors.page.listFeatures.asyncIterate( this.innerApiCalls['listFeatures'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5063,7 +5063,7 @@ export class FeaturestoreServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.searchFeatures.createStream( - this.innerApiCalls.searchFeatures as gax.GaxCall, + this.innerApiCalls.searchFeatures as GaxCall, request, callSettings ); @@ -5182,7 +5182,7 @@ export class FeaturestoreServiceClient { this.initialize(); return this.descriptors.page.searchFeatures.asyncIterate( this.innerApiCalls['searchFeatures'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1beta1/index_endpoint_service_client.ts b/src/v1beta1/index_endpoint_service_client.ts index 8b5c190f..7a2268ed 100644 --- a/src/v1beta1/index_endpoint_service_client.ts +++ b/src/v1beta1/index_endpoint_service_client.ts @@ -34,7 +34,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -1453,7 +1452,8 @@ export class IndexEndpointServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1847,7 +1847,7 @@ export class IndexEndpointServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createIndexEndpoint, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.IndexEndpoint, @@ -1986,7 +1986,7 @@ export class IndexEndpointServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteIndexEndpoint, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2129,7 +2129,7 @@ export class IndexEndpointServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deployIndex, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.DeployIndexResponse, @@ -2271,7 +2271,7 @@ export class IndexEndpointServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.undeployIndex, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.UndeployIndexResponse, @@ -2414,7 +2414,7 @@ export class IndexEndpointServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.mutateDeployedIndex, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.MutateDeployedIndexResponse, @@ -2608,7 +2608,7 @@ export class IndexEndpointServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listIndexEndpoints.createStream( - this.innerApiCalls.listIndexEndpoints as gax.GaxCall, + this.innerApiCalls.listIndexEndpoints as GaxCall, request, callSettings ); @@ -2681,7 +2681,7 @@ export class IndexEndpointServiceClient { this.initialize(); return this.descriptors.page.listIndexEndpoints.asyncIterate( this.innerApiCalls['listIndexEndpoints'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1beta1/index_service_client.ts b/src/v1beta1/index_service_client.ts index 3dfd506e..8a515859 100644 --- a/src/v1beta1/index_service_client.ts +++ b/src/v1beta1/index_service_client.ts @@ -34,7 +34,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -1427,7 +1426,8 @@ export class IndexServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1716,7 +1716,7 @@ export class IndexServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createIndex, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.Index, @@ -1856,7 +1856,7 @@ export class IndexServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.updateIndex, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.Index, @@ -1997,7 +1997,7 @@ export class IndexServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteIndex, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2157,7 +2157,7 @@ export class IndexServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listIndexes.createStream( - this.innerApiCalls.listIndexes as gax.GaxCall, + this.innerApiCalls.listIndexes as GaxCall, request, callSettings ); @@ -2213,7 +2213,7 @@ export class IndexServiceClient { this.initialize(); return this.descriptors.page.listIndexes.asyncIterate( this.innerApiCalls['listIndexes'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1beta1/job_service_client.ts b/src/v1beta1/job_service_client.ts index 191d021d..396aa41a 100644 --- a/src/v1beta1/job_service_client.ts +++ b/src/v1beta1/job_service_client.ts @@ -34,7 +34,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -1529,7 +1528,8 @@ export class JobServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -3377,7 +3377,7 @@ export class JobServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteCustomJob, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -3516,7 +3516,7 @@ export class JobServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteDataLabelingJob, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -3659,7 +3659,7 @@ export class JobServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteHyperparameterTuningJob, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -3803,7 +3803,7 @@ export class JobServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteBatchPredictionJob, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -3974,7 +3974,7 @@ export class JobServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.updateModelDeploymentMonitoringJob, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.ModelDeploymentMonitoringJob, @@ -4117,7 +4117,7 @@ export class JobServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteModelDeploymentMonitoringJob, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -4305,7 +4305,7 @@ export class JobServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listCustomJobs.createStream( - this.innerApiCalls.listCustomJobs as gax.GaxCall, + this.innerApiCalls.listCustomJobs as GaxCall, request, callSettings ); @@ -4375,7 +4375,7 @@ export class JobServiceClient { this.initialize(); return this.descriptors.page.listCustomJobs.asyncIterate( this.innerApiCalls['listCustomJobs'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -4568,7 +4568,7 @@ export class JobServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listDataLabelingJobs.createStream( - this.innerApiCalls.listDataLabelingJobs as gax.GaxCall, + this.innerApiCalls.listDataLabelingJobs as GaxCall, request, callSettings ); @@ -4642,7 +4642,7 @@ export class JobServiceClient { this.initialize(); return this.descriptors.page.listDataLabelingJobs.asyncIterate( this.innerApiCalls['listDataLabelingJobs'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -4831,7 +4831,7 @@ export class JobServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listHyperparameterTuningJobs.createStream( - this.innerApiCalls.listHyperparameterTuningJobs as gax.GaxCall, + this.innerApiCalls.listHyperparameterTuningJobs as GaxCall, request, callSettings ); @@ -4901,7 +4901,7 @@ export class JobServiceClient { this.initialize(); return this.descriptors.page.listHyperparameterTuningJobs.asyncIterate( this.innerApiCalls['listHyperparameterTuningJobs'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5092,7 +5092,7 @@ export class JobServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listBatchPredictionJobs.createStream( - this.innerApiCalls.listBatchPredictionJobs as gax.GaxCall, + this.innerApiCalls.listBatchPredictionJobs as GaxCall, request, callSettings ); @@ -5163,7 +5163,7 @@ export class JobServiceClient { this.initialize(); return this.descriptors.page.listBatchPredictionJobs.asyncIterate( this.innerApiCalls['listBatchPredictionJobs'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5352,7 +5352,7 @@ export class JobServiceClient { this.initialize(); return this.descriptors.page.searchModelDeploymentMonitoringStatsAnomalies.createStream( this.innerApiCalls - .searchModelDeploymentMonitoringStatsAnomalies as gax.GaxCall, + .searchModelDeploymentMonitoringStatsAnomalies as GaxCall, request, callSettings ); @@ -5424,7 +5424,7 @@ export class JobServiceClient { this.innerApiCalls[ 'searchModelDeploymentMonitoringStatsAnomalies' ] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5608,7 +5608,7 @@ export class JobServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listModelDeploymentMonitoringJobs.createStream( - this.innerApiCalls.listModelDeploymentMonitoringJobs as gax.GaxCall, + this.innerApiCalls.listModelDeploymentMonitoringJobs as GaxCall, request, callSettings ); @@ -5676,7 +5676,7 @@ export class JobServiceClient { this.initialize(); return this.descriptors.page.listModelDeploymentMonitoringJobs.asyncIterate( this.innerApiCalls['listModelDeploymentMonitoringJobs'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1beta1/metadata_service_client.ts b/src/v1beta1/metadata_service_client.ts index 58598c7d..7a76b2a4 100644 --- a/src/v1beta1/metadata_service_client.ts +++ b/src/v1beta1/metadata_service_client.ts @@ -34,7 +34,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -1531,7 +1530,8 @@ export class MetadataServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -3633,7 +3633,7 @@ export class MetadataServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createMetadataStore, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.MetadataStore, @@ -3775,7 +3775,7 @@ export class MetadataServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteMetadataStore, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -3918,7 +3918,7 @@ export class MetadataServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteArtifact, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -4064,7 +4064,7 @@ export class MetadataServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.purgeArtifacts, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.PurgeArtifactsResponse, @@ -4210,7 +4210,7 @@ export class MetadataServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteContext, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -4356,7 +4356,7 @@ export class MetadataServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.purgeContexts, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.PurgeContextsResponse, @@ -4499,7 +4499,7 @@ export class MetadataServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteExecution, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -4645,7 +4645,7 @@ export class MetadataServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.purgeExecutions, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.PurgeExecutionsResponse, @@ -4809,7 +4809,7 @@ export class MetadataServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listMetadataStores.createStream( - this.innerApiCalls.listMetadataStores as gax.GaxCall, + this.innerApiCalls.listMetadataStores as GaxCall, request, callSettings ); @@ -4867,7 +4867,7 @@ export class MetadataServiceClient { this.initialize(); return this.descriptors.page.listMetadataStores.asyncIterate( this.innerApiCalls['listMetadataStores'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5080,7 +5080,7 @@ export class MetadataServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listArtifacts.createStream( - this.innerApiCalls.listArtifacts as gax.GaxCall, + this.innerApiCalls.listArtifacts as GaxCall, request, callSettings ); @@ -5164,7 +5164,7 @@ export class MetadataServiceClient { this.initialize(); return this.descriptors.page.listArtifacts.asyncIterate( this.innerApiCalls['listArtifacts'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5385,7 +5385,7 @@ export class MetadataServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listContexts.createStream( - this.innerApiCalls.listContexts as gax.GaxCall, + this.innerApiCalls.listContexts as GaxCall, request, callSettings ); @@ -5473,7 +5473,7 @@ export class MetadataServiceClient { this.initialize(); return this.descriptors.page.listContexts.asyncIterate( this.innerApiCalls['listContexts'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5684,7 +5684,7 @@ export class MetadataServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listExecutions.createStream( - this.innerApiCalls.listExecutions as gax.GaxCall, + this.innerApiCalls.listExecutions as GaxCall, request, callSettings ); @@ -5767,7 +5767,7 @@ export class MetadataServiceClient { this.initialize(); return this.descriptors.page.listExecutions.asyncIterate( this.innerApiCalls['listExecutions'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5932,7 +5932,7 @@ export class MetadataServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listMetadataSchemas.createStream( - this.innerApiCalls.listMetadataSchemas as gax.GaxCall, + this.innerApiCalls.listMetadataSchemas as GaxCall, request, callSettings ); @@ -5992,7 +5992,7 @@ export class MetadataServiceClient { this.initialize(); return this.descriptors.page.listMetadataSchemas.asyncIterate( this.innerApiCalls['listMetadataSchemas'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1beta1/migration_service_client.ts b/src/v1beta1/migration_service_client.ts index a99688c9..f92a01db 100644 --- a/src/v1beta1/migration_service_client.ts +++ b/src/v1beta1/migration_service_client.ts @@ -34,7 +34,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -1406,7 +1405,8 @@ export class MigrationServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1605,7 +1605,7 @@ export class MigrationServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.batchMigrateResources, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.BatchMigrateResourcesResponse, @@ -1791,7 +1791,7 @@ export class MigrationServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.searchMigratableResources.createStream( - this.innerApiCalls.searchMigratableResources as gax.GaxCall, + this.innerApiCalls.searchMigratableResources as GaxCall, request, callSettings ); @@ -1857,7 +1857,7 @@ export class MigrationServiceClient { this.initialize(); return this.descriptors.page.searchMigratableResources.asyncIterate( this.innerApiCalls['searchMigratableResources'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1beta1/model_service_client.ts b/src/v1beta1/model_service_client.ts index dbf7fef0..d9faa095 100644 --- a/src/v1beta1/model_service_client.ts +++ b/src/v1beta1/model_service_client.ts @@ -34,7 +34,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -1479,7 +1478,8 @@ export class ModelServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -2417,7 +2417,7 @@ export class ModelServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.uploadModel, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.UploadModelResponse, @@ -2561,7 +2561,7 @@ export class ModelServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.updateExplanationDataset, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.UpdateExplanationDatasetResponse, @@ -2703,7 +2703,7 @@ export class ModelServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteModel, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2847,7 +2847,7 @@ export class ModelServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteModelVersion, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2990,7 +2990,7 @@ export class ModelServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.exportModel, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.ExportModelResponse, @@ -3180,7 +3180,7 @@ export class ModelServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listModels.createStream( - this.innerApiCalls.listModels as gax.GaxCall, + this.innerApiCalls.listModels as GaxCall, request, callSettings ); @@ -3251,7 +3251,7 @@ export class ModelServiceClient { this.initialize(); return this.descriptors.page.listModels.asyncIterate( this.innerApiCalls['listModels'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -3426,7 +3426,7 @@ export class ModelServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listModelVersions.createStream( - this.innerApiCalls.listModelVersions as gax.GaxCall, + this.innerApiCalls.listModelVersions as GaxCall, request, callSettings ); @@ -3491,7 +3491,7 @@ export class ModelServiceClient { this.initialize(); return this.descriptors.page.listModelVersions.asyncIterate( this.innerApiCalls['listModelVersions'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -3648,7 +3648,7 @@ export class ModelServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listModelEvaluations.createStream( - this.innerApiCalls.listModelEvaluations as gax.GaxCall, + this.innerApiCalls.listModelEvaluations as GaxCall, request, callSettings ); @@ -3704,7 +3704,7 @@ export class ModelServiceClient { this.initialize(); return this.descriptors.page.listModelEvaluations.asyncIterate( this.innerApiCalls['listModelEvaluations'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -3871,7 +3871,7 @@ export class ModelServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listModelEvaluationSlices.createStream( - this.innerApiCalls.listModelEvaluationSlices as gax.GaxCall, + this.innerApiCalls.listModelEvaluationSlices as GaxCall, request, callSettings ); @@ -3930,7 +3930,7 @@ export class ModelServiceClient { this.initialize(); return this.descriptors.page.listModelEvaluationSlices.asyncIterate( this.innerApiCalls['listModelEvaluationSlices'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1beta1/pipeline_service_client.ts b/src/v1beta1/pipeline_service_client.ts index f0b2b979..b1b4b112 100644 --- a/src/v1beta1/pipeline_service_client.ts +++ b/src/v1beta1/pipeline_service_client.ts @@ -34,7 +34,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -1432,7 +1431,8 @@ export class PipelineServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -2255,7 +2255,7 @@ export class PipelineServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteTrainingPipeline, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2394,7 +2394,7 @@ export class PipelineServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deletePipelineJob, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2586,7 +2586,7 @@ export class PipelineServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listTrainingPipelines.createStream( - this.innerApiCalls.listTrainingPipelines as gax.GaxCall, + this.innerApiCalls.listTrainingPipelines as GaxCall, request, callSettings ); @@ -2658,7 +2658,7 @@ export class PipelineServiceClient { this.initialize(); return this.descriptors.page.listTrainingPipelines.asyncIterate( this.innerApiCalls['listTrainingPipelines'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -2905,7 +2905,7 @@ export class PipelineServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listPipelineJobs.createStream( - this.innerApiCalls.listPipelineJobs as gax.GaxCall, + this.innerApiCalls.listPipelineJobs as GaxCall, request, callSettings ); @@ -3006,7 +3006,7 @@ export class PipelineServiceClient { this.initialize(); return this.descriptors.page.listPipelineJobs.asyncIterate( this.innerApiCalls['listPipelineJobs'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1beta1/prediction_service_client.ts b/src/v1beta1/prediction_service_client.ts index 7241f967..481828a9 100644 --- a/src/v1beta1/prediction_service_client.ts +++ b/src/v1beta1/prediction_service_client.ts @@ -38,7 +38,7 @@ import jsonProtos = require('../../protos/protos.json'); * This file defines retry strategy and timeouts for all API methods in this library. */ import * as gapicConfig from './prediction_service_client_config.json'; -import {operationsProtos} from 'google-gax'; + const version = require('../../../package.json').version; /** @@ -1366,7 +1366,8 @@ export class PredictionServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; diff --git a/src/v1beta1/specialist_pool_service_client.ts b/src/v1beta1/specialist_pool_service_client.ts index 70e63f55..98e2c4b4 100644 --- a/src/v1beta1/specialist_pool_service_client.ts +++ b/src/v1beta1/specialist_pool_service_client.ts @@ -34,7 +34,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -1434,7 +1433,8 @@ export class SpecialistPoolServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -1729,7 +1729,7 @@ export class SpecialistPoolServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createSpecialistPool, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.SpecialistPool, @@ -1871,7 +1871,7 @@ export class SpecialistPoolServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteSpecialistPool, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -2010,7 +2010,7 @@ export class SpecialistPoolServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.updateSpecialistPool, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.SpecialistPool, @@ -2166,7 +2166,7 @@ export class SpecialistPoolServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listSpecialistPools.createStream( - this.innerApiCalls.listSpecialistPools as gax.GaxCall, + this.innerApiCalls.listSpecialistPools as GaxCall, request, callSettings ); @@ -2220,7 +2220,7 @@ export class SpecialistPoolServiceClient { this.initialize(); return this.descriptors.page.listSpecialistPools.asyncIterate( this.innerApiCalls['listSpecialistPools'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1beta1/tensorboard_service_client.ts b/src/v1beta1/tensorboard_service_client.ts index 068d287c..4b93744a 100644 --- a/src/v1beta1/tensorboard_service_client.ts +++ b/src/v1beta1/tensorboard_service_client.ts @@ -35,7 +35,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import {PassThrough} from 'stream'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); @@ -1537,7 +1536,8 @@ export class TensorboardServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -3491,7 +3491,7 @@ export class TensorboardServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.createTensorboard, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.Tensorboard, @@ -3637,7 +3637,7 @@ export class TensorboardServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.updateTensorboard, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.Tensorboard, @@ -3776,7 +3776,7 @@ export class TensorboardServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteTensorboard, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -3919,7 +3919,7 @@ export class TensorboardServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteTensorboardExperiment, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -4058,7 +4058,7 @@ export class TensorboardServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteTensorboardRun, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -4201,7 +4201,7 @@ export class TensorboardServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.deleteTensorboardTimeSeries, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.protobuf.Empty, @@ -4379,7 +4379,7 @@ export class TensorboardServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listTensorboards.createStream( - this.innerApiCalls.listTensorboards as gax.GaxCall, + this.innerApiCalls.listTensorboards as GaxCall, request, callSettings ); @@ -4444,7 +4444,7 @@ export class TensorboardServiceClient { this.initialize(); return this.descriptors.page.listTensorboards.asyncIterate( this.innerApiCalls['listTensorboards'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -4623,7 +4623,7 @@ export class TensorboardServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listTensorboardExperiments.createStream( - this.innerApiCalls.listTensorboardExperiments as gax.GaxCall, + this.innerApiCalls.listTensorboardExperiments as GaxCall, request, callSettings ); @@ -4688,7 +4688,7 @@ export class TensorboardServiceClient { this.initialize(); return this.descriptors.page.listTensorboardExperiments.asyncIterate( this.innerApiCalls['listTensorboardExperiments'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -4863,7 +4863,7 @@ export class TensorboardServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listTensorboardRuns.createStream( - this.innerApiCalls.listTensorboardRuns as gax.GaxCall, + this.innerApiCalls.listTensorboardRuns as GaxCall, request, callSettings ); @@ -4928,7 +4928,7 @@ export class TensorboardServiceClient { this.initialize(); return this.descriptors.page.listTensorboardRuns.asyncIterate( this.innerApiCalls['listTensorboardRuns'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5107,7 +5107,7 @@ export class TensorboardServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listTensorboardTimeSeries.createStream( - this.innerApiCalls.listTensorboardTimeSeries as gax.GaxCall, + this.innerApiCalls.listTensorboardTimeSeries as GaxCall, request, callSettings ); @@ -5172,7 +5172,7 @@ export class TensorboardServiceClient { this.initialize(); return this.descriptors.page.listTensorboardTimeSeries.asyncIterate( this.innerApiCalls['listTensorboardTimeSeries'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -5351,7 +5351,7 @@ export class TensorboardServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.exportTensorboardTimeSeriesData.createStream( - this.innerApiCalls.exportTensorboardTimeSeriesData as gax.GaxCall, + this.innerApiCalls.exportTensorboardTimeSeriesData as GaxCall, request, callSettings ); @@ -5416,7 +5416,7 @@ export class TensorboardServiceClient { this.initialize(); return this.descriptors.page.exportTensorboardTimeSeriesData.asyncIterate( this.innerApiCalls['exportTensorboardTimeSeriesData'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/src/v1beta1/vizier_service_client.ts b/src/v1beta1/vizier_service_client.ts index bdcd58b6..7cc25ee0 100644 --- a/src/v1beta1/vizier_service_client.ts +++ b/src/v1beta1/vizier_service_client.ts @@ -34,7 +34,6 @@ import { } from 'google-gax'; import {Transform} from 'stream'; -import {RequestType} from 'google-gax/build/src/apitypes'; import * as protos from '../../protos/protos'; import jsonProtos = require('../../protos/protos.json'); /** @@ -1439,7 +1438,8 @@ export class VizierServiceClient { const apiCall = this._gaxModule.createApiCall( callPromise, this._defaults[methodName], - descriptor + descriptor, + this._opts.fallback ); this.innerApiCalls[methodName] = apiCall; @@ -2697,7 +2697,7 @@ export class VizierServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.suggestTrials, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.SuggestTrialsResponse, @@ -2843,7 +2843,7 @@ export class VizierServiceClient { const decodeOperation = new gax.Operation( operation, this.descriptors.longrunning.checkTrialEarlyStoppingState, - gax.createDefaultBackoffSettings() + this._gaxModule.createDefaultBackoffSettings() ); return decodeOperation as LROperation< protos.google.cloud.aiplatform.v1beta1.CheckTrialEarlyStoppingStateResponse, @@ -2993,7 +2993,7 @@ export class VizierServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listStudies.createStream( - this.innerApiCalls.listStudies as gax.GaxCall, + this.innerApiCalls.listStudies as GaxCall, request, callSettings ); @@ -3044,7 +3044,7 @@ export class VizierServiceClient { this.initialize(); return this.descriptors.page.listStudies.asyncIterate( this.innerApiCalls['listStudies'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } @@ -3191,7 +3191,7 @@ export class VizierServiceClient { const callSettings = defaultCallSettings.merge(options); this.initialize(); return this.descriptors.page.listTrials.createStream( - this.innerApiCalls.listTrials as gax.GaxCall, + this.innerApiCalls.listTrials as GaxCall, request, callSettings ); @@ -3242,7 +3242,7 @@ export class VizierServiceClient { this.initialize(); return this.descriptors.page.listTrials.asyncIterate( this.innerApiCalls['listTrials'] as GaxCall, - request as unknown as RequestType, + request as {}, callSettings ) as AsyncIterable; } diff --git a/test/gapic_dataset_service_v1.ts b/test/gapic_dataset_service_v1.ts index bfb3d958..ea86c9f1 100644 --- a/test/gapic_dataset_service_v1.ts +++ b/test/gapic_dataset_service_v1.ts @@ -151,101 +151,103 @@ function stubAsyncIterationCall( } describe('v1.DatasetServiceClient', () => { - it('has servicePath', () => { - const servicePath = - datasetserviceModule.v1.DatasetServiceClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - datasetserviceModule.v1.DatasetServiceClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = datasetserviceModule.v1.DatasetServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + datasetserviceModule.v1.DatasetServiceClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new datasetserviceModule.v1.DatasetServiceClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + datasetserviceModule.v1.DatasetServiceClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new datasetserviceModule.v1.DatasetServiceClient({ - fallback: true, + it('has port', () => { + const port = datasetserviceModule.v1.DatasetServiceClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new datasetserviceModule.v1.DatasetServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new datasetserviceModule.v1.DatasetServiceClient(); + assert(client); }); - assert.strictEqual(client.datasetServiceStub, undefined); - await client.initialize(); - assert(client.datasetServiceStub); - }); - it('has close method for the initialized client', done => { - const client = new datasetserviceModule.v1.DatasetServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.datasetServiceStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.datasetServiceStub, undefined); + await client.initialize(); + assert(client.datasetServiceStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new datasetserviceModule.v1.DatasetServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.datasetServiceStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.datasetServiceStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.datasetServiceStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new datasetserviceModule.v1.DatasetServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new datasetserviceModule.v1.DatasetServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new datasetserviceModule.v1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getDataset', () => { diff --git a/test/gapic_dataset_service_v1beta1.ts b/test/gapic_dataset_service_v1beta1.ts index 49a4a94a..e589b4b9 100644 --- a/test/gapic_dataset_service_v1beta1.ts +++ b/test/gapic_dataset_service_v1beta1.ts @@ -151,101 +151,103 @@ function stubAsyncIterationCall( } describe('v1beta1.DatasetServiceClient', () => { - it('has servicePath', () => { - const servicePath = - datasetserviceModule.v1beta1.DatasetServiceClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - datasetserviceModule.v1beta1.DatasetServiceClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = datasetserviceModule.v1beta1.DatasetServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + datasetserviceModule.v1beta1.DatasetServiceClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new datasetserviceModule.v1beta1.DatasetServiceClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + datasetserviceModule.v1beta1.DatasetServiceClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ - fallback: true, + it('has port', () => { + const port = datasetserviceModule.v1beta1.DatasetServiceClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient(); + assert(client); }); - assert.strictEqual(client.datasetServiceStub, undefined); - await client.initialize(); - assert(client.datasetServiceStub); - }); - it('has close method for the initialized client', done => { - const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.datasetServiceStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.datasetServiceStub, undefined); + await client.initialize(); + assert(client.datasetServiceStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.datasetServiceStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.datasetServiceStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.datasetServiceStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new datasetserviceModule.v1beta1.DatasetServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getDataset', () => { diff --git a/test/gapic_deployment_resource_pool_service_v1beta1.ts b/test/gapic_deployment_resource_pool_service_v1beta1.ts index 32aeb5a6..37cde198 100644 --- a/test/gapic_deployment_resource_pool_service_v1beta1.ts +++ b/test/gapic_deployment_resource_pool_service_v1beta1.ts @@ -151,124 +151,126 @@ function stubAsyncIterationCall( } describe('v1beta1.DeploymentResourcePoolServiceClient', () => { - it('has servicePath', () => { - const servicePath = - deploymentresourcepoolserviceModule.v1beta1 - .DeploymentResourcePoolServiceClient.servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + deploymentresourcepoolserviceModule.v1beta1 + .DeploymentResourcePoolServiceClient.servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - deploymentresourcepoolserviceModule.v1beta1 - .DeploymentResourcePoolServiceClient.apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + deploymentresourcepoolserviceModule.v1beta1 + .DeploymentResourcePoolServiceClient.apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - deploymentresourcepoolserviceModule.v1beta1 - .DeploymentResourcePoolServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + deploymentresourcepoolserviceModule.v1beta1 + .DeploymentResourcePoolServiceClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new deploymentresourcepoolserviceModule.v1beta1.DeploymentResourcePoolServiceClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new deploymentresourcepoolserviceModule.v1beta1.DeploymentResourcePoolServiceClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new deploymentresourcepoolserviceModule.v1beta1.DeploymentResourcePoolServiceClient( - { - fallback: true, - } - ); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new deploymentresourcepoolserviceModule.v1beta1.DeploymentResourcePoolServiceClient( + { + fallback: true, + } + ); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new deploymentresourcepoolserviceModule.v1beta1.DeploymentResourcePoolServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - assert.strictEqual(client.deploymentResourcePoolServiceStub, undefined); - await client.initialize(); - assert(client.deploymentResourcePoolServiceStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new deploymentresourcepoolserviceModule.v1beta1.DeploymentResourcePoolServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + assert.strictEqual(client.deploymentResourcePoolServiceStub, undefined); + await client.initialize(); + assert(client.deploymentResourcePoolServiceStub); + }); - it('has close method for the initialized client', done => { - const client = - new deploymentresourcepoolserviceModule.v1beta1.DeploymentResourcePoolServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.initialize(); - assert(client.deploymentResourcePoolServiceStub); - client.close().then(() => { - done(); + it('has close method for the initialized client', done => { + const client = + new deploymentresourcepoolserviceModule.v1beta1.DeploymentResourcePoolServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + assert(client.deploymentResourcePoolServiceStub); + client.close().then(() => { + done(); + }); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new deploymentresourcepoolserviceModule.v1beta1.DeploymentResourcePoolServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - assert.strictEqual(client.deploymentResourcePoolServiceStub, undefined); - client.close().then(() => { - done(); + it('has close method for the non-initialized client', done => { + const client = + new deploymentresourcepoolserviceModule.v1beta1.DeploymentResourcePoolServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + assert.strictEqual(client.deploymentResourcePoolServiceStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new deploymentresourcepoolserviceModule.v1beta1.DeploymentResourcePoolServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new deploymentresourcepoolserviceModule.v1beta1.DeploymentResourcePoolServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new deploymentresourcepoolserviceModule.v1beta1.DeploymentResourcePoolServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new deploymentresourcepoolserviceModule.v1beta1.DeploymentResourcePoolServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getDeploymentResourcePool', () => { diff --git a/test/gapic_endpoint_service_v1.ts b/test/gapic_endpoint_service_v1.ts index f00b1fd0..83714891 100644 --- a/test/gapic_endpoint_service_v1.ts +++ b/test/gapic_endpoint_service_v1.ts @@ -151,101 +151,103 @@ function stubAsyncIterationCall( } describe('v1.EndpointServiceClient', () => { - it('has servicePath', () => { - const servicePath = - endpointserviceModule.v1.EndpointServiceClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - endpointserviceModule.v1.EndpointServiceClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = endpointserviceModule.v1.EndpointServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new endpointserviceModule.v1.EndpointServiceClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + endpointserviceModule.v1.EndpointServiceClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new endpointserviceModule.v1.EndpointServiceClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + endpointserviceModule.v1.EndpointServiceClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new endpointserviceModule.v1.EndpointServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has port', () => { + const port = endpointserviceModule.v1.EndpointServiceClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.endpointServiceStub, undefined); - await client.initialize(); - assert(client.endpointServiceStub); - }); - it('has close method for the initialized client', done => { - const client = new endpointserviceModule.v1.EndpointServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new endpointserviceModule.v1.EndpointServiceClient(); + assert(client); }); - client.initialize(); - assert(client.endpointServiceStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new endpointserviceModule.v1.EndpointServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.endpointServiceStub, undefined); + await client.initialize(); + assert(client.endpointServiceStub); }); - assert.strictEqual(client.endpointServiceStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.endpointServiceStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new endpointserviceModule.v1.EndpointServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.endpointServiceStub, undefined); + client.close().then(() => { + done(); + }); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new endpointserviceModule.v1.EndpointServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new endpointserviceModule.v1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getEndpoint', () => { diff --git a/test/gapic_endpoint_service_v1beta1.ts b/test/gapic_endpoint_service_v1beta1.ts index 1b2c927c..e93606d2 100644 --- a/test/gapic_endpoint_service_v1beta1.ts +++ b/test/gapic_endpoint_service_v1beta1.ts @@ -151,101 +151,103 @@ function stubAsyncIterationCall( } describe('v1beta1.EndpointServiceClient', () => { - it('has servicePath', () => { - const servicePath = - endpointserviceModule.v1beta1.EndpointServiceClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - endpointserviceModule.v1beta1.EndpointServiceClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = endpointserviceModule.v1beta1.EndpointServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new endpointserviceModule.v1beta1.EndpointServiceClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + endpointserviceModule.v1beta1.EndpointServiceClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + endpointserviceModule.v1beta1.EndpointServiceClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has port', () => { + const port = endpointserviceModule.v1beta1.EndpointServiceClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.endpointServiceStub, undefined); - await client.initialize(); - assert(client.endpointServiceStub); - }); - it('has close method for the initialized client', done => { - const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient(); + assert(client); }); - client.initialize(); - assert(client.endpointServiceStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.endpointServiceStub, undefined); + await client.initialize(); + assert(client.endpointServiceStub); }); - assert.strictEqual(client.endpointServiceStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.endpointServiceStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.endpointServiceStub, undefined); + client.close().then(() => { + done(); + }); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new endpointserviceModule.v1beta1.EndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getEndpoint', () => { diff --git a/test/gapic_featurestore_online_serving_service_v1.ts b/test/gapic_featurestore_online_serving_service_v1.ts index 35229ec0..db6bd0a8 100644 --- a/test/gapic_featurestore_online_serving_service_v1.ts +++ b/test/gapic_featurestore_online_serving_service_v1.ts @@ -27,7 +27,6 @@ import {PassThrough} from 'stream'; import { protobuf, - LROperation, operationsProtos, IamProtos, LocationProtos, @@ -102,124 +101,132 @@ function stubAsyncIterationCall( } describe('v1.FeaturestoreOnlineServingServiceClient', () => { - it('has servicePath', () => { - const servicePath = - featurestoreonlineservingserviceModule.v1 - .FeaturestoreOnlineServingServiceClient.servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + featurestoreonlineservingserviceModule.v1 + .FeaturestoreOnlineServingServiceClient.servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - featurestoreonlineservingserviceModule.v1 - .FeaturestoreOnlineServingServiceClient.apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + featurestoreonlineservingserviceModule.v1 + .FeaturestoreOnlineServingServiceClient.apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - featurestoreonlineservingserviceModule.v1 - .FeaturestoreOnlineServingServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + featurestoreonlineservingserviceModule.v1 + .FeaturestoreOnlineServingServiceClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( - { - fallback: true, - } - ); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + fallback: true, + } + ); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } + it('has initialize method and supports deferred initialization', async () => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + assert.strictEqual( + client.featurestoreOnlineServingServiceStub, + undefined ); - assert.strictEqual(client.featurestoreOnlineServingServiceStub, undefined); - await client.initialize(); - assert(client.featurestoreOnlineServingServiceStub); - }); + await client.initialize(); + assert(client.featurestoreOnlineServingServiceStub); + }); - it('has close method for the initialized client', done => { - const client = - new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.initialize(); - assert(client.featurestoreOnlineServingServiceStub); - client.close().then(() => { - done(); + it('has close method for the initialized client', done => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + assert(client.featurestoreOnlineServingServiceStub); + client.close().then(() => { + done(); + }); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } + it('has close method for the non-initialized client', done => { + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + assert.strictEqual( + client.featurestoreOnlineServingServiceStub, + undefined ); - assert.strictEqual(client.featurestoreOnlineServingServiceStub, undefined); - client.close().then(() => { - done(); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new featurestoreonlineservingserviceModule.v1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('readFeatureValues', () => { diff --git a/test/gapic_featurestore_online_serving_service_v1beta1.ts b/test/gapic_featurestore_online_serving_service_v1beta1.ts index f9126158..55d2875f 100644 --- a/test/gapic_featurestore_online_serving_service_v1beta1.ts +++ b/test/gapic_featurestore_online_serving_service_v1beta1.ts @@ -27,7 +27,6 @@ import {PassThrough} from 'stream'; import { protobuf, - LROperation, operationsProtos, IamProtos, LocationProtos, @@ -102,124 +101,132 @@ function stubAsyncIterationCall( } describe('v1beta1.FeaturestoreOnlineServingServiceClient', () => { - it('has servicePath', () => { - const servicePath = - featurestoreonlineservingserviceModule.v1beta1 - .FeaturestoreOnlineServingServiceClient.servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + featurestoreonlineservingserviceModule.v1beta1 + .FeaturestoreOnlineServingServiceClient.servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - featurestoreonlineservingserviceModule.v1beta1 - .FeaturestoreOnlineServingServiceClient.apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + featurestoreonlineservingserviceModule.v1beta1 + .FeaturestoreOnlineServingServiceClient.apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - featurestoreonlineservingserviceModule.v1beta1 - .FeaturestoreOnlineServingServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + featurestoreonlineservingserviceModule.v1beta1 + .FeaturestoreOnlineServingServiceClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( - { - fallback: true, - } - ); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + fallback: true, + } + ); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } + it('has initialize method and supports deferred initialization', async () => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + assert.strictEqual( + client.featurestoreOnlineServingServiceStub, + undefined ); - assert.strictEqual(client.featurestoreOnlineServingServiceStub, undefined); - await client.initialize(); - assert(client.featurestoreOnlineServingServiceStub); - }); + await client.initialize(); + assert(client.featurestoreOnlineServingServiceStub); + }); - it('has close method for the initialized client', done => { - const client = - new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.initialize(); - assert(client.featurestoreOnlineServingServiceStub); - client.close().then(() => { - done(); + it('has close method for the initialized client', done => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + assert(client.featurestoreOnlineServingServiceStub); + client.close().then(() => { + done(); + }); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } + it('has close method for the non-initialized client', done => { + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + assert.strictEqual( + client.featurestoreOnlineServingServiceStub, + undefined ); - assert.strictEqual(client.featurestoreOnlineServingServiceStub, undefined); - client.close().then(() => { - done(); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new featurestoreonlineservingserviceModule.v1beta1.FeaturestoreOnlineServingServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('readFeatureValues', () => { diff --git a/test/gapic_featurestore_service_v1.ts b/test/gapic_featurestore_service_v1.ts index b489313b..fbeaee26 100644 --- a/test/gapic_featurestore_service_v1.ts +++ b/test/gapic_featurestore_service_v1.ts @@ -151,101 +151,116 @@ function stubAsyncIterationCall( } describe('v1.FeaturestoreServiceClient', () => { - it('has servicePath', () => { - const servicePath = - featurestoreserviceModule.v1.FeaturestoreServiceClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - featurestoreserviceModule.v1.FeaturestoreServiceClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = featurestoreserviceModule.v1.FeaturestoreServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + featurestoreserviceModule.v1.FeaturestoreServiceClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + featurestoreserviceModule.v1.FeaturestoreServiceClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient({ - fallback: true, + it('has port', () => { + const port = featurestoreserviceModule.v1.FeaturestoreServiceClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = + new featurestoreserviceModule.v1.FeaturestoreServiceClient(); + assert(client); }); - assert.strictEqual(client.featurestoreServiceStub, undefined); - await client.initialize(); - assert(client.featurestoreServiceStub); - }); - it('has close method for the initialized client', done => { - const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + fallback: true, + } + ); + assert(client); }); - client.initialize(); - assert(client.featurestoreServiceStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + assert.strictEqual(client.featurestoreServiceStub, undefined); + await client.initialize(); + assert(client.featurestoreServiceStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.initialize(); + assert(client.featurestoreServiceStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.featurestoreServiceStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + assert.strictEqual(client.featurestoreServiceStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + } + ); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new featurestoreserviceModule.v1.FeaturestoreServiceClient( + { + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', } + ); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getFeaturestore', () => { diff --git a/test/gapic_featurestore_service_v1beta1.ts b/test/gapic_featurestore_service_v1beta1.ts index 41b95af9..8750ce16 100644 --- a/test/gapic_featurestore_service_v1beta1.ts +++ b/test/gapic_featurestore_service_v1beta1.ts @@ -151,109 +151,111 @@ function stubAsyncIterationCall( } describe('v1beta1.FeaturestoreServiceClient', () => { - it('has servicePath', () => { - const servicePath = - featurestoreserviceModule.v1beta1.FeaturestoreServiceClient.servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + featurestoreserviceModule.v1beta1.FeaturestoreServiceClient.servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - featurestoreserviceModule.v1beta1.FeaturestoreServiceClient.apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + featurestoreserviceModule.v1beta1.FeaturestoreServiceClient.apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - featurestoreserviceModule.v1beta1.FeaturestoreServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + featurestoreserviceModule.v1beta1.FeaturestoreServiceClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ - fallback: true, - }); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - assert.strictEqual(client.featurestoreServiceStub, undefined); - await client.initialize(); - assert(client.featurestoreServiceStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.featurestoreServiceStub, undefined); + await client.initialize(); + assert(client.featurestoreServiceStub); + }); - it('has close method for the initialized client', done => { - const client = - new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.featurestoreServiceStub); + client.close().then(() => { + done(); }); - client.initialize(); - assert(client.featurestoreServiceStub); - client.close().then(() => { - done(); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.featurestoreServiceStub, undefined); + client.close().then(() => { + done(); }); - assert.strictEqual(client.featurestoreServiceStub, undefined); - client.close().then(() => { - done(); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new featurestoreserviceModule.v1beta1.FeaturestoreServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getFeaturestore', () => { diff --git a/test/gapic_index_endpoint_service_v1.ts b/test/gapic_index_endpoint_service_v1.ts index 34098aec..dfb97c58 100644 --- a/test/gapic_index_endpoint_service_v1.ts +++ b/test/gapic_index_endpoint_service_v1.ts @@ -151,114 +151,111 @@ function stubAsyncIterationCall( } describe('v1.IndexEndpointServiceClient', () => { - it('has servicePath', () => { - const servicePath = - indexendpointserviceModule.v1.IndexEndpointServiceClient.servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + indexendpointserviceModule.v1.IndexEndpointServiceClient.servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - indexendpointserviceModule.v1.IndexEndpointServiceClient.apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + indexendpointserviceModule.v1.IndexEndpointServiceClient.apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = indexendpointserviceModule.v1.IndexEndpointServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + indexendpointserviceModule.v1.IndexEndpointServiceClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new indexendpointserviceModule.v1.IndexEndpointServiceClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = new indexendpointserviceModule.v1.IndexEndpointServiceClient( - { - fallback: true, - } - ); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = new indexendpointserviceModule.v1.IndexEndpointServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - assert.strictEqual(client.indexEndpointServiceStub, undefined); - await client.initialize(); - assert(client.indexEndpointServiceStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.indexEndpointServiceStub, undefined); + await client.initialize(); + assert(client.indexEndpointServiceStub); + }); - it('has close method for the initialized client', done => { - const client = new indexendpointserviceModule.v1.IndexEndpointServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.initialize(); - assert(client.indexEndpointServiceStub); - client.close().then(() => { - done(); + it('has close method for the initialized client', done => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.indexEndpointServiceStub); + client.close().then(() => { + done(); + }); }); - }); - it('has close method for the non-initialized client', done => { - const client = new indexendpointserviceModule.v1.IndexEndpointServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - assert.strictEqual(client.indexEndpointServiceStub, undefined); - client.close().then(() => { - done(); + it('has close method for the non-initialized client', done => { + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.indexEndpointServiceStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new indexendpointserviceModule.v1.IndexEndpointServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new indexendpointserviceModule.v1.IndexEndpointServiceClient( - { - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - } - ); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new indexendpointserviceModule.v1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getIndexEndpoint', () => { diff --git a/test/gapic_index_endpoint_service_v1beta1.ts b/test/gapic_index_endpoint_service_v1beta1.ts index fa0f338c..a9d21de4 100644 --- a/test/gapic_index_endpoint_service_v1beta1.ts +++ b/test/gapic_index_endpoint_service_v1beta1.ts @@ -151,109 +151,113 @@ function stubAsyncIterationCall( } describe('v1beta1.IndexEndpointServiceClient', () => { - it('has servicePath', () => { - const servicePath = - indexendpointserviceModule.v1beta1.IndexEndpointServiceClient.servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + indexendpointserviceModule.v1beta1.IndexEndpointServiceClient + .servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - indexendpointserviceModule.v1beta1.IndexEndpointServiceClient.apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + indexendpointserviceModule.v1beta1.IndexEndpointServiceClient + .apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - indexendpointserviceModule.v1beta1.IndexEndpointServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + indexendpointserviceModule.v1beta1.IndexEndpointServiceClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ - fallback: true, - }); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - assert.strictEqual(client.indexEndpointServiceStub, undefined); - await client.initialize(); - assert(client.indexEndpointServiceStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.indexEndpointServiceStub, undefined); + await client.initialize(); + assert(client.indexEndpointServiceStub); + }); - it('has close method for the initialized client', done => { - const client = - new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.indexEndpointServiceStub); + client.close().then(() => { + done(); }); - client.initialize(); - assert(client.indexEndpointServiceStub); - client.close().then(() => { - done(); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.indexEndpointServiceStub, undefined); + client.close().then(() => { + done(); }); - assert.strictEqual(client.indexEndpointServiceStub, undefined); - client.close().then(() => { - done(); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new indexendpointserviceModule.v1beta1.IndexEndpointServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getIndexEndpoint', () => { diff --git a/test/gapic_index_service_v1.ts b/test/gapic_index_service_v1.ts index 9a62ed08..d7fe8a0f 100644 --- a/test/gapic_index_service_v1.ts +++ b/test/gapic_index_service_v1.ts @@ -151,99 +151,101 @@ function stubAsyncIterationCall( } describe('v1.IndexServiceClient', () => { - it('has servicePath', () => { - const servicePath = indexserviceModule.v1.IndexServiceClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = indexserviceModule.v1.IndexServiceClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = indexserviceModule.v1.IndexServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new indexserviceModule.v1.IndexServiceClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = indexserviceModule.v1.IndexServiceClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new indexserviceModule.v1.IndexServiceClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = indexserviceModule.v1.IndexServiceClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new indexserviceModule.v1.IndexServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has port', () => { + const port = indexserviceModule.v1.IndexServiceClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.indexServiceStub, undefined); - await client.initialize(); - assert(client.indexServiceStub); - }); - it('has close method for the initialized client', done => { - const client = new indexserviceModule.v1.IndexServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new indexserviceModule.v1.IndexServiceClient(); + assert(client); }); - client.initialize(); - assert(client.indexServiceStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new indexserviceModule.v1.IndexServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.indexServiceStub, undefined); + await client.initialize(); + assert(client.indexServiceStub); }); - assert.strictEqual(client.indexServiceStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.indexServiceStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new indexserviceModule.v1.IndexServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.indexServiceStub, undefined); + client.close().then(() => { + done(); + }); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new indexserviceModule.v1.IndexServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new indexserviceModule.v1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getIndex', () => { diff --git a/test/gapic_index_service_v1beta1.ts b/test/gapic_index_service_v1beta1.ts index c37630fb..f30570d9 100644 --- a/test/gapic_index_service_v1beta1.ts +++ b/test/gapic_index_service_v1beta1.ts @@ -151,101 +151,103 @@ function stubAsyncIterationCall( } describe('v1beta1.IndexServiceClient', () => { - it('has servicePath', () => { - const servicePath = - indexserviceModule.v1beta1.IndexServiceClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - indexserviceModule.v1beta1.IndexServiceClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = indexserviceModule.v1beta1.IndexServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new indexserviceModule.v1beta1.IndexServiceClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + indexserviceModule.v1beta1.IndexServiceClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new indexserviceModule.v1beta1.IndexServiceClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + indexserviceModule.v1beta1.IndexServiceClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new indexserviceModule.v1beta1.IndexServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has port', () => { + const port = indexserviceModule.v1beta1.IndexServiceClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.indexServiceStub, undefined); - await client.initialize(); - assert(client.indexServiceStub); - }); - it('has close method for the initialized client', done => { - const client = new indexserviceModule.v1beta1.IndexServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient(); + assert(client); }); - client.initialize(); - assert(client.indexServiceStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new indexserviceModule.v1beta1.IndexServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.indexServiceStub, undefined); + await client.initialize(); + assert(client.indexServiceStub); }); - assert.strictEqual(client.indexServiceStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.indexServiceStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new indexserviceModule.v1beta1.IndexServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.indexServiceStub, undefined); + client.close().then(() => { + done(); + }); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new indexserviceModule.v1beta1.IndexServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new indexserviceModule.v1beta1.IndexServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getIndex', () => { diff --git a/test/gapic_job_service_v1.ts b/test/gapic_job_service_v1.ts index a342d0b8..84b3a6eb 100644 --- a/test/gapic_job_service_v1.ts +++ b/test/gapic_job_service_v1.ts @@ -151,99 +151,101 @@ function stubAsyncIterationCall( } describe('v1.JobServiceClient', () => { - it('has servicePath', () => { - const servicePath = jobserviceModule.v1.JobServiceClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = jobserviceModule.v1.JobServiceClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = jobserviceModule.v1.JobServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = jobserviceModule.v1.JobServiceClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new jobserviceModule.v1.JobServiceClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = jobserviceModule.v1.JobServiceClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new jobserviceModule.v1.JobServiceClient({ - fallback: true, + it('has port', () => { + const port = jobserviceModule.v1.JobServiceClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new jobserviceModule.v1.JobServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new jobserviceModule.v1.JobServiceClient(); + assert(client); }); - assert.strictEqual(client.jobServiceStub, undefined); - await client.initialize(); - assert(client.jobServiceStub); - }); - it('has close method for the initialized client', done => { - const client = new jobserviceModule.v1.JobServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new jobserviceModule.v1.JobServiceClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.jobServiceStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.jobServiceStub, undefined); + await client.initialize(); + assert(client.jobServiceStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new jobserviceModule.v1.JobServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.jobServiceStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.jobServiceStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.jobServiceStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new jobserviceModule.v1.JobServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new jobserviceModule.v1.JobServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new jobserviceModule.v1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('createCustomJob', () => { diff --git a/test/gapic_job_service_v1beta1.ts b/test/gapic_job_service_v1beta1.ts index 43ff17c6..5f34fd22 100644 --- a/test/gapic_job_service_v1beta1.ts +++ b/test/gapic_job_service_v1beta1.ts @@ -151,99 +151,101 @@ function stubAsyncIterationCall( } describe('v1beta1.JobServiceClient', () => { - it('has servicePath', () => { - const servicePath = jobserviceModule.v1beta1.JobServiceClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = jobserviceModule.v1beta1.JobServiceClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = jobserviceModule.v1beta1.JobServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = jobserviceModule.v1beta1.JobServiceClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new jobserviceModule.v1beta1.JobServiceClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = jobserviceModule.v1beta1.JobServiceClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new jobserviceModule.v1beta1.JobServiceClient({ - fallback: true, + it('has port', () => { + const port = jobserviceModule.v1beta1.JobServiceClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new jobserviceModule.v1beta1.JobServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new jobserviceModule.v1beta1.JobServiceClient(); + assert(client); }); - assert.strictEqual(client.jobServiceStub, undefined); - await client.initialize(); - assert(client.jobServiceStub); - }); - it('has close method for the initialized client', done => { - const client = new jobserviceModule.v1beta1.JobServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.jobServiceStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.jobServiceStub, undefined); + await client.initialize(); + assert(client.jobServiceStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new jobserviceModule.v1beta1.JobServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.jobServiceStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.jobServiceStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.jobServiceStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new jobserviceModule.v1beta1.JobServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new jobserviceModule.v1beta1.JobServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new jobserviceModule.v1beta1.JobServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('createCustomJob', () => { diff --git a/test/gapic_metadata_service_v1.ts b/test/gapic_metadata_service_v1.ts index 48bfd892..a8215865 100644 --- a/test/gapic_metadata_service_v1.ts +++ b/test/gapic_metadata_service_v1.ts @@ -151,101 +151,103 @@ function stubAsyncIterationCall( } describe('v1.MetadataServiceClient', () => { - it('has servicePath', () => { - const servicePath = - metadataserviceModule.v1.MetadataServiceClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - metadataserviceModule.v1.MetadataServiceClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = metadataserviceModule.v1.MetadataServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + metadataserviceModule.v1.MetadataServiceClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new metadataserviceModule.v1.MetadataServiceClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + metadataserviceModule.v1.MetadataServiceClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new metadataserviceModule.v1.MetadataServiceClient({ - fallback: true, + it('has port', () => { + const port = metadataserviceModule.v1.MetadataServiceClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new metadataserviceModule.v1.MetadataServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new metadataserviceModule.v1.MetadataServiceClient(); + assert(client); }); - assert.strictEqual(client.metadataServiceStub, undefined); - await client.initialize(); - assert(client.metadataServiceStub); - }); - it('has close method for the initialized client', done => { - const client = new metadataserviceModule.v1.MetadataServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.metadataServiceStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.metadataServiceStub, undefined); + await client.initialize(); + assert(client.metadataServiceStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new metadataserviceModule.v1.MetadataServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.metadataServiceStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.metadataServiceStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.metadataServiceStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new metadataserviceModule.v1.MetadataServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new metadataserviceModule.v1.MetadataServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new metadataserviceModule.v1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getMetadataStore', () => { diff --git a/test/gapic_metadata_service_v1beta1.ts b/test/gapic_metadata_service_v1beta1.ts index 4ef73e4f..bb145fbb 100644 --- a/test/gapic_metadata_service_v1beta1.ts +++ b/test/gapic_metadata_service_v1beta1.ts @@ -151,101 +151,103 @@ function stubAsyncIterationCall( } describe('v1beta1.MetadataServiceClient', () => { - it('has servicePath', () => { - const servicePath = - metadataserviceModule.v1beta1.MetadataServiceClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - metadataserviceModule.v1beta1.MetadataServiceClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = metadataserviceModule.v1beta1.MetadataServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + metadataserviceModule.v1beta1.MetadataServiceClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new metadataserviceModule.v1beta1.MetadataServiceClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + metadataserviceModule.v1beta1.MetadataServiceClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ - fallback: true, + it('has port', () => { + const port = metadataserviceModule.v1beta1.MetadataServiceClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient(); + assert(client); }); - assert.strictEqual(client.metadataServiceStub, undefined); - await client.initialize(); - assert(client.metadataServiceStub); - }); - it('has close method for the initialized client', done => { - const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.metadataServiceStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.metadataServiceStub, undefined); + await client.initialize(); + assert(client.metadataServiceStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.metadataServiceStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.metadataServiceStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.metadataServiceStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new metadataserviceModule.v1beta1.MetadataServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getMetadataStore', () => { diff --git a/test/gapic_migration_service_v1.ts b/test/gapic_migration_service_v1.ts index f7c5e9e8..b1324c06 100644 --- a/test/gapic_migration_service_v1.ts +++ b/test/gapic_migration_service_v1.ts @@ -151,101 +151,103 @@ function stubAsyncIterationCall( } describe('v1.MigrationServiceClient', () => { - it('has servicePath', () => { - const servicePath = - migrationserviceModule.v1.MigrationServiceClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - migrationserviceModule.v1.MigrationServiceClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = migrationserviceModule.v1.MigrationServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new migrationserviceModule.v1.MigrationServiceClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + migrationserviceModule.v1.MigrationServiceClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new migrationserviceModule.v1.MigrationServiceClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + migrationserviceModule.v1.MigrationServiceClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new migrationserviceModule.v1.MigrationServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has port', () => { + const port = migrationserviceModule.v1.MigrationServiceClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.migrationServiceStub, undefined); - await client.initialize(); - assert(client.migrationServiceStub); - }); - it('has close method for the initialized client', done => { - const client = new migrationserviceModule.v1.MigrationServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new migrationserviceModule.v1.MigrationServiceClient(); + assert(client); }); - client.initialize(); - assert(client.migrationServiceStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new migrationserviceModule.v1.MigrationServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.migrationServiceStub, undefined); + await client.initialize(); + assert(client.migrationServiceStub); }); - assert.strictEqual(client.migrationServiceStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.migrationServiceStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new migrationserviceModule.v1.MigrationServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.migrationServiceStub, undefined); + client.close().then(() => { + done(); + }); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new migrationserviceModule.v1.MigrationServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new migrationserviceModule.v1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('batchMigrateResources', () => { diff --git a/test/gapic_migration_service_v1beta1.ts b/test/gapic_migration_service_v1beta1.ts index ff67300c..3ce1bd84 100644 --- a/test/gapic_migration_service_v1beta1.ts +++ b/test/gapic_migration_service_v1beta1.ts @@ -151,101 +151,104 @@ function stubAsyncIterationCall( } describe('v1beta1.MigrationServiceClient', () => { - it('has servicePath', () => { - const servicePath = - migrationserviceModule.v1beta1.MigrationServiceClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - migrationserviceModule.v1beta1.MigrationServiceClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = migrationserviceModule.v1beta1.MigrationServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new migrationserviceModule.v1beta1.MigrationServiceClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + migrationserviceModule.v1beta1.MigrationServiceClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + migrationserviceModule.v1beta1.MigrationServiceClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has port', () => { + const port = migrationserviceModule.v1beta1.MigrationServiceClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.migrationServiceStub, undefined); - await client.initialize(); - assert(client.migrationServiceStub); - }); - it('has close method for the initialized client', done => { - const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = + new migrationserviceModule.v1beta1.MigrationServiceClient(); + assert(client); }); - client.initialize(); - assert(client.migrationServiceStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.migrationServiceStub, undefined); + await client.initialize(); + assert(client.migrationServiceStub); }); - assert.strictEqual(client.migrationServiceStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.migrationServiceStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.migrationServiceStub, undefined); + client.close().then(() => { + done(); + }); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new migrationserviceModule.v1beta1.MigrationServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('batchMigrateResources', () => { diff --git a/test/gapic_model_service_v1.ts b/test/gapic_model_service_v1.ts index 9cefd404..9b934fa7 100644 --- a/test/gapic_model_service_v1.ts +++ b/test/gapic_model_service_v1.ts @@ -151,99 +151,101 @@ function stubAsyncIterationCall( } describe('v1.ModelServiceClient', () => { - it('has servicePath', () => { - const servicePath = modelserviceModule.v1.ModelServiceClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = modelserviceModule.v1.ModelServiceClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = modelserviceModule.v1.ModelServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = modelserviceModule.v1.ModelServiceClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new modelserviceModule.v1.ModelServiceClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = modelserviceModule.v1.ModelServiceClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new modelserviceModule.v1.ModelServiceClient({ - fallback: true, + it('has port', () => { + const port = modelserviceModule.v1.ModelServiceClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new modelserviceModule.v1.ModelServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new modelserviceModule.v1.ModelServiceClient(); + assert(client); }); - assert.strictEqual(client.modelServiceStub, undefined); - await client.initialize(); - assert(client.modelServiceStub); - }); - it('has close method for the initialized client', done => { - const client = new modelserviceModule.v1.ModelServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.modelServiceStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.modelServiceStub, undefined); + await client.initialize(); + assert(client.modelServiceStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new modelserviceModule.v1.ModelServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.modelServiceStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.modelServiceStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.modelServiceStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new modelserviceModule.v1.ModelServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new modelserviceModule.v1.ModelServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new modelserviceModule.v1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getModel', () => { diff --git a/test/gapic_model_service_v1beta1.ts b/test/gapic_model_service_v1beta1.ts index 3cac8593..9939b846 100644 --- a/test/gapic_model_service_v1beta1.ts +++ b/test/gapic_model_service_v1beta1.ts @@ -151,101 +151,103 @@ function stubAsyncIterationCall( } describe('v1beta1.ModelServiceClient', () => { - it('has servicePath', () => { - const servicePath = - modelserviceModule.v1beta1.ModelServiceClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - modelserviceModule.v1beta1.ModelServiceClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = modelserviceModule.v1beta1.ModelServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + modelserviceModule.v1beta1.ModelServiceClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new modelserviceModule.v1beta1.ModelServiceClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + modelserviceModule.v1beta1.ModelServiceClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new modelserviceModule.v1beta1.ModelServiceClient({ - fallback: true, + it('has port', () => { + const port = modelserviceModule.v1beta1.ModelServiceClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new modelserviceModule.v1beta1.ModelServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient(); + assert(client); }); - assert.strictEqual(client.modelServiceStub, undefined); - await client.initialize(); - assert(client.modelServiceStub); - }); - it('has close method for the initialized client', done => { - const client = new modelserviceModule.v1beta1.ModelServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.modelServiceStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.modelServiceStub, undefined); + await client.initialize(); + assert(client.modelServiceStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new modelserviceModule.v1beta1.ModelServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.modelServiceStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.modelServiceStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.modelServiceStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new modelserviceModule.v1beta1.ModelServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new modelserviceModule.v1beta1.ModelServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new modelserviceModule.v1beta1.ModelServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getModel', () => { diff --git a/test/gapic_pipeline_service_v1.ts b/test/gapic_pipeline_service_v1.ts index c2b94e21..a751726a 100644 --- a/test/gapic_pipeline_service_v1.ts +++ b/test/gapic_pipeline_service_v1.ts @@ -151,101 +151,103 @@ function stubAsyncIterationCall( } describe('v1.PipelineServiceClient', () => { - it('has servicePath', () => { - const servicePath = - pipelineserviceModule.v1.PipelineServiceClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - pipelineserviceModule.v1.PipelineServiceClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = pipelineserviceModule.v1.PipelineServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new pipelineserviceModule.v1.PipelineServiceClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + pipelineserviceModule.v1.PipelineServiceClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new pipelineserviceModule.v1.PipelineServiceClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + pipelineserviceModule.v1.PipelineServiceClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new pipelineserviceModule.v1.PipelineServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has port', () => { + const port = pipelineserviceModule.v1.PipelineServiceClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.pipelineServiceStub, undefined); - await client.initialize(); - assert(client.pipelineServiceStub); - }); - it('has close method for the initialized client', done => { - const client = new pipelineserviceModule.v1.PipelineServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient(); + assert(client); }); - client.initialize(); - assert(client.pipelineServiceStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new pipelineserviceModule.v1.PipelineServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.pipelineServiceStub, undefined); + await client.initialize(); + assert(client.pipelineServiceStub); }); - assert.strictEqual(client.pipelineServiceStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.pipelineServiceStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new pipelineserviceModule.v1.PipelineServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.pipelineServiceStub, undefined); + client.close().then(() => { + done(); + }); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new pipelineserviceModule.v1.PipelineServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new pipelineserviceModule.v1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('createTrainingPipeline', () => { diff --git a/test/gapic_pipeline_service_v1beta1.ts b/test/gapic_pipeline_service_v1beta1.ts index 4fbf12e9..db654bda 100644 --- a/test/gapic_pipeline_service_v1beta1.ts +++ b/test/gapic_pipeline_service_v1beta1.ts @@ -151,101 +151,103 @@ function stubAsyncIterationCall( } describe('v1beta1.PipelineServiceClient', () => { - it('has servicePath', () => { - const servicePath = - pipelineserviceModule.v1beta1.PipelineServiceClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - pipelineserviceModule.v1beta1.PipelineServiceClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = pipelineserviceModule.v1beta1.PipelineServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); - - it('should create a client with no option', () => { - const client = new pipelineserviceModule.v1beta1.PipelineServiceClient(); - assert(client); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + pipelineserviceModule.v1beta1.PipelineServiceClient.servicePath; + assert(servicePath); + }); - it('should create a client with gRPC fallback', () => { - const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ - fallback: true, + it('has apiEndpoint', () => { + const apiEndpoint = + pipelineserviceModule.v1beta1.PipelineServiceClient.apiEndpoint; + assert(apiEndpoint); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has port', () => { + const port = pipelineserviceModule.v1beta1.PipelineServiceClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert.strictEqual(client.pipelineServiceStub, undefined); - await client.initialize(); - assert(client.pipelineServiceStub); - }); - it('has close method for the initialized client', done => { - const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient(); + assert(client); }); - client.initialize(); - assert(client.pipelineServiceStub); - client.close().then(() => { - done(); + + it('should create a client with gRPC fallback', () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + fallback: true, + }); + assert(client); }); - }); - it('has close method for the non-initialized client', done => { - const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has initialize method and supports deferred initialization', async () => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.pipelineServiceStub, undefined); + await client.initialize(); + assert(client.pipelineServiceStub); }); - assert.strictEqual(client.pipelineServiceStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the initialized client', done => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.pipelineServiceStub); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.pipelineServiceStub, undefined); + client.close().then(() => { + done(); + }); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new pipelineserviceModule.v1beta1.PipelineServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('createTrainingPipeline', () => { diff --git a/test/gapic_prediction_service_v1.ts b/test/gapic_prediction_service_v1.ts index 935326ff..be5d8d5c 100644 --- a/test/gapic_prediction_service_v1.ts +++ b/test/gapic_prediction_service_v1.ts @@ -25,7 +25,6 @@ import * as predictionserviceModule from '../src'; import { protobuf, - LROperation, operationsProtos, IamProtos, LocationProtos, @@ -79,101 +78,103 @@ function stubAsyncIterationCall( } describe('v1.PredictionServiceClient', () => { - it('has servicePath', () => { - const servicePath = - predictionserviceModule.v1.PredictionServiceClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - predictionserviceModule.v1.PredictionServiceClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = predictionserviceModule.v1.PredictionServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + predictionserviceModule.v1.PredictionServiceClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new predictionserviceModule.v1.PredictionServiceClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + predictionserviceModule.v1.PredictionServiceClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new predictionserviceModule.v1.PredictionServiceClient({ - fallback: true, + it('has port', () => { + const port = predictionserviceModule.v1.PredictionServiceClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new predictionserviceModule.v1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new predictionserviceModule.v1.PredictionServiceClient(); + assert(client); }); - assert.strictEqual(client.predictionServiceStub, undefined); - await client.initialize(); - assert(client.predictionServiceStub); - }); - it('has close method for the initialized client', done => { - const client = new predictionserviceModule.v1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.predictionServiceStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.predictionServiceStub, undefined); + await client.initialize(); + assert(client.predictionServiceStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new predictionserviceModule.v1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.predictionServiceStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.predictionServiceStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.predictionServiceStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new predictionserviceModule.v1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new predictionserviceModule.v1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new predictionserviceModule.v1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('predict', () => { diff --git a/test/gapic_prediction_service_v1beta1.ts b/test/gapic_prediction_service_v1beta1.ts index 837b33d0..6ee97a53 100644 --- a/test/gapic_prediction_service_v1beta1.ts +++ b/test/gapic_prediction_service_v1beta1.ts @@ -25,7 +25,6 @@ import * as predictionserviceModule from '../src'; import { protobuf, - LROperation, operationsProtos, IamProtos, LocationProtos, @@ -79,102 +78,110 @@ function stubAsyncIterationCall( } describe('v1beta1.PredictionServiceClient', () => { - it('has servicePath', () => { - const servicePath = - predictionserviceModule.v1beta1.PredictionServiceClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - predictionserviceModule.v1beta1.PredictionServiceClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = predictionserviceModule.v1beta1.PredictionServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + predictionserviceModule.v1beta1.PredictionServiceClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = - new predictionserviceModule.v1beta1.PredictionServiceClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + predictionserviceModule.v1beta1.PredictionServiceClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new predictionserviceModule.v1beta1.PredictionServiceClient({ - fallback: true, + it('has port', () => { + const port = predictionserviceModule.v1beta1.PredictionServiceClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new predictionserviceModule.v1beta1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient(); + assert(client); }); - assert.strictEqual(client.predictionServiceStub, undefined); - await client.initialize(); - assert(client.predictionServiceStub); - }); - it('has close method for the initialized client', done => { - const client = new predictionserviceModule.v1beta1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.predictionServiceStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.predictionServiceStub, undefined); + await client.initialize(); + assert(client.predictionServiceStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new predictionserviceModule.v1beta1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.predictionServiceStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.predictionServiceStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.predictionServiceStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new predictionserviceModule.v1beta1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new predictionserviceModule.v1beta1.PredictionServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new predictionserviceModule.v1beta1.PredictionServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('predict', () => { diff --git a/test/gapic_specialist_pool_service_v1.ts b/test/gapic_specialist_pool_service_v1.ts index df810754..22821057 100644 --- a/test/gapic_specialist_pool_service_v1.ts +++ b/test/gapic_specialist_pool_service_v1.ts @@ -151,109 +151,111 @@ function stubAsyncIterationCall( } describe('v1.SpecialistPoolServiceClient', () => { - it('has servicePath', () => { - const servicePath = - specialistpoolserviceModule.v1.SpecialistPoolServiceClient.servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + specialistpoolserviceModule.v1.SpecialistPoolServiceClient.servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - specialistpoolserviceModule.v1.SpecialistPoolServiceClient.apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + specialistpoolserviceModule.v1.SpecialistPoolServiceClient.apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - specialistpoolserviceModule.v1.SpecialistPoolServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + specialistpoolserviceModule.v1.SpecialistPoolServiceClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new specialistpoolserviceModule.v1.SpecialistPoolServiceClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ - fallback: true, - }); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - assert.strictEqual(client.specialistPoolServiceStub, undefined); - await client.initialize(); - assert(client.specialistPoolServiceStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.specialistPoolServiceStub, undefined); + await client.initialize(); + assert(client.specialistPoolServiceStub); + }); - it('has close method for the initialized client', done => { - const client = - new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.specialistPoolServiceStub); + client.close().then(() => { + done(); }); - client.initialize(); - assert(client.specialistPoolServiceStub); - client.close().then(() => { - done(); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.specialistPoolServiceStub, undefined); + client.close().then(() => { + done(); }); - assert.strictEqual(client.specialistPoolServiceStub, undefined); - client.close().then(() => { - done(); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new specialistpoolserviceModule.v1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getSpecialistPool', () => { diff --git a/test/gapic_specialist_pool_service_v1beta1.ts b/test/gapic_specialist_pool_service_v1beta1.ts index babc02ca..431440ed 100644 --- a/test/gapic_specialist_pool_service_v1beta1.ts +++ b/test/gapic_specialist_pool_service_v1beta1.ts @@ -151,111 +151,113 @@ function stubAsyncIterationCall( } describe('v1beta1.SpecialistPoolServiceClient', () => { - it('has servicePath', () => { - const servicePath = - specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient - .servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient + .servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient - .apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient + .apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = - specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ - fallback: true, - }); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - assert.strictEqual(client.specialistPoolServiceStub, undefined); - await client.initialize(); - assert(client.specialistPoolServiceStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.specialistPoolServiceStub, undefined); + await client.initialize(); + assert(client.specialistPoolServiceStub); + }); - it('has close method for the initialized client', done => { - const client = - new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.specialistPoolServiceStub); + client.close().then(() => { + done(); }); - client.initialize(); - assert(client.specialistPoolServiceStub); - client.close().then(() => { - done(); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.specialistPoolServiceStub, undefined); + client.close().then(() => { + done(); }); - assert.strictEqual(client.specialistPoolServiceStub, undefined); - client.close().then(() => { - done(); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new specialistpoolserviceModule.v1beta1.SpecialistPoolServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getSpecialistPool', () => { diff --git a/test/gapic_tensorboard_service_v1.ts b/test/gapic_tensorboard_service_v1.ts index bd2ad89f..275f41c8 100644 --- a/test/gapic_tensorboard_service_v1.ts +++ b/test/gapic_tensorboard_service_v1.ts @@ -172,101 +172,103 @@ function stubAsyncIterationCall( } describe('v1.TensorboardServiceClient', () => { - it('has servicePath', () => { - const servicePath = - tensorboardserviceModule.v1.TensorboardServiceClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - tensorboardserviceModule.v1.TensorboardServiceClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = tensorboardserviceModule.v1.TensorboardServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + tensorboardserviceModule.v1.TensorboardServiceClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new tensorboardserviceModule.v1.TensorboardServiceClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + tensorboardserviceModule.v1.TensorboardServiceClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ - fallback: true, + it('has port', () => { + const port = tensorboardserviceModule.v1.TensorboardServiceClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient(); + assert(client); }); - assert.strictEqual(client.tensorboardServiceStub, undefined); - await client.initialize(); - assert(client.tensorboardServiceStub); - }); - it('has close method for the initialized client', done => { - const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.tensorboardServiceStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.tensorboardServiceStub, undefined); + await client.initialize(); + assert(client.tensorboardServiceStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.tensorboardServiceStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.tensorboardServiceStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.tensorboardServiceStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new tensorboardserviceModule.v1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getTensorboard', () => { diff --git a/test/gapic_tensorboard_service_v1beta1.ts b/test/gapic_tensorboard_service_v1beta1.ts index b2b1ba64..21453295 100644 --- a/test/gapic_tensorboard_service_v1beta1.ts +++ b/test/gapic_tensorboard_service_v1beta1.ts @@ -172,108 +172,111 @@ function stubAsyncIterationCall( } describe('v1beta1.TensorboardServiceClient', () => { - it('has servicePath', () => { - const servicePath = - tensorboardserviceModule.v1beta1.TensorboardServiceClient.servicePath; - assert(servicePath); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + tensorboardserviceModule.v1beta1.TensorboardServiceClient.servicePath; + assert(servicePath); + }); - it('has apiEndpoint', () => { - const apiEndpoint = - tensorboardserviceModule.v1beta1.TensorboardServiceClient.apiEndpoint; - assert(apiEndpoint); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + tensorboardserviceModule.v1beta1.TensorboardServiceClient.apiEndpoint; + assert(apiEndpoint); + }); - it('has port', () => { - const port = tensorboardserviceModule.v1beta1.TensorboardServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + it('has port', () => { + const port = + tensorboardserviceModule.v1beta1.TensorboardServiceClient.port; + assert(port); + assert(typeof port === 'number'); + }); - it('should create a client with no option', () => { - const client = - new tensorboardserviceModule.v1beta1.TensorboardServiceClient(); - assert(client); - }); + it('should create a client with no option', () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient(); + assert(client); + }); - it('should create a client with gRPC fallback', () => { - const client = - new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ - fallback: true, - }); - assert(client); - }); + it('should create a client with gRPC fallback', () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + fallback: true, + }); + assert(client); + }); - it('has initialize method and supports deferred initialization', async () => { - const client = - new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - assert.strictEqual(client.tensorboardServiceStub, undefined); - await client.initialize(); - assert(client.tensorboardServiceStub); - }); + it('has initialize method and supports deferred initialization', async () => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.tensorboardServiceStub, undefined); + await client.initialize(); + assert(client.tensorboardServiceStub); + }); - it('has close method for the initialized client', done => { - const client = - new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.tensorboardServiceStub); + client.close().then(() => { + done(); }); - client.initialize(); - assert(client.tensorboardServiceStub); - client.close().then(() => { - done(); }); - }); - it('has close method for the non-initialized client', done => { - const client = - new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the non-initialized client', done => { + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.tensorboardServiceStub, undefined); + client.close().then(() => { + done(); }); - assert.strictEqual(client.tensorboardServiceStub, undefined); - client.close().then(() => { - done(); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); + }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = - new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = + new tensorboardserviceModule.v1beta1.TensorboardServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('getTensorboard', () => { diff --git a/test/gapic_vizier_service_v1.ts b/test/gapic_vizier_service_v1.ts index f5727b45..5381fd6d 100644 --- a/test/gapic_vizier_service_v1.ts +++ b/test/gapic_vizier_service_v1.ts @@ -151,99 +151,103 @@ function stubAsyncIterationCall( } describe('v1.VizierServiceClient', () => { - it('has servicePath', () => { - const servicePath = vizierserviceModule.v1.VizierServiceClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = vizierserviceModule.v1.VizierServiceClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = vizierserviceModule.v1.VizierServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + vizierserviceModule.v1.VizierServiceClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new vizierserviceModule.v1.VizierServiceClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + vizierserviceModule.v1.VizierServiceClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new vizierserviceModule.v1.VizierServiceClient({ - fallback: true, + it('has port', () => { + const port = vizierserviceModule.v1.VizierServiceClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new vizierserviceModule.v1.VizierServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new vizierserviceModule.v1.VizierServiceClient(); + assert(client); }); - assert.strictEqual(client.vizierServiceStub, undefined); - await client.initialize(); - assert(client.vizierServiceStub); - }); - it('has close method for the initialized client', done => { - const client = new vizierserviceModule.v1.VizierServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.vizierServiceStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.vizierServiceStub, undefined); + await client.initialize(); + assert(client.vizierServiceStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new vizierserviceModule.v1.VizierServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.vizierServiceStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.vizierServiceStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.vizierServiceStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new vizierserviceModule.v1.VizierServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new vizierserviceModule.v1.VizierServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new vizierserviceModule.v1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('createStudy', () => { diff --git a/test/gapic_vizier_service_v1beta1.ts b/test/gapic_vizier_service_v1beta1.ts index abac2480..b8fd4a73 100644 --- a/test/gapic_vizier_service_v1beta1.ts +++ b/test/gapic_vizier_service_v1beta1.ts @@ -151,101 +151,103 @@ function stubAsyncIterationCall( } describe('v1beta1.VizierServiceClient', () => { - it('has servicePath', () => { - const servicePath = - vizierserviceModule.v1beta1.VizierServiceClient.servicePath; - assert(servicePath); - }); - - it('has apiEndpoint', () => { - const apiEndpoint = - vizierserviceModule.v1beta1.VizierServiceClient.apiEndpoint; - assert(apiEndpoint); - }); - - it('has port', () => { - const port = vizierserviceModule.v1beta1.VizierServiceClient.port; - assert(port); - assert(typeof port === 'number'); - }); + describe('Common methods', () => { + it('has servicePath', () => { + const servicePath = + vizierserviceModule.v1beta1.VizierServiceClient.servicePath; + assert(servicePath); + }); - it('should create a client with no option', () => { - const client = new vizierserviceModule.v1beta1.VizierServiceClient(); - assert(client); - }); + it('has apiEndpoint', () => { + const apiEndpoint = + vizierserviceModule.v1beta1.VizierServiceClient.apiEndpoint; + assert(apiEndpoint); + }); - it('should create a client with gRPC fallback', () => { - const client = new vizierserviceModule.v1beta1.VizierServiceClient({ - fallback: true, + it('has port', () => { + const port = vizierserviceModule.v1beta1.VizierServiceClient.port; + assert(port); + assert(typeof port === 'number'); }); - assert(client); - }); - it('has initialize method and supports deferred initialization', async () => { - const client = new vizierserviceModule.v1beta1.VizierServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with no option', () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient(); + assert(client); }); - assert.strictEqual(client.vizierServiceStub, undefined); - await client.initialize(); - assert(client.vizierServiceStub); - }); - it('has close method for the initialized client', done => { - const client = new vizierserviceModule.v1beta1.VizierServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('should create a client with gRPC fallback', () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + fallback: true, + }); + assert(client); }); - client.initialize(); - assert(client.vizierServiceStub); - client.close().then(() => { - done(); + + it('has initialize method and supports deferred initialization', async () => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.vizierServiceStub, undefined); + await client.initialize(); + assert(client.vizierServiceStub); }); - }); - it('has close method for the non-initialized client', done => { - const client = new vizierserviceModule.v1beta1.VizierServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has close method for the initialized client', done => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.initialize(); + assert(client.vizierServiceStub); + client.close().then(() => { + done(); + }); }); - assert.strictEqual(client.vizierServiceStub, undefined); - client.close().then(() => { - done(); + + it('has close method for the non-initialized client', done => { + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + assert.strictEqual(client.vizierServiceStub, undefined); + client.close().then(() => { + done(); + }); }); - }); - it('has getProjectId method', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new vizierserviceModule.v1beta1.VizierServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', + it('has getProjectId method', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); + const result = await client.getProjectId(); + assert.strictEqual(result, fakeProjectId); + assert((client.auth.getProjectId as SinonStub).calledWithExactly()); }); - client.auth.getProjectId = sinon.stub().resolves(fakeProjectId); - const result = await client.getProjectId(); - assert.strictEqual(result, fakeProjectId); - assert((client.auth.getProjectId as SinonStub).calledWithExactly()); - }); - it('has getProjectId method with callback', async () => { - const fakeProjectId = 'fake-project-id'; - const client = new vizierserviceModule.v1beta1.VizierServiceClient({ - credentials: {client_email: 'bogus', private_key: 'bogus'}, - projectId: 'bogus', - }); - client.auth.getProjectId = sinon - .stub() - .callsArgWith(0, null, fakeProjectId); - const promise = new Promise((resolve, reject) => { - client.getProjectId((err?: Error | null, projectId?: string | null) => { - if (err) { - reject(err); - } else { - resolve(projectId); - } + it('has getProjectId method with callback', async () => { + const fakeProjectId = 'fake-project-id'; + const client = new vizierserviceModule.v1beta1.VizierServiceClient({ + credentials: {client_email: 'bogus', private_key: 'bogus'}, + projectId: 'bogus', + }); + client.auth.getProjectId = sinon + .stub() + .callsArgWith(0, null, fakeProjectId); + const promise = new Promise((resolve, reject) => { + client.getProjectId((err?: Error | null, projectId?: string | null) => { + if (err) { + reject(err); + } else { + resolve(projectId); + } + }); }); + const result = await promise; + assert.strictEqual(result, fakeProjectId); }); - const result = await promise; - assert.strictEqual(result, fakeProjectId); }); describe('createStudy', () => {