JFIF x x C C " } !1AQa "q2#BR$3br %&'()*456789:CDEFGHIJSTUVWXYZcdefghijstuvwxyz w !1AQ aq"2B #3Rbr{
File "ProjectsLocationsRecommenders.php"
Full Path: /home/u743136113/domains/arvi.seezify.com/public_html/vendor/google/apiclient-services/src/Recommender/Resource/ProjectsLocationsRecommenders.php
File size: 3.2 KB
MIME-type: text/x-php
Charset: utf-8
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Recommender\Resource;
use Google\Service\Recommender\GoogleCloudRecommenderV1RecommenderConfig;
/**
* The "recommenders" collection of methods.
* Typical usage is:
* <code>
* $recommenderService = new Google\Service\Recommender(...);
* $recommenders = $recommenderService->projects_locations_recommenders;
* </code>
*/
class ProjectsLocationsRecommenders extends \Google\Service\Resource
{
/**
* Gets the requested Recommender Config. There is only one instance of the
* config for each Recommender. (recommenders.getConfig)
*
* @param string $name Required. Name of the Recommendation Config to get.
* Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/recomme
* nders/[RECOMMENDER_ID]/config` * `projects/[PROJECT_ID]/locations/[LOCATION]/
* recommenders/[RECOMMENDER_ID]/config` * `organizations/[ORGANIZATION_ID]/loca
* tions/[LOCATION]/recommenders/[RECOMMENDER_ID]/config` * `billingAccounts/[BI
* LLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config`
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1RecommenderConfig
* @throws \Google\Service\Exception
*/
public function getConfig($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getConfig', [$params], GoogleCloudRecommenderV1RecommenderConfig::class);
}
/**
* Updates a Recommender Config. This will create a new revision of the config.
* (recommenders.updateConfig)
*
* @param string $name Identifier. Name of recommender config. Eg, projects/[PRO
* JECT_NUMBER]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]/config
* @param GoogleCloudRecommenderV1RecommenderConfig $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string updateMask The list of fields to be updated.
* @opt_param bool validateOnly If true, validate the request and preview the
* change, but do not actually update it.
* @return GoogleCloudRecommenderV1RecommenderConfig
* @throws \Google\Service\Exception
*/
public function updateConfig($name, GoogleCloudRecommenderV1RecommenderConfig $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateConfig', [$params], GoogleCloudRecommenderV1RecommenderConfig::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRecommenders::class, 'Google_Service_Recommender_Resource_ProjectsLocationsRecommenders');