Skip to content

Commit

Permalink
🦉 Updates from OwlBot post-processor
Browse files Browse the repository at this point in the history
  • Loading branch information
gcf-owl-bot[bot] committed Nov 5, 2024
1 parent 0062273 commit 0c6a867
Show file tree
Hide file tree
Showing 1,744 changed files with 355 additions and 351,841 deletions.
8 changes: 5 additions & 3 deletions AiPlatform/metadata/V1/FeatureRegistryService.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file modified AiPlatform/metadata/V1/FeaturestoreService.php
Binary file not shown.
Binary file modified AiPlatform/metadata/V1/Tool.php
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
* @param string $featureGroupId The ID to use for this FeatureGroup, which will become the final
* component of the FeatureGroup's resource name.
*
* This value may be up to 60 characters, and valid characters are
* This value may be up to 128 characters, and valid characters are
* `[a-z0-9_]`. The first character cannot be a number.
*
* The value must be unique within the project and location.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@
/**
* Creates a batch of Features in a given EntityType.
*
* @param string $formattedParent The resource name of the EntityType to create the batch of
* Features under. Format:
* @param string $formattedParent The resource name of the EntityType/FeatureGroup to create the
* batch of Features under. Format:
* `projects/{project}/locations/{location}/featurestores/{featurestore}/entityTypes/{entity_type}`
* `projects/{project}/locations/{location}/featureGroups/{feature_group}`
* Please see {@see FeaturestoreServiceClient::entityTypeName()} for help formatting this field.
* @param string $formattedRequestsParent The resource name of the EntityType or FeatureGroup to create a
* Feature. Format for entity_type as parent:
Expand Down
67 changes: 37 additions & 30 deletions AiPlatform/src/V1/BatchCreateFeaturesRequest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

29 changes: 29 additions & 0 deletions AiPlatform/src/V1/Client/FeatureRegistryServiceClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
use Google\ApiCore\Transport\TransportInterface;
use Google\ApiCore\ValidationException;
use Google\Auth\FetchAuthTokenInterface;
use Google\Cloud\AIPlatform\V1\BatchCreateFeaturesRequest;
use Google\Cloud\AIPlatform\V1\CreateFeatureGroupRequest;
use Google\Cloud\AIPlatform\V1\CreateFeatureRequest;
use Google\Cloud\AIPlatform\V1\DeleteFeatureGroupRequest;
Expand Down Expand Up @@ -70,6 +71,7 @@
* name, and additionally a parseName method to extract the individual identifiers
* contained within formatted names that are returned by the API.
*
* @method PromiseInterface<OperationResponse> batchCreateFeaturesAsync(BatchCreateFeaturesRequest $request, array $optionalArgs = [])
* @method PromiseInterface<OperationResponse> createFeatureAsync(CreateFeatureRequest $request, array $optionalArgs = [])
* @method PromiseInterface<OperationResponse> createFeatureGroupAsync(CreateFeatureGroupRequest $request, array $optionalArgs = [])
* @method PromiseInterface<OperationResponse> deleteFeatureAsync(DeleteFeatureRequest $request, array $optionalArgs = [])
Expand Down Expand Up @@ -427,6 +429,33 @@ public function __call($method, $args)
return call_user_func_array([$this, 'startAsyncCall'], $args);
}

/**
* Creates a batch of Features in a given FeatureGroup.
*
* The async variant is
* {@see FeatureRegistryServiceClient::batchCreateFeaturesAsync()} .
*
* @example samples/V1/FeatureRegistryServiceClient/batch_create_features.php
*
* @param BatchCreateFeaturesRequest $request A request to house fields associated with the call.
* @param array $callOptions {
* Optional.
*
* @type RetrySettings|array $retrySettings
* Retry settings to use for this call. Can be a {@see RetrySettings} object, or an
* associative array of retry settings parameters. See the documentation on
* {@see RetrySettings} for example usage.
* }
*
* @return OperationResponse
*
* @throws ApiException Thrown if the API call fails.
*/
public function batchCreateFeatures(BatchCreateFeaturesRequest $request, array $callOptions = []): OperationResponse
{
return $this->startApiCall('BatchCreateFeatures', $request, $callOptions)->wait();
}

/**
* Creates a new Feature in a given FeatureGroup.
*
Expand Down
10 changes: 5 additions & 5 deletions AiPlatform/src/V1/CreateFeatureGroupRequest.php

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 0c6a867

Please sign in to comment.