* $recommendationengineService = new Google\Service\RecommendationsAI(...); * $predictionApiKeyRegistrations = $recommendationengineService->predictionApiKeyRegistrations; * */ class ProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrations extends \Google\Service\Resource { /** * Register an API key for use with predict method. * (predictionApiKeyRegistrations.create) * * @param string $parent Required. The parent resource path. `projects/locations * /global/catalogs/default_catalog/eventStores/default_event_store`. * @param GoogleCloudRecommendationengineV1beta1CreatePredictionApiKeyRegistrationRequest $postBody * @param array $optParams Optional parameters. * @return GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration */ public function create($parent, GoogleCloudRecommendationengineV1beta1CreatePredictionApiKeyRegistrationRequest $postBody, $optParams = []) { $params = ['parent' => $parent, 'postBody' => $postBody]; $params = array_merge($params, $optParams); return $this->call('create', [$params], GoogleCloudRecommendationengineV1beta1PredictionApiKeyRegistration::class); } /** * Unregister an apiKey from using for predict method. * (predictionApiKeyRegistrations.delete) * * @param string $name Required. The API key to unregister including full * resource path. `projects/locations/global/catalogs/default_catalog/eventStore * s/default_event_store/predictionApiKeyRegistrations/` * @param array $optParams Optional parameters. * @return GoogleProtobufEmpty */ public function delete($name, $optParams = []) { $params = ['name' => $name]; $params = array_merge($params, $optParams); return $this->call('delete', [$params], GoogleProtobufEmpty::class); } /** * List the registered apiKeys for use with predict method. (predictionApiKeyReg * istrations.listProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrati * ons) * * @param string $parent Required. The parent placement resource name such as `p * rojects/1234/locations/global/catalogs/default_catalog/eventStores/default_ev * ent_store` * @param array $optParams Optional parameters. * * @opt_param int pageSize Optional. Maximum number of results to return per * page. If unset, the service will choose a reasonable default. * @opt_param string pageToken Optional. The previous * `ListPredictionApiKeyRegistration.nextPageToken`. * @return GoogleCloudRecommendationengineV1beta1ListPredictionApiKeyRegistrationsResponse */ public function listProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrations($parent, $optParams = []) { $params = ['parent' => $parent]; $params = array_merge($params, $optParams); return $this->call('list', [$params], GoogleCloudRecommendationengineV1beta1ListPredictionApiKeyRegistrationsResponse::class); } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(ProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrations::class, 'Google_Service_RecommendationsAI_Resource_ProjectsLocationsCatalogsEventStoresPredictionApiKeyRegistrations');