Skip to content

Commit

Permalink
chore(bazel): [Many APIs] update GAPIC PHP generator to v1.7.2 (#6154)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] authored May 3, 2023
1 parent 5666588 commit c9f6cd4
Show file tree
Hide file tree
Showing 323 changed files with 1,403 additions and 286 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion AiPlatform/samples/V1/DatasetServiceClient/export_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
2 changes: 1 addition & 1 deletion AiPlatform/samples/V1/DatasetServiceClient/import_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -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,];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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,];
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
Loading

0 comments on commit c9f6cd4

Please sign in to comment.