diff --git a/AccessContextManager/samples/V1/AccessContextManagerClient/create_access_level.php b/AccessContextManager/samples/V1/AccessContextManagerClient/create_access_level.php index 972e44148320..ae8e4ef615a5 100644 --- a/AccessContextManager/samples/V1/AccessContextManagerClient/create_access_level.php +++ b/AccessContextManager/samples/V1/AccessContextManagerClient/create_access_level.php @@ -49,7 +49,7 @@ function create_access_level_sample(string $formattedParent): void // Create a client. $accessContextManagerClient = new AccessContextManagerClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $accessLevel = new AccessLevel(); // Call the API and handle any network failures. diff --git a/AccessContextManager/samples/V1/AccessContextManagerClient/create_gcp_user_access_binding.php b/AccessContextManager/samples/V1/AccessContextManagerClient/create_gcp_user_access_binding.php index a97c4d3a0056..2b9378fe8957 100644 --- a/AccessContextManager/samples/V1/AccessContextManagerClient/create_gcp_user_access_binding.php +++ b/AccessContextManager/samples/V1/AccessContextManagerClient/create_gcp_user_access_binding.php @@ -64,7 +64,7 @@ function create_gcp_user_access_binding_sample( // Create a client. $accessContextManagerClient = new AccessContextManagerClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $formattedGcpUserAccessBindingAccessLevels = [ $formattedGcpUserAccessBindingAccessLevelsElement, ]; diff --git a/AccessContextManager/samples/V1/AccessContextManagerClient/create_service_perimeter.php b/AccessContextManager/samples/V1/AccessContextManagerClient/create_service_perimeter.php index 98f6104282e5..ab13f2821e37 100644 --- a/AccessContextManager/samples/V1/AccessContextManagerClient/create_service_perimeter.php +++ b/AccessContextManager/samples/V1/AccessContextManagerClient/create_service_perimeter.php @@ -50,7 +50,7 @@ function create_service_perimeter_sample(string $formattedParent): void // Create a client. $accessContextManagerClient = new AccessContextManagerClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $servicePerimeter = new ServicePerimeter(); // Call the API and handle any network failures. diff --git a/AccessContextManager/samples/V1/AccessContextManagerClient/replace_access_levels.php b/AccessContextManager/samples/V1/AccessContextManagerClient/replace_access_levels.php index 1bbd13217d9f..f60435656771 100644 --- a/AccessContextManager/samples/V1/AccessContextManagerClient/replace_access_levels.php +++ b/AccessContextManager/samples/V1/AccessContextManagerClient/replace_access_levels.php @@ -61,7 +61,7 @@ function replace_access_levels_sample(string $formattedParent): void // Create a client. $accessContextManagerClient = new AccessContextManagerClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $accessLevels = [new AccessLevel()]; // Call the API and handle any network failures. diff --git a/AccessContextManager/samples/V1/AccessContextManagerClient/replace_service_perimeters.php b/AccessContextManager/samples/V1/AccessContextManagerClient/replace_service_perimeters.php index 870ef4901bcf..17cb66ae279c 100644 --- a/AccessContextManager/samples/V1/AccessContextManagerClient/replace_service_perimeters.php +++ b/AccessContextManager/samples/V1/AccessContextManagerClient/replace_service_perimeters.php @@ -57,7 +57,7 @@ function replace_service_perimeters_sample(string $formattedParent): void // Create a client. $accessContextManagerClient = new AccessContextManagerClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $servicePerimeters = [new ServicePerimeter()]; // Call the API and handle any network failures. diff --git a/AccessContextManager/samples/V1/AccessContextManagerClient/set_iam_policy.php b/AccessContextManager/samples/V1/AccessContextManagerClient/set_iam_policy.php index ef4c8479e17e..cefc659ef3fc 100644 --- a/AccessContextManager/samples/V1/AccessContextManagerClient/set_iam_policy.php +++ b/AccessContextManager/samples/V1/AccessContextManagerClient/set_iam_policy.php @@ -43,7 +43,7 @@ function set_iam_policy_sample(string $resource): void // Create a client. $accessContextManagerClient = new AccessContextManagerClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $policy = new Policy(); // Call the API and handle any network failures. diff --git a/AccessContextManager/samples/V1/AccessContextManagerClient/test_iam_permissions.php b/AccessContextManager/samples/V1/AccessContextManagerClient/test_iam_permissions.php index 100e977c42a7..d1324c5a72dc 100644 --- a/AccessContextManager/samples/V1/AccessContextManagerClient/test_iam_permissions.php +++ b/AccessContextManager/samples/V1/AccessContextManagerClient/test_iam_permissions.php @@ -47,7 +47,7 @@ function test_iam_permissions_sample(string $resource, string $permissionsElemen // Create a client. $accessContextManagerClient = new AccessContextManagerClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $permissions = [$permissionsElement,]; // Call the API and handle any network failures. diff --git a/AccessContextManager/samples/V1/AccessContextManagerClient/update_access_level.php b/AccessContextManager/samples/V1/AccessContextManagerClient/update_access_level.php index f76095da3b63..490740865901 100644 --- a/AccessContextManager/samples/V1/AccessContextManagerClient/update_access_level.php +++ b/AccessContextManager/samples/V1/AccessContextManagerClient/update_access_level.php @@ -51,7 +51,7 @@ function update_access_level_sample(): void // Create a client. $accessContextManagerClient = new AccessContextManagerClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $accessLevel = new AccessLevel(); $updateMask = new FieldMask(); diff --git a/AccessContextManager/samples/V1/AccessContextManagerClient/update_access_policy.php b/AccessContextManager/samples/V1/AccessContextManagerClient/update_access_policy.php index 8178f298da1d..d91df45816db 100644 --- a/AccessContextManager/samples/V1/AccessContextManagerClient/update_access_policy.php +++ b/AccessContextManager/samples/V1/AccessContextManagerClient/update_access_policy.php @@ -49,7 +49,7 @@ function update_access_policy_sample(): void // Create a client. $accessContextManagerClient = new AccessContextManagerClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $policy = new AccessPolicy(); $updateMask = new FieldMask(); diff --git a/AccessContextManager/samples/V1/AccessContextManagerClient/update_gcp_user_access_binding.php b/AccessContextManager/samples/V1/AccessContextManagerClient/update_gcp_user_access_binding.php index 9a090f5751e8..6ac8157a4a0d 100644 --- a/AccessContextManager/samples/V1/AccessContextManagerClient/update_gcp_user_access_binding.php +++ b/AccessContextManager/samples/V1/AccessContextManagerClient/update_gcp_user_access_binding.php @@ -57,7 +57,7 @@ function update_gcp_user_access_binding_sample( // Create a client. $accessContextManagerClient = new AccessContextManagerClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $formattedGcpUserAccessBindingAccessLevels = [ $formattedGcpUserAccessBindingAccessLevelsElement, ]; diff --git a/AccessContextManager/samples/V1/AccessContextManagerClient/update_service_perimeter.php b/AccessContextManager/samples/V1/AccessContextManagerClient/update_service_perimeter.php index 19cbd764ff9f..5fa8c099fece 100644 --- a/AccessContextManager/samples/V1/AccessContextManagerClient/update_service_perimeter.php +++ b/AccessContextManager/samples/V1/AccessContextManagerClient/update_service_perimeter.php @@ -51,7 +51,7 @@ function update_service_perimeter_sample(): void // Create a client. $accessContextManagerClient = new AccessContextManagerClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $servicePerimeter = new ServicePerimeter(); $updateMask = new FieldMask(); diff --git a/AiPlatform/samples/V1/DatasetServiceClient/create_dataset.php b/AiPlatform/samples/V1/DatasetServiceClient/create_dataset.php index a512811aaec0..c7b1536553da 100644 --- a/AiPlatform/samples/V1/DatasetServiceClient/create_dataset.php +++ b/AiPlatform/samples/V1/DatasetServiceClient/create_dataset.php @@ -52,7 +52,7 @@ function create_dataset_sample( // Create a client. $datasetServiceClient = new DatasetServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $datasetMetadata = new Value(); $dataset = (new Dataset()) ->setDisplayName($datasetDisplayName) diff --git a/AiPlatform/samples/V1/DatasetServiceClient/export_data.php b/AiPlatform/samples/V1/DatasetServiceClient/export_data.php index 006a827fa8ec..cf03ba6dbab7 100644 --- a/AiPlatform/samples/V1/DatasetServiceClient/export_data.php +++ b/AiPlatform/samples/V1/DatasetServiceClient/export_data.php @@ -43,7 +43,7 @@ function export_data_sample(string $formattedName): void // Create a client. $datasetServiceClient = new DatasetServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $exportConfig = new ExportDataConfig(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/DatasetServiceClient/import_data.php b/AiPlatform/samples/V1/DatasetServiceClient/import_data.php index d8e3936b8e41..aef35d6642ee 100644 --- a/AiPlatform/samples/V1/DatasetServiceClient/import_data.php +++ b/AiPlatform/samples/V1/DatasetServiceClient/import_data.php @@ -47,7 +47,7 @@ function import_data_sample(string $formattedName, string $importConfigsImportSc // Create a client. $datasetServiceClient = new DatasetServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $importDataConfig = (new ImportDataConfig()) ->setImportSchemaUri($importConfigsImportSchemaUri); $importConfigs = [$importDataConfig,]; diff --git a/AiPlatform/samples/V1/DatasetServiceClient/set_iam_policy.php b/AiPlatform/samples/V1/DatasetServiceClient/set_iam_policy.php index ba0abe31971f..f2d2c2e60c1e 100644 --- a/AiPlatform/samples/V1/DatasetServiceClient/set_iam_policy.php +++ b/AiPlatform/samples/V1/DatasetServiceClient/set_iam_policy.php @@ -42,7 +42,7 @@ function set_iam_policy_sample(string $resource): void // Create a client. $datasetServiceClient = new DatasetServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $policy = new Policy(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/DatasetServiceClient/test_iam_permissions.php b/AiPlatform/samples/V1/DatasetServiceClient/test_iam_permissions.php index e9c645672ed3..e5c5107ce991 100644 --- a/AiPlatform/samples/V1/DatasetServiceClient/test_iam_permissions.php +++ b/AiPlatform/samples/V1/DatasetServiceClient/test_iam_permissions.php @@ -48,7 +48,7 @@ function test_iam_permissions_sample(string $resource, string $permissionsElemen // Create a client. $datasetServiceClient = new DatasetServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $permissions = [$permissionsElement,]; // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/DatasetServiceClient/update_dataset.php b/AiPlatform/samples/V1/DatasetServiceClient/update_dataset.php index 13028c22c2bf..8e986dd33f8e 100644 --- a/AiPlatform/samples/V1/DatasetServiceClient/update_dataset.php +++ b/AiPlatform/samples/V1/DatasetServiceClient/update_dataset.php @@ -45,7 +45,7 @@ function update_dataset_sample(string $datasetDisplayName, string $datasetMetada // Create a client. $datasetServiceClient = new DatasetServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $datasetMetadata = new Value(); $dataset = (new Dataset()) ->setDisplayName($datasetDisplayName) diff --git a/AiPlatform/samples/V1/EndpointServiceClient/create_endpoint.php b/AiPlatform/samples/V1/EndpointServiceClient/create_endpoint.php index b15a7f0bd22a..c023a9c2ef40 100644 --- a/AiPlatform/samples/V1/EndpointServiceClient/create_endpoint.php +++ b/AiPlatform/samples/V1/EndpointServiceClient/create_endpoint.php @@ -44,7 +44,7 @@ function create_endpoint_sample(string $formattedParent, string $endpointDisplay // Create a client. $endpointServiceClient = new EndpointServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $endpoint = (new Endpoint()) ->setDisplayName($endpointDisplayName); diff --git a/AiPlatform/samples/V1/EndpointServiceClient/deploy_model.php b/AiPlatform/samples/V1/EndpointServiceClient/deploy_model.php index 67ffe7d3715c..e1d4ea85fca7 100644 --- a/AiPlatform/samples/V1/EndpointServiceClient/deploy_model.php +++ b/AiPlatform/samples/V1/EndpointServiceClient/deploy_model.php @@ -54,7 +54,7 @@ function deploy_model_sample(string $formattedEndpoint, string $formattedDeploye // Create a client. $endpointServiceClient = new EndpointServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $deployedModel = (new DeployedModel()) ->setModel($formattedDeployedModelModel); diff --git a/AiPlatform/samples/V1/EndpointServiceClient/mutate_deployed_model.php b/AiPlatform/samples/V1/EndpointServiceClient/mutate_deployed_model.php index cbc82b2e509e..8fc31fb67628 100644 --- a/AiPlatform/samples/V1/EndpointServiceClient/mutate_deployed_model.php +++ b/AiPlatform/samples/V1/EndpointServiceClient/mutate_deployed_model.php @@ -60,7 +60,7 @@ function mutate_deployed_model_sample( // Create a client. $endpointServiceClient = new EndpointServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $deployedModel = (new DeployedModel()) ->setModel($formattedDeployedModelModel); $updateMask = new FieldMask(); diff --git a/AiPlatform/samples/V1/EndpointServiceClient/set_iam_policy.php b/AiPlatform/samples/V1/EndpointServiceClient/set_iam_policy.php index 90d9192782bf..31973bd04507 100644 --- a/AiPlatform/samples/V1/EndpointServiceClient/set_iam_policy.php +++ b/AiPlatform/samples/V1/EndpointServiceClient/set_iam_policy.php @@ -42,7 +42,7 @@ function set_iam_policy_sample(string $resource): void // Create a client. $endpointServiceClient = new EndpointServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $policy = new Policy(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/EndpointServiceClient/test_iam_permissions.php b/AiPlatform/samples/V1/EndpointServiceClient/test_iam_permissions.php index 06fe29c4d684..20e16fb2df84 100644 --- a/AiPlatform/samples/V1/EndpointServiceClient/test_iam_permissions.php +++ b/AiPlatform/samples/V1/EndpointServiceClient/test_iam_permissions.php @@ -48,7 +48,7 @@ function test_iam_permissions_sample(string $resource, string $permissionsElemen // Create a client. $endpointServiceClient = new EndpointServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $permissions = [$permissionsElement,]; // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/EndpointServiceClient/update_endpoint.php b/AiPlatform/samples/V1/EndpointServiceClient/update_endpoint.php index cf2587c1af2c..836ecce4e801 100644 --- a/AiPlatform/samples/V1/EndpointServiceClient/update_endpoint.php +++ b/AiPlatform/samples/V1/EndpointServiceClient/update_endpoint.php @@ -40,7 +40,7 @@ function update_endpoint_sample(string $endpointDisplayName): void // Create a client. $endpointServiceClient = new EndpointServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $endpoint = (new Endpoint()) ->setDisplayName($endpointDisplayName); $updateMask = new FieldMask(); diff --git a/AiPlatform/samples/V1/FeaturestoreOnlineServingServiceClient/read_feature_values.php b/AiPlatform/samples/V1/FeaturestoreOnlineServingServiceClient/read_feature_values.php index a650e27b7ebe..b746828fae8e 100644 --- a/AiPlatform/samples/V1/FeaturestoreOnlineServingServiceClient/read_feature_values.php +++ b/AiPlatform/samples/V1/FeaturestoreOnlineServingServiceClient/read_feature_values.php @@ -58,7 +58,7 @@ function read_feature_values_sample( // Create a client. $featurestoreOnlineServingServiceClient = new FeaturestoreOnlineServingServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $featureSelectorIdMatcherIds = [$featureSelectorIdMatcherIdsElement,]; $featureSelectorIdMatcher = (new IdMatcher()) ->setIds($featureSelectorIdMatcherIds); diff --git a/AiPlatform/samples/V1/FeaturestoreOnlineServingServiceClient/set_iam_policy.php b/AiPlatform/samples/V1/FeaturestoreOnlineServingServiceClient/set_iam_policy.php index 427fcfe5823e..c2607b51883a 100644 --- a/AiPlatform/samples/V1/FeaturestoreOnlineServingServiceClient/set_iam_policy.php +++ b/AiPlatform/samples/V1/FeaturestoreOnlineServingServiceClient/set_iam_policy.php @@ -42,7 +42,7 @@ function set_iam_policy_sample(string $resource): void // Create a client. $featurestoreOnlineServingServiceClient = new FeaturestoreOnlineServingServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $policy = new Policy(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/FeaturestoreOnlineServingServiceClient/streaming_read_feature_values.php b/AiPlatform/samples/V1/FeaturestoreOnlineServingServiceClient/streaming_read_feature_values.php index f3dc5f8e835c..3cf6d8637aac 100644 --- a/AiPlatform/samples/V1/FeaturestoreOnlineServingServiceClient/streaming_read_feature_values.php +++ b/AiPlatform/samples/V1/FeaturestoreOnlineServingServiceClient/streaming_read_feature_values.php @@ -60,7 +60,7 @@ function streaming_read_feature_values_sample( // Create a client. $featurestoreOnlineServingServiceClient = new FeaturestoreOnlineServingServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $entityIds = [$entityIdsElement,]; $featureSelectorIdMatcherIds = [$featureSelectorIdMatcherIdsElement,]; $featureSelectorIdMatcher = (new IdMatcher()) diff --git a/AiPlatform/samples/V1/FeaturestoreOnlineServingServiceClient/test_iam_permissions.php b/AiPlatform/samples/V1/FeaturestoreOnlineServingServiceClient/test_iam_permissions.php index 7402cbe883dd..d2d34ccea658 100644 --- a/AiPlatform/samples/V1/FeaturestoreOnlineServingServiceClient/test_iam_permissions.php +++ b/AiPlatform/samples/V1/FeaturestoreOnlineServingServiceClient/test_iam_permissions.php @@ -48,7 +48,7 @@ function test_iam_permissions_sample(string $resource, string $permissionsElemen // Create a client. $featurestoreOnlineServingServiceClient = new FeaturestoreOnlineServingServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $permissions = [$permissionsElement,]; // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/FeaturestoreOnlineServingServiceClient/write_feature_values.php b/AiPlatform/samples/V1/FeaturestoreOnlineServingServiceClient/write_feature_values.php index b89478210902..2b6d9b9c486b 100644 --- a/AiPlatform/samples/V1/FeaturestoreOnlineServingServiceClient/write_feature_values.php +++ b/AiPlatform/samples/V1/FeaturestoreOnlineServingServiceClient/write_feature_values.php @@ -49,7 +49,7 @@ function write_feature_values_sample(string $formattedEntityType, string $payloa // Create a client. $featurestoreOnlineServingServiceClient = new FeaturestoreOnlineServingServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $payloadsFeatureValues = []; $writeFeatureValuesPayload = (new WriteFeatureValuesPayload()) ->setEntityId($payloadsEntityId) diff --git a/AiPlatform/samples/V1/FeaturestoreServiceClient/batch_create_features.php b/AiPlatform/samples/V1/FeaturestoreServiceClient/batch_create_features.php index c17617c8f7c2..f256a63c6d52 100644 --- a/AiPlatform/samples/V1/FeaturestoreServiceClient/batch_create_features.php +++ b/AiPlatform/samples/V1/FeaturestoreServiceClient/batch_create_features.php @@ -61,7 +61,7 @@ function batch_create_features_sample( // Create a client. $featurestoreServiceClient = new FeaturestoreServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $requestsFeature = (new Feature()) ->setValueType($requestsFeatureValueType); $createFeatureRequest = (new CreateFeatureRequest()) diff --git a/AiPlatform/samples/V1/FeaturestoreServiceClient/batch_read_feature_values.php b/AiPlatform/samples/V1/FeaturestoreServiceClient/batch_read_feature_values.php index afd7ddd2bf10..a46370e2fa95 100644 --- a/AiPlatform/samples/V1/FeaturestoreServiceClient/batch_read_feature_values.php +++ b/AiPlatform/samples/V1/FeaturestoreServiceClient/batch_read_feature_values.php @@ -64,7 +64,7 @@ function batch_read_feature_values_sample( // Create a client. $featurestoreServiceClient = new FeaturestoreServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $destination = new FeatureValueDestination(); $entityTypeSpecsFeatureSelectorIdMatcherIds = [ $entityTypeSpecsFeatureSelectorIdMatcherIdsElement, diff --git a/AiPlatform/samples/V1/FeaturestoreServiceClient/create_feature.php b/AiPlatform/samples/V1/FeaturestoreServiceClient/create_feature.php index d26b24ed507f..707942a1fd06 100644 --- a/AiPlatform/samples/V1/FeaturestoreServiceClient/create_feature.php +++ b/AiPlatform/samples/V1/FeaturestoreServiceClient/create_feature.php @@ -54,7 +54,7 @@ function create_feature_sample( // Create a client. $featurestoreServiceClient = new FeaturestoreServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $feature = (new Feature()) ->setValueType($featureValueType); diff --git a/AiPlatform/samples/V1/FeaturestoreServiceClient/create_featurestore.php b/AiPlatform/samples/V1/FeaturestoreServiceClient/create_featurestore.php index 69bec4720b72..cb9d1ae9f783 100644 --- a/AiPlatform/samples/V1/FeaturestoreServiceClient/create_featurestore.php +++ b/AiPlatform/samples/V1/FeaturestoreServiceClient/create_featurestore.php @@ -49,7 +49,7 @@ function create_featurestore_sample(string $formattedParent, string $featurestor // Create a client. $featurestoreServiceClient = new FeaturestoreServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $featurestore = new Featurestore(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/FeaturestoreServiceClient/export_feature_values.php b/AiPlatform/samples/V1/FeaturestoreServiceClient/export_feature_values.php index ac78278ea3f5..dfc538c8c7c4 100644 --- a/AiPlatform/samples/V1/FeaturestoreServiceClient/export_feature_values.php +++ b/AiPlatform/samples/V1/FeaturestoreServiceClient/export_feature_values.php @@ -53,7 +53,7 @@ function export_feature_values_sample( // Create a client. $featurestoreServiceClient = new FeaturestoreServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $destination = new FeatureValueDestination(); $featureSelectorIdMatcherIds = [$featureSelectorIdMatcherIdsElement,]; $featureSelectorIdMatcher = (new IdMatcher()) diff --git a/AiPlatform/samples/V1/FeaturestoreServiceClient/import_feature_values.php b/AiPlatform/samples/V1/FeaturestoreServiceClient/import_feature_values.php index 8667301bdf28..10979dfb2746 100644 --- a/AiPlatform/samples/V1/FeaturestoreServiceClient/import_feature_values.php +++ b/AiPlatform/samples/V1/FeaturestoreServiceClient/import_feature_values.php @@ -64,7 +64,7 @@ function import_feature_values_sample(string $formattedEntityType, string $featu // Create a client. $featurestoreServiceClient = new FeaturestoreServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $featureSpec = (new FeatureSpec()) ->setId($featureSpecsId); $featureSpecs = [$featureSpec,]; diff --git a/AiPlatform/samples/V1/FeaturestoreServiceClient/set_iam_policy.php b/AiPlatform/samples/V1/FeaturestoreServiceClient/set_iam_policy.php index e97052daa21f..fd8871a8bcb0 100644 --- a/AiPlatform/samples/V1/FeaturestoreServiceClient/set_iam_policy.php +++ b/AiPlatform/samples/V1/FeaturestoreServiceClient/set_iam_policy.php @@ -42,7 +42,7 @@ function set_iam_policy_sample(string $resource): void // Create a client. $featurestoreServiceClient = new FeaturestoreServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $policy = new Policy(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/FeaturestoreServiceClient/test_iam_permissions.php b/AiPlatform/samples/V1/FeaturestoreServiceClient/test_iam_permissions.php index 54c3c34e899c..7d3960a603c3 100644 --- a/AiPlatform/samples/V1/FeaturestoreServiceClient/test_iam_permissions.php +++ b/AiPlatform/samples/V1/FeaturestoreServiceClient/test_iam_permissions.php @@ -48,7 +48,7 @@ function test_iam_permissions_sample(string $resource, string $permissionsElemen // Create a client. $featurestoreServiceClient = new FeaturestoreServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $permissions = [$permissionsElement,]; // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/FeaturestoreServiceClient/update_entity_type.php b/AiPlatform/samples/V1/FeaturestoreServiceClient/update_entity_type.php index b54e9d8af949..1292d6768c49 100644 --- a/AiPlatform/samples/V1/FeaturestoreServiceClient/update_entity_type.php +++ b/AiPlatform/samples/V1/FeaturestoreServiceClient/update_entity_type.php @@ -41,7 +41,7 @@ function update_entity_type_sample(): void // Create a client. $featurestoreServiceClient = new FeaturestoreServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $entityType = new EntityType(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/FeaturestoreServiceClient/update_feature.php b/AiPlatform/samples/V1/FeaturestoreServiceClient/update_feature.php index d7a442b9680b..f0759edbc45f 100644 --- a/AiPlatform/samples/V1/FeaturestoreServiceClient/update_feature.php +++ b/AiPlatform/samples/V1/FeaturestoreServiceClient/update_feature.php @@ -38,7 +38,7 @@ function update_feature_sample(int $featureValueType): void // Create a client. $featurestoreServiceClient = new FeaturestoreServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $feature = (new Feature()) ->setValueType($featureValueType); diff --git a/AiPlatform/samples/V1/FeaturestoreServiceClient/update_featurestore.php b/AiPlatform/samples/V1/FeaturestoreServiceClient/update_featurestore.php index cdb7c4673e07..65248adf955a 100644 --- a/AiPlatform/samples/V1/FeaturestoreServiceClient/update_featurestore.php +++ b/AiPlatform/samples/V1/FeaturestoreServiceClient/update_featurestore.php @@ -43,7 +43,7 @@ function update_featurestore_sample(): void // Create a client. $featurestoreServiceClient = new FeaturestoreServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $featurestore = new Featurestore(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/IndexEndpointServiceClient/create_index_endpoint.php b/AiPlatform/samples/V1/IndexEndpointServiceClient/create_index_endpoint.php index b0a508e12154..157a423a45d8 100644 --- a/AiPlatform/samples/V1/IndexEndpointServiceClient/create_index_endpoint.php +++ b/AiPlatform/samples/V1/IndexEndpointServiceClient/create_index_endpoint.php @@ -46,7 +46,7 @@ function create_index_endpoint_sample( // Create a client. $indexEndpointServiceClient = new IndexEndpointServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $indexEndpoint = (new IndexEndpoint()) ->setDisplayName($indexEndpointDisplayName); diff --git a/AiPlatform/samples/V1/IndexEndpointServiceClient/deploy_index.php b/AiPlatform/samples/V1/IndexEndpointServiceClient/deploy_index.php index 729aaafb383a..4dffe06ebf8d 100644 --- a/AiPlatform/samples/V1/IndexEndpointServiceClient/deploy_index.php +++ b/AiPlatform/samples/V1/IndexEndpointServiceClient/deploy_index.php @@ -55,7 +55,7 @@ function deploy_index_sample( // Create a client. $indexEndpointServiceClient = new IndexEndpointServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $deployedIndex = (new DeployedIndex()) ->setId($deployedIndexId) ->setIndex($formattedDeployedIndexIndex); diff --git a/AiPlatform/samples/V1/IndexEndpointServiceClient/mutate_deployed_index.php b/AiPlatform/samples/V1/IndexEndpointServiceClient/mutate_deployed_index.php index 28a8b48c887d..21144f5690cd 100644 --- a/AiPlatform/samples/V1/IndexEndpointServiceClient/mutate_deployed_index.php +++ b/AiPlatform/samples/V1/IndexEndpointServiceClient/mutate_deployed_index.php @@ -53,7 +53,7 @@ function mutate_deployed_index_sample( // Create a client. $indexEndpointServiceClient = new IndexEndpointServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $deployedIndex = (new DeployedIndex()) ->setId($deployedIndexId) ->setIndex($formattedDeployedIndexIndex); diff --git a/AiPlatform/samples/V1/IndexEndpointServiceClient/set_iam_policy.php b/AiPlatform/samples/V1/IndexEndpointServiceClient/set_iam_policy.php index d6bd5e4fbbba..d73f314aaa93 100644 --- a/AiPlatform/samples/V1/IndexEndpointServiceClient/set_iam_policy.php +++ b/AiPlatform/samples/V1/IndexEndpointServiceClient/set_iam_policy.php @@ -42,7 +42,7 @@ function set_iam_policy_sample(string $resource): void // Create a client. $indexEndpointServiceClient = new IndexEndpointServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $policy = new Policy(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/IndexEndpointServiceClient/test_iam_permissions.php b/AiPlatform/samples/V1/IndexEndpointServiceClient/test_iam_permissions.php index c12926cfedbc..43ee2b725afc 100644 --- a/AiPlatform/samples/V1/IndexEndpointServiceClient/test_iam_permissions.php +++ b/AiPlatform/samples/V1/IndexEndpointServiceClient/test_iam_permissions.php @@ -48,7 +48,7 @@ function test_iam_permissions_sample(string $resource, string $permissionsElemen // Create a client. $indexEndpointServiceClient = new IndexEndpointServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $permissions = [$permissionsElement,]; // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/IndexEndpointServiceClient/update_index_endpoint.php b/AiPlatform/samples/V1/IndexEndpointServiceClient/update_index_endpoint.php index ccff4198863b..b7a36cf7401a 100644 --- a/AiPlatform/samples/V1/IndexEndpointServiceClient/update_index_endpoint.php +++ b/AiPlatform/samples/V1/IndexEndpointServiceClient/update_index_endpoint.php @@ -40,7 +40,7 @@ function update_index_endpoint_sample(string $indexEndpointDisplayName): void // Create a client. $indexEndpointServiceClient = new IndexEndpointServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $indexEndpoint = (new IndexEndpoint()) ->setDisplayName($indexEndpointDisplayName); $updateMask = new FieldMask(); diff --git a/AiPlatform/samples/V1/IndexServiceClient/create_index.php b/AiPlatform/samples/V1/IndexServiceClient/create_index.php index 74c9b27f6c24..1783257218cc 100644 --- a/AiPlatform/samples/V1/IndexServiceClient/create_index.php +++ b/AiPlatform/samples/V1/IndexServiceClient/create_index.php @@ -44,7 +44,7 @@ function create_index_sample(string $formattedParent, string $indexDisplayName): // Create a client. $indexServiceClient = new IndexServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $index = (new Index()) ->setDisplayName($indexDisplayName); diff --git a/AiPlatform/samples/V1/IndexServiceClient/set_iam_policy.php b/AiPlatform/samples/V1/IndexServiceClient/set_iam_policy.php index 5a2d9a50c686..1349a09a0e0e 100644 --- a/AiPlatform/samples/V1/IndexServiceClient/set_iam_policy.php +++ b/AiPlatform/samples/V1/IndexServiceClient/set_iam_policy.php @@ -42,7 +42,7 @@ function set_iam_policy_sample(string $resource): void // Create a client. $indexServiceClient = new IndexServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $policy = new Policy(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/IndexServiceClient/test_iam_permissions.php b/AiPlatform/samples/V1/IndexServiceClient/test_iam_permissions.php index 73d6e30864c8..a8afc051ce2f 100644 --- a/AiPlatform/samples/V1/IndexServiceClient/test_iam_permissions.php +++ b/AiPlatform/samples/V1/IndexServiceClient/test_iam_permissions.php @@ -48,7 +48,7 @@ function test_iam_permissions_sample(string $resource, string $permissionsElemen // Create a client. $indexServiceClient = new IndexServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $permissions = [$permissionsElement,]; // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/IndexServiceClient/update_index.php b/AiPlatform/samples/V1/IndexServiceClient/update_index.php index 37fd95fd85f7..214a9e259b91 100644 --- a/AiPlatform/samples/V1/IndexServiceClient/update_index.php +++ b/AiPlatform/samples/V1/IndexServiceClient/update_index.php @@ -41,7 +41,7 @@ function update_index_sample(string $indexDisplayName): void // Create a client. $indexServiceClient = new IndexServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $index = (new Index()) ->setDisplayName($indexDisplayName); diff --git a/AiPlatform/samples/V1/JobServiceClient/create_batch_prediction_job.php b/AiPlatform/samples/V1/JobServiceClient/create_batch_prediction_job.php index c9323d58fe81..b1bb1ee318cd 100644 --- a/AiPlatform/samples/V1/JobServiceClient/create_batch_prediction_job.php +++ b/AiPlatform/samples/V1/JobServiceClient/create_batch_prediction_job.php @@ -53,7 +53,7 @@ function create_batch_prediction_job_sample( // Create a client. $jobServiceClient = new JobServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $batchPredictionJobInputConfig = (new InputConfig()) ->setInstancesFormat($batchPredictionJobInputConfigInstancesFormat); $batchPredictionJobOutputConfig = (new OutputConfig()) diff --git a/AiPlatform/samples/V1/JobServiceClient/create_custom_job.php b/AiPlatform/samples/V1/JobServiceClient/create_custom_job.php index 97bd3a79940c..f86cdf8883d5 100644 --- a/AiPlatform/samples/V1/JobServiceClient/create_custom_job.php +++ b/AiPlatform/samples/V1/JobServiceClient/create_custom_job.php @@ -45,7 +45,7 @@ function create_custom_job_sample(string $formattedParent, string $customJobDisp // Create a client. $jobServiceClient = new JobServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $customJobJobSpecWorkerPoolSpecs = [new WorkerPoolSpec()]; $customJobJobSpec = (new CustomJobSpec()) ->setWorkerPoolSpecs($customJobJobSpecWorkerPoolSpecs); diff --git a/AiPlatform/samples/V1/JobServiceClient/create_data_labeling_job.php b/AiPlatform/samples/V1/JobServiceClient/create_data_labeling_job.php index 00cd9f8946a9..ad6ba2dd3b91 100644 --- a/AiPlatform/samples/V1/JobServiceClient/create_data_labeling_job.php +++ b/AiPlatform/samples/V1/JobServiceClient/create_data_labeling_job.php @@ -63,7 +63,7 @@ function create_data_labeling_job_sample( // Create a client. $jobServiceClient = new JobServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $formattedDataLabelingJobDatasets = [$formattedDataLabelingJobDatasetsElement,]; $dataLabelingJobInputs = new Value(); $dataLabelingJob = (new DataLabelingJob()) diff --git a/AiPlatform/samples/V1/JobServiceClient/create_hyperparameter_tuning_job.php b/AiPlatform/samples/V1/JobServiceClient/create_hyperparameter_tuning_job.php index a95d0f123dc9..dd5b7b00ffdd 100644 --- a/AiPlatform/samples/V1/JobServiceClient/create_hyperparameter_tuning_job.php +++ b/AiPlatform/samples/V1/JobServiceClient/create_hyperparameter_tuning_job.php @@ -63,7 +63,7 @@ function create_hyperparameter_tuning_job_sample( // Create a client. $jobServiceClient = new JobServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $metricSpec = (new MetricSpec()) ->setMetricId($hyperparameterTuningJobStudySpecMetricsMetricId) ->setGoal($hyperparameterTuningJobStudySpecMetricsGoal); diff --git a/AiPlatform/samples/V1/JobServiceClient/create_model_deployment_monitoring_job.php b/AiPlatform/samples/V1/JobServiceClient/create_model_deployment_monitoring_job.php index 9a8ac2ccca1e..9f4a1d78a139 100644 --- a/AiPlatform/samples/V1/JobServiceClient/create_model_deployment_monitoring_job.php +++ b/AiPlatform/samples/V1/JobServiceClient/create_model_deployment_monitoring_job.php @@ -54,7 +54,7 @@ function create_model_deployment_monitoring_job_sample( // Create a client. $jobServiceClient = new JobServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $modelDeploymentMonitoringJobModelDeploymentMonitoringObjectiveConfigs = [ new ModelDeploymentMonitoringObjectiveConfig() ]; diff --git a/AiPlatform/samples/V1/JobServiceClient/create_nas_job.php b/AiPlatform/samples/V1/JobServiceClient/create_nas_job.php index 1a445f15b6b4..b2b96eaa8a0a 100644 --- a/AiPlatform/samples/V1/JobServiceClient/create_nas_job.php +++ b/AiPlatform/samples/V1/JobServiceClient/create_nas_job.php @@ -43,7 +43,7 @@ function create_nas_job_sample(string $formattedParent, string $nasJobDisplayNam // Create a client. $jobServiceClient = new JobServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $nasJobNasJobSpec = new NasJobSpec(); $nasJob = (new NasJob()) ->setDisplayName($nasJobDisplayName) diff --git a/AiPlatform/samples/V1/JobServiceClient/search_model_deployment_monitoring_stats_anomalies.php b/AiPlatform/samples/V1/JobServiceClient/search_model_deployment_monitoring_stats_anomalies.php index 0d8a4655b146..9ea7c2dfe666 100644 --- a/AiPlatform/samples/V1/JobServiceClient/search_model_deployment_monitoring_stats_anomalies.php +++ b/AiPlatform/samples/V1/JobServiceClient/search_model_deployment_monitoring_stats_anomalies.php @@ -46,7 +46,7 @@ function search_model_deployment_monitoring_stats_anomalies_sample( // Create a client. $jobServiceClient = new JobServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $objectives = [new StatsAnomaliesObjective()]; // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/JobServiceClient/set_iam_policy.php b/AiPlatform/samples/V1/JobServiceClient/set_iam_policy.php index 77a3dce45aca..874fa946fb44 100644 --- a/AiPlatform/samples/V1/JobServiceClient/set_iam_policy.php +++ b/AiPlatform/samples/V1/JobServiceClient/set_iam_policy.php @@ -42,7 +42,7 @@ function set_iam_policy_sample(string $resource): void // Create a client. $jobServiceClient = new JobServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $policy = new Policy(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/JobServiceClient/test_iam_permissions.php b/AiPlatform/samples/V1/JobServiceClient/test_iam_permissions.php index 7712541f3955..bb95342ec0d4 100644 --- a/AiPlatform/samples/V1/JobServiceClient/test_iam_permissions.php +++ b/AiPlatform/samples/V1/JobServiceClient/test_iam_permissions.php @@ -48,7 +48,7 @@ function test_iam_permissions_sample(string $resource, string $permissionsElemen // Create a client. $jobServiceClient = new JobServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $permissions = [$permissionsElement,]; // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/JobServiceClient/update_model_deployment_monitoring_job.php b/AiPlatform/samples/V1/JobServiceClient/update_model_deployment_monitoring_job.php index 418c573c4453..d9e7eec28f72 100644 --- a/AiPlatform/samples/V1/JobServiceClient/update_model_deployment_monitoring_job.php +++ b/AiPlatform/samples/V1/JobServiceClient/update_model_deployment_monitoring_job.php @@ -52,7 +52,7 @@ function update_model_deployment_monitoring_job_sample( // Create a client. $jobServiceClient = new JobServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $modelDeploymentMonitoringJobModelDeploymentMonitoringObjectiveConfigs = [ new ModelDeploymentMonitoringObjectiveConfig() ]; diff --git a/AiPlatform/samples/V1/MetadataServiceClient/create_artifact.php b/AiPlatform/samples/V1/MetadataServiceClient/create_artifact.php index 60149912fe5b..94dac366274e 100644 --- a/AiPlatform/samples/V1/MetadataServiceClient/create_artifact.php +++ b/AiPlatform/samples/V1/MetadataServiceClient/create_artifact.php @@ -41,7 +41,7 @@ function create_artifact_sample(string $formattedParent): void // Create a client. $metadataServiceClient = new MetadataServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $artifact = new Artifact(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/MetadataServiceClient/create_context.php b/AiPlatform/samples/V1/MetadataServiceClient/create_context.php index aa11f564a466..f77e5ada335a 100644 --- a/AiPlatform/samples/V1/MetadataServiceClient/create_context.php +++ b/AiPlatform/samples/V1/MetadataServiceClient/create_context.php @@ -40,7 +40,7 @@ function create_context_sample(string $formattedParent): void // Create a client. $metadataServiceClient = new MetadataServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $context = new Context(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/MetadataServiceClient/create_execution.php b/AiPlatform/samples/V1/MetadataServiceClient/create_execution.php index cc3139f8a241..175387740226 100644 --- a/AiPlatform/samples/V1/MetadataServiceClient/create_execution.php +++ b/AiPlatform/samples/V1/MetadataServiceClient/create_execution.php @@ -41,7 +41,7 @@ function create_execution_sample(string $formattedParent): void // Create a client. $metadataServiceClient = new MetadataServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $execution = new Execution(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/MetadataServiceClient/create_metadata_schema.php b/AiPlatform/samples/V1/MetadataServiceClient/create_metadata_schema.php index df47449073a2..8bb4034ac531 100644 --- a/AiPlatform/samples/V1/MetadataServiceClient/create_metadata_schema.php +++ b/AiPlatform/samples/V1/MetadataServiceClient/create_metadata_schema.php @@ -49,7 +49,7 @@ function create_metadata_schema_sample( // Create a client. $metadataServiceClient = new MetadataServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $metadataSchema = (new MetadataSchema()) ->setSchema($metadataSchemaSchema); diff --git a/AiPlatform/samples/V1/MetadataServiceClient/create_metadata_store.php b/AiPlatform/samples/V1/MetadataServiceClient/create_metadata_store.php index cd9c2797ad5b..b9b46bc086cf 100644 --- a/AiPlatform/samples/V1/MetadataServiceClient/create_metadata_store.php +++ b/AiPlatform/samples/V1/MetadataServiceClient/create_metadata_store.php @@ -42,7 +42,7 @@ function create_metadata_store_sample(string $formattedParent): void // Create a client. $metadataServiceClient = new MetadataServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $metadataStore = new MetadataStore(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/MetadataServiceClient/set_iam_policy.php b/AiPlatform/samples/V1/MetadataServiceClient/set_iam_policy.php index 67ccf03178fa..ae302e20ee51 100644 --- a/AiPlatform/samples/V1/MetadataServiceClient/set_iam_policy.php +++ b/AiPlatform/samples/V1/MetadataServiceClient/set_iam_policy.php @@ -42,7 +42,7 @@ function set_iam_policy_sample(string $resource): void // Create a client. $metadataServiceClient = new MetadataServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $policy = new Policy(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/MetadataServiceClient/test_iam_permissions.php b/AiPlatform/samples/V1/MetadataServiceClient/test_iam_permissions.php index 3845bdc0ef89..c23a9078e052 100644 --- a/AiPlatform/samples/V1/MetadataServiceClient/test_iam_permissions.php +++ b/AiPlatform/samples/V1/MetadataServiceClient/test_iam_permissions.php @@ -48,7 +48,7 @@ function test_iam_permissions_sample(string $resource, string $permissionsElemen // Create a client. $metadataServiceClient = new MetadataServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $permissions = [$permissionsElement,]; // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/MetadataServiceClient/update_artifact.php b/AiPlatform/samples/V1/MetadataServiceClient/update_artifact.php index 193a9ccc0035..b5600457b892 100644 --- a/AiPlatform/samples/V1/MetadataServiceClient/update_artifact.php +++ b/AiPlatform/samples/V1/MetadataServiceClient/update_artifact.php @@ -41,7 +41,7 @@ function update_artifact_sample(): void // Create a client. $metadataServiceClient = new MetadataServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $artifact = new Artifact(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/MetadataServiceClient/update_context.php b/AiPlatform/samples/V1/MetadataServiceClient/update_context.php index 565b85434908..16369ef7d0b7 100644 --- a/AiPlatform/samples/V1/MetadataServiceClient/update_context.php +++ b/AiPlatform/samples/V1/MetadataServiceClient/update_context.php @@ -41,7 +41,7 @@ function update_context_sample(): void // Create a client. $metadataServiceClient = new MetadataServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $context = new Context(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/MetadataServiceClient/update_execution.php b/AiPlatform/samples/V1/MetadataServiceClient/update_execution.php index a6f6896fc278..a824c0227aad 100644 --- a/AiPlatform/samples/V1/MetadataServiceClient/update_execution.php +++ b/AiPlatform/samples/V1/MetadataServiceClient/update_execution.php @@ -41,7 +41,7 @@ function update_execution_sample(): void // Create a client. $metadataServiceClient = new MetadataServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $execution = new Execution(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/MigrationServiceClient/batch_migrate_resources.php b/AiPlatform/samples/V1/MigrationServiceClient/batch_migrate_resources.php index b02369ec9bf2..f211ca7b2f96 100644 --- a/AiPlatform/samples/V1/MigrationServiceClient/batch_migrate_resources.php +++ b/AiPlatform/samples/V1/MigrationServiceClient/batch_migrate_resources.php @@ -43,7 +43,7 @@ function batch_migrate_resources_sample(string $formattedParent): void // Create a client. $migrationServiceClient = new MigrationServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $migrateResourceRequests = [new MigrateResourceRequest()]; // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/MigrationServiceClient/set_iam_policy.php b/AiPlatform/samples/V1/MigrationServiceClient/set_iam_policy.php index f074930d43e2..edffef89b3a1 100644 --- a/AiPlatform/samples/V1/MigrationServiceClient/set_iam_policy.php +++ b/AiPlatform/samples/V1/MigrationServiceClient/set_iam_policy.php @@ -42,7 +42,7 @@ function set_iam_policy_sample(string $resource): void // Create a client. $migrationServiceClient = new MigrationServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $policy = new Policy(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/MigrationServiceClient/test_iam_permissions.php b/AiPlatform/samples/V1/MigrationServiceClient/test_iam_permissions.php index 051f8a44a456..ccef6f58e5fb 100644 --- a/AiPlatform/samples/V1/MigrationServiceClient/test_iam_permissions.php +++ b/AiPlatform/samples/V1/MigrationServiceClient/test_iam_permissions.php @@ -48,7 +48,7 @@ function test_iam_permissions_sample(string $resource, string $permissionsElemen // Create a client. $migrationServiceClient = new MigrationServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $permissions = [$permissionsElement,]; // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/ModelServiceClient/batch_import_evaluated_annotations.php b/AiPlatform/samples/V1/ModelServiceClient/batch_import_evaluated_annotations.php index 05fa8f517421..8abadecc7cff 100644 --- a/AiPlatform/samples/V1/ModelServiceClient/batch_import_evaluated_annotations.php +++ b/AiPlatform/samples/V1/ModelServiceClient/batch_import_evaluated_annotations.php @@ -41,7 +41,7 @@ function batch_import_evaluated_annotations_sample(string $formattedParent): voi // Create a client. $modelServiceClient = new ModelServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $evaluatedAnnotations = [new EvaluatedAnnotation()]; // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/ModelServiceClient/batch_import_model_evaluation_slices.php b/AiPlatform/samples/V1/ModelServiceClient/batch_import_model_evaluation_slices.php index 43600e4d7dce..5a8cb325bfd5 100644 --- a/AiPlatform/samples/V1/ModelServiceClient/batch_import_model_evaluation_slices.php +++ b/AiPlatform/samples/V1/ModelServiceClient/batch_import_model_evaluation_slices.php @@ -41,7 +41,7 @@ function batch_import_model_evaluation_slices_sample(string $formattedParent): v // Create a client. $modelServiceClient = new ModelServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $modelEvaluationSlices = [new ModelEvaluationSlice()]; // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/ModelServiceClient/export_model.php b/AiPlatform/samples/V1/ModelServiceClient/export_model.php index fa3606a829d9..1790bebe4b79 100644 --- a/AiPlatform/samples/V1/ModelServiceClient/export_model.php +++ b/AiPlatform/samples/V1/ModelServiceClient/export_model.php @@ -46,7 +46,7 @@ function export_model_sample(string $formattedName): void // Create a client. $modelServiceClient = new ModelServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $outputConfig = new OutputConfig(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/ModelServiceClient/import_model_evaluation.php b/AiPlatform/samples/V1/ModelServiceClient/import_model_evaluation.php index ca0b5bfd6f0e..1335d67ff150 100644 --- a/AiPlatform/samples/V1/ModelServiceClient/import_model_evaluation.php +++ b/AiPlatform/samples/V1/ModelServiceClient/import_model_evaluation.php @@ -39,7 +39,7 @@ function import_model_evaluation_sample(string $formattedParent): void // Create a client. $modelServiceClient = new ModelServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $modelEvaluation = new ModelEvaluation(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/ModelServiceClient/merge_version_aliases.php b/AiPlatform/samples/V1/ModelServiceClient/merge_version_aliases.php index f4f47bcda322..1aab3fd3fc3b 100644 --- a/AiPlatform/samples/V1/ModelServiceClient/merge_version_aliases.php +++ b/AiPlatform/samples/V1/ModelServiceClient/merge_version_aliases.php @@ -53,7 +53,7 @@ function merge_version_aliases_sample(string $formattedName, string $versionAlia // Create a client. $modelServiceClient = new ModelServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $versionAliases = [$versionAliasesElement,]; // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/ModelServiceClient/set_iam_policy.php b/AiPlatform/samples/V1/ModelServiceClient/set_iam_policy.php index f2a5911c82df..0c9ab5ef09f8 100644 --- a/AiPlatform/samples/V1/ModelServiceClient/set_iam_policy.php +++ b/AiPlatform/samples/V1/ModelServiceClient/set_iam_policy.php @@ -42,7 +42,7 @@ function set_iam_policy_sample(string $resource): void // Create a client. $modelServiceClient = new ModelServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $policy = new Policy(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/ModelServiceClient/test_iam_permissions.php b/AiPlatform/samples/V1/ModelServiceClient/test_iam_permissions.php index 23ee544b4658..c7f13f0d6072 100644 --- a/AiPlatform/samples/V1/ModelServiceClient/test_iam_permissions.php +++ b/AiPlatform/samples/V1/ModelServiceClient/test_iam_permissions.php @@ -48,7 +48,7 @@ function test_iam_permissions_sample(string $resource, string $permissionsElemen // Create a client. $modelServiceClient = new ModelServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $permissions = [$permissionsElement,]; // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/ModelServiceClient/update_model.php b/AiPlatform/samples/V1/ModelServiceClient/update_model.php index c7d70dde9d42..ee7a115a9f2e 100644 --- a/AiPlatform/samples/V1/ModelServiceClient/update_model.php +++ b/AiPlatform/samples/V1/ModelServiceClient/update_model.php @@ -40,7 +40,7 @@ function update_model_sample(string $modelDisplayName): void // Create a client. $modelServiceClient = new ModelServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $model = (new Model()) ->setDisplayName($modelDisplayName); $updateMask = new FieldMask(); diff --git a/AiPlatform/samples/V1/ModelServiceClient/upload_model.php b/AiPlatform/samples/V1/ModelServiceClient/upload_model.php index 8b5164791187..38a3efad1300 100644 --- a/AiPlatform/samples/V1/ModelServiceClient/upload_model.php +++ b/AiPlatform/samples/V1/ModelServiceClient/upload_model.php @@ -45,7 +45,7 @@ function upload_model_sample(string $formattedParent, string $modelDisplayName): // Create a client. $modelServiceClient = new ModelServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $model = (new Model()) ->setDisplayName($modelDisplayName); diff --git a/AiPlatform/samples/V1/PipelineServiceClient/create_pipeline_job.php b/AiPlatform/samples/V1/PipelineServiceClient/create_pipeline_job.php index 8936b9e249bc..8d1617d323f9 100644 --- a/AiPlatform/samples/V1/PipelineServiceClient/create_pipeline_job.php +++ b/AiPlatform/samples/V1/PipelineServiceClient/create_pipeline_job.php @@ -39,7 +39,7 @@ function create_pipeline_job_sample(string $formattedParent): void // Create a client. $pipelineServiceClient = new PipelineServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $pipelineJob = new PipelineJob(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/PipelineServiceClient/create_training_pipeline.php b/AiPlatform/samples/V1/PipelineServiceClient/create_training_pipeline.php index 3d76d7ba1870..44858c61840f 100644 --- a/AiPlatform/samples/V1/PipelineServiceClient/create_training_pipeline.php +++ b/AiPlatform/samples/V1/PipelineServiceClient/create_training_pipeline.php @@ -53,7 +53,7 @@ function create_training_pipeline_sample( // Create a client. $pipelineServiceClient = new PipelineServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $trainingPipelineTrainingTaskInputs = new Value(); $trainingPipeline = (new TrainingPipeline()) ->setDisplayName($trainingPipelineDisplayName) diff --git a/AiPlatform/samples/V1/PipelineServiceClient/set_iam_policy.php b/AiPlatform/samples/V1/PipelineServiceClient/set_iam_policy.php index fb28045408aa..ddc3dde38e82 100644 --- a/AiPlatform/samples/V1/PipelineServiceClient/set_iam_policy.php +++ b/AiPlatform/samples/V1/PipelineServiceClient/set_iam_policy.php @@ -42,7 +42,7 @@ function set_iam_policy_sample(string $resource): void // Create a client. $pipelineServiceClient = new PipelineServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $policy = new Policy(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/PipelineServiceClient/test_iam_permissions.php b/AiPlatform/samples/V1/PipelineServiceClient/test_iam_permissions.php index 9ffcd8f148ce..2befe39f1f97 100644 --- a/AiPlatform/samples/V1/PipelineServiceClient/test_iam_permissions.php +++ b/AiPlatform/samples/V1/PipelineServiceClient/test_iam_permissions.php @@ -48,7 +48,7 @@ function test_iam_permissions_sample(string $resource, string $permissionsElemen // Create a client. $pipelineServiceClient = new PipelineServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $permissions = [$permissionsElement,]; // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/PredictionServiceClient/explain.php b/AiPlatform/samples/V1/PredictionServiceClient/explain.php index 87c35da44e7d..5be7b7cbd7f3 100644 --- a/AiPlatform/samples/V1/PredictionServiceClient/explain.php +++ b/AiPlatform/samples/V1/PredictionServiceClient/explain.php @@ -52,7 +52,7 @@ function explain_sample(string $formattedEndpoint): void // Create a client. $predictionServiceClient = new PredictionServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $instances = [new Value()]; // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/PredictionServiceClient/predict.php b/AiPlatform/samples/V1/PredictionServiceClient/predict.php index 817f155552b0..5421eb1fc062 100644 --- a/AiPlatform/samples/V1/PredictionServiceClient/predict.php +++ b/AiPlatform/samples/V1/PredictionServiceClient/predict.php @@ -41,7 +41,7 @@ function predict_sample(string $formattedEndpoint): void // Create a client. $predictionServiceClient = new PredictionServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $instances = [new Value()]; // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/PredictionServiceClient/set_iam_policy.php b/AiPlatform/samples/V1/PredictionServiceClient/set_iam_policy.php index e78488df092d..c30d9fdd2603 100644 --- a/AiPlatform/samples/V1/PredictionServiceClient/set_iam_policy.php +++ b/AiPlatform/samples/V1/PredictionServiceClient/set_iam_policy.php @@ -42,7 +42,7 @@ function set_iam_policy_sample(string $resource): void // Create a client. $predictionServiceClient = new PredictionServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $policy = new Policy(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/PredictionServiceClient/test_iam_permissions.php b/AiPlatform/samples/V1/PredictionServiceClient/test_iam_permissions.php index c27997906c4e..26f6fa5a4bd1 100644 --- a/AiPlatform/samples/V1/PredictionServiceClient/test_iam_permissions.php +++ b/AiPlatform/samples/V1/PredictionServiceClient/test_iam_permissions.php @@ -48,7 +48,7 @@ function test_iam_permissions_sample(string $resource, string $permissionsElemen // Create a client. $predictionServiceClient = new PredictionServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $permissions = [$permissionsElement,]; // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/SpecialistPoolServiceClient/create_specialist_pool.php b/AiPlatform/samples/V1/SpecialistPoolServiceClient/create_specialist_pool.php index c75536ad2588..53d15a130485 100644 --- a/AiPlatform/samples/V1/SpecialistPoolServiceClient/create_specialist_pool.php +++ b/AiPlatform/samples/V1/SpecialistPoolServiceClient/create_specialist_pool.php @@ -49,7 +49,7 @@ function create_specialist_pool_sample( // Create a client. $specialistPoolServiceClient = new SpecialistPoolServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $specialistPool = (new SpecialistPool()) ->setName($specialistPoolName) ->setDisplayName($specialistPoolDisplayName); diff --git a/AiPlatform/samples/V1/SpecialistPoolServiceClient/set_iam_policy.php b/AiPlatform/samples/V1/SpecialistPoolServiceClient/set_iam_policy.php index ba6dc3527973..23514ad62b88 100644 --- a/AiPlatform/samples/V1/SpecialistPoolServiceClient/set_iam_policy.php +++ b/AiPlatform/samples/V1/SpecialistPoolServiceClient/set_iam_policy.php @@ -42,7 +42,7 @@ function set_iam_policy_sample(string $resource): void // Create a client. $specialistPoolServiceClient = new SpecialistPoolServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $policy = new Policy(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/SpecialistPoolServiceClient/test_iam_permissions.php b/AiPlatform/samples/V1/SpecialistPoolServiceClient/test_iam_permissions.php index 8d0712276961..b1e8e52b6aeb 100644 --- a/AiPlatform/samples/V1/SpecialistPoolServiceClient/test_iam_permissions.php +++ b/AiPlatform/samples/V1/SpecialistPoolServiceClient/test_iam_permissions.php @@ -48,7 +48,7 @@ function test_iam_permissions_sample(string $resource, string $permissionsElemen // Create a client. $specialistPoolServiceClient = new SpecialistPoolServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $permissions = [$permissionsElement,]; // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/SpecialistPoolServiceClient/update_specialist_pool.php b/AiPlatform/samples/V1/SpecialistPoolServiceClient/update_specialist_pool.php index 1a8e8e6ccc3d..d55143c38c97 100644 --- a/AiPlatform/samples/V1/SpecialistPoolServiceClient/update_specialist_pool.php +++ b/AiPlatform/samples/V1/SpecialistPoolServiceClient/update_specialist_pool.php @@ -46,7 +46,7 @@ function update_specialist_pool_sample( // Create a client. $specialistPoolServiceClient = new SpecialistPoolServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $specialistPool = (new SpecialistPool()) ->setName($specialistPoolName) ->setDisplayName($specialistPoolDisplayName); diff --git a/AiPlatform/samples/V1/TensorboardServiceClient/batch_create_tensorboard_runs.php b/AiPlatform/samples/V1/TensorboardServiceClient/batch_create_tensorboard_runs.php index e0a76f70511b..e8a7459e509a 100644 --- a/AiPlatform/samples/V1/TensorboardServiceClient/batch_create_tensorboard_runs.php +++ b/AiPlatform/samples/V1/TensorboardServiceClient/batch_create_tensorboard_runs.php @@ -60,7 +60,7 @@ function batch_create_tensorboard_runs_sample( // Create a client. $tensorboardServiceClient = new TensorboardServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $requestsTensorboardRun = (new TensorboardRun()) ->setDisplayName($requestsTensorboardRunDisplayName); $createTensorboardRunRequest = (new CreateTensorboardRunRequest()) diff --git a/AiPlatform/samples/V1/TensorboardServiceClient/batch_create_tensorboard_time_series.php b/AiPlatform/samples/V1/TensorboardServiceClient/batch_create_tensorboard_time_series.php index f1c72ab76090..b79fc4a6bbf2 100644 --- a/AiPlatform/samples/V1/TensorboardServiceClient/batch_create_tensorboard_time_series.php +++ b/AiPlatform/samples/V1/TensorboardServiceClient/batch_create_tensorboard_time_series.php @@ -60,7 +60,7 @@ function batch_create_tensorboard_time_series_sample( // Create a client. $tensorboardServiceClient = new TensorboardServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $requestsTensorboardTimeSeries = (new TensorboardTimeSeries()) ->setDisplayName($requestsTensorboardTimeSeriesDisplayName) ->setValueType($requestsTensorboardTimeSeriesValueType); diff --git a/AiPlatform/samples/V1/TensorboardServiceClient/batch_read_tensorboard_time_series_data.php b/AiPlatform/samples/V1/TensorboardServiceClient/batch_read_tensorboard_time_series_data.php index a8356c15e3db..e92e6cecceeb 100644 --- a/AiPlatform/samples/V1/TensorboardServiceClient/batch_read_tensorboard_time_series_data.php +++ b/AiPlatform/samples/V1/TensorboardServiceClient/batch_read_tensorboard_time_series_data.php @@ -53,7 +53,7 @@ function batch_read_tensorboard_time_series_data_sample( // Create a client. $tensorboardServiceClient = new TensorboardServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $formattedTimeSeries = [$formattedTimeSeriesElement,]; // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/TensorboardServiceClient/create_tensorboard.php b/AiPlatform/samples/V1/TensorboardServiceClient/create_tensorboard.php index 3ed99f9b7ad4..2fb03eba6135 100644 --- a/AiPlatform/samples/V1/TensorboardServiceClient/create_tensorboard.php +++ b/AiPlatform/samples/V1/TensorboardServiceClient/create_tensorboard.php @@ -42,7 +42,7 @@ function create_tensorboard_sample(string $formattedParent, string $tensorboardD // Create a client. $tensorboardServiceClient = new TensorboardServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $tensorboard = (new Tensorboard()) ->setDisplayName($tensorboardDisplayName); diff --git a/AiPlatform/samples/V1/TensorboardServiceClient/create_tensorboard_run.php b/AiPlatform/samples/V1/TensorboardServiceClient/create_tensorboard_run.php index ffa6edcc46d2..9c50e3e6fe42 100644 --- a/AiPlatform/samples/V1/TensorboardServiceClient/create_tensorboard_run.php +++ b/AiPlatform/samples/V1/TensorboardServiceClient/create_tensorboard_run.php @@ -51,7 +51,7 @@ function create_tensorboard_run_sample( // Create a client. $tensorboardServiceClient = new TensorboardServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $tensorboardRun = (new TensorboardRun()) ->setDisplayName($tensorboardRunDisplayName); diff --git a/AiPlatform/samples/V1/TensorboardServiceClient/create_tensorboard_time_series.php b/AiPlatform/samples/V1/TensorboardServiceClient/create_tensorboard_time_series.php index 1f498834d42a..77e98939a77b 100644 --- a/AiPlatform/samples/V1/TensorboardServiceClient/create_tensorboard_time_series.php +++ b/AiPlatform/samples/V1/TensorboardServiceClient/create_tensorboard_time_series.php @@ -49,7 +49,7 @@ function create_tensorboard_time_series_sample( // Create a client. $tensorboardServiceClient = new TensorboardServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $tensorboardTimeSeries = (new TensorboardTimeSeries()) ->setDisplayName($tensorboardTimeSeriesDisplayName) ->setValueType($tensorboardTimeSeriesValueType); diff --git a/AiPlatform/samples/V1/TensorboardServiceClient/set_iam_policy.php b/AiPlatform/samples/V1/TensorboardServiceClient/set_iam_policy.php index e936ca302f3d..a7b2c504bfb1 100644 --- a/AiPlatform/samples/V1/TensorboardServiceClient/set_iam_policy.php +++ b/AiPlatform/samples/V1/TensorboardServiceClient/set_iam_policy.php @@ -42,7 +42,7 @@ function set_iam_policy_sample(string $resource): void // Create a client. $tensorboardServiceClient = new TensorboardServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $policy = new Policy(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/TensorboardServiceClient/test_iam_permissions.php b/AiPlatform/samples/V1/TensorboardServiceClient/test_iam_permissions.php index 0d786c5c3310..feab5045f859 100644 --- a/AiPlatform/samples/V1/TensorboardServiceClient/test_iam_permissions.php +++ b/AiPlatform/samples/V1/TensorboardServiceClient/test_iam_permissions.php @@ -48,7 +48,7 @@ function test_iam_permissions_sample(string $resource, string $permissionsElemen // Create a client. $tensorboardServiceClient = new TensorboardServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $permissions = [$permissionsElement,]; // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/TensorboardServiceClient/update_tensorboard.php b/AiPlatform/samples/V1/TensorboardServiceClient/update_tensorboard.php index c1a448819450..252423778c26 100644 --- a/AiPlatform/samples/V1/TensorboardServiceClient/update_tensorboard.php +++ b/AiPlatform/samples/V1/TensorboardServiceClient/update_tensorboard.php @@ -40,7 +40,7 @@ function update_tensorboard_sample(string $tensorboardDisplayName): void // Create a client. $tensorboardServiceClient = new TensorboardServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $updateMask = new FieldMask(); $tensorboard = (new Tensorboard()) ->setDisplayName($tensorboardDisplayName); diff --git a/AiPlatform/samples/V1/TensorboardServiceClient/update_tensorboard_experiment.php b/AiPlatform/samples/V1/TensorboardServiceClient/update_tensorboard_experiment.php index ad2e24f6588c..95c71acbf486 100644 --- a/AiPlatform/samples/V1/TensorboardServiceClient/update_tensorboard_experiment.php +++ b/AiPlatform/samples/V1/TensorboardServiceClient/update_tensorboard_experiment.php @@ -42,7 +42,7 @@ function update_tensorboard_experiment_sample(): void // Create a client. $tensorboardServiceClient = new TensorboardServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $updateMask = new FieldMask(); $tensorboardExperiment = new TensorboardExperiment(); diff --git a/AiPlatform/samples/V1/TensorboardServiceClient/update_tensorboard_run.php b/AiPlatform/samples/V1/TensorboardServiceClient/update_tensorboard_run.php index 6f16cd1461a8..04624050bb11 100644 --- a/AiPlatform/samples/V1/TensorboardServiceClient/update_tensorboard_run.php +++ b/AiPlatform/samples/V1/TensorboardServiceClient/update_tensorboard_run.php @@ -40,7 +40,7 @@ function update_tensorboard_run_sample(string $tensorboardRunDisplayName): void // Create a client. $tensorboardServiceClient = new TensorboardServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $updateMask = new FieldMask(); $tensorboardRun = (new TensorboardRun()) ->setDisplayName($tensorboardRunDisplayName); diff --git a/AiPlatform/samples/V1/TensorboardServiceClient/update_tensorboard_time_series.php b/AiPlatform/samples/V1/TensorboardServiceClient/update_tensorboard_time_series.php index 6c414831356f..ed23bed3b8dd 100644 --- a/AiPlatform/samples/V1/TensorboardServiceClient/update_tensorboard_time_series.php +++ b/AiPlatform/samples/V1/TensorboardServiceClient/update_tensorboard_time_series.php @@ -44,7 +44,7 @@ function update_tensorboard_time_series_sample( // Create a client. $tensorboardServiceClient = new TensorboardServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $updateMask = new FieldMask(); $tensorboardTimeSeries = (new TensorboardTimeSeries()) ->setDisplayName($tensorboardTimeSeriesDisplayName) diff --git a/AiPlatform/samples/V1/TensorboardServiceClient/write_tensorboard_experiment_data.php b/AiPlatform/samples/V1/TensorboardServiceClient/write_tensorboard_experiment_data.php index 69a7dcc70ba5..da2f812ebfa6 100644 --- a/AiPlatform/samples/V1/TensorboardServiceClient/write_tensorboard_experiment_data.php +++ b/AiPlatform/samples/V1/TensorboardServiceClient/write_tensorboard_experiment_data.php @@ -57,7 +57,7 @@ function write_tensorboard_experiment_data_sample( // Create a client. $tensorboardServiceClient = new TensorboardServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $writeRunDataRequestsTimeSeriesDataValues = [new TimeSeriesDataPoint()]; $timeSeriesData = (new TimeSeriesData()) ->setTensorboardTimeSeriesId($writeRunDataRequestsTimeSeriesDataTensorboardTimeSeriesId) diff --git a/AiPlatform/samples/V1/TensorboardServiceClient/write_tensorboard_run_data.php b/AiPlatform/samples/V1/TensorboardServiceClient/write_tensorboard_run_data.php index d49f3bf376f0..66ca682fa74c 100644 --- a/AiPlatform/samples/V1/TensorboardServiceClient/write_tensorboard_run_data.php +++ b/AiPlatform/samples/V1/TensorboardServiceClient/write_tensorboard_run_data.php @@ -51,7 +51,7 @@ function write_tensorboard_run_data_sample( // Create a client. $tensorboardServiceClient = new TensorboardServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $timeSeriesDataValues = [new TimeSeriesDataPoint()]; $timeSeriesData = (new TimeSeriesData()) ->setTensorboardTimeSeriesId($timeSeriesDataTensorboardTimeSeriesId) diff --git a/AiPlatform/samples/V1/VizierServiceClient/add_trial_measurement.php b/AiPlatform/samples/V1/VizierServiceClient/add_trial_measurement.php index d5270fe9424e..65697b019d97 100644 --- a/AiPlatform/samples/V1/VizierServiceClient/add_trial_measurement.php +++ b/AiPlatform/samples/V1/VizierServiceClient/add_trial_measurement.php @@ -42,7 +42,7 @@ function add_trial_measurement_sample(string $formattedTrialName): void // Create a client. $vizierServiceClient = new VizierServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $measurement = new Measurement(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/VizierServiceClient/create_study.php b/AiPlatform/samples/V1/VizierServiceClient/create_study.php index ee8afc7d85ce..e06a5a9e5088 100644 --- a/AiPlatform/samples/V1/VizierServiceClient/create_study.php +++ b/AiPlatform/samples/V1/VizierServiceClient/create_study.php @@ -55,7 +55,7 @@ function create_study_sample( // Create a client. $vizierServiceClient = new VizierServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $metricSpec = (new MetricSpec()) ->setMetricId($studyStudySpecMetricsMetricId) ->setGoal($studyStudySpecMetricsGoal); diff --git a/AiPlatform/samples/V1/VizierServiceClient/create_trial.php b/AiPlatform/samples/V1/VizierServiceClient/create_trial.php index ba4fa91761b1..717a8897e985 100644 --- a/AiPlatform/samples/V1/VizierServiceClient/create_trial.php +++ b/AiPlatform/samples/V1/VizierServiceClient/create_trial.php @@ -39,7 +39,7 @@ function create_trial_sample(string $formattedParent): void // Create a client. $vizierServiceClient = new VizierServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $trial = new Trial(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/VizierServiceClient/set_iam_policy.php b/AiPlatform/samples/V1/VizierServiceClient/set_iam_policy.php index 0e05deda90b8..30951e617fa7 100644 --- a/AiPlatform/samples/V1/VizierServiceClient/set_iam_policy.php +++ b/AiPlatform/samples/V1/VizierServiceClient/set_iam_policy.php @@ -42,7 +42,7 @@ function set_iam_policy_sample(string $resource): void // Create a client. $vizierServiceClient = new VizierServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $policy = new Policy(); // Call the API and handle any network failures. diff --git a/AiPlatform/samples/V1/VizierServiceClient/test_iam_permissions.php b/AiPlatform/samples/V1/VizierServiceClient/test_iam_permissions.php index 061a4e2d1196..7efdf2b7bb48 100644 --- a/AiPlatform/samples/V1/VizierServiceClient/test_iam_permissions.php +++ b/AiPlatform/samples/V1/VizierServiceClient/test_iam_permissions.php @@ -48,7 +48,7 @@ function test_iam_permissions_sample(string $resource, string $permissionsElemen // Create a client. $vizierServiceClient = new VizierServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $permissions = [$permissionsElement,]; // Call the API and handle any network failures. diff --git a/AiPlatform/src/V1/Gapic/IndexServiceGapicClient.php b/AiPlatform/src/V1/Gapic/IndexServiceGapicClient.php index 6d4206580edf..35f93c91af5e 100644 --- a/AiPlatform/src/V1/Gapic/IndexServiceGapicClient.php +++ b/AiPlatform/src/V1/Gapic/IndexServiceGapicClient.php @@ -131,6 +131,8 @@ class IndexServiceGapicClient private static $indexNameTemplate; + private static $indexEndpointNameTemplate; + private static $locationNameTemplate; private static $pathTemplateMap; @@ -173,6 +175,17 @@ private static function getIndexNameTemplate() return self::$indexNameTemplate; } + private static function getIndexEndpointNameTemplate() + { + if (self::$indexEndpointNameTemplate == null) { + self::$indexEndpointNameTemplate = new PathTemplate( + 'projects/{project}/locations/{location}/indexEndpoints/{index_endpoint}' + ); + } + + return self::$indexEndpointNameTemplate; + } + private static function getLocationNameTemplate() { if (self::$locationNameTemplate == null) { @@ -189,6 +202,7 @@ private static function getPathTemplateMap() if (self::$pathTemplateMap == null) { self::$pathTemplateMap = [ 'index' => self::getIndexNameTemplate(), + 'indexEndpoint' => self::getIndexEndpointNameTemplate(), 'location' => self::getLocationNameTemplate(), ]; } @@ -215,6 +229,28 @@ public static function indexName($project, $location, $index) ]); } + /** + * Formats a string containing the fully-qualified path to represent a + * index_endpoint resource. + * + * @param string $project + * @param string $location + * @param string $indexEndpoint + * + * @return string The formatted index_endpoint resource. + */ + public static function indexEndpointName( + $project, + $location, + $indexEndpoint + ) { + return self::getIndexEndpointNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'index_endpoint' => $indexEndpoint, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a location * resource. @@ -237,6 +273,7 @@ public static function locationName($project, $location) * The following name formats are supported: * Template: Pattern * - index: projects/{project}/locations/{location}/indexes/{index} + * - indexEndpoint: projects/{project}/locations/{location}/indexEndpoints/{index_endpoint} * - location: projects/{project}/locations/{location} * * The optional $template argument can be supplied to specify a particular pattern, diff --git a/AiPlatform/src/V1/Gapic/JobServiceGapicClient.php b/AiPlatform/src/V1/Gapic/JobServiceGapicClient.php index 5040da598d47..fc43b1f9c1cd 100644 --- a/AiPlatform/src/V1/Gapic/JobServiceGapicClient.php +++ b/AiPlatform/src/V1/Gapic/JobServiceGapicClient.php @@ -147,6 +147,8 @@ class JobServiceGapicClient private static $batchPredictionJobNameTemplate; + private static $contextNameTemplate; + private static $customJobNameTemplate; private static $dataLabelingJobNameTemplate; @@ -167,10 +169,14 @@ class JobServiceGapicClient private static $nasTrialDetailNameTemplate; + private static $networkNameTemplate; + private static $projectLocationEndpointNameTemplate; private static $projectLocationPublisherModelNameTemplate; + private static $tensorboardNameTemplate; + private static $pathTemplateMap; private $operationsClient; @@ -211,6 +217,17 @@ private static function getBatchPredictionJobNameTemplate() return self::$batchPredictionJobNameTemplate; } + private static function getContextNameTemplate() + { + if (self::$contextNameTemplate == null) { + self::$contextNameTemplate = new PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}' + ); + } + + return self::$contextNameTemplate; + } + private static function getCustomJobNameTemplate() { if (self::$customJobNameTemplate == null) { @@ -321,6 +338,17 @@ private static function getNasTrialDetailNameTemplate() return self::$nasTrialDetailNameTemplate; } + private static function getNetworkNameTemplate() + { + if (self::$networkNameTemplate == null) { + self::$networkNameTemplate = new PathTemplate( + 'projects/{project}/global/networks/{network}' + ); + } + + return self::$networkNameTemplate; + } + private static function getProjectLocationEndpointNameTemplate() { if (self::$projectLocationEndpointNameTemplate == null) { @@ -343,11 +371,23 @@ private static function getProjectLocationPublisherModelNameTemplate() return self::$projectLocationPublisherModelNameTemplate; } + private static function getTensorboardNameTemplate() + { + if (self::$tensorboardNameTemplate == null) { + self::$tensorboardNameTemplate = new PathTemplate( + 'projects/{project}/locations/{location}/tensorboards/{tensorboard}' + ); + } + + return self::$tensorboardNameTemplate; + } + private static function getPathTemplateMap() { if (self::$pathTemplateMap == null) { self::$pathTemplateMap = [ 'batchPredictionJob' => self::getBatchPredictionJobNameTemplate(), + 'context' => self::getContextNameTemplate(), 'customJob' => self::getCustomJobNameTemplate(), 'dataLabelingJob' => self::getDataLabelingJobNameTemplate(), 'dataset' => self::getDatasetNameTemplate(), @@ -358,8 +398,10 @@ private static function getPathTemplateMap() 'modelDeploymentMonitoringJob' => self::getModelDeploymentMonitoringJobNameTemplate(), 'nasJob' => self::getNasJobNameTemplate(), 'nasTrialDetail' => self::getNasTrialDetailNameTemplate(), + 'network' => self::getNetworkNameTemplate(), 'projectLocationEndpoint' => self::getProjectLocationEndpointNameTemplate(), 'projectLocationPublisherModel' => self::getProjectLocationPublisherModelNameTemplate(), + 'tensorboard' => self::getTensorboardNameTemplate(), ]; } @@ -388,6 +430,31 @@ public static function batchPredictionJobName( ]); } + /** + * Formats a string containing the fully-qualified path to represent a context + * resource. + * + * @param string $project + * @param string $location + * @param string $metadataStore + * @param string $context + * + * @return string The formatted context resource. + */ + public static function contextName( + $project, + $location, + $metadataStore, + $context + ) { + return self::getContextNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'metadata_store' => $metadataStore, + 'context' => $context, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a custom_job * resource. @@ -591,6 +658,23 @@ public static function nasTrialDetailName( ]); } + /** + * Formats a string containing the fully-qualified path to represent a network + * resource. + * + * @param string $project + * @param string $network + * + * @return string The formatted network resource. + */ + public static function networkName($project, $network) + { + return self::getNetworkNameTemplate()->render([ + 'project' => $project, + 'network' => $network, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a * project_location_endpoint resource. @@ -638,11 +722,31 @@ public static function projectLocationPublisherModelName( ]); } + /** + * Formats a string containing the fully-qualified path to represent a tensorboard + * resource. + * + * @param string $project + * @param string $location + * @param string $tensorboard + * + * @return string The formatted tensorboard resource. + */ + public static function tensorboardName($project, $location, $tensorboard) + { + return self::getTensorboardNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'tensorboard' => $tensorboard, + ]); + } + /** * Parses a formatted name string and returns an associative array of the components in the name. * The following name formats are supported: * Template: Pattern * - batchPredictionJob: projects/{project}/locations/{location}/batchPredictionJobs/{batch_prediction_job} + * - context: projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context} * - customJob: projects/{project}/locations/{location}/customJobs/{custom_job} * - dataLabelingJob: projects/{project}/locations/{location}/dataLabelingJobs/{data_labeling_job} * - dataset: projects/{project}/locations/{location}/datasets/{dataset} @@ -653,8 +757,10 @@ public static function projectLocationPublisherModelName( * - modelDeploymentMonitoringJob: projects/{project}/locations/{location}/modelDeploymentMonitoringJobs/{model_deployment_monitoring_job} * - nasJob: projects/{project}/locations/{location}/nasJobs/{nas_job} * - nasTrialDetail: projects/{project}/locations/{location}/nasJobs/{nas_job}/nasTrialDetails/{nas_trial_detail} + * - network: projects/{project}/global/networks/{network} * - projectLocationEndpoint: projects/{project}/locations/{location}/endpoints/{endpoint} * - projectLocationPublisherModel: projects/{project}/locations/{location}/publishers/{publisher}/models/{model} + * - tensorboard: projects/{project}/locations/{location}/tensorboards/{tensorboard} * * The optional $template argument can be supplied to specify a particular pattern, * and must match one of the templates listed above. If no $template argument is diff --git a/AiPlatform/src/V1/Gapic/MigrationServiceGapicClient.php b/AiPlatform/src/V1/Gapic/MigrationServiceGapicClient.php index c0d75234c111..03d4dce4ca54 100644 --- a/AiPlatform/src/V1/Gapic/MigrationServiceGapicClient.php +++ b/AiPlatform/src/V1/Gapic/MigrationServiceGapicClient.php @@ -122,8 +122,16 @@ class MigrationServiceGapicClient 'https://www.googleapis.com/auth/cloud-platform', ]; + private static $annotatedDatasetNameTemplate; + + private static $datasetNameTemplate; + private static $locationNameTemplate; + private static $modelNameTemplate; + + private static $versionNameTemplate; + private static $pathTemplateMap; private $operationsClient; @@ -154,6 +162,28 @@ private static function getClientDefaults() ]; } + private static function getAnnotatedDatasetNameTemplate() + { + if (self::$annotatedDatasetNameTemplate == null) { + self::$annotatedDatasetNameTemplate = new PathTemplate( + 'projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset}' + ); + } + + return self::$annotatedDatasetNameTemplate; + } + + private static function getDatasetNameTemplate() + { + if (self::$datasetNameTemplate == null) { + self::$datasetNameTemplate = new PathTemplate( + 'projects/{project}/locations/{location}/datasets/{dataset}' + ); + } + + return self::$datasetNameTemplate; + } + private static function getLocationNameTemplate() { if (self::$locationNameTemplate == null) { @@ -165,17 +195,84 @@ private static function getLocationNameTemplate() return self::$locationNameTemplate; } + private static function getModelNameTemplate() + { + if (self::$modelNameTemplate == null) { + self::$modelNameTemplate = new PathTemplate( + 'projects/{project}/locations/{location}/models/{model}' + ); + } + + return self::$modelNameTemplate; + } + + private static function getVersionNameTemplate() + { + if (self::$versionNameTemplate == null) { + self::$versionNameTemplate = new PathTemplate( + 'projects/{project}/models/{model}/versions/{version}' + ); + } + + return self::$versionNameTemplate; + } + private static function getPathTemplateMap() { if (self::$pathTemplateMap == null) { self::$pathTemplateMap = [ + 'annotatedDataset' => self::getAnnotatedDatasetNameTemplate(), + 'dataset' => self::getDatasetNameTemplate(), 'location' => self::getLocationNameTemplate(), + 'model' => self::getModelNameTemplate(), + 'version' => self::getVersionNameTemplate(), ]; } return self::$pathTemplateMap; } + /** + * Formats a string containing the fully-qualified path to represent a + * annotated_dataset resource. + * + * @param string $project + * @param string $dataset + * @param string $annotatedDataset + * + * @return string The formatted annotated_dataset resource. + */ + public static function annotatedDatasetName( + $project, + $dataset, + $annotatedDataset + ) { + return self::getAnnotatedDatasetNameTemplate()->render([ + 'project' => $project, + 'dataset' => $dataset, + 'annotated_dataset' => $annotatedDataset, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a dataset + * resource. + * + * @param string $project + * @param string $location + * @param string $dataset + * + * @return string The formatted dataset resource. + */ + public static function datasetName($project, $location, $dataset) + { + return self::getDatasetNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'dataset' => $dataset, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a location * resource. @@ -193,11 +290,53 @@ public static function locationName($project, $location) ]); } + /** + * Formats a string containing the fully-qualified path to represent a model + * resource. + * + * @param string $project + * @param string $location + * @param string $model + * + * @return string The formatted model resource. + */ + public static function modelName($project, $location, $model) + { + return self::getModelNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'model' => $model, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a version + * resource. + * + * @param string $project + * @param string $model + * @param string $version + * + * @return string The formatted version resource. + */ + public static function versionName($project, $model, $version) + { + return self::getVersionNameTemplate()->render([ + 'project' => $project, + 'model' => $model, + 'version' => $version, + ]); + } + /** * Parses a formatted name string and returns an associative array of the components in the name. * The following name formats are supported: * Template: Pattern + * - annotatedDataset: projects/{project}/datasets/{dataset}/annotatedDatasets/{annotated_dataset} + * - dataset: projects/{project}/locations/{location}/datasets/{dataset} * - location: projects/{project}/locations/{location} + * - model: projects/{project}/locations/{location}/models/{model} + * - version: projects/{project}/models/{model}/versions/{version} * * The optional $template argument can be supplied to specify a particular pattern, * and must match one of the templates listed above. If no $template argument is diff --git a/AiPlatform/src/V1/Gapic/ModelServiceGapicClient.php b/AiPlatform/src/V1/Gapic/ModelServiceGapicClient.php index fffe477ccca0..c658b74f7f92 100644 --- a/AiPlatform/src/V1/Gapic/ModelServiceGapicClient.php +++ b/AiPlatform/src/V1/Gapic/ModelServiceGapicClient.php @@ -121,6 +121,8 @@ class ModelServiceGapicClient 'https://www.googleapis.com/auth/cloud-platform', ]; + private static $endpointNameTemplate; + private static $locationNameTemplate; private static $modelNameTemplate; @@ -129,6 +131,10 @@ class ModelServiceGapicClient private static $modelEvaluationSliceNameTemplate; + private static $projectLocationEndpointNameTemplate; + + private static $projectLocationPublisherModelNameTemplate; + private static $trainingPipelineNameTemplate; private static $pathTemplateMap; @@ -160,6 +166,17 @@ private static function getClientDefaults() ]; } + private static function getEndpointNameTemplate() + { + if (self::$endpointNameTemplate == null) { + self::$endpointNameTemplate = new PathTemplate( + 'projects/{project}/locations/{location}/endpoints/{endpoint}' + ); + } + + return self::$endpointNameTemplate; + } + private static function getLocationNameTemplate() { if (self::$locationNameTemplate == null) { @@ -204,6 +221,28 @@ private static function getModelEvaluationSliceNameTemplate() return self::$modelEvaluationSliceNameTemplate; } + private static function getProjectLocationEndpointNameTemplate() + { + if (self::$projectLocationEndpointNameTemplate == null) { + self::$projectLocationEndpointNameTemplate = new PathTemplate( + 'projects/{project}/locations/{location}/endpoints/{endpoint}' + ); + } + + return self::$projectLocationEndpointNameTemplate; + } + + private static function getProjectLocationPublisherModelNameTemplate() + { + if (self::$projectLocationPublisherModelNameTemplate == null) { + self::$projectLocationPublisherModelNameTemplate = new PathTemplate( + 'projects/{project}/locations/{location}/publishers/{publisher}/models/{model}' + ); + } + + return self::$projectLocationPublisherModelNameTemplate; + } + private static function getTrainingPipelineNameTemplate() { if (self::$trainingPipelineNameTemplate == null) { @@ -219,10 +258,13 @@ private static function getPathTemplateMap() { if (self::$pathTemplateMap == null) { self::$pathTemplateMap = [ + 'endpoint' => self::getEndpointNameTemplate(), 'location' => self::getLocationNameTemplate(), 'model' => self::getModelNameTemplate(), 'modelEvaluation' => self::getModelEvaluationNameTemplate(), 'modelEvaluationSlice' => self::getModelEvaluationSliceNameTemplate(), + 'projectLocationEndpoint' => self::getProjectLocationEndpointNameTemplate(), + 'projectLocationPublisherModel' => self::getProjectLocationPublisherModelNameTemplate(), 'trainingPipeline' => self::getTrainingPipelineNameTemplate(), ]; } @@ -230,6 +272,25 @@ private static function getPathTemplateMap() return self::$pathTemplateMap; } + /** + * Formats a string containing the fully-qualified path to represent a endpoint + * resource. + * + * @param string $project + * @param string $location + * @param string $endpoint + * + * @return string The formatted endpoint resource. + */ + public static function endpointName($project, $location, $endpoint) + { + return self::getEndpointNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'endpoint' => $endpoint, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a location * resource. @@ -319,6 +380,53 @@ public static function modelEvaluationSliceName( ]); } + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_endpoint resource. + * + * @param string $project + * @param string $location + * @param string $endpoint + * + * @return string The formatted project_location_endpoint resource. + */ + public static function projectLocationEndpointName( + $project, + $location, + $endpoint + ) { + return self::getProjectLocationEndpointNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'endpoint' => $endpoint, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_publisher_model resource. + * + * @param string $project + * @param string $location + * @param string $publisher + * @param string $model + * + * @return string The formatted project_location_publisher_model resource. + */ + public static function projectLocationPublisherModelName( + $project, + $location, + $publisher, + $model + ) { + return self::getProjectLocationPublisherModelNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'publisher' => $publisher, + 'model' => $model, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a * training_pipeline resource. @@ -345,10 +453,13 @@ public static function trainingPipelineName( * Parses a formatted name string and returns an associative array of the components in the name. * The following name formats are supported: * Template: Pattern + * - endpoint: projects/{project}/locations/{location}/endpoints/{endpoint} * - location: projects/{project}/locations/{location} * - model: projects/{project}/locations/{location}/models/{model} * - modelEvaluation: projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation} * - modelEvaluationSlice: projects/{project}/locations/{location}/models/{model}/evaluations/{evaluation}/slices/{slice} + * - projectLocationEndpoint: projects/{project}/locations/{location}/endpoints/{endpoint} + * - projectLocationPublisherModel: projects/{project}/locations/{location}/publishers/{publisher}/models/{model} * - trainingPipeline: projects/{project}/locations/{location}/trainingPipelines/{training_pipeline} * * The optional $template argument can be supplied to specify a particular pattern, diff --git a/AiPlatform/src/V1/Gapic/PipelineServiceGapicClient.php b/AiPlatform/src/V1/Gapic/PipelineServiceGapicClient.php index 1ca0207c1b96..8f5424501b78 100644 --- a/AiPlatform/src/V1/Gapic/PipelineServiceGapicClient.php +++ b/AiPlatform/src/V1/Gapic/PipelineServiceGapicClient.php @@ -108,12 +108,24 @@ class PipelineServiceGapicClient 'https://www.googleapis.com/auth/cloud-platform', ]; + private static $contextNameTemplate; + + private static $customJobNameTemplate; + + private static $endpointNameTemplate; + private static $locationNameTemplate; + private static $modelNameTemplate; + private static $networkNameTemplate; private static $pipelineJobNameTemplate; + private static $projectLocationEndpointNameTemplate; + + private static $projectLocationPublisherModelNameTemplate; + private static $trainingPipelineNameTemplate; private static $pathTemplateMap; @@ -146,6 +158,39 @@ private static function getClientDefaults() ]; } + private static function getContextNameTemplate() + { + if (self::$contextNameTemplate == null) { + self::$contextNameTemplate = new PathTemplate( + 'projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context}' + ); + } + + return self::$contextNameTemplate; + } + + private static function getCustomJobNameTemplate() + { + if (self::$customJobNameTemplate == null) { + self::$customJobNameTemplate = new PathTemplate( + 'projects/{project}/locations/{location}/customJobs/{custom_job}' + ); + } + + return self::$customJobNameTemplate; + } + + private static function getEndpointNameTemplate() + { + if (self::$endpointNameTemplate == null) { + self::$endpointNameTemplate = new PathTemplate( + 'projects/{project}/locations/{location}/endpoints/{endpoint}' + ); + } + + return self::$endpointNameTemplate; + } + private static function getLocationNameTemplate() { if (self::$locationNameTemplate == null) { @@ -157,6 +202,17 @@ private static function getLocationNameTemplate() return self::$locationNameTemplate; } + private static function getModelNameTemplate() + { + if (self::$modelNameTemplate == null) { + self::$modelNameTemplate = new PathTemplate( + 'projects/{project}/locations/{location}/models/{model}' + ); + } + + return self::$modelNameTemplate; + } + private static function getNetworkNameTemplate() { if (self::$networkNameTemplate == null) { @@ -179,6 +235,28 @@ private static function getPipelineJobNameTemplate() return self::$pipelineJobNameTemplate; } + private static function getProjectLocationEndpointNameTemplate() + { + if (self::$projectLocationEndpointNameTemplate == null) { + self::$projectLocationEndpointNameTemplate = new PathTemplate( + 'projects/{project}/locations/{location}/endpoints/{endpoint}' + ); + } + + return self::$projectLocationEndpointNameTemplate; + } + + private static function getProjectLocationPublisherModelNameTemplate() + { + if (self::$projectLocationPublisherModelNameTemplate == null) { + self::$projectLocationPublisherModelNameTemplate = new PathTemplate( + 'projects/{project}/locations/{location}/publishers/{publisher}/models/{model}' + ); + } + + return self::$projectLocationPublisherModelNameTemplate; + } + private static function getTrainingPipelineNameTemplate() { if (self::$trainingPipelineNameTemplate == null) { @@ -194,9 +272,15 @@ private static function getPathTemplateMap() { if (self::$pathTemplateMap == null) { self::$pathTemplateMap = [ + 'context' => self::getContextNameTemplate(), + 'customJob' => self::getCustomJobNameTemplate(), + 'endpoint' => self::getEndpointNameTemplate(), 'location' => self::getLocationNameTemplate(), + 'model' => self::getModelNameTemplate(), 'network' => self::getNetworkNameTemplate(), 'pipelineJob' => self::getPipelineJobNameTemplate(), + 'projectLocationEndpoint' => self::getProjectLocationEndpointNameTemplate(), + 'projectLocationPublisherModel' => self::getProjectLocationPublisherModelNameTemplate(), 'trainingPipeline' => self::getTrainingPipelineNameTemplate(), ]; } @@ -204,6 +288,69 @@ private static function getPathTemplateMap() return self::$pathTemplateMap; } + /** + * Formats a string containing the fully-qualified path to represent a context + * resource. + * + * @param string $project + * @param string $location + * @param string $metadataStore + * @param string $context + * + * @return string The formatted context resource. + */ + public static function contextName( + $project, + $location, + $metadataStore, + $context + ) { + return self::getContextNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'metadata_store' => $metadataStore, + 'context' => $context, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a custom_job + * resource. + * + * @param string $project + * @param string $location + * @param string $customJob + * + * @return string The formatted custom_job resource. + */ + public static function customJobName($project, $location, $customJob) + { + return self::getCustomJobNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'custom_job' => $customJob, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a endpoint + * resource. + * + * @param string $project + * @param string $location + * @param string $endpoint + * + * @return string The formatted endpoint resource. + */ + public static function endpointName($project, $location, $endpoint) + { + return self::getEndpointNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'endpoint' => $endpoint, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a location * resource. @@ -221,6 +368,25 @@ public static function locationName($project, $location) ]); } + /** + * Formats a string containing the fully-qualified path to represent a model + * resource. + * + * @param string $project + * @param string $location + * @param string $model + * + * @return string The formatted model resource. + */ + public static function modelName($project, $location, $model) + { + return self::getModelNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'model' => $model, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a network * resource. @@ -257,6 +423,53 @@ public static function pipelineJobName($project, $location, $pipelineJob) ]); } + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_endpoint resource. + * + * @param string $project + * @param string $location + * @param string $endpoint + * + * @return string The formatted project_location_endpoint resource. + */ + public static function projectLocationEndpointName( + $project, + $location, + $endpoint + ) { + return self::getProjectLocationEndpointNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'endpoint' => $endpoint, + ]); + } + + /** + * Formats a string containing the fully-qualified path to represent a + * project_location_publisher_model resource. + * + * @param string $project + * @param string $location + * @param string $publisher + * @param string $model + * + * @return string The formatted project_location_publisher_model resource. + */ + public static function projectLocationPublisherModelName( + $project, + $location, + $publisher, + $model + ) { + return self::getProjectLocationPublisherModelNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'publisher' => $publisher, + 'model' => $model, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a * training_pipeline resource. @@ -283,9 +496,15 @@ public static function trainingPipelineName( * Parses a formatted name string and returns an associative array of the components in the name. * The following name formats are supported: * Template: Pattern + * - context: projects/{project}/locations/{location}/metadataStores/{metadata_store}/contexts/{context} + * - customJob: projects/{project}/locations/{location}/customJobs/{custom_job} + * - endpoint: projects/{project}/locations/{location}/endpoints/{endpoint} * - location: projects/{project}/locations/{location} + * - model: projects/{project}/locations/{location}/models/{model} * - network: projects/{project}/global/networks/{network} * - pipelineJob: projects/{project}/locations/{location}/pipelineJobs/{pipeline_job} + * - projectLocationEndpoint: projects/{project}/locations/{location}/endpoints/{endpoint} + * - projectLocationPublisherModel: projects/{project}/locations/{location}/publishers/{publisher}/models/{model} * - trainingPipeline: projects/{project}/locations/{location}/trainingPipelines/{training_pipeline} * * The optional $template argument can be supplied to specify a particular pattern, diff --git a/AiPlatform/src/V1/resources/dataset_service_descriptor_config.php b/AiPlatform/src/V1/resources/dataset_service_descriptor_config.php index c36765af8fea..e59e199c7cb4 100644 --- a/AiPlatform/src/V1/resources/dataset_service_descriptor_config.php +++ b/AiPlatform/src/V1/resources/dataset_service_descriptor_config.php @@ -93,6 +93,9 @@ 'resourcesGetMethod' => 'getDataItemViews', ], ], + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -102,6 +105,16 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'GetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', ], ], ], diff --git a/AiPlatform/src/V1/resources/endpoint_service_descriptor_config.php b/AiPlatform/src/V1/resources/endpoint_service_descriptor_config.php index b490ce087038..efd980c0d317 100644 --- a/AiPlatform/src/V1/resources/endpoint_service_descriptor_config.php +++ b/AiPlatform/src/V1/resources/endpoint_service_descriptor_config.php @@ -63,6 +63,9 @@ 'resourcesGetMethod' => 'getEndpoints', ], ], + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -72,6 +75,16 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'GetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', ], ], ], diff --git a/AiPlatform/src/V1/resources/featurestore_online_serving_service_descriptor_config.php b/AiPlatform/src/V1/resources/featurestore_online_serving_service_descriptor_config.php index 39acabfeb5dd..1f3ce416b977 100644 --- a/AiPlatform/src/V1/resources/featurestore_online_serving_service_descriptor_config.php +++ b/AiPlatform/src/V1/resources/featurestore_online_serving_service_descriptor_config.php @@ -8,6 +8,9 @@ 'grpcStreamingType' => 'ServerStreaming', ], ], + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -17,6 +20,16 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'GetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', ], ], ], diff --git a/AiPlatform/src/V1/resources/featurestore_service_descriptor_config.php b/AiPlatform/src/V1/resources/featurestore_service_descriptor_config.php index 5c103dd58e94..c934a51ccd2c 100644 --- a/AiPlatform/src/V1/resources/featurestore_service_descriptor_config.php +++ b/AiPlatform/src/V1/resources/featurestore_service_descriptor_config.php @@ -163,6 +163,9 @@ 'resourcesGetMethod' => 'getFeatures', ], ], + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -172,6 +175,16 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'GetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', ], ], ], diff --git a/AiPlatform/src/V1/resources/index_endpoint_service_descriptor_config.php b/AiPlatform/src/V1/resources/index_endpoint_service_descriptor_config.php index 9051cca9bde9..b577ae252c76 100644 --- a/AiPlatform/src/V1/resources/index_endpoint_service_descriptor_config.php +++ b/AiPlatform/src/V1/resources/index_endpoint_service_descriptor_config.php @@ -63,6 +63,9 @@ 'resourcesGetMethod' => 'getIndexEndpoints', ], ], + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -72,6 +75,16 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'GetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', ], ], ], diff --git a/AiPlatform/src/V1/resources/index_service_descriptor_config.php b/AiPlatform/src/V1/resources/index_service_descriptor_config.php index 22a4687fa4cc..32495aadd00c 100644 --- a/AiPlatform/src/V1/resources/index_service_descriptor_config.php +++ b/AiPlatform/src/V1/resources/index_service_descriptor_config.php @@ -43,6 +43,9 @@ 'resourcesGetMethod' => 'getIndexes', ], ], + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -52,6 +55,16 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'GetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', ], ], ], diff --git a/AiPlatform/src/V1/resources/job_service_descriptor_config.php b/AiPlatform/src/V1/resources/job_service_descriptor_config.php index c0467f2e581c..c8768293cee8 100644 --- a/AiPlatform/src/V1/resources/job_service_descriptor_config.php +++ b/AiPlatform/src/V1/resources/job_service_descriptor_config.php @@ -153,6 +153,9 @@ 'resourcesGetMethod' => 'getMonitoringStats', ], ], + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -162,6 +165,16 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'GetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', ], ], ], diff --git a/AiPlatform/src/V1/resources/metadata_service_descriptor_config.php b/AiPlatform/src/V1/resources/metadata_service_descriptor_config.php index 8cfc5b5410d2..bdae7750cb32 100644 --- a/AiPlatform/src/V1/resources/metadata_service_descriptor_config.php +++ b/AiPlatform/src/V1/resources/metadata_service_descriptor_config.php @@ -133,6 +133,9 @@ 'resourcesGetMethod' => 'getMetadataStores', ], ], + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -142,6 +145,16 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'GetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', ], ], ], diff --git a/AiPlatform/src/V1/resources/migration_service_descriptor_config.php b/AiPlatform/src/V1/resources/migration_service_descriptor_config.php index 3d2be1267278..c6b4e21e6ed9 100644 --- a/AiPlatform/src/V1/resources/migration_service_descriptor_config.php +++ b/AiPlatform/src/V1/resources/migration_service_descriptor_config.php @@ -23,6 +23,9 @@ 'resourcesGetMethod' => 'getMigratableResources', ], ], + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -32,6 +35,16 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'GetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', ], ], ], diff --git a/AiPlatform/src/V1/resources/model_service_descriptor_config.php b/AiPlatform/src/V1/resources/model_service_descriptor_config.php index 808252231834..693d424b85a3 100644 --- a/AiPlatform/src/V1/resources/model_service_descriptor_config.php +++ b/AiPlatform/src/V1/resources/model_service_descriptor_config.php @@ -93,6 +93,9 @@ 'resourcesGetMethod' => 'getModels', ], ], + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -102,6 +105,16 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'GetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', ], ], ], diff --git a/AiPlatform/src/V1/resources/pipeline_service_descriptor_config.php b/AiPlatform/src/V1/resources/pipeline_service_descriptor_config.php index 426c7bc39209..3e12d170a7cc 100644 --- a/AiPlatform/src/V1/resources/pipeline_service_descriptor_config.php +++ b/AiPlatform/src/V1/resources/pipeline_service_descriptor_config.php @@ -43,6 +43,9 @@ 'resourcesGetMethod' => 'getTrainingPipelines', ], ], + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -52,6 +55,16 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'GetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', ], ], ], diff --git a/AiPlatform/src/V1/resources/prediction_service_descriptor_config.php b/AiPlatform/src/V1/resources/prediction_service_descriptor_config.php index 6eef9343a74a..365ffa3dc16c 100644 --- a/AiPlatform/src/V1/resources/prediction_service_descriptor_config.php +++ b/AiPlatform/src/V1/resources/prediction_service_descriptor_config.php @@ -3,6 +3,9 @@ return [ 'interfaces' => [ 'google.cloud.aiplatform.v1.PredictionService' => [ + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -12,6 +15,16 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'GetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', ], ], ], diff --git a/AiPlatform/src/V1/resources/specialist_pool_service_descriptor_config.php b/AiPlatform/src/V1/resources/specialist_pool_service_descriptor_config.php index 650ce9b1566c..46d3c3db0e57 100644 --- a/AiPlatform/src/V1/resources/specialist_pool_service_descriptor_config.php +++ b/AiPlatform/src/V1/resources/specialist_pool_service_descriptor_config.php @@ -43,6 +43,9 @@ 'resourcesGetMethod' => 'getSpecialistPools', ], ], + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -52,6 +55,16 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'GetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', ], ], ], diff --git a/AiPlatform/src/V1/resources/tensorboard_service_descriptor_config.php b/AiPlatform/src/V1/resources/tensorboard_service_descriptor_config.php index 75c7abe50ff7..762826543b7c 100644 --- a/AiPlatform/src/V1/resources/tensorboard_service_descriptor_config.php +++ b/AiPlatform/src/V1/resources/tensorboard_service_descriptor_config.php @@ -118,6 +118,9 @@ 'grpcStreamingType' => 'ServerStreaming', ], ], + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -127,6 +130,16 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'GetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', ], ], ], diff --git a/AiPlatform/src/V1/resources/vizier_service_descriptor_config.php b/AiPlatform/src/V1/resources/vizier_service_descriptor_config.php index af056d4c1b5e..d2094dd3e671 100644 --- a/AiPlatform/src/V1/resources/vizier_service_descriptor_config.php +++ b/AiPlatform/src/V1/resources/vizier_service_descriptor_config.php @@ -43,6 +43,9 @@ 'resourcesGetMethod' => 'getTrials', ], ], + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -52,6 +55,16 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'GetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', ], ], ], diff --git a/AlloyDb/samples/V1/AlloyDBAdminClient/batch_create_instances.php b/AlloyDb/samples/V1/AlloyDBAdminClient/batch_create_instances.php index 54b7f16ec6a5..b2d9f2620318 100644 --- a/AlloyDb/samples/V1/AlloyDBAdminClient/batch_create_instances.php +++ b/AlloyDb/samples/V1/AlloyDBAdminClient/batch_create_instances.php @@ -62,7 +62,7 @@ function batch_create_instances_sample( // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $requestsCreateInstanceRequestsInstance = (new Instance()) ->setInstanceType($requestsCreateInstanceRequestsInstanceInstanceType); $createInstanceRequest = (new CreateInstanceRequest()) diff --git a/AlloyDb/samples/V1/AlloyDBAdminClient/create_backup.php b/AlloyDb/samples/V1/AlloyDBAdminClient/create_backup.php index eac36281b2e0..49227a0e9aaa 100644 --- a/AlloyDb/samples/V1/AlloyDBAdminClient/create_backup.php +++ b/AlloyDb/samples/V1/AlloyDBAdminClient/create_backup.php @@ -47,7 +47,7 @@ function create_backup_sample( // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $backup = (new Backup()) ->setClusterName($formattedBackupClusterName); diff --git a/AlloyDb/samples/V1/AlloyDBAdminClient/create_cluster.php b/AlloyDb/samples/V1/AlloyDBAdminClient/create_cluster.php index 811484afd21c..a8a959eab75c 100644 --- a/AlloyDb/samples/V1/AlloyDBAdminClient/create_cluster.php +++ b/AlloyDb/samples/V1/AlloyDBAdminClient/create_cluster.php @@ -51,7 +51,7 @@ function create_cluster_sample( // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $cluster = (new Cluster()) ->setNetwork($formattedClusterNetwork); diff --git a/AlloyDb/samples/V1/AlloyDBAdminClient/create_instance.php b/AlloyDb/samples/V1/AlloyDBAdminClient/create_instance.php index f9ce6db41942..eca737238557 100644 --- a/AlloyDb/samples/V1/AlloyDBAdminClient/create_instance.php +++ b/AlloyDb/samples/V1/AlloyDBAdminClient/create_instance.php @@ -47,7 +47,7 @@ function create_instance_sample( // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $instance = (new Instance()) ->setInstanceType($instanceInstanceType); diff --git a/AlloyDb/samples/V1/AlloyDBAdminClient/restore_cluster.php b/AlloyDb/samples/V1/AlloyDBAdminClient/restore_cluster.php index 6b4ba9403eaf..4c0995d15ad3 100644 --- a/AlloyDb/samples/V1/AlloyDBAdminClient/restore_cluster.php +++ b/AlloyDb/samples/V1/AlloyDBAdminClient/restore_cluster.php @@ -53,7 +53,7 @@ function restore_cluster_sample( // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $cluster = (new Cluster()) ->setNetwork($formattedClusterNetwork); diff --git a/AlloyDb/samples/V1/AlloyDBAdminClient/update_backup.php b/AlloyDb/samples/V1/AlloyDBAdminClient/update_backup.php index ac9ff3996dfb..9e4d00fcec22 100644 --- a/AlloyDb/samples/V1/AlloyDBAdminClient/update_backup.php +++ b/AlloyDb/samples/V1/AlloyDBAdminClient/update_backup.php @@ -41,7 +41,7 @@ function update_backup_sample(string $formattedBackupClusterName): void // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $backup = (new Backup()) ->setClusterName($formattedBackupClusterName); diff --git a/AlloyDb/samples/V1/AlloyDBAdminClient/update_cluster.php b/AlloyDb/samples/V1/AlloyDBAdminClient/update_cluster.php index 698b13823664..f24c658eaf76 100644 --- a/AlloyDb/samples/V1/AlloyDBAdminClient/update_cluster.php +++ b/AlloyDb/samples/V1/AlloyDBAdminClient/update_cluster.php @@ -44,7 +44,7 @@ function update_cluster_sample(string $formattedClusterNetwork): void // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $cluster = (new Cluster()) ->setNetwork($formattedClusterNetwork); diff --git a/AlloyDb/samples/V1/AlloyDBAdminClient/update_instance.php b/AlloyDb/samples/V1/AlloyDBAdminClient/update_instance.php index 52b8835fea86..f6aa55d36878 100644 --- a/AlloyDb/samples/V1/AlloyDBAdminClient/update_instance.php +++ b/AlloyDb/samples/V1/AlloyDBAdminClient/update_instance.php @@ -40,7 +40,7 @@ function update_instance_sample(int $instanceInstanceType): void // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $instance = (new Instance()) ->setInstanceType($instanceInstanceType); diff --git a/AlloyDb/samples/V1alpha/AlloyDBAdminClient/batch_create_instances.php b/AlloyDb/samples/V1alpha/AlloyDBAdminClient/batch_create_instances.php index 6eee1e0b5d34..0e76523194b8 100644 --- a/AlloyDb/samples/V1alpha/AlloyDBAdminClient/batch_create_instances.php +++ b/AlloyDb/samples/V1alpha/AlloyDBAdminClient/batch_create_instances.php @@ -62,7 +62,7 @@ function batch_create_instances_sample( // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $requestsCreateInstanceRequestsInstance = (new Instance()) ->setInstanceType($requestsCreateInstanceRequestsInstanceInstanceType); $createInstanceRequest = (new CreateInstanceRequest()) diff --git a/AlloyDb/samples/V1alpha/AlloyDBAdminClient/create_backup.php b/AlloyDb/samples/V1alpha/AlloyDBAdminClient/create_backup.php index 7d76db9a710e..2242a8957506 100644 --- a/AlloyDb/samples/V1alpha/AlloyDBAdminClient/create_backup.php +++ b/AlloyDb/samples/V1alpha/AlloyDBAdminClient/create_backup.php @@ -47,7 +47,7 @@ function create_backup_sample( // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $backup = (new Backup()) ->setClusterName($formattedBackupClusterName); diff --git a/AlloyDb/samples/V1alpha/AlloyDBAdminClient/create_cluster.php b/AlloyDb/samples/V1alpha/AlloyDBAdminClient/create_cluster.php index 037930a744b3..068a2c61795d 100644 --- a/AlloyDb/samples/V1alpha/AlloyDBAdminClient/create_cluster.php +++ b/AlloyDb/samples/V1alpha/AlloyDBAdminClient/create_cluster.php @@ -51,7 +51,7 @@ function create_cluster_sample( // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $cluster = (new Cluster()) ->setNetwork($formattedClusterNetwork); diff --git a/AlloyDb/samples/V1alpha/AlloyDBAdminClient/create_instance.php b/AlloyDb/samples/V1alpha/AlloyDBAdminClient/create_instance.php index e6fe0a81e759..56be1d4f9d8e 100644 --- a/AlloyDb/samples/V1alpha/AlloyDBAdminClient/create_instance.php +++ b/AlloyDb/samples/V1alpha/AlloyDBAdminClient/create_instance.php @@ -47,7 +47,7 @@ function create_instance_sample( // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $instance = (new Instance()) ->setInstanceType($instanceInstanceType); diff --git a/AlloyDb/samples/V1alpha/AlloyDBAdminClient/create_secondary_cluster.php b/AlloyDb/samples/V1alpha/AlloyDBAdminClient/create_secondary_cluster.php index c100e26b234d..78f0484f23e9 100644 --- a/AlloyDb/samples/V1alpha/AlloyDBAdminClient/create_secondary_cluster.php +++ b/AlloyDb/samples/V1alpha/AlloyDBAdminClient/create_secondary_cluster.php @@ -52,7 +52,7 @@ function create_secondary_cluster_sample( // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $cluster = (new Cluster()) ->setNetwork($formattedClusterNetwork); diff --git a/AlloyDb/samples/V1alpha/AlloyDBAdminClient/create_secondary_instance.php b/AlloyDb/samples/V1alpha/AlloyDBAdminClient/create_secondary_instance.php index 3e820205bdae..c69bb535783b 100644 --- a/AlloyDb/samples/V1alpha/AlloyDBAdminClient/create_secondary_instance.php +++ b/AlloyDb/samples/V1alpha/AlloyDBAdminClient/create_secondary_instance.php @@ -47,7 +47,7 @@ function create_secondary_instance_sample( // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $instance = (new Instance()) ->setInstanceType($instanceInstanceType); diff --git a/AlloyDb/samples/V1alpha/AlloyDBAdminClient/restore_cluster.php b/AlloyDb/samples/V1alpha/AlloyDBAdminClient/restore_cluster.php index 42d54e3263df..bdcf92b0672b 100644 --- a/AlloyDb/samples/V1alpha/AlloyDBAdminClient/restore_cluster.php +++ b/AlloyDb/samples/V1alpha/AlloyDBAdminClient/restore_cluster.php @@ -53,7 +53,7 @@ function restore_cluster_sample( // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $cluster = (new Cluster()) ->setNetwork($formattedClusterNetwork); diff --git a/AlloyDb/samples/V1alpha/AlloyDBAdminClient/update_backup.php b/AlloyDb/samples/V1alpha/AlloyDBAdminClient/update_backup.php index 6a7fc040041f..9bfd5dc6d845 100644 --- a/AlloyDb/samples/V1alpha/AlloyDBAdminClient/update_backup.php +++ b/AlloyDb/samples/V1alpha/AlloyDBAdminClient/update_backup.php @@ -41,7 +41,7 @@ function update_backup_sample(string $formattedBackupClusterName): void // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $backup = (new Backup()) ->setClusterName($formattedBackupClusterName); diff --git a/AlloyDb/samples/V1alpha/AlloyDBAdminClient/update_cluster.php b/AlloyDb/samples/V1alpha/AlloyDBAdminClient/update_cluster.php index 7c6afa024438..f4a1155a92ca 100644 --- a/AlloyDb/samples/V1alpha/AlloyDBAdminClient/update_cluster.php +++ b/AlloyDb/samples/V1alpha/AlloyDBAdminClient/update_cluster.php @@ -44,7 +44,7 @@ function update_cluster_sample(string $formattedClusterNetwork): void // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $cluster = (new Cluster()) ->setNetwork($formattedClusterNetwork); diff --git a/AlloyDb/samples/V1alpha/AlloyDBAdminClient/update_instance.php b/AlloyDb/samples/V1alpha/AlloyDBAdminClient/update_instance.php index b9093e91c94c..19500409ec35 100644 --- a/AlloyDb/samples/V1alpha/AlloyDBAdminClient/update_instance.php +++ b/AlloyDb/samples/V1alpha/AlloyDBAdminClient/update_instance.php @@ -40,7 +40,7 @@ function update_instance_sample(int $instanceInstanceType): void // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $instance = (new Instance()) ->setInstanceType($instanceInstanceType); diff --git a/AlloyDb/samples/V1beta/AlloyDBAdminClient/batch_create_instances.php b/AlloyDb/samples/V1beta/AlloyDBAdminClient/batch_create_instances.php index 52e84d7f74f0..7a6352ca4338 100644 --- a/AlloyDb/samples/V1beta/AlloyDBAdminClient/batch_create_instances.php +++ b/AlloyDb/samples/V1beta/AlloyDBAdminClient/batch_create_instances.php @@ -62,7 +62,7 @@ function batch_create_instances_sample( // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $requestsCreateInstanceRequestsInstance = (new Instance()) ->setInstanceType($requestsCreateInstanceRequestsInstanceInstanceType); $createInstanceRequest = (new CreateInstanceRequest()) diff --git a/AlloyDb/samples/V1beta/AlloyDBAdminClient/create_backup.php b/AlloyDb/samples/V1beta/AlloyDBAdminClient/create_backup.php index 3fd91fd91d5d..770daed88fc8 100644 --- a/AlloyDb/samples/V1beta/AlloyDBAdminClient/create_backup.php +++ b/AlloyDb/samples/V1beta/AlloyDBAdminClient/create_backup.php @@ -47,7 +47,7 @@ function create_backup_sample( // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $backup = (new Backup()) ->setClusterName($formattedBackupClusterName); diff --git a/AlloyDb/samples/V1beta/AlloyDBAdminClient/create_cluster.php b/AlloyDb/samples/V1beta/AlloyDBAdminClient/create_cluster.php index 0d197e94d3ba..b0ad9644a342 100644 --- a/AlloyDb/samples/V1beta/AlloyDBAdminClient/create_cluster.php +++ b/AlloyDb/samples/V1beta/AlloyDBAdminClient/create_cluster.php @@ -51,7 +51,7 @@ function create_cluster_sample( // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $cluster = (new Cluster()) ->setNetwork($formattedClusterNetwork); diff --git a/AlloyDb/samples/V1beta/AlloyDBAdminClient/create_instance.php b/AlloyDb/samples/V1beta/AlloyDBAdminClient/create_instance.php index 32186e925387..864273d93873 100644 --- a/AlloyDb/samples/V1beta/AlloyDBAdminClient/create_instance.php +++ b/AlloyDb/samples/V1beta/AlloyDBAdminClient/create_instance.php @@ -47,7 +47,7 @@ function create_instance_sample( // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $instance = (new Instance()) ->setInstanceType($instanceInstanceType); diff --git a/AlloyDb/samples/V1beta/AlloyDBAdminClient/create_secondary_cluster.php b/AlloyDb/samples/V1beta/AlloyDBAdminClient/create_secondary_cluster.php index e7126f7b63bd..486a47429057 100644 --- a/AlloyDb/samples/V1beta/AlloyDBAdminClient/create_secondary_cluster.php +++ b/AlloyDb/samples/V1beta/AlloyDBAdminClient/create_secondary_cluster.php @@ -52,7 +52,7 @@ function create_secondary_cluster_sample( // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $cluster = (new Cluster()) ->setNetwork($formattedClusterNetwork); diff --git a/AlloyDb/samples/V1beta/AlloyDBAdminClient/create_secondary_instance.php b/AlloyDb/samples/V1beta/AlloyDBAdminClient/create_secondary_instance.php index 2bf313b63d53..b72de63a0f72 100644 --- a/AlloyDb/samples/V1beta/AlloyDBAdminClient/create_secondary_instance.php +++ b/AlloyDb/samples/V1beta/AlloyDBAdminClient/create_secondary_instance.php @@ -47,7 +47,7 @@ function create_secondary_instance_sample( // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $instance = (new Instance()) ->setInstanceType($instanceInstanceType); diff --git a/AlloyDb/samples/V1beta/AlloyDBAdminClient/restore_cluster.php b/AlloyDb/samples/V1beta/AlloyDBAdminClient/restore_cluster.php index 2c38f3b238bf..ec58413a46f9 100644 --- a/AlloyDb/samples/V1beta/AlloyDBAdminClient/restore_cluster.php +++ b/AlloyDb/samples/V1beta/AlloyDBAdminClient/restore_cluster.php @@ -53,7 +53,7 @@ function restore_cluster_sample( // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $cluster = (new Cluster()) ->setNetwork($formattedClusterNetwork); diff --git a/AlloyDb/samples/V1beta/AlloyDBAdminClient/update_backup.php b/AlloyDb/samples/V1beta/AlloyDBAdminClient/update_backup.php index c2f5175ee93a..ba1f897fe7da 100644 --- a/AlloyDb/samples/V1beta/AlloyDBAdminClient/update_backup.php +++ b/AlloyDb/samples/V1beta/AlloyDBAdminClient/update_backup.php @@ -41,7 +41,7 @@ function update_backup_sample(string $formattedBackupClusterName): void // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $backup = (new Backup()) ->setClusterName($formattedBackupClusterName); diff --git a/AlloyDb/samples/V1beta/AlloyDBAdminClient/update_cluster.php b/AlloyDb/samples/V1beta/AlloyDBAdminClient/update_cluster.php index 4f1ce12f31fa..24b9c82c6dc2 100644 --- a/AlloyDb/samples/V1beta/AlloyDBAdminClient/update_cluster.php +++ b/AlloyDb/samples/V1beta/AlloyDBAdminClient/update_cluster.php @@ -44,7 +44,7 @@ function update_cluster_sample(string $formattedClusterNetwork): void // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $cluster = (new Cluster()) ->setNetwork($formattedClusterNetwork); diff --git a/AlloyDb/samples/V1beta/AlloyDBAdminClient/update_instance.php b/AlloyDb/samples/V1beta/AlloyDBAdminClient/update_instance.php index e78454363359..f8c9c648afd4 100644 --- a/AlloyDb/samples/V1beta/AlloyDBAdminClient/update_instance.php +++ b/AlloyDb/samples/V1beta/AlloyDBAdminClient/update_instance.php @@ -40,7 +40,7 @@ function update_instance_sample(int $instanceInstanceType): void // Create a client. $alloyDBAdminClient = new AlloyDBAdminClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $instance = (new Instance()) ->setInstanceType($instanceInstanceType); diff --git a/AlloyDb/src/V1/Gapic/AlloyDBAdminGapicClient.php b/AlloyDb/src/V1/Gapic/AlloyDBAdminGapicClient.php index 5bec22d699fe..7c4e06d5556d 100644 --- a/AlloyDb/src/V1/Gapic/AlloyDBAdminGapicClient.php +++ b/AlloyDb/src/V1/Gapic/AlloyDBAdminGapicClient.php @@ -144,6 +144,8 @@ class AlloyDBAdminGapicClient private static $clusterNameTemplate; + private static $cryptoKeyVersionNameTemplate; + private static $instanceNameTemplate; private static $locationNameTemplate; @@ -201,6 +203,17 @@ private static function getClusterNameTemplate() return self::$clusterNameTemplate; } + private static function getCryptoKeyVersionNameTemplate() + { + if (self::$cryptoKeyVersionNameTemplate == null) { + self::$cryptoKeyVersionNameTemplate = new PathTemplate( + 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}' + ); + } + + return self::$cryptoKeyVersionNameTemplate; + } + private static function getInstanceNameTemplate() { if (self::$instanceNameTemplate == null) { @@ -240,6 +253,7 @@ private static function getPathTemplateMap() self::$pathTemplateMap = [ 'backup' => self::getBackupNameTemplate(), 'cluster' => self::getClusterNameTemplate(), + 'cryptoKeyVersion' => self::getCryptoKeyVersionNameTemplate(), 'instance' => self::getInstanceNameTemplate(), 'location' => self::getLocationNameTemplate(), 'network' => self::getNetworkNameTemplate(), @@ -287,6 +301,34 @@ public static function clusterName($project, $location, $cluster) ]); } + /** + * Formats a string containing the fully-qualified path to represent a + * crypto_key_version resource. + * + * @param string $project + * @param string $location + * @param string $keyRing + * @param string $cryptoKey + * @param string $cryptoKeyVersion + * + * @return string The formatted crypto_key_version resource. + */ + public static function cryptoKeyVersionName( + $project, + $location, + $keyRing, + $cryptoKey, + $cryptoKeyVersion + ) { + return self::getCryptoKeyVersionNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'key_ring' => $keyRing, + 'crypto_key' => $cryptoKey, + 'crypto_key_version' => $cryptoKeyVersion, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a instance * resource. @@ -352,6 +394,7 @@ public static function networkName($project, $network) * Template: Pattern * - backup: projects/{project}/locations/{location}/backups/{backup} * - cluster: projects/{project}/locations/{location}/clusters/{cluster} + * - cryptoKeyVersion: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version} * - instance: projects/{project}/locations/{location}/clusters/{cluster}/instances/{instance} * - location: projects/{project}/locations/{location} * - network: projects/{project}/global/networks/{network} diff --git a/AlloyDb/src/V1/resources/alloy_db_admin_descriptor_config.php b/AlloyDb/src/V1/resources/alloy_db_admin_descriptor_config.php index d676bc8c3743..b86608f1be93 100644 --- a/AlloyDb/src/V1/resources/alloy_db_admin_descriptor_config.php +++ b/AlloyDb/src/V1/resources/alloy_db_admin_descriptor_config.php @@ -173,6 +173,9 @@ 'resourcesGetMethod' => 'getSupportedDatabaseFlags', ], ], + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -182,6 +185,7 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', ], ], ], diff --git a/AlloyDb/src/V1alpha/Gapic/AlloyDBAdminGapicClient.php b/AlloyDb/src/V1alpha/Gapic/AlloyDBAdminGapicClient.php index 92cba8713103..b4565fb0c59e 100644 --- a/AlloyDb/src/V1alpha/Gapic/AlloyDBAdminGapicClient.php +++ b/AlloyDb/src/V1alpha/Gapic/AlloyDBAdminGapicClient.php @@ -157,6 +157,8 @@ class AlloyDBAdminGapicClient private static $clusterNameTemplate; + private static $cryptoKeyVersionNameTemplate; + private static $instanceNameTemplate; private static $locationNameTemplate; @@ -214,6 +216,17 @@ private static function getClusterNameTemplate() return self::$clusterNameTemplate; } + private static function getCryptoKeyVersionNameTemplate() + { + if (self::$cryptoKeyVersionNameTemplate == null) { + self::$cryptoKeyVersionNameTemplate = new PathTemplate( + 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}' + ); + } + + return self::$cryptoKeyVersionNameTemplate; + } + private static function getInstanceNameTemplate() { if (self::$instanceNameTemplate == null) { @@ -253,6 +266,7 @@ private static function getPathTemplateMap() self::$pathTemplateMap = [ 'backup' => self::getBackupNameTemplate(), 'cluster' => self::getClusterNameTemplate(), + 'cryptoKeyVersion' => self::getCryptoKeyVersionNameTemplate(), 'instance' => self::getInstanceNameTemplate(), 'location' => self::getLocationNameTemplate(), 'network' => self::getNetworkNameTemplate(), @@ -304,6 +318,36 @@ public static function clusterName($project, $location, $cluster) ]); } + /** + * Formats a string containing the fully-qualified path to represent a + * crypto_key_version resource. + * + * @param string $project + * @param string $location + * @param string $keyRing + * @param string $cryptoKey + * @param string $cryptoKeyVersion + * + * @return string The formatted crypto_key_version resource. + * + * @experimental + */ + public static function cryptoKeyVersionName( + $project, + $location, + $keyRing, + $cryptoKey, + $cryptoKeyVersion + ) { + return self::getCryptoKeyVersionNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'key_ring' => $keyRing, + 'crypto_key' => $cryptoKey, + 'crypto_key_version' => $cryptoKeyVersion, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a instance * resource. @@ -375,6 +419,7 @@ public static function networkName($project, $network) * Template: Pattern * - backup: projects/{project}/locations/{location}/backups/{backup} * - cluster: projects/{project}/locations/{location}/clusters/{cluster} + * - cryptoKeyVersion: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version} * - instance: projects/{project}/locations/{location}/clusters/{cluster}/instances/{instance} * - location: projects/{project}/locations/{location} * - network: projects/{project}/global/networks/{network} diff --git a/AlloyDb/src/V1alpha/resources/alloy_db_admin_descriptor_config.php b/AlloyDb/src/V1alpha/resources/alloy_db_admin_descriptor_config.php index 120e043bb2ca..373879a8836f 100644 --- a/AlloyDb/src/V1alpha/resources/alloy_db_admin_descriptor_config.php +++ b/AlloyDb/src/V1alpha/resources/alloy_db_admin_descriptor_config.php @@ -203,6 +203,9 @@ 'resourcesGetMethod' => 'getSupportedDatabaseFlags', ], ], + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -212,6 +215,7 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', ], ], ], diff --git a/AlloyDb/src/V1beta/Gapic/AlloyDBAdminGapicClient.php b/AlloyDb/src/V1beta/Gapic/AlloyDBAdminGapicClient.php index 3a21857275e9..801d92392430 100644 --- a/AlloyDb/src/V1beta/Gapic/AlloyDBAdminGapicClient.php +++ b/AlloyDb/src/V1beta/Gapic/AlloyDBAdminGapicClient.php @@ -157,6 +157,8 @@ class AlloyDBAdminGapicClient private static $clusterNameTemplate; + private static $cryptoKeyVersionNameTemplate; + private static $instanceNameTemplate; private static $locationNameTemplate; @@ -214,6 +216,17 @@ private static function getClusterNameTemplate() return self::$clusterNameTemplate; } + private static function getCryptoKeyVersionNameTemplate() + { + if (self::$cryptoKeyVersionNameTemplate == null) { + self::$cryptoKeyVersionNameTemplate = new PathTemplate( + 'projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}' + ); + } + + return self::$cryptoKeyVersionNameTemplate; + } + private static function getInstanceNameTemplate() { if (self::$instanceNameTemplate == null) { @@ -253,6 +266,7 @@ private static function getPathTemplateMap() self::$pathTemplateMap = [ 'backup' => self::getBackupNameTemplate(), 'cluster' => self::getClusterNameTemplate(), + 'cryptoKeyVersion' => self::getCryptoKeyVersionNameTemplate(), 'instance' => self::getInstanceNameTemplate(), 'location' => self::getLocationNameTemplate(), 'network' => self::getNetworkNameTemplate(), @@ -304,6 +318,36 @@ public static function clusterName($project, $location, $cluster) ]); } + /** + * Formats a string containing the fully-qualified path to represent a + * crypto_key_version resource. + * + * @param string $project + * @param string $location + * @param string $keyRing + * @param string $cryptoKey + * @param string $cryptoKeyVersion + * + * @return string The formatted crypto_key_version resource. + * + * @experimental + */ + public static function cryptoKeyVersionName( + $project, + $location, + $keyRing, + $cryptoKey, + $cryptoKeyVersion + ) { + return self::getCryptoKeyVersionNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'key_ring' => $keyRing, + 'crypto_key' => $cryptoKey, + 'crypto_key_version' => $cryptoKeyVersion, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a instance * resource. @@ -375,6 +419,7 @@ public static function networkName($project, $network) * Template: Pattern * - backup: projects/{project}/locations/{location}/backups/{backup} * - cluster: projects/{project}/locations/{location}/clusters/{cluster} + * - cryptoKeyVersion: projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version} * - instance: projects/{project}/locations/{location}/clusters/{cluster}/instances/{instance} * - location: projects/{project}/locations/{location} * - network: projects/{project}/global/networks/{network} diff --git a/AlloyDb/src/V1beta/resources/alloy_db_admin_descriptor_config.php b/AlloyDb/src/V1beta/resources/alloy_db_admin_descriptor_config.php index 29809f58c566..4800839ffd29 100644 --- a/AlloyDb/src/V1beta/resources/alloy_db_admin_descriptor_config.php +++ b/AlloyDb/src/V1beta/resources/alloy_db_admin_descriptor_config.php @@ -203,6 +203,9 @@ 'resourcesGetMethod' => 'getSupportedDatabaseFlags', ], ], + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -212,6 +215,7 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', ], ], ], diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_create_access_bindings.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_create_access_bindings.php index 514f75f69356..77abef358861 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_create_access_bindings.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_create_access_bindings.php @@ -54,7 +54,7 @@ function batch_create_access_bindings_sample( // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $requestsAccessBinding = new AccessBinding(); $createAccessBindingRequest = (new CreateAccessBindingRequest()) ->setParent($formattedRequestsParent) diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_create_user_links.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_create_user_links.php index d0aa676a2004..65d981d49249 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_create_user_links.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_create_user_links.php @@ -50,7 +50,7 @@ function batch_create_user_links_sample( // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $requestsUserLink = new UserLink(); $createUserLinkRequest = (new CreateUserLinkRequest()) ->setParent($formattedRequestsParent) diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_delete_access_bindings.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_delete_access_bindings.php index e2872ee76c95..84fbf0cb25b1 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_delete_access_bindings.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_delete_access_bindings.php @@ -48,7 +48,7 @@ function batch_delete_access_bindings_sample( // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $deleteAccessBindingRequest = (new DeleteAccessBindingRequest()) ->setName($formattedRequestsName); $requests = [$deleteAccessBindingRequest,]; diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_delete_user_links.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_delete_user_links.php index 462c65306398..259b6b8b124e 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_delete_user_links.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_delete_user_links.php @@ -45,7 +45,7 @@ function batch_delete_user_links_sample( // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $deleteUserLinkRequest = (new DeleteUserLinkRequest()) ->setName($formattedRequestsName); $requests = [$deleteUserLinkRequest,]; diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_get_access_bindings.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_get_access_bindings.php index 2a8518c549ff..87076f9ae67b 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_get_access_bindings.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_get_access_bindings.php @@ -50,7 +50,7 @@ function batch_get_access_bindings_sample( // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $formattedNames = [$formattedNamesElement,]; // Call the API and handle any network failures. diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_get_user_links.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_get_user_links.php index 3e097bca366c..c88ea7842cb3 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_get_user_links.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_get_user_links.php @@ -45,7 +45,7 @@ function batch_get_user_links_sample(string $formattedParent, string $formattedN // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $formattedNames = [$formattedNamesElement,]; // Call the API and handle any network failures. diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_update_access_bindings.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_update_access_bindings.php index dec3209e83ba..ea6563aa8210 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_update_access_bindings.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_update_access_bindings.php @@ -46,7 +46,7 @@ function batch_update_access_bindings_sample(string $formattedParent): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $requestsAccessBinding = new AccessBinding(); $updateAccessBindingRequest = (new UpdateAccessBindingRequest()) ->setAccessBinding($requestsAccessBinding); diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_update_user_links.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_update_user_links.php index a79182eb9904..ab32ffff9d33 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_update_user_links.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/batch_update_user_links.php @@ -43,7 +43,7 @@ function batch_update_user_links_sample(string $formattedParent): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $requestsUserLink = new UserLink(); $updateUserLinkRequest = (new UpdateUserLinkRequest()) ->setUserLink($requestsUserLink); diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_access_binding.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_access_binding.php index 91cb663734ce..496f9888d0ef 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_access_binding.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_access_binding.php @@ -40,7 +40,7 @@ function create_access_binding_sample(string $formattedParent): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $accessBinding = new AccessBinding(); // Call the API and handle any network failures. diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_audience.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_audience.php index e3aee960254e..4fbf967e6ebe 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_audience.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_audience.php @@ -50,7 +50,7 @@ function create_audience_sample( // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $audienceFilterClause = (new AudienceFilterClause()) ->setClauseType($audienceFilterClausesClauseType); $audienceFilterClauses = [$audienceFilterClause,]; diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_channel_group.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_channel_group.php index 8af13f006f18..2a275eae99dc 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_channel_group.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_channel_group.php @@ -47,7 +47,7 @@ function create_channel_group_sample( // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $channelGroupGroupingRuleExpression = new ChannelGroupFilterExpression(); $groupingRule = (new GroupingRule()) ->setDisplayName($channelGroupGroupingRuleDisplayName) diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_connected_site_tag.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_connected_site_tag.php index b5dc77041933..46ad78f6c6ec 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_connected_site_tag.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_connected_site_tag.php @@ -45,7 +45,7 @@ function create_connected_site_tag_sample( // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $connectedSiteTag = (new ConnectedSiteTag()) ->setDisplayName($connectedSiteTagDisplayName) ->setTagId($connectedSiteTagTagId); diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_conversion_event.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_conversion_event.php index 74b260090126..bf40218cbf6d 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_conversion_event.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_conversion_event.php @@ -39,7 +39,7 @@ function create_conversion_event_sample(string $formattedParent): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $conversionEvent = new ConversionEvent(); // Call the API and handle any network failures. diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_dimension.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_dimension.php index fa04ffd8d410..ec0155271cff 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_dimension.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_dimension.php @@ -61,7 +61,7 @@ function create_custom_dimension_sample( // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $customDimension = (new CustomDimension()) ->setParameterName($customDimensionParameterName) ->setDisplayName($customDimensionDisplayName) diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_metric.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_metric.php index 898f776206e5..ae0a242398d5 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_metric.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_custom_metric.php @@ -59,7 +59,7 @@ function create_custom_metric_sample( // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $customMetric = (new CustomMetric()) ->setParameterName($customMetricParameterName) ->setDisplayName($customMetricDisplayName) diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_data_stream.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_data_stream.php index 20b3bc1e348b..eb3423b69144 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_data_stream.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_data_stream.php @@ -40,7 +40,7 @@ function create_data_stream_sample(string $formattedParent, int $dataStreamType) // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $dataStream = (new DataStream()) ->setType($dataStreamType); diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link.php index d884cfbf4994..ecf645920ab6 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link.php @@ -42,7 +42,7 @@ function create_display_video360_advertiser_link_sample(string $formattedParent) // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $displayVideo360AdvertiserLink = new DisplayVideo360AdvertiserLink(); // Call the API and handle any network failures. diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link_proposal.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link_proposal.php index 937c0175d4a1..15b27db33183 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link_proposal.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_display_video360_advertiser_link_proposal.php @@ -38,7 +38,7 @@ function create_display_video360_advertiser_link_proposal_sample(string $formatt // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $displayVideo360AdvertiserLinkProposal = new DisplayVideo360AdvertiserLinkProposal(); // Call the API and handle any network failures. diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_expanded_data_set.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_expanded_data_set.php index 3fbca5d1d341..64eae6f60b29 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_expanded_data_set.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_expanded_data_set.php @@ -42,7 +42,7 @@ function create_expanded_data_set_sample( // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $expandedDataSet = (new ExpandedDataSet()) ->setDisplayName($expandedDataSetDisplayName); diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_firebase_link.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_firebase_link.php index fc43289ab4b0..ce465032cd2d 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_firebase_link.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_firebase_link.php @@ -41,7 +41,7 @@ function create_firebase_link_sample(string $formattedParent): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $firebaseLink = new FirebaseLink(); // Call the API and handle any network failures. diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_google_ads_link.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_google_ads_link.php index f2ce21325da6..d404a99fa567 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_google_ads_link.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_google_ads_link.php @@ -38,7 +38,7 @@ function create_google_ads_link_sample(string $formattedParent): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $googleAdsLink = new GoogleAdsLink(); // Call the API and handle any network failures. diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php index ec86989facf8..3a09dd145129 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php @@ -42,7 +42,7 @@ function create_measurement_protocol_secret_sample( // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $measurementProtocolSecret = (new MeasurementProtocolSecret()) ->setDisplayName($measurementProtocolSecretDisplayName); diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_property.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_property.php index e2e4d4b1c41b..7ca3219c4383 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_property.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_property.php @@ -48,7 +48,7 @@ function create_property_sample(string $propertyDisplayName, string $propertyTim // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $property = (new Property()) ->setDisplayName($propertyDisplayName) ->setTimeZone($propertyTimeZone); diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_search_ads360_link.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_search_ads360_link.php index 6c10b8c37c1c..2d7f6b920b75 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_search_ads360_link.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_search_ads360_link.php @@ -38,7 +38,7 @@ function create_search_ads360_link_sample(string $formattedParent): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $searchAds360Link = new SearchAds360Link(); // Call the API and handle any network failures. diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_user_link.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_user_link.php index b51f0ac1b79f..6f41cc6c4f7d 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_user_link.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/create_user_link.php @@ -42,7 +42,7 @@ function create_user_link_sample(string $formattedParent): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $userLink = new UserLink(); // Call the API and handle any network failures. diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_access_binding.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_access_binding.php index 4d7af7cf0580..49c500e10092 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_access_binding.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_access_binding.php @@ -41,7 +41,7 @@ function update_access_binding_sample(): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $accessBinding = new AccessBinding(); // Call the API and handle any network failures. diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_account.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_account.php index f20449815013..b040c768ebf4 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_account.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_account.php @@ -38,7 +38,7 @@ function update_account_sample(string $accountDisplayName): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $account = (new Account()) ->setDisplayName($accountDisplayName); $updateMask = new FieldMask(); diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_attribution_settings.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_attribution_settings.php index aaa48050578c..7cdabde7eaca 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_attribution_settings.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_attribution_settings.php @@ -53,7 +53,7 @@ function update_attribution_settings_sample( // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $attributionSettings = (new AttributionSettings()) ->setAcquisitionConversionEventLookbackWindow( $attributionSettingsAcquisitionConversionEventLookbackWindow diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_audience.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_audience.php index 205f512819d9..1f500519511f 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_audience.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_audience.php @@ -48,7 +48,7 @@ function update_audience_sample( // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $audienceFilterClause = (new AudienceFilterClause()) ->setClauseType($audienceFilterClausesClauseType); $audienceFilterClauses = [$audienceFilterClause,]; diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_channel_group.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_channel_group.php index 5563889541ea..bf3ca60c2746 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_channel_group.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_channel_group.php @@ -44,7 +44,7 @@ function update_channel_group_sample( // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $channelGroupGroupingRuleExpression = new ChannelGroupFilterExpression(); $groupingRule = (new GroupingRule()) ->setDisplayName($channelGroupGroupingRuleDisplayName) diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_dimension.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_dimension.php index 97e3e81cf0f6..555309b8059c 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_dimension.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_dimension.php @@ -42,7 +42,7 @@ function update_custom_dimension_sample(): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $updateMask = new FieldMask(); // Call the API and handle any network failures. diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_metric.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_metric.php index 28710fed67a7..962394f219bd 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_metric.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_custom_metric.php @@ -42,7 +42,7 @@ function update_custom_metric_sample(): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $updateMask = new FieldMask(); // Call the API and handle any network failures. diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_data_retention_settings.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_data_retention_settings.php index c895f9c09625..b9b6de59ba1b 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_data_retention_settings.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_data_retention_settings.php @@ -42,7 +42,7 @@ function update_data_retention_settings_sample(): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $dataRetentionSettings = new DataRetentionSettings(); $updateMask = new FieldMask(); diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_data_stream.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_data_stream.php index 21d3b22a7ba9..b5b3b045b88d 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_data_stream.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_data_stream.php @@ -42,7 +42,7 @@ function update_data_stream_sample(): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $updateMask = new FieldMask(); // Call the API and handle any network failures. diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_display_video360_advertiser_link.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_display_video360_advertiser_link.php index e3a844d84eb7..4d2334ed7a22 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_display_video360_advertiser_link.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_display_video360_advertiser_link.php @@ -42,7 +42,7 @@ function update_display_video360_advertiser_link_sample(): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $updateMask = new FieldMask(); // Call the API and handle any network failures. diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_enhanced_measurement_settings.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_enhanced_measurement_settings.php index 6ff580b6b50a..b6c850186f3a 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_enhanced_measurement_settings.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_enhanced_measurement_settings.php @@ -42,7 +42,7 @@ function update_enhanced_measurement_settings_sample( // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $enhancedMeasurementSettings = (new EnhancedMeasurementSettings()) ->setSearchQueryParameter($enhancedMeasurementSettingsSearchQueryParameter); $updateMask = new FieldMask(); diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_expanded_data_set.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_expanded_data_set.php index 121f568e4558..0652cc928003 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_expanded_data_set.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_expanded_data_set.php @@ -39,7 +39,7 @@ function update_expanded_data_set_sample(string $expandedDataSetDisplayName): vo // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $expandedDataSet = (new ExpandedDataSet()) ->setDisplayName($expandedDataSetDisplayName); $updateMask = new FieldMask(); diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_google_ads_link.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_google_ads_link.php index ddf321a71820..919a50177e4e 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_google_ads_link.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_google_ads_link.php @@ -42,7 +42,7 @@ function update_google_ads_link_sample(): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $updateMask = new FieldMask(); // Call the API and handle any network failures. diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_google_signals_settings.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_google_signals_settings.php index 285213ea906e..8096dc1f2a04 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_google_signals_settings.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_google_signals_settings.php @@ -42,7 +42,7 @@ function update_google_signals_settings_sample(): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $googleSignalsSettings = new GoogleSignalsSettings(); $updateMask = new FieldMask(); diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php index 11a684bf629a..2f26075ffd6a 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php @@ -38,7 +38,7 @@ function update_measurement_protocol_secret_sample( // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $measurementProtocolSecret = (new MeasurementProtocolSecret()) ->setDisplayName($measurementProtocolSecretDisplayName); diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_property.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_property.php index 04945f7634c2..d27310546c40 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_property.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_property.php @@ -49,7 +49,7 @@ function update_property_sample(string $propertyDisplayName, string $propertyTim // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $property = (new Property()) ->setDisplayName($propertyDisplayName) ->setTimeZone($propertyTimeZone); diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_search_ads360_link.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_search_ads360_link.php index 6216e6973279..942be635b999 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_search_ads360_link.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_search_ads360_link.php @@ -42,7 +42,7 @@ function update_search_ads360_link_sample(): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $updateMask = new FieldMask(); // Call the API and handle any network failures. diff --git a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_user_link.php b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_user_link.php index 3121be38cdd4..7f6328ffb5d3 100644 --- a/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_user_link.php +++ b/AnalyticsAdmin/samples/V1alpha/AnalyticsAdminServiceClient/update_user_link.php @@ -41,7 +41,7 @@ function update_user_link_sample(): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $userLink = new UserLink(); // Call the API and handle any network failures. diff --git a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_conversion_event.php b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_conversion_event.php index a7633888ccd5..bf1f63a891aa 100644 --- a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_conversion_event.php +++ b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_conversion_event.php @@ -39,7 +39,7 @@ function create_conversion_event_sample(string $formattedParent): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $conversionEvent = new ConversionEvent(); // Call the API and handle any network failures. diff --git a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_custom_dimension.php b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_custom_dimension.php index 43173bd10556..a900570f4cea 100644 --- a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_custom_dimension.php +++ b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_custom_dimension.php @@ -58,7 +58,7 @@ function create_custom_dimension_sample( // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $customDimension = (new CustomDimension()) ->setParameterName($customDimensionParameterName) ->setDisplayName($customDimensionDisplayName) diff --git a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_custom_metric.php b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_custom_metric.php index cfd752867ea6..fbd214446c43 100644 --- a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_custom_metric.php +++ b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_custom_metric.php @@ -59,7 +59,7 @@ function create_custom_metric_sample( // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $customMetric = (new CustomMetric()) ->setParameterName($customMetricParameterName) ->setDisplayName($customMetricDisplayName) diff --git a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_data_stream.php b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_data_stream.php index 3a94b3a4d38b..5c6135f3e9c7 100644 --- a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_data_stream.php +++ b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_data_stream.php @@ -40,7 +40,7 @@ function create_data_stream_sample(string $formattedParent, int $dataStreamType) // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $dataStream = (new DataStream()) ->setType($dataStreamType); diff --git a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_firebase_link.php b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_firebase_link.php index d2d84d2f2265..235eae37a69e 100644 --- a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_firebase_link.php +++ b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_firebase_link.php @@ -41,7 +41,7 @@ function create_firebase_link_sample(string $formattedParent): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $firebaseLink = new FirebaseLink(); // Call the API and handle any network failures. diff --git a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_google_ads_link.php b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_google_ads_link.php index 03c8288ba2d2..6a2800c8bb55 100644 --- a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_google_ads_link.php +++ b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_google_ads_link.php @@ -38,7 +38,7 @@ function create_google_ads_link_sample(string $formattedParent): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $googleAdsLink = new GoogleAdsLink(); // Call the API and handle any network failures. diff --git a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php index aa430a54649a..3d6e3b5615a5 100644 --- a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php +++ b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_measurement_protocol_secret.php @@ -42,7 +42,7 @@ function create_measurement_protocol_secret_sample( // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $measurementProtocolSecret = (new MeasurementProtocolSecret()) ->setDisplayName($measurementProtocolSecretDisplayName); diff --git a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_property.php b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_property.php index 73ef1089ce4b..e1f8fe68bf24 100644 --- a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_property.php +++ b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/create_property.php @@ -48,7 +48,7 @@ function create_property_sample(string $propertyDisplayName, string $propertyTim // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $property = (new Property()) ->setDisplayName($propertyDisplayName) ->setTimeZone($propertyTimeZone); diff --git a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_account.php b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_account.php index 42168a6889f4..ecb51b75f959 100644 --- a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_account.php +++ b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_account.php @@ -38,7 +38,7 @@ function update_account_sample(string $accountDisplayName): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $account = (new Account()) ->setDisplayName($accountDisplayName); $updateMask = new FieldMask(); diff --git a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_custom_dimension.php b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_custom_dimension.php index 230e55ff640d..cd05414c5b81 100644 --- a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_custom_dimension.php +++ b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_custom_dimension.php @@ -42,7 +42,7 @@ function update_custom_dimension_sample(): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $updateMask = new FieldMask(); // Call the API and handle any network failures. diff --git a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_custom_metric.php b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_custom_metric.php index 4b4c03010378..e605e06d53b2 100644 --- a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_custom_metric.php +++ b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_custom_metric.php @@ -42,7 +42,7 @@ function update_custom_metric_sample(): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $updateMask = new FieldMask(); // Call the API and handle any network failures. diff --git a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_data_retention_settings.php b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_data_retention_settings.php index 62bde8ac79ee..fdadfe017649 100644 --- a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_data_retention_settings.php +++ b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_data_retention_settings.php @@ -42,7 +42,7 @@ function update_data_retention_settings_sample(): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $dataRetentionSettings = new DataRetentionSettings(); $updateMask = new FieldMask(); diff --git a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_data_stream.php b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_data_stream.php index 0b47c97cc9c5..e165565f4a9b 100644 --- a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_data_stream.php +++ b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_data_stream.php @@ -42,7 +42,7 @@ function update_data_stream_sample(): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $updateMask = new FieldMask(); // Call the API and handle any network failures. diff --git a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_google_ads_link.php b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_google_ads_link.php index f6ad60216346..d37e485507e7 100644 --- a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_google_ads_link.php +++ b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_google_ads_link.php @@ -42,7 +42,7 @@ function update_google_ads_link_sample(): void // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $updateMask = new FieldMask(); // Call the API and handle any network failures. diff --git a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php index e9abd0a8a000..822e363d4b45 100644 --- a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php +++ b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_measurement_protocol_secret.php @@ -38,7 +38,7 @@ function update_measurement_protocol_secret_sample( // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $measurementProtocolSecret = (new MeasurementProtocolSecret()) ->setDisplayName($measurementProtocolSecretDisplayName); diff --git a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_property.php b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_property.php index 9a21d1491211..a0961261def1 100644 --- a/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_property.php +++ b/AnalyticsAdmin/samples/V1beta/AnalyticsAdminServiceClient/update_property.php @@ -49,7 +49,7 @@ function update_property_sample(string $propertyDisplayName, string $propertyTim // Create a client. $analyticsAdminServiceClient = new AnalyticsAdminServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $property = (new Property()) ->setDisplayName($propertyDisplayName) ->setTimeZone($propertyTimeZone); diff --git a/ApiGateway/samples/V1/ApiGatewayServiceClient/create_api.php b/ApiGateway/samples/V1/ApiGatewayServiceClient/create_api.php index a593be77e81d..761ad15ec76d 100644 --- a/ApiGateway/samples/V1/ApiGatewayServiceClient/create_api.php +++ b/ApiGateway/samples/V1/ApiGatewayServiceClient/create_api.php @@ -43,7 +43,7 @@ function create_api_sample(string $formattedParent, string $apiId): void // Create a client. $apiGatewayServiceClient = new ApiGatewayServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $api = new Api(); // Call the API and handle any network failures. diff --git a/ApiGateway/samples/V1/ApiGatewayServiceClient/create_api_config.php b/ApiGateway/samples/V1/ApiGatewayServiceClient/create_api_config.php index ca9ebb443c1d..04d20d3197bb 100644 --- a/ApiGateway/samples/V1/ApiGatewayServiceClient/create_api_config.php +++ b/ApiGateway/samples/V1/ApiGatewayServiceClient/create_api_config.php @@ -43,7 +43,7 @@ function create_api_config_sample(string $formattedParent, string $apiConfigId): // Create a client. $apiGatewayServiceClient = new ApiGatewayServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $apiConfig = new ApiConfig(); // Call the API and handle any network failures. diff --git a/ApiGateway/samples/V1/ApiGatewayServiceClient/create_gateway.php b/ApiGateway/samples/V1/ApiGatewayServiceClient/create_gateway.php index 59adacea7324..e50e9d182cea 100644 --- a/ApiGateway/samples/V1/ApiGatewayServiceClient/create_gateway.php +++ b/ApiGateway/samples/V1/ApiGatewayServiceClient/create_gateway.php @@ -49,7 +49,7 @@ function create_gateway_sample( // Create a client. $apiGatewayServiceClient = new ApiGatewayServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $gateway = (new Gateway()) ->setApiConfig($formattedGatewayApiConfig); diff --git a/ApiGateway/samples/V1/ApiGatewayServiceClient/update_api.php b/ApiGateway/samples/V1/ApiGatewayServiceClient/update_api.php index 1b21752917e4..2fcc7a2e32b0 100644 --- a/ApiGateway/samples/V1/ApiGatewayServiceClient/update_api.php +++ b/ApiGateway/samples/V1/ApiGatewayServiceClient/update_api.php @@ -43,7 +43,7 @@ function update_api_sample(): void // Create a client. $apiGatewayServiceClient = new ApiGatewayServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $api = new Api(); // Call the API and handle any network failures. diff --git a/ApiGateway/samples/V1/ApiGatewayServiceClient/update_api_config.php b/ApiGateway/samples/V1/ApiGatewayServiceClient/update_api_config.php index 0d3f156b208f..a24ece5d271a 100644 --- a/ApiGateway/samples/V1/ApiGatewayServiceClient/update_api_config.php +++ b/ApiGateway/samples/V1/ApiGatewayServiceClient/update_api_config.php @@ -43,7 +43,7 @@ function update_api_config_sample(): void // Create a client. $apiGatewayServiceClient = new ApiGatewayServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $apiConfig = new ApiConfig(); // Call the API and handle any network failures. diff --git a/ApiGateway/samples/V1/ApiGatewayServiceClient/update_gateway.php b/ApiGateway/samples/V1/ApiGatewayServiceClient/update_gateway.php index 4a16ad4900a3..60576ba7f91c 100644 --- a/ApiGateway/samples/V1/ApiGatewayServiceClient/update_gateway.php +++ b/ApiGateway/samples/V1/ApiGatewayServiceClient/update_gateway.php @@ -41,7 +41,7 @@ function update_gateway_sample(string $formattedGatewayApiConfig): void // Create a client. $apiGatewayServiceClient = new ApiGatewayServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $gateway = (new Gateway()) ->setApiConfig($formattedGatewayApiConfig); diff --git a/ApiKeys/samples/V2/ApiKeysClient/create_key.php b/ApiKeys/samples/V2/ApiKeysClient/create_key.php index aab6931b3429..633eb2905015 100644 --- a/ApiKeys/samples/V2/ApiKeysClient/create_key.php +++ b/ApiKeys/samples/V2/ApiKeysClient/create_key.php @@ -43,7 +43,7 @@ function create_key_sample(string $formattedParent): void // Create a client. $apiKeysClient = new ApiKeysClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $key = new Key(); // Call the API and handle any network failures. diff --git a/ApiKeys/samples/V2/ApiKeysClient/update_key.php b/ApiKeys/samples/V2/ApiKeysClient/update_key.php index a5824e522ae3..5b3d6f7f2c21 100644 --- a/ApiKeys/samples/V2/ApiKeysClient/update_key.php +++ b/ApiKeys/samples/V2/ApiKeysClient/update_key.php @@ -47,7 +47,7 @@ function update_key_sample(): void // Create a client. $apiKeysClient = new ApiKeysClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $key = new Key(); // Call the API and handle any network failures. diff --git a/ApigeeConnect/samples/V1/TetherClient/egress.php b/ApigeeConnect/samples/V1/TetherClient/egress.php index 5aa759152895..f47b4564712b 100644 --- a/ApigeeConnect/samples/V1/TetherClient/egress.php +++ b/ApigeeConnect/samples/V1/TetherClient/egress.php @@ -49,7 +49,7 @@ function egress_sample(): void // Create a client. $tetherClient = new TetherClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $request = new EgressResponse(); // Call the API and handle any network failures. diff --git a/ApigeeRegistry/samples/V1/ProvisioningClient/create_instance.php b/ApigeeRegistry/samples/V1/ProvisioningClient/create_instance.php index f81897ce4492..b9b10ccca5f2 100644 --- a/ApigeeRegistry/samples/V1/ProvisioningClient/create_instance.php +++ b/ApigeeRegistry/samples/V1/ProvisioningClient/create_instance.php @@ -50,7 +50,7 @@ function create_instance_sample( // Create a client. $provisioningClient = new ProvisioningClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $instanceConfig = (new Config()) ->setCmekKeyName($instanceConfigCmekKeyName); $instance = (new Instance()) diff --git a/ApigeeRegistry/samples/V1/ProvisioningClient/set_iam_policy.php b/ApigeeRegistry/samples/V1/ProvisioningClient/set_iam_policy.php index 008fd43ac804..99aeff2792f6 100644 --- a/ApigeeRegistry/samples/V1/ProvisioningClient/set_iam_policy.php +++ b/ApigeeRegistry/samples/V1/ProvisioningClient/set_iam_policy.php @@ -42,7 +42,7 @@ function set_iam_policy_sample(string $resource): void // Create a client. $provisioningClient = new ProvisioningClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $policy = new Policy(); // Call the API and handle any network failures. diff --git a/ApigeeRegistry/samples/V1/ProvisioningClient/test_iam_permissions.php b/ApigeeRegistry/samples/V1/ProvisioningClient/test_iam_permissions.php index 2685d440ea80..d5f55ffdf4d5 100644 --- a/ApigeeRegistry/samples/V1/ProvisioningClient/test_iam_permissions.php +++ b/ApigeeRegistry/samples/V1/ProvisioningClient/test_iam_permissions.php @@ -48,7 +48,7 @@ function test_iam_permissions_sample(string $resource, string $permissionsElemen // Create a client. $provisioningClient = new ProvisioningClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $permissions = [$permissionsElement,]; // Call the API and handle any network failures. diff --git a/ApigeeRegistry/samples/V1/RegistryClient/create_api.php b/ApigeeRegistry/samples/V1/RegistryClient/create_api.php index a7255959f02e..c054cc700367 100644 --- a/ApigeeRegistry/samples/V1/RegistryClient/create_api.php +++ b/ApigeeRegistry/samples/V1/RegistryClient/create_api.php @@ -46,7 +46,7 @@ function create_api_sample(string $formattedParent, string $apiId): void // Create a client. $registryClient = new RegistryClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $api = new Api(); // Call the API and handle any network failures. diff --git a/ApigeeRegistry/samples/V1/RegistryClient/create_api_deployment.php b/ApigeeRegistry/samples/V1/RegistryClient/create_api_deployment.php index cb04fe335470..6fa77172b9d2 100644 --- a/ApigeeRegistry/samples/V1/RegistryClient/create_api_deployment.php +++ b/ApigeeRegistry/samples/V1/RegistryClient/create_api_deployment.php @@ -46,7 +46,7 @@ function create_api_deployment_sample(string $formattedParent, string $apiDeploy // Create a client. $registryClient = new RegistryClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $apiDeployment = new ApiDeployment(); // Call the API and handle any network failures. diff --git a/ApigeeRegistry/samples/V1/RegistryClient/create_api_spec.php b/ApigeeRegistry/samples/V1/RegistryClient/create_api_spec.php index eee128c48bb1..932ea58d2bc5 100644 --- a/ApigeeRegistry/samples/V1/RegistryClient/create_api_spec.php +++ b/ApigeeRegistry/samples/V1/RegistryClient/create_api_spec.php @@ -46,7 +46,7 @@ function create_api_spec_sample(string $formattedParent, string $apiSpecId): voi // Create a client. $registryClient = new RegistryClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $apiSpec = new ApiSpec(); // Call the API and handle any network failures. diff --git a/ApigeeRegistry/samples/V1/RegistryClient/create_api_version.php b/ApigeeRegistry/samples/V1/RegistryClient/create_api_version.php index 6fefc0d06638..10ef647290c8 100644 --- a/ApigeeRegistry/samples/V1/RegistryClient/create_api_version.php +++ b/ApigeeRegistry/samples/V1/RegistryClient/create_api_version.php @@ -46,7 +46,7 @@ function create_api_version_sample(string $formattedParent, string $apiVersionId // Create a client. $registryClient = new RegistryClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $apiVersion = new ApiVersion(); // Call the API and handle any network failures. diff --git a/ApigeeRegistry/samples/V1/RegistryClient/create_artifact.php b/ApigeeRegistry/samples/V1/RegistryClient/create_artifact.php index 07cf722af20a..7d7fa12383ad 100644 --- a/ApigeeRegistry/samples/V1/RegistryClient/create_artifact.php +++ b/ApigeeRegistry/samples/V1/RegistryClient/create_artifact.php @@ -46,7 +46,7 @@ function create_artifact_sample(string $formattedParent, string $artifactId): vo // Create a client. $registryClient = new RegistryClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $artifact = new Artifact(); // Call the API and handle any network failures. diff --git a/ApigeeRegistry/samples/V1/RegistryClient/replace_artifact.php b/ApigeeRegistry/samples/V1/RegistryClient/replace_artifact.php index 1521d8d47345..62ce63aa0086 100644 --- a/ApigeeRegistry/samples/V1/RegistryClient/replace_artifact.php +++ b/ApigeeRegistry/samples/V1/RegistryClient/replace_artifact.php @@ -41,7 +41,7 @@ function replace_artifact_sample(): void // Create a client. $registryClient = new RegistryClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $artifact = new Artifact(); // Call the API and handle any network failures. diff --git a/ApigeeRegistry/samples/V1/RegistryClient/set_iam_policy.php b/ApigeeRegistry/samples/V1/RegistryClient/set_iam_policy.php index ee1ccc46e5c1..1411e9aaf2f2 100644 --- a/ApigeeRegistry/samples/V1/RegistryClient/set_iam_policy.php +++ b/ApigeeRegistry/samples/V1/RegistryClient/set_iam_policy.php @@ -42,7 +42,7 @@ function set_iam_policy_sample(string $resource): void // Create a client. $registryClient = new RegistryClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $policy = new Policy(); // Call the API and handle any network failures. diff --git a/ApigeeRegistry/samples/V1/RegistryClient/test_iam_permissions.php b/ApigeeRegistry/samples/V1/RegistryClient/test_iam_permissions.php index bb595c569764..d71d34cf4b84 100644 --- a/ApigeeRegistry/samples/V1/RegistryClient/test_iam_permissions.php +++ b/ApigeeRegistry/samples/V1/RegistryClient/test_iam_permissions.php @@ -48,7 +48,7 @@ function test_iam_permissions_sample(string $resource, string $permissionsElemen // Create a client. $registryClient = new RegistryClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $permissions = [$permissionsElement,]; // Call the API and handle any network failures. diff --git a/ApigeeRegistry/samples/V1/RegistryClient/update_api.php b/ApigeeRegistry/samples/V1/RegistryClient/update_api.php index 65b1eea75543..4819a2f69d48 100644 --- a/ApigeeRegistry/samples/V1/RegistryClient/update_api.php +++ b/ApigeeRegistry/samples/V1/RegistryClient/update_api.php @@ -41,7 +41,7 @@ function update_api_sample(): void // Create a client. $registryClient = new RegistryClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $api = new Api(); // Call the API and handle any network failures. diff --git a/ApigeeRegistry/samples/V1/RegistryClient/update_api_deployment.php b/ApigeeRegistry/samples/V1/RegistryClient/update_api_deployment.php index 21a6915d87ac..96fd5d8c3ad1 100644 --- a/ApigeeRegistry/samples/V1/RegistryClient/update_api_deployment.php +++ b/ApigeeRegistry/samples/V1/RegistryClient/update_api_deployment.php @@ -41,7 +41,7 @@ function update_api_deployment_sample(): void // Create a client. $registryClient = new RegistryClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $apiDeployment = new ApiDeployment(); // Call the API and handle any network failures. diff --git a/ApigeeRegistry/samples/V1/RegistryClient/update_api_spec.php b/ApigeeRegistry/samples/V1/RegistryClient/update_api_spec.php index a106f9e7d909..669e1e091ffc 100644 --- a/ApigeeRegistry/samples/V1/RegistryClient/update_api_spec.php +++ b/ApigeeRegistry/samples/V1/RegistryClient/update_api_spec.php @@ -41,7 +41,7 @@ function update_api_spec_sample(): void // Create a client. $registryClient = new RegistryClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $apiSpec = new ApiSpec(); // Call the API and handle any network failures. diff --git a/ApigeeRegistry/samples/V1/RegistryClient/update_api_version.php b/ApigeeRegistry/samples/V1/RegistryClient/update_api_version.php index 6daafdd86e50..553c78f31821 100644 --- a/ApigeeRegistry/samples/V1/RegistryClient/update_api_version.php +++ b/ApigeeRegistry/samples/V1/RegistryClient/update_api_version.php @@ -41,7 +41,7 @@ function update_api_version_sample(): void // Create a client. $registryClient = new RegistryClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $apiVersion = new ApiVersion(); // Call the API and handle any network failures. diff --git a/ApigeeRegistry/src/V1/resources/provisioning_descriptor_config.php b/ApigeeRegistry/src/V1/resources/provisioning_descriptor_config.php index 44c0d2a4b48f..3d5ad2f83001 100644 --- a/ApigeeRegistry/src/V1/resources/provisioning_descriptor_config.php +++ b/ApigeeRegistry/src/V1/resources/provisioning_descriptor_config.php @@ -23,6 +23,9 @@ 'totalPollTimeoutMillis' => '300000', ], ], + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -32,6 +35,16 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'GetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', ], ], ], diff --git a/ApigeeRegistry/src/V1/resources/registry_descriptor_config.php b/ApigeeRegistry/src/V1/resources/registry_descriptor_config.php index be27632f2013..528952f6ae68 100644 --- a/ApigeeRegistry/src/V1/resources/registry_descriptor_config.php +++ b/ApigeeRegistry/src/V1/resources/registry_descriptor_config.php @@ -73,6 +73,9 @@ 'resourcesGetMethod' => 'getArtifacts', ], ], + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -82,6 +85,16 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'GetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', ], ], ], diff --git a/ArtifactRegistry/samples/V1beta2/ArtifactRegistryClient/set_iam_policy.php b/ArtifactRegistry/samples/V1beta2/ArtifactRegistryClient/set_iam_policy.php index 16b13935701e..435d05574e52 100644 --- a/ArtifactRegistry/samples/V1beta2/ArtifactRegistryClient/set_iam_policy.php +++ b/ArtifactRegistry/samples/V1beta2/ArtifactRegistryClient/set_iam_policy.php @@ -38,7 +38,7 @@ function set_iam_policy_sample(string $resource): void // Create a client. $artifactRegistryClient = new ArtifactRegistryClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $policy = new Policy(); // Call the API and handle any network failures. diff --git a/ArtifactRegistry/samples/V1beta2/ArtifactRegistryClient/test_iam_permissions.php b/ArtifactRegistry/samples/V1beta2/ArtifactRegistryClient/test_iam_permissions.php index 512cb96c8796..7bc26db3ce0b 100644 --- a/ArtifactRegistry/samples/V1beta2/ArtifactRegistryClient/test_iam_permissions.php +++ b/ArtifactRegistry/samples/V1beta2/ArtifactRegistryClient/test_iam_permissions.php @@ -42,7 +42,7 @@ function test_iam_permissions_sample(string $resource, string $permissionsElemen // Create a client. $artifactRegistryClient = new ArtifactRegistryClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $permissions = [$permissionsElement,]; // Call the API and handle any network failures. diff --git a/ArtifactRegistry/src/V1beta2/resources/artifact_registry_descriptor_config.php b/ArtifactRegistry/src/V1beta2/resources/artifact_registry_descriptor_config.php index 5983b8f36b5f..067ac34fefc9 100644 --- a/ArtifactRegistry/src/V1beta2/resources/artifact_registry_descriptor_config.php +++ b/ArtifactRegistry/src/V1beta2/resources/artifact_registry_descriptor_config.php @@ -113,6 +113,9 @@ 'resourcesGetMethod' => 'getVersions', ], ], + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -122,6 +125,7 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', ], ], ], diff --git a/Asset/samples/V1/AssetServiceClient/analyze_iam_policy.php b/Asset/samples/V1/AssetServiceClient/analyze_iam_policy.php index a8597c9ca4e0..8959263195d5 100644 --- a/Asset/samples/V1/AssetServiceClient/analyze_iam_policy.php +++ b/Asset/samples/V1/AssetServiceClient/analyze_iam_policy.php @@ -50,7 +50,7 @@ function analyze_iam_policy_sample(string $analysisQueryScope): void // Create a client. $assetServiceClient = new AssetServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $analysisQuery = (new IamPolicyAnalysisQuery()) ->setScope($analysisQueryScope); diff --git a/Asset/samples/V1/AssetServiceClient/analyze_iam_policy_longrunning.php b/Asset/samples/V1/AssetServiceClient/analyze_iam_policy_longrunning.php index 8617649b319e..9776d1c8934b 100644 --- a/Asset/samples/V1/AssetServiceClient/analyze_iam_policy_longrunning.php +++ b/Asset/samples/V1/AssetServiceClient/analyze_iam_policy_longrunning.php @@ -61,7 +61,7 @@ function analyze_iam_policy_longrunning_sample(string $analysisQueryScope): void // Create a client. $assetServiceClient = new AssetServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $analysisQuery = (new IamPolicyAnalysisQuery()) ->setScope($analysisQueryScope); $outputConfig = new IamPolicyAnalysisOutputConfig(); diff --git a/Asset/samples/V1/AssetServiceClient/batch_get_assets_history.php b/Asset/samples/V1/AssetServiceClient/batch_get_assets_history.php index f31c77680a7b..e726bb79a759 100644 --- a/Asset/samples/V1/AssetServiceClient/batch_get_assets_history.php +++ b/Asset/samples/V1/AssetServiceClient/batch_get_assets_history.php @@ -48,7 +48,7 @@ function batch_get_assets_history_sample(string $parent, int $contentType): void // Create a client. $assetServiceClient = new AssetServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $readTimeWindow = new TimeWindow(); // Call the API and handle any network failures. diff --git a/Asset/samples/V1/AssetServiceClient/batch_get_effective_iam_policies.php b/Asset/samples/V1/AssetServiceClient/batch_get_effective_iam_policies.php index 04dc35208ec1..2bc103eafac2 100644 --- a/Asset/samples/V1/AssetServiceClient/batch_get_effective_iam_policies.php +++ b/Asset/samples/V1/AssetServiceClient/batch_get_effective_iam_policies.php @@ -52,7 +52,7 @@ function batch_get_effective_iam_policies_sample(string $scope, string $namesEle // Create a client. $assetServiceClient = new AssetServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $names = [$namesElement,]; // Call the API and handle any network failures. diff --git a/Asset/samples/V1/AssetServiceClient/create_feed.php b/Asset/samples/V1/AssetServiceClient/create_feed.php index 1466c77b7814..3c830c04f166 100644 --- a/Asset/samples/V1/AssetServiceClient/create_feed.php +++ b/Asset/samples/V1/AssetServiceClient/create_feed.php @@ -52,7 +52,7 @@ function create_feed_sample(string $parent, string $feedId, string $feedName): v // Create a client. $assetServiceClient = new AssetServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $feedFeedOutputConfig = new FeedOutputConfig(); $feed = (new Feed()) ->setName($feedName) diff --git a/Asset/samples/V1/AssetServiceClient/create_saved_query.php b/Asset/samples/V1/AssetServiceClient/create_saved_query.php index f325ef8c4766..26704f658223 100644 --- a/Asset/samples/V1/AssetServiceClient/create_saved_query.php +++ b/Asset/samples/V1/AssetServiceClient/create_saved_query.php @@ -51,7 +51,7 @@ function create_saved_query_sample(string $formattedParent, string $savedQueryId // Create a client. $assetServiceClient = new AssetServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $savedQuery = new SavedQuery(); // Call the API and handle any network failures. diff --git a/Asset/samples/V1/AssetServiceClient/export_assets.php b/Asset/samples/V1/AssetServiceClient/export_assets.php index fa1eb96736f6..5ecd4ede3df3 100644 --- a/Asset/samples/V1/AssetServiceClient/export_assets.php +++ b/Asset/samples/V1/AssetServiceClient/export_assets.php @@ -53,7 +53,7 @@ function export_assets_sample(string $parent): void // Create a client. $assetServiceClient = new AssetServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $outputConfig = new OutputConfig(); // Call the API and handle any network failures. diff --git a/Asset/samples/V1/AssetServiceClient/update_feed.php b/Asset/samples/V1/AssetServiceClient/update_feed.php index 25594e5db9fe..c0a4d663fbd6 100644 --- a/Asset/samples/V1/AssetServiceClient/update_feed.php +++ b/Asset/samples/V1/AssetServiceClient/update_feed.php @@ -45,7 +45,7 @@ function update_feed_sample(string $feedName): void // Create a client. $assetServiceClient = new AssetServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $feedFeedOutputConfig = new FeedOutputConfig(); $feed = (new Feed()) ->setName($feedName) diff --git a/Asset/samples/V1/AssetServiceClient/update_saved_query.php b/Asset/samples/V1/AssetServiceClient/update_saved_query.php index cfb9323b12c6..a00c40ab9c07 100644 --- a/Asset/samples/V1/AssetServiceClient/update_saved_query.php +++ b/Asset/samples/V1/AssetServiceClient/update_saved_query.php @@ -42,7 +42,7 @@ function update_saved_query_sample(): void // Create a client. $assetServiceClient = new AssetServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $savedQuery = new SavedQuery(); $updateMask = new FieldMask(); diff --git a/AssuredWorkloads/samples/V1beta1/AssuredWorkloadsServiceClient/create_workload.php b/AssuredWorkloads/samples/V1beta1/AssuredWorkloadsServiceClient/create_workload.php index 1b29e0dc5fe4..b0c8bd3ef57f 100644 --- a/AssuredWorkloads/samples/V1beta1/AssuredWorkloadsServiceClient/create_workload.php +++ b/AssuredWorkloads/samples/V1beta1/AssuredWorkloadsServiceClient/create_workload.php @@ -52,7 +52,7 @@ function create_workload_sample( // Create a client. $assuredWorkloadsServiceClient = new AssuredWorkloadsServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $workload = (new Workload()) ->setDisplayName($workloadDisplayName) ->setComplianceRegime($workloadComplianceRegime); diff --git a/AssuredWorkloads/samples/V1beta1/AssuredWorkloadsServiceClient/update_workload.php b/AssuredWorkloads/samples/V1beta1/AssuredWorkloadsServiceClient/update_workload.php index 312dfca7e12b..92e09be93a1f 100644 --- a/AssuredWorkloads/samples/V1beta1/AssuredWorkloadsServiceClient/update_workload.php +++ b/AssuredWorkloads/samples/V1beta1/AssuredWorkloadsServiceClient/update_workload.php @@ -48,7 +48,7 @@ function update_workload_sample(string $workloadDisplayName, int $workloadCompli // Create a client. $assuredWorkloadsServiceClient = new AssuredWorkloadsServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $workload = (new Workload()) ->setDisplayName($workloadDisplayName) ->setComplianceRegime($workloadComplianceRegime); diff --git a/AutoMl/samples/V1/AutoMlClient/create_dataset.php b/AutoMl/samples/V1/AutoMlClient/create_dataset.php index 2c4bbd814afa..78483495193c 100644 --- a/AutoMl/samples/V1/AutoMlClient/create_dataset.php +++ b/AutoMl/samples/V1/AutoMlClient/create_dataset.php @@ -40,7 +40,7 @@ function create_dataset_sample(string $formattedParent): void // Create a client. $autoMlClient = new AutoMlClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $dataset = new Dataset(); // Call the API and handle any network failures. diff --git a/AutoMl/samples/V1/AutoMlClient/create_model.php b/AutoMl/samples/V1/AutoMlClient/create_model.php index 8e2f6664a350..77c9caeb122c 100644 --- a/AutoMl/samples/V1/AutoMlClient/create_model.php +++ b/AutoMl/samples/V1/AutoMlClient/create_model.php @@ -44,7 +44,7 @@ function create_model_sample(string $formattedParent): void // Create a client. $autoMlClient = new AutoMlClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $model = new Model(); // Call the API and handle any network failures. diff --git a/AutoMl/samples/V1/AutoMlClient/export_data.php b/AutoMl/samples/V1/AutoMlClient/export_data.php index fdee5a1416f3..f968808959cb 100644 --- a/AutoMl/samples/V1/AutoMlClient/export_data.php +++ b/AutoMl/samples/V1/AutoMlClient/export_data.php @@ -51,7 +51,7 @@ function export_data_sample( // Create a client. $autoMlClient = new AutoMlClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $outputConfigGcsDestination = (new GcsDestination()) ->setOutputUriPrefix($outputConfigGcsDestinationOutputUriPrefix); $outputConfig = (new OutputConfig()) diff --git a/AutoMl/samples/V1/AutoMlClient/export_model.php b/AutoMl/samples/V1/AutoMlClient/export_model.php index 1ad44bc02c2b..4bb41ac610aa 100644 --- a/AutoMl/samples/V1/AutoMlClient/export_model.php +++ b/AutoMl/samples/V1/AutoMlClient/export_model.php @@ -55,7 +55,7 @@ function export_model_sample( // Create a client. $autoMlClient = new AutoMlClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $outputConfigGcsDestination = (new GcsDestination()) ->setOutputUriPrefix($outputConfigGcsDestinationOutputUriPrefix); $outputConfig = (new ModelExportOutputConfig()) diff --git a/AutoMl/samples/V1/AutoMlClient/import_data.php b/AutoMl/samples/V1/AutoMlClient/import_data.php index 5363b896f03c..e5bf524a658f 100644 --- a/AutoMl/samples/V1/AutoMlClient/import_data.php +++ b/AutoMl/samples/V1/AutoMlClient/import_data.php @@ -49,7 +49,7 @@ function import_data_sample(string $formattedName): void // Create a client. $autoMlClient = new AutoMlClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $inputConfig = new InputConfig(); // Call the API and handle any network failures. diff --git a/AutoMl/samples/V1/AutoMlClient/update_dataset.php b/AutoMl/samples/V1/AutoMlClient/update_dataset.php index b311832f4572..4ce407c4ac89 100644 --- a/AutoMl/samples/V1/AutoMlClient/update_dataset.php +++ b/AutoMl/samples/V1/AutoMlClient/update_dataset.php @@ -42,7 +42,7 @@ function update_dataset_sample(): void // Create a client. $autoMlClient = new AutoMlClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $dataset = new Dataset(); $updateMask = new FieldMask(); diff --git a/AutoMl/samples/V1/AutoMlClient/update_model.php b/AutoMl/samples/V1/AutoMlClient/update_model.php index df27458127fb..f11e905c8306 100644 --- a/AutoMl/samples/V1/AutoMlClient/update_model.php +++ b/AutoMl/samples/V1/AutoMlClient/update_model.php @@ -42,7 +42,7 @@ function update_model_sample(): void // Create a client. $autoMlClient = new AutoMlClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $model = new Model(); $updateMask = new FieldMask(); diff --git a/AutoMl/samples/V1/PredictionServiceClient/batch_predict.php b/AutoMl/samples/V1/PredictionServiceClient/batch_predict.php index 7407d1767962..33f09df6e3b4 100644 --- a/AutoMl/samples/V1/PredictionServiceClient/batch_predict.php +++ b/AutoMl/samples/V1/PredictionServiceClient/batch_predict.php @@ -70,7 +70,7 @@ function batch_predict_sample( // Create a client. $predictionServiceClient = new PredictionServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $inputConfigGcsSourceInputUris = [$inputConfigGcsSourceInputUrisElement,]; $inputConfigGcsSource = (new GcsSource()) ->setInputUris($inputConfigGcsSourceInputUris); diff --git a/AutoMl/samples/V1/PredictionServiceClient/predict.php b/AutoMl/samples/V1/PredictionServiceClient/predict.php index a47f8d825915..46da59b14be4 100644 --- a/AutoMl/samples/V1/PredictionServiceClient/predict.php +++ b/AutoMl/samples/V1/PredictionServiceClient/predict.php @@ -74,7 +74,7 @@ function predict_sample(string $formattedName): void // Create a client. $predictionServiceClient = new PredictionServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $payload = new ExamplePayload(); // Call the API and handle any network failures. diff --git a/AutoMl/samples/V1beta1/AutoMlClient/create_dataset.php b/AutoMl/samples/V1beta1/AutoMlClient/create_dataset.php index 210e02b4477d..b14700bd44af 100644 --- a/AutoMl/samples/V1beta1/AutoMlClient/create_dataset.php +++ b/AutoMl/samples/V1beta1/AutoMlClient/create_dataset.php @@ -38,7 +38,7 @@ function create_dataset_sample(string $formattedParent): void // Create a client. $autoMlClient = new AutoMlClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $dataset = new Dataset(); // Call the API and handle any network failures. diff --git a/AutoMl/samples/V1beta1/AutoMlClient/create_model.php b/AutoMl/samples/V1beta1/AutoMlClient/create_model.php index 73bc9657130b..d34cfe6e9dd9 100644 --- a/AutoMl/samples/V1beta1/AutoMlClient/create_model.php +++ b/AutoMl/samples/V1beta1/AutoMlClient/create_model.php @@ -44,7 +44,7 @@ function create_model_sample(string $formattedParent): void // Create a client. $autoMlClient = new AutoMlClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $model = new Model(); // Call the API and handle any network failures. diff --git a/AutoMl/samples/V1beta1/AutoMlClient/export_data.php b/AutoMl/samples/V1beta1/AutoMlClient/export_data.php index 28366524eb4b..a2f0d64a0388 100644 --- a/AutoMl/samples/V1beta1/AutoMlClient/export_data.php +++ b/AutoMl/samples/V1beta1/AutoMlClient/export_data.php @@ -42,7 +42,7 @@ function export_data_sample(string $formattedName): void // Create a client. $autoMlClient = new AutoMlClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $outputConfig = new OutputConfig(); // Call the API and handle any network failures. diff --git a/AutoMl/samples/V1beta1/AutoMlClient/export_evaluated_examples.php b/AutoMl/samples/V1beta1/AutoMlClient/export_evaluated_examples.php index 70c9f0ea7c93..b88ae3d3dc3b 100644 --- a/AutoMl/samples/V1beta1/AutoMlClient/export_evaluated_examples.php +++ b/AutoMl/samples/V1beta1/AutoMlClient/export_evaluated_examples.php @@ -54,7 +54,7 @@ function export_evaluated_examples_sample(string $formattedName): void // Create a client. $autoMlClient = new AutoMlClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $outputConfig = new ExportEvaluatedExamplesOutputConfig(); // Call the API and handle any network failures. diff --git a/AutoMl/samples/V1beta1/AutoMlClient/export_model.php b/AutoMl/samples/V1beta1/AutoMlClient/export_model.php index 5f2ca6294c5a..318e2a100d26 100644 --- a/AutoMl/samples/V1beta1/AutoMlClient/export_model.php +++ b/AutoMl/samples/V1beta1/AutoMlClient/export_model.php @@ -47,7 +47,7 @@ function export_model_sample(string $formattedName): void // Create a client. $autoMlClient = new AutoMlClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $outputConfig = new ModelExportOutputConfig(); // Call the API and handle any network failures. diff --git a/AutoMl/samples/V1beta1/AutoMlClient/import_data.php b/AutoMl/samples/V1beta1/AutoMlClient/import_data.php index 8e7dea40286c..5f30e6723744 100644 --- a/AutoMl/samples/V1beta1/AutoMlClient/import_data.php +++ b/AutoMl/samples/V1beta1/AutoMlClient/import_data.php @@ -49,7 +49,7 @@ function import_data_sample(string $formattedName): void // Create a client. $autoMlClient = new AutoMlClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $inputConfig = new InputConfig(); // Call the API and handle any network failures. diff --git a/AutoMl/samples/V1beta1/AutoMlClient/update_column_spec.php b/AutoMl/samples/V1beta1/AutoMlClient/update_column_spec.php index d96faeaaa8c4..1d83746cb301 100644 --- a/AutoMl/samples/V1beta1/AutoMlClient/update_column_spec.php +++ b/AutoMl/samples/V1beta1/AutoMlClient/update_column_spec.php @@ -41,7 +41,7 @@ function update_column_spec_sample(): void // Create a client. $autoMlClient = new AutoMlClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $columnSpec = new ColumnSpec(); // Call the API and handle any network failures. diff --git a/AutoMl/samples/V1beta1/AutoMlClient/update_dataset.php b/AutoMl/samples/V1beta1/AutoMlClient/update_dataset.php index 9e34fb460c3f..9f1c99947ca8 100644 --- a/AutoMl/samples/V1beta1/AutoMlClient/update_dataset.php +++ b/AutoMl/samples/V1beta1/AutoMlClient/update_dataset.php @@ -41,7 +41,7 @@ function update_dataset_sample(): void // Create a client. $autoMlClient = new AutoMlClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $dataset = new Dataset(); // Call the API and handle any network failures. diff --git a/AutoMl/samples/V1beta1/AutoMlClient/update_table_spec.php b/AutoMl/samples/V1beta1/AutoMlClient/update_table_spec.php index 1661455c752a..3ce7c28b1ab5 100644 --- a/AutoMl/samples/V1beta1/AutoMlClient/update_table_spec.php +++ b/AutoMl/samples/V1beta1/AutoMlClient/update_table_spec.php @@ -41,7 +41,7 @@ function update_table_spec_sample(): void // Create a client. $autoMlClient = new AutoMlClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $tableSpec = new TableSpec(); // Call the API and handle any network failures. diff --git a/AutoMl/samples/V1beta1/PredictionServiceClient/batch_predict.php b/AutoMl/samples/V1beta1/PredictionServiceClient/batch_predict.php index 85d43f962411..3c900d175323 100644 --- a/AutoMl/samples/V1beta1/PredictionServiceClient/batch_predict.php +++ b/AutoMl/samples/V1beta1/PredictionServiceClient/batch_predict.php @@ -53,7 +53,7 @@ function batch_predict_sample(string $formattedName): void // Create a client. $predictionServiceClient = new PredictionServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $inputConfig = new BatchPredictInputConfig(); $outputConfig = new BatchPredictOutputConfig(); $params = []; diff --git a/AutoMl/samples/V1beta1/PredictionServiceClient/predict.php b/AutoMl/samples/V1beta1/PredictionServiceClient/predict.php index 8bd4e95478e8..a9b9375c65ef 100644 --- a/AutoMl/samples/V1beta1/PredictionServiceClient/predict.php +++ b/AutoMl/samples/V1beta1/PredictionServiceClient/predict.php @@ -57,7 +57,7 @@ function predict_sample(string $formattedName): void // Create a client. $predictionServiceClient = new PredictionServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $payload = new ExamplePayload(); // Call the API and handle any network failures. diff --git a/BareMetalSolution/samples/V2/BareMetalSolutionClient/update_instance.php b/BareMetalSolution/samples/V2/BareMetalSolutionClient/update_instance.php index 167e7965f5a8..0ecb12a26380 100644 --- a/BareMetalSolution/samples/V2/BareMetalSolutionClient/update_instance.php +++ b/BareMetalSolution/samples/V2/BareMetalSolutionClient/update_instance.php @@ -43,7 +43,7 @@ function update_instance_sample(): void // Create a client. $bareMetalSolutionClient = new BareMetalSolutionClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $instance = new Instance(); // Call the API and handle any network failures. diff --git a/BareMetalSolution/samples/V2/BareMetalSolutionClient/update_network.php b/BareMetalSolution/samples/V2/BareMetalSolutionClient/update_network.php index dad0ff6cce81..bc9990125d7e 100644 --- a/BareMetalSolution/samples/V2/BareMetalSolutionClient/update_network.php +++ b/BareMetalSolution/samples/V2/BareMetalSolutionClient/update_network.php @@ -43,7 +43,7 @@ function update_network_sample(): void // Create a client. $bareMetalSolutionClient = new BareMetalSolutionClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $network = new Network(); // Call the API and handle any network failures. diff --git a/BareMetalSolution/samples/V2/BareMetalSolutionClient/update_nfs_share.php b/BareMetalSolution/samples/V2/BareMetalSolutionClient/update_nfs_share.php index e07dce96ca71..db7e07bba20c 100644 --- a/BareMetalSolution/samples/V2/BareMetalSolutionClient/update_nfs_share.php +++ b/BareMetalSolution/samples/V2/BareMetalSolutionClient/update_nfs_share.php @@ -43,7 +43,7 @@ function update_nfs_share_sample(): void // Create a client. $bareMetalSolutionClient = new BareMetalSolutionClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $nfsShare = new NfsShare(); // Call the API and handle any network failures. diff --git a/BareMetalSolution/samples/V2/BareMetalSolutionClient/update_volume.php b/BareMetalSolution/samples/V2/BareMetalSolutionClient/update_volume.php index fc820199694a..a52aa7b69ba6 100644 --- a/BareMetalSolution/samples/V2/BareMetalSolutionClient/update_volume.php +++ b/BareMetalSolution/samples/V2/BareMetalSolutionClient/update_volume.php @@ -43,7 +43,7 @@ function update_volume_sample(): void // Create a client. $bareMetalSolutionClient = new BareMetalSolutionClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $volume = new Volume(); // Call the API and handle any network failures. diff --git a/Batch/samples/V1/BatchServiceClient/create_job.php b/Batch/samples/V1/BatchServiceClient/create_job.php index 991cf626dd63..082ca1601c67 100644 --- a/Batch/samples/V1/BatchServiceClient/create_job.php +++ b/Batch/samples/V1/BatchServiceClient/create_job.php @@ -41,7 +41,7 @@ function create_job_sample(string $formattedParent): void // Create a client. $batchServiceClient = new BatchServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $jobTaskGroupsTaskSpec = new TaskSpec(); $taskGroup = (new TaskGroup()) ->setTaskSpec($jobTaskGroupsTaskSpec); diff --git a/Batch/src/V1/resources/batch_service_descriptor_config.php b/Batch/src/V1/resources/batch_service_descriptor_config.php index 704e8834bed1..febed4cf12e5 100644 --- a/Batch/src/V1/resources/batch_service_descriptor_config.php +++ b/Batch/src/V1/resources/batch_service_descriptor_config.php @@ -33,6 +33,9 @@ 'resourcesGetMethod' => 'getTasks', ], ], + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -42,6 +45,7 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', ], ], ], diff --git a/BeyondCorpAppConnections/samples/V1/AppConnectionsServiceClient/create_app_connection.php b/BeyondCorpAppConnections/samples/V1/AppConnectionsServiceClient/create_app_connection.php index ebee98608822..15bb1a9157c9 100644 --- a/BeyondCorpAppConnections/samples/V1/AppConnectionsServiceClient/create_app_connection.php +++ b/BeyondCorpAppConnections/samples/V1/AppConnectionsServiceClient/create_app_connection.php @@ -53,7 +53,7 @@ function create_app_connection_sample( // Create a client. $appConnectionsServiceClient = new AppConnectionsServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $appConnectionApplicationEndpoint = (new ApplicationEndpoint()) ->setHost($appConnectionApplicationEndpointHost) ->setPort($appConnectionApplicationEndpointPort); diff --git a/BeyondCorpAppConnections/samples/V1/AppConnectionsServiceClient/set_iam_policy.php b/BeyondCorpAppConnections/samples/V1/AppConnectionsServiceClient/set_iam_policy.php index 444d0b5ebc2e..1763fec743e3 100644 --- a/BeyondCorpAppConnections/samples/V1/AppConnectionsServiceClient/set_iam_policy.php +++ b/BeyondCorpAppConnections/samples/V1/AppConnectionsServiceClient/set_iam_policy.php @@ -42,7 +42,7 @@ function set_iam_policy_sample(string $resource): void // Create a client. $appConnectionsServiceClient = new AppConnectionsServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $policy = new Policy(); // Call the API and handle any network failures. diff --git a/BeyondCorpAppConnections/samples/V1/AppConnectionsServiceClient/test_iam_permissions.php b/BeyondCorpAppConnections/samples/V1/AppConnectionsServiceClient/test_iam_permissions.php index 6b41cf032e2a..b73eddb80f4b 100644 --- a/BeyondCorpAppConnections/samples/V1/AppConnectionsServiceClient/test_iam_permissions.php +++ b/BeyondCorpAppConnections/samples/V1/AppConnectionsServiceClient/test_iam_permissions.php @@ -48,7 +48,7 @@ function test_iam_permissions_sample(string $resource, string $permissionsElemen // Create a client. $appConnectionsServiceClient = new AppConnectionsServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $permissions = [$permissionsElement,]; // Call the API and handle any network failures. diff --git a/BeyondCorpAppConnections/samples/V1/AppConnectionsServiceClient/update_app_connection.php b/BeyondCorpAppConnections/samples/V1/AppConnectionsServiceClient/update_app_connection.php index adf18d4e77cf..11c873b56e1b 100644 --- a/BeyondCorpAppConnections/samples/V1/AppConnectionsServiceClient/update_app_connection.php +++ b/BeyondCorpAppConnections/samples/V1/AppConnectionsServiceClient/update_app_connection.php @@ -50,7 +50,7 @@ function update_app_connection_sample( // Create a client. $appConnectionsServiceClient = new AppConnectionsServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $updateMask = new FieldMask(); $appConnectionApplicationEndpoint = (new ApplicationEndpoint()) ->setHost($appConnectionApplicationEndpointHost) diff --git a/BeyondCorpAppConnections/src/V1/Gapic/AppConnectionsServiceGapicClient.php b/BeyondCorpAppConnections/src/V1/Gapic/AppConnectionsServiceGapicClient.php index 23c82e674c34..171345141be6 100644 --- a/BeyondCorpAppConnections/src/V1/Gapic/AppConnectionsServiceGapicClient.php +++ b/BeyondCorpAppConnections/src/V1/Gapic/AppConnectionsServiceGapicClient.php @@ -143,6 +143,8 @@ class AppConnectionsServiceGapicClient private static $appConnectorNameTemplate; + private static $appGatewayNameTemplate; + private static $locationNameTemplate; private static $pathTemplateMap; @@ -199,6 +201,17 @@ private static function getAppConnectorNameTemplate() return self::$appConnectorNameTemplate; } + private static function getAppGatewayNameTemplate() + { + if (self::$appGatewayNameTemplate == null) { + self::$appGatewayNameTemplate = new PathTemplate( + 'projects/{project}/locations/{location}/appGateways/{app_gateway}' + ); + } + + return self::$appGatewayNameTemplate; + } + private static function getLocationNameTemplate() { if (self::$locationNameTemplate == null) { @@ -216,6 +229,7 @@ private static function getPathTemplateMap() self::$pathTemplateMap = [ 'appConnection' => self::getAppConnectionNameTemplate(), 'appConnector' => self::getAppConnectorNameTemplate(), + 'appGateway' => self::getAppGatewayNameTemplate(), 'location' => self::getLocationNameTemplate(), ]; } @@ -264,6 +278,25 @@ public static function appConnectorName($project, $location, $appConnector) ]); } + /** + * Formats a string containing the fully-qualified path to represent a app_gateway + * resource. + * + * @param string $project + * @param string $location + * @param string $appGateway + * + * @return string The formatted app_gateway resource. + */ + public static function appGatewayName($project, $location, $appGateway) + { + return self::getAppGatewayNameTemplate()->render([ + 'project' => $project, + 'location' => $location, + 'app_gateway' => $appGateway, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a location * resource. @@ -287,6 +320,7 @@ public static function locationName($project, $location) * Template: Pattern * - appConnection: projects/{project}/locations/{location}/appConnections/{app_connection} * - appConnector: projects/{project}/locations/{location}/appConnectors/{app_connector} + * - appGateway: projects/{project}/locations/{location}/appGateways/{app_gateway} * - location: projects/{project}/locations/{location} * * The optional $template argument can be supplied to specify a particular pattern, diff --git a/BeyondCorpAppConnections/src/V1/resources/app_connections_service_descriptor_config.php b/BeyondCorpAppConnections/src/V1/resources/app_connections_service_descriptor_config.php index 826cb720847b..4ec11ddc9ef5 100644 --- a/BeyondCorpAppConnections/src/V1/resources/app_connections_service_descriptor_config.php +++ b/BeyondCorpAppConnections/src/V1/resources/app_connections_service_descriptor_config.php @@ -53,6 +53,9 @@ 'resourcesGetMethod' => 'getAppConnectionDetails', ], ], + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -62,6 +65,16 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'GetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', ], ], ], diff --git a/BeyondCorpAppConnectors/samples/V1/AppConnectorsServiceClient/create_app_connector.php b/BeyondCorpAppConnectors/samples/V1/AppConnectorsServiceClient/create_app_connector.php index 8ebe933a49b2..30415dbf4b1e 100644 --- a/BeyondCorpAppConnectors/samples/V1/AppConnectorsServiceClient/create_app_connector.php +++ b/BeyondCorpAppConnectors/samples/V1/AppConnectorsServiceClient/create_app_connector.php @@ -44,7 +44,7 @@ function create_app_connector_sample(string $formattedParent, string $appConnect // Create a client. $appConnectorsServiceClient = new AppConnectorsServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $appConnectorPrincipalInfo = new PrincipalInfo(); $appConnector = (new AppConnector()) ->setName($appConnectorName) diff --git a/BeyondCorpAppConnectors/samples/V1/AppConnectorsServiceClient/report_status.php b/BeyondCorpAppConnectors/samples/V1/AppConnectorsServiceClient/report_status.php index f7db25092e9c..5d7714c0f2aa 100644 --- a/BeyondCorpAppConnectors/samples/V1/AppConnectorsServiceClient/report_status.php +++ b/BeyondCorpAppConnectors/samples/V1/AppConnectorsServiceClient/report_status.php @@ -43,7 +43,7 @@ function report_status_sample(string $formattedAppConnector, string $resourceInf // Create a client. $appConnectorsServiceClient = new AppConnectorsServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $resourceInfo = (new ResourceInfo()) ->setId($resourceInfoId); diff --git a/BeyondCorpAppConnectors/samples/V1/AppConnectorsServiceClient/set_iam_policy.php b/BeyondCorpAppConnectors/samples/V1/AppConnectorsServiceClient/set_iam_policy.php index 3a2278e5479d..b01468ff9e6b 100644 --- a/BeyondCorpAppConnectors/samples/V1/AppConnectorsServiceClient/set_iam_policy.php +++ b/BeyondCorpAppConnectors/samples/V1/AppConnectorsServiceClient/set_iam_policy.php @@ -42,7 +42,7 @@ function set_iam_policy_sample(string $resource): void // Create a client. $appConnectorsServiceClient = new AppConnectorsServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $policy = new Policy(); // Call the API and handle any network failures. diff --git a/BeyondCorpAppConnectors/samples/V1/AppConnectorsServiceClient/test_iam_permissions.php b/BeyondCorpAppConnectors/samples/V1/AppConnectorsServiceClient/test_iam_permissions.php index ec6245eda28a..43a1de09475f 100644 --- a/BeyondCorpAppConnectors/samples/V1/AppConnectorsServiceClient/test_iam_permissions.php +++ b/BeyondCorpAppConnectors/samples/V1/AppConnectorsServiceClient/test_iam_permissions.php @@ -48,7 +48,7 @@ function test_iam_permissions_sample(string $resource, string $permissionsElemen // Create a client. $appConnectorsServiceClient = new AppConnectorsServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $permissions = [$permissionsElement,]; // Call the API and handle any network failures. diff --git a/BeyondCorpAppConnectors/samples/V1/AppConnectorsServiceClient/update_app_connector.php b/BeyondCorpAppConnectors/samples/V1/AppConnectorsServiceClient/update_app_connector.php index 658aa75b8c82..77ab88fb2101 100644 --- a/BeyondCorpAppConnectors/samples/V1/AppConnectorsServiceClient/update_app_connector.php +++ b/BeyondCorpAppConnectors/samples/V1/AppConnectorsServiceClient/update_app_connector.php @@ -42,7 +42,7 @@ function update_app_connector_sample(string $appConnectorName): void // Create a client. $appConnectorsServiceClient = new AppConnectorsServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $updateMask = new FieldMask(); $appConnectorPrincipalInfo = new PrincipalInfo(); $appConnector = (new AppConnector()) diff --git a/BeyondCorpAppConnectors/src/V1/resources/app_connectors_service_descriptor_config.php b/BeyondCorpAppConnectors/src/V1/resources/app_connectors_service_descriptor_config.php index 8eff1579937e..d04a3c4796d7 100644 --- a/BeyondCorpAppConnectors/src/V1/resources/app_connectors_service_descriptor_config.php +++ b/BeyondCorpAppConnectors/src/V1/resources/app_connectors_service_descriptor_config.php @@ -53,6 +53,9 @@ 'resourcesGetMethod' => 'getAppConnectors', ], ], + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -62,6 +65,16 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'GetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', ], ], ], diff --git a/BeyondCorpAppGateways/samples/V1/AppGatewaysServiceClient/create_app_gateway.php b/BeyondCorpAppGateways/samples/V1/AppGatewaysServiceClient/create_app_gateway.php index 1d12cbf420a2..a368298672c1 100644 --- a/BeyondCorpAppGateways/samples/V1/AppGatewaysServiceClient/create_app_gateway.php +++ b/BeyondCorpAppGateways/samples/V1/AppGatewaysServiceClient/create_app_gateway.php @@ -51,7 +51,7 @@ function create_app_gateway_sample( // Create a client. $appGatewaysServiceClient = new AppGatewaysServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $appGateway = (new AppGateway()) ->setName($appGatewayName) ->setType($appGatewayType) diff --git a/BeyondCorpAppGateways/samples/V1/AppGatewaysServiceClient/set_iam_policy.php b/BeyondCorpAppGateways/samples/V1/AppGatewaysServiceClient/set_iam_policy.php index 0203e41aa6ec..fc462eced7f7 100644 --- a/BeyondCorpAppGateways/samples/V1/AppGatewaysServiceClient/set_iam_policy.php +++ b/BeyondCorpAppGateways/samples/V1/AppGatewaysServiceClient/set_iam_policy.php @@ -42,7 +42,7 @@ function set_iam_policy_sample(string $resource): void // Create a client. $appGatewaysServiceClient = new AppGatewaysServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $policy = new Policy(); // Call the API and handle any network failures. diff --git a/BeyondCorpAppGateways/samples/V1/AppGatewaysServiceClient/test_iam_permissions.php b/BeyondCorpAppGateways/samples/V1/AppGatewaysServiceClient/test_iam_permissions.php index 74a280917a53..f9738dff85e8 100644 --- a/BeyondCorpAppGateways/samples/V1/AppGatewaysServiceClient/test_iam_permissions.php +++ b/BeyondCorpAppGateways/samples/V1/AppGatewaysServiceClient/test_iam_permissions.php @@ -48,7 +48,7 @@ function test_iam_permissions_sample(string $resource, string $permissionsElemen // Create a client. $appGatewaysServiceClient = new AppGatewaysServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $permissions = [$permissionsElement,]; // Call the API and handle any network failures. diff --git a/BeyondCorpAppGateways/src/V1/resources/app_gateways_service_descriptor_config.php b/BeyondCorpAppGateways/src/V1/resources/app_gateways_service_descriptor_config.php index 5552077a4947..f49bc450817d 100644 --- a/BeyondCorpAppGateways/src/V1/resources/app_gateways_service_descriptor_config.php +++ b/BeyondCorpAppGateways/src/V1/resources/app_gateways_service_descriptor_config.php @@ -33,6 +33,9 @@ 'resourcesGetMethod' => 'getAppGateways', ], ], + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -42,6 +45,16 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'GetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', ], ], ], diff --git a/BeyondCorpClientConnectorServices/samples/V1/ClientConnectorServicesServiceClient/create_client_connector_service.php b/BeyondCorpClientConnectorServices/samples/V1/ClientConnectorServicesServiceClient/create_client_connector_service.php index 59c73322f006..c0c9addbdae4 100644 --- a/BeyondCorpClientConnectorServices/samples/V1/ClientConnectorServicesServiceClient/create_client_connector_service.php +++ b/BeyondCorpClientConnectorServices/samples/V1/ClientConnectorServicesServiceClient/create_client_connector_service.php @@ -45,7 +45,7 @@ function create_client_connector_service_sample( // Create a client. $clientConnectorServicesServiceClient = new ClientConnectorServicesServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $clientConnectorServiceIngress = new Ingress(); $clientConnectorServiceEgress = new Egress(); $clientConnectorService = (new ClientConnectorService()) diff --git a/BeyondCorpClientConnectorServices/samples/V1/ClientConnectorServicesServiceClient/set_iam_policy.php b/BeyondCorpClientConnectorServices/samples/V1/ClientConnectorServicesServiceClient/set_iam_policy.php index ff24cc887023..6af3a8139f38 100644 --- a/BeyondCorpClientConnectorServices/samples/V1/ClientConnectorServicesServiceClient/set_iam_policy.php +++ b/BeyondCorpClientConnectorServices/samples/V1/ClientConnectorServicesServiceClient/set_iam_policy.php @@ -42,7 +42,7 @@ function set_iam_policy_sample(string $resource): void // Create a client. $clientConnectorServicesServiceClient = new ClientConnectorServicesServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $policy = new Policy(); // Call the API and handle any network failures. diff --git a/BeyondCorpClientConnectorServices/samples/V1/ClientConnectorServicesServiceClient/test_iam_permissions.php b/BeyondCorpClientConnectorServices/samples/V1/ClientConnectorServicesServiceClient/test_iam_permissions.php index fb34e335df9b..43f4937d44f0 100644 --- a/BeyondCorpClientConnectorServices/samples/V1/ClientConnectorServicesServiceClient/test_iam_permissions.php +++ b/BeyondCorpClientConnectorServices/samples/V1/ClientConnectorServicesServiceClient/test_iam_permissions.php @@ -48,7 +48,7 @@ function test_iam_permissions_sample(string $resource, string $permissionsElemen // Create a client. $clientConnectorServicesServiceClient = new ClientConnectorServicesServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $permissions = [$permissionsElement,]; // Call the API and handle any network failures. diff --git a/BeyondCorpClientConnectorServices/samples/V1/ClientConnectorServicesServiceClient/update_client_connector_service.php b/BeyondCorpClientConnectorServices/samples/V1/ClientConnectorServicesServiceClient/update_client_connector_service.php index aed552bf47d4..2b96f5a70438 100644 --- a/BeyondCorpClientConnectorServices/samples/V1/ClientConnectorServicesServiceClient/update_client_connector_service.php +++ b/BeyondCorpClientConnectorServices/samples/V1/ClientConnectorServicesServiceClient/update_client_connector_service.php @@ -42,7 +42,7 @@ function update_client_connector_service_sample(string $clientConnectorServiceNa // Create a client. $clientConnectorServicesServiceClient = new ClientConnectorServicesServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $updateMask = new FieldMask(); $clientConnectorServiceIngress = new Ingress(); $clientConnectorServiceEgress = new Egress(); diff --git a/BeyondCorpClientConnectorServices/src/V1/resources/client_connector_services_service_descriptor_config.php b/BeyondCorpClientConnectorServices/src/V1/resources/client_connector_services_service_descriptor_config.php index 51eb9cfa3f4b..b30050512aa7 100644 --- a/BeyondCorpClientConnectorServices/src/V1/resources/client_connector_services_service_descriptor_config.php +++ b/BeyondCorpClientConnectorServices/src/V1/resources/client_connector_services_service_descriptor_config.php @@ -43,6 +43,9 @@ 'resourcesGetMethod' => 'getClientConnectorServices', ], ], + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -52,6 +55,16 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'GetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', ], ], ], diff --git a/BeyondCorpClientGateways/samples/V1/ClientGatewaysServiceClient/create_client_gateway.php b/BeyondCorpClientGateways/samples/V1/ClientGatewaysServiceClient/create_client_gateway.php index 576ea4992421..73a2ec40cece 100644 --- a/BeyondCorpClientGateways/samples/V1/ClientGatewaysServiceClient/create_client_gateway.php +++ b/BeyondCorpClientGateways/samples/V1/ClientGatewaysServiceClient/create_client_gateway.php @@ -41,7 +41,7 @@ function create_client_gateway_sample(string $formattedParent, string $clientGat // Create a client. $clientGatewaysServiceClient = new ClientGatewaysServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $clientGateway = (new ClientGateway()) ->setName($clientGatewayName); diff --git a/BeyondCorpClientGateways/samples/V1/ClientGatewaysServiceClient/set_iam_policy.php b/BeyondCorpClientGateways/samples/V1/ClientGatewaysServiceClient/set_iam_policy.php index c03023366361..2a88a2c692f6 100644 --- a/BeyondCorpClientGateways/samples/V1/ClientGatewaysServiceClient/set_iam_policy.php +++ b/BeyondCorpClientGateways/samples/V1/ClientGatewaysServiceClient/set_iam_policy.php @@ -42,7 +42,7 @@ function set_iam_policy_sample(string $resource): void // Create a client. $clientGatewaysServiceClient = new ClientGatewaysServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $policy = new Policy(); // Call the API and handle any network failures. diff --git a/BeyondCorpClientGateways/samples/V1/ClientGatewaysServiceClient/test_iam_permissions.php b/BeyondCorpClientGateways/samples/V1/ClientGatewaysServiceClient/test_iam_permissions.php index 193ca7d827f8..0de484c61517 100644 --- a/BeyondCorpClientGateways/samples/V1/ClientGatewaysServiceClient/test_iam_permissions.php +++ b/BeyondCorpClientGateways/samples/V1/ClientGatewaysServiceClient/test_iam_permissions.php @@ -48,7 +48,7 @@ function test_iam_permissions_sample(string $resource, string $permissionsElemen // Create a client. $clientGatewaysServiceClient = new ClientGatewaysServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $permissions = [$permissionsElement,]; // Call the API and handle any network failures. diff --git a/BeyondCorpClientGateways/src/V1/resources/client_gateways_service_descriptor_config.php b/BeyondCorpClientGateways/src/V1/resources/client_gateways_service_descriptor_config.php index 646d8ba5930f..4e071f167f70 100644 --- a/BeyondCorpClientGateways/src/V1/resources/client_gateways_service_descriptor_config.php +++ b/BeyondCorpClientGateways/src/V1/resources/client_gateways_service_descriptor_config.php @@ -33,6 +33,9 @@ 'resourcesGetMethod' => 'getClientGateways', ], ], + 'GetLocation' => [ + 'interfaceOverride' => 'google.cloud.location.Locations', + ], 'ListLocations' => [ 'pageStreaming' => [ 'requestPageTokenGetMethod' => 'getPageToken', @@ -42,6 +45,16 @@ 'responsePageTokenGetMethod' => 'getNextPageToken', 'resourcesGetMethod' => 'getLocations', ], + 'interfaceOverride' => 'google.cloud.location.Locations', + ], + 'GetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'SetIamPolicy' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', + ], + 'TestIamPermissions' => [ + 'interfaceOverride' => 'google.iam.v1.IAMPolicy', ], ], ], diff --git a/BigQueryAnalyticsHub/samples/V1/AnalyticsHubServiceClient/create_data_exchange.php b/BigQueryAnalyticsHub/samples/V1/AnalyticsHubServiceClient/create_data_exchange.php index a83ac1984b1a..7e69ea9346e7 100644 --- a/BigQueryAnalyticsHub/samples/V1/AnalyticsHubServiceClient/create_data_exchange.php +++ b/BigQueryAnalyticsHub/samples/V1/AnalyticsHubServiceClient/create_data_exchange.php @@ -52,7 +52,7 @@ function create_data_exchange_sample( // Create a client. $analyticsHubServiceClient = new AnalyticsHubServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $dataExchange = (new DataExchange()) ->setDisplayName($dataExchangeDisplayName); diff --git a/BigQueryAnalyticsHub/samples/V1/AnalyticsHubServiceClient/create_listing.php b/BigQueryAnalyticsHub/samples/V1/AnalyticsHubServiceClient/create_listing.php index daa592f40bd3..a2062b5de6e6 100644 --- a/BigQueryAnalyticsHub/samples/V1/AnalyticsHubServiceClient/create_listing.php +++ b/BigQueryAnalyticsHub/samples/V1/AnalyticsHubServiceClient/create_listing.php @@ -53,7 +53,7 @@ function create_listing_sample( // Create a client. $analyticsHubServiceClient = new AnalyticsHubServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $listingBigqueryDataset = new BigQueryDatasetSource(); $listing = (new Listing()) ->setBigqueryDataset($listingBigqueryDataset) diff --git a/BigQueryAnalyticsHub/samples/V1/AnalyticsHubServiceClient/set_iam_policy.php b/BigQueryAnalyticsHub/samples/V1/AnalyticsHubServiceClient/set_iam_policy.php index 2d62a068d065..19256c1540d2 100644 --- a/BigQueryAnalyticsHub/samples/V1/AnalyticsHubServiceClient/set_iam_policy.php +++ b/BigQueryAnalyticsHub/samples/V1/AnalyticsHubServiceClient/set_iam_policy.php @@ -38,7 +38,7 @@ function set_iam_policy_sample(string $resource): void // Create a client. $analyticsHubServiceClient = new AnalyticsHubServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $policy = new Policy(); // Call the API and handle any network failures. diff --git a/BigQueryAnalyticsHub/samples/V1/AnalyticsHubServiceClient/test_iam_permissions.php b/BigQueryAnalyticsHub/samples/V1/AnalyticsHubServiceClient/test_iam_permissions.php index 6c052f5a8655..12da73a2a288 100644 --- a/BigQueryAnalyticsHub/samples/V1/AnalyticsHubServiceClient/test_iam_permissions.php +++ b/BigQueryAnalyticsHub/samples/V1/AnalyticsHubServiceClient/test_iam_permissions.php @@ -42,7 +42,7 @@ function test_iam_permissions_sample(string $resource, string $permissionsElemen // Create a client. $analyticsHubServiceClient = new AnalyticsHubServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $permissions = [$permissionsElement,]; // Call the API and handle any network failures. diff --git a/BigQueryAnalyticsHub/samples/V1/AnalyticsHubServiceClient/update_data_exchange.php b/BigQueryAnalyticsHub/samples/V1/AnalyticsHubServiceClient/update_data_exchange.php index 8b1716a12e53..99cf0dec7284 100644 --- a/BigQueryAnalyticsHub/samples/V1/AnalyticsHubServiceClient/update_data_exchange.php +++ b/BigQueryAnalyticsHub/samples/V1/AnalyticsHubServiceClient/update_data_exchange.php @@ -42,7 +42,7 @@ function update_data_exchange_sample(string $dataExchangeDisplayName): void // Create a client. $analyticsHubServiceClient = new AnalyticsHubServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $updateMask = new FieldMask(); $dataExchange = (new DataExchange()) ->setDisplayName($dataExchangeDisplayName); diff --git a/BigQueryAnalyticsHub/samples/V1/AnalyticsHubServiceClient/update_listing.php b/BigQueryAnalyticsHub/samples/V1/AnalyticsHubServiceClient/update_listing.php index 2baa58eb8089..30d6b71a7d74 100644 --- a/BigQueryAnalyticsHub/samples/V1/AnalyticsHubServiceClient/update_listing.php +++ b/BigQueryAnalyticsHub/samples/V1/AnalyticsHubServiceClient/update_listing.php @@ -43,7 +43,7 @@ function update_listing_sample(string $listingDisplayName): void // Create a client. $analyticsHubServiceClient = new AnalyticsHubServiceClient(); - // Prepare any non-scalar elements to be passed along with the request. + // Prepare the request message. $updateMask = new FieldMask(); $listingBigqueryDataset = new BigQueryDatasetSource(); $listing = (new Listing()) diff --git a/BigQueryAnalyticsHub/src/V1/Gapic/AnalyticsHubServiceGapicClient.php b/BigQueryAnalyticsHub/src/V1/Gapic/AnalyticsHubServiceGapicClient.php index 3ffe42493fa7..c3f603016a98 100644 --- a/BigQueryAnalyticsHub/src/V1/Gapic/AnalyticsHubServiceGapicClient.php +++ b/BigQueryAnalyticsHub/src/V1/Gapic/AnalyticsHubServiceGapicClient.php @@ -113,6 +113,8 @@ class AnalyticsHubServiceGapicClient private static $dataExchangeNameTemplate; + private static $datasetNameTemplate; + private static $listingNameTemplate; private static $locationNameTemplate; @@ -158,6 +160,17 @@ private static function getDataExchangeNameTemplate() return self::$dataExchangeNameTemplate; } + private static function getDatasetNameTemplate() + { + if (self::$datasetNameTemplate == null) { + self::$datasetNameTemplate = new PathTemplate( + 'projects/{project}/datasets/{dataset}' + ); + } + + return self::$datasetNameTemplate; + } + private static function getListingNameTemplate() { if (self::$listingNameTemplate == null) { @@ -185,6 +198,7 @@ private static function getPathTemplateMap() if (self::$pathTemplateMap == null) { self::$pathTemplateMap = [ 'dataExchange' => self::getDataExchangeNameTemplate(), + 'dataset' => self::getDatasetNameTemplate(), 'listing' => self::getListingNameTemplate(), 'location' => self::getLocationNameTemplate(), ]; @@ -212,6 +226,23 @@ public static function dataExchangeName($project, $location, $dataExchange) ]); } + /** + * Formats a string containing the fully-qualified path to represent a dataset + * resource. + * + * @param string $project + * @param string $dataset + * + * @return string The formatted dataset resource. + */ + public static function datasetName($project, $dataset) + { + return self::getDatasetNameTemplate()->render([ + 'project' => $project, + 'dataset' => $dataset, + ]); + } + /** * Formats a string containing the fully-qualified path to represent a listing * resource. @@ -259,6 +290,7 @@ public static function locationName($project, $location) * The following name formats are supported: * Template: Pattern * - dataExchange: projects/{project}/locations/{location}/dataExchanges/{data_exchange} + * - dataset: projects/{project}/datasets/{dataset} * - listing: projects/{project}/locations/{location}/dataExchanges/{data_exchange}/listings/{listing} * - location: projects/{project}/locations/{location} *