Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -0,0 +1,76 @@
<?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;
class GoogleCloudRecommenderV1CostProjection extends \Google\Model
{
protected $costType = GoogleTypeMoney::class;
protected $costDataType = '';
protected $costInLocalCurrencyType = GoogleTypeMoney::class;
protected $costInLocalCurrencyDataType = '';
/**
* @var string
*/
public $duration;
/**
* @param GoogleTypeMoney
*/
public function setCost(GoogleTypeMoney $cost)
{
$this->cost = $cost;
}
/**
* @return GoogleTypeMoney
*/
public function getCost()
{
return $this->cost;
}
/**
* @param GoogleTypeMoney
*/
public function setCostInLocalCurrency(GoogleTypeMoney $costInLocalCurrency)
{
$this->costInLocalCurrency = $costInLocalCurrency;
}
/**
* @return GoogleTypeMoney
*/
public function getCostInLocalCurrency()
{
return $this->costInLocalCurrency;
}
/**
* @param string
*/
public function setDuration($duration)
{
$this->duration = $duration;
}
/**
* @return string
*/
public function getDuration()
{
return $this->duration;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommenderV1CostProjection::class, 'Google_Service_Recommender_GoogleCloudRecommenderV1CostProjection');

View File

@@ -0,0 +1,143 @@
<?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;
class GoogleCloudRecommenderV1Impact extends \Google\Collection
{
protected $collection_key = 'impactComponents';
/**
* @var string
*/
public $category;
protected $costProjectionType = GoogleCloudRecommenderV1CostProjection::class;
protected $costProjectionDataType = '';
protected $impactComponentsType = GoogleCloudRecommenderV1Impact::class;
protected $impactComponentsDataType = 'array';
protected $reliabilityProjectionType = GoogleCloudRecommenderV1ReliabilityProjection::class;
protected $reliabilityProjectionDataType = '';
protected $securityProjectionType = GoogleCloudRecommenderV1SecurityProjection::class;
protected $securityProjectionDataType = '';
/**
* @var string
*/
public $service;
protected $sustainabilityProjectionType = GoogleCloudRecommenderV1SustainabilityProjection::class;
protected $sustainabilityProjectionDataType = '';
/**
* @param string
*/
public function setCategory($category)
{
$this->category = $category;
}
/**
* @return string
*/
public function getCategory()
{
return $this->category;
}
/**
* @param GoogleCloudRecommenderV1CostProjection
*/
public function setCostProjection(GoogleCloudRecommenderV1CostProjection $costProjection)
{
$this->costProjection = $costProjection;
}
/**
* @return GoogleCloudRecommenderV1CostProjection
*/
public function getCostProjection()
{
return $this->costProjection;
}
/**
* @param GoogleCloudRecommenderV1Impact[]
*/
public function setImpactComponents($impactComponents)
{
$this->impactComponents = $impactComponents;
}
/**
* @return GoogleCloudRecommenderV1Impact[]
*/
public function getImpactComponents()
{
return $this->impactComponents;
}
/**
* @param GoogleCloudRecommenderV1ReliabilityProjection
*/
public function setReliabilityProjection(GoogleCloudRecommenderV1ReliabilityProjection $reliabilityProjection)
{
$this->reliabilityProjection = $reliabilityProjection;
}
/**
* @return GoogleCloudRecommenderV1ReliabilityProjection
*/
public function getReliabilityProjection()
{
return $this->reliabilityProjection;
}
/**
* @param GoogleCloudRecommenderV1SecurityProjection
*/
public function setSecurityProjection(GoogleCloudRecommenderV1SecurityProjection $securityProjection)
{
$this->securityProjection = $securityProjection;
}
/**
* @return GoogleCloudRecommenderV1SecurityProjection
*/
public function getSecurityProjection()
{
return $this->securityProjection;
}
/**
* @param string
*/
public function setService($service)
{
$this->service = $service;
}
/**
* @return string
*/
public function getService()
{
return $this->service;
}
/**
* @param GoogleCloudRecommenderV1SustainabilityProjection
*/
public function setSustainabilityProjection(GoogleCloudRecommenderV1SustainabilityProjection $sustainabilityProjection)
{
$this->sustainabilityProjection = $sustainabilityProjection;
}
/**
* @return GoogleCloudRecommenderV1SustainabilityProjection
*/
public function getSustainabilityProjection()
{
return $this->sustainabilityProjection;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommenderV1Impact::class, 'Google_Service_Recommender_GoogleCloudRecommenderV1Impact');

View File

@@ -0,0 +1,239 @@
<?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;
class GoogleCloudRecommenderV1Insight extends \Google\Collection
{
protected $collection_key = 'targetResources';
protected $associatedRecommendationsType = GoogleCloudRecommenderV1InsightRecommendationReference::class;
protected $associatedRecommendationsDataType = 'array';
/**
* @var string
*/
public $category;
/**
* @var array[]
*/
public $content;
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $insightSubtype;
/**
* @var string
*/
public $lastRefreshTime;
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $observationPeriod;
/**
* @var string
*/
public $severity;
protected $stateInfoType = GoogleCloudRecommenderV1InsightStateInfo::class;
protected $stateInfoDataType = '';
/**
* @var string[]
*/
public $targetResources;
/**
* @param GoogleCloudRecommenderV1InsightRecommendationReference[]
*/
public function setAssociatedRecommendations($associatedRecommendations)
{
$this->associatedRecommendations = $associatedRecommendations;
}
/**
* @return GoogleCloudRecommenderV1InsightRecommendationReference[]
*/
public function getAssociatedRecommendations()
{
return $this->associatedRecommendations;
}
/**
* @param string
*/
public function setCategory($category)
{
$this->category = $category;
}
/**
* @return string
*/
public function getCategory()
{
return $this->category;
}
/**
* @param array[]
*/
public function setContent($content)
{
$this->content = $content;
}
/**
* @return array[]
*/
public function getContent()
{
return $this->content;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setInsightSubtype($insightSubtype)
{
$this->insightSubtype = $insightSubtype;
}
/**
* @return string
*/
public function getInsightSubtype()
{
return $this->insightSubtype;
}
/**
* @param string
*/
public function setLastRefreshTime($lastRefreshTime)
{
$this->lastRefreshTime = $lastRefreshTime;
}
/**
* @return string
*/
public function getLastRefreshTime()
{
return $this->lastRefreshTime;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setObservationPeriod($observationPeriod)
{
$this->observationPeriod = $observationPeriod;
}
/**
* @return string
*/
public function getObservationPeriod()
{
return $this->observationPeriod;
}
/**
* @param string
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return string
*/
public function getSeverity()
{
return $this->severity;
}
/**
* @param GoogleCloudRecommenderV1InsightStateInfo
*/
public function setStateInfo(GoogleCloudRecommenderV1InsightStateInfo $stateInfo)
{
$this->stateInfo = $stateInfo;
}
/**
* @return GoogleCloudRecommenderV1InsightStateInfo
*/
public function getStateInfo()
{
return $this->stateInfo;
}
/**
* @param string[]
*/
public function setTargetResources($targetResources)
{
$this->targetResources = $targetResources;
}
/**
* @return string[]
*/
public function getTargetResources()
{
return $this->targetResources;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommenderV1Insight::class, 'Google_Service_Recommender_GoogleCloudRecommenderV1Insight');

View File

@@ -0,0 +1,44 @@
<?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;
class GoogleCloudRecommenderV1InsightRecommendationReference extends \Google\Model
{
/**
* @var string
*/
public $recommendation;
/**
* @param string
*/
public function setRecommendation($recommendation)
{
$this->recommendation = $recommendation;
}
/**
* @return string
*/
public function getRecommendation()
{
return $this->recommendation;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommenderV1InsightRecommendationReference::class, 'Google_Service_Recommender_GoogleCloudRecommenderV1InsightRecommendationReference');

View File

@@ -0,0 +1,62 @@
<?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;
class GoogleCloudRecommenderV1InsightStateInfo extends \Google\Model
{
/**
* @var string
*/
public $state;
/**
* @var string[]
*/
public $stateMetadata;
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string[]
*/
public function setStateMetadata($stateMetadata)
{
$this->stateMetadata = $stateMetadata;
}
/**
* @return string[]
*/
public function getStateMetadata()
{
return $this->stateMetadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommenderV1InsightStateInfo::class, 'Google_Service_Recommender_GoogleCloudRecommenderV1InsightStateInfo');

View File

@@ -0,0 +1,150 @@
<?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;
class GoogleCloudRecommenderV1InsightTypeConfig extends \Google\Model
{
/**
* @var string[]
*/
public $annotations;
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $etag;
protected $insightTypeGenerationConfigType = GoogleCloudRecommenderV1InsightTypeGenerationConfig::class;
protected $insightTypeGenerationConfigDataType = '';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $revisionId;
/**
* @var string
*/
public $updateTime;
/**
* @param string[]
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param GoogleCloudRecommenderV1InsightTypeGenerationConfig
*/
public function setInsightTypeGenerationConfig(GoogleCloudRecommenderV1InsightTypeGenerationConfig $insightTypeGenerationConfig)
{
$this->insightTypeGenerationConfig = $insightTypeGenerationConfig;
}
/**
* @return GoogleCloudRecommenderV1InsightTypeGenerationConfig
*/
public function getInsightTypeGenerationConfig()
{
return $this->insightTypeGenerationConfig;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setRevisionId($revisionId)
{
$this->revisionId = $revisionId;
}
/**
* @return string
*/
public function getRevisionId()
{
return $this->revisionId;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommenderV1InsightTypeConfig::class, 'Google_Service_Recommender_GoogleCloudRecommenderV1InsightTypeConfig');

View File

@@ -0,0 +1,44 @@
<?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;
class GoogleCloudRecommenderV1InsightTypeGenerationConfig extends \Google\Model
{
/**
* @var array[]
*/
public $params;
/**
* @param array[]
*/
public function setParams($params)
{
$this->params = $params;
}
/**
* @return array[]
*/
public function getParams()
{
return $this->params;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommenderV1InsightTypeGenerationConfig::class, 'Google_Service_Recommender_GoogleCloudRecommenderV1InsightTypeGenerationConfig');

View File

@@ -0,0 +1,61 @@
<?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;
class GoogleCloudRecommenderV1ListInsightsResponse extends \Google\Collection
{
protected $collection_key = 'insights';
protected $insightsType = GoogleCloudRecommenderV1Insight::class;
protected $insightsDataType = 'array';
/**
* @var string
*/
public $nextPageToken;
/**
* @param GoogleCloudRecommenderV1Insight[]
*/
public function setInsights($insights)
{
$this->insights = $insights;
}
/**
* @return GoogleCloudRecommenderV1Insight[]
*/
public function getInsights()
{
return $this->insights;
}
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommenderV1ListInsightsResponse::class, 'Google_Service_Recommender_GoogleCloudRecommenderV1ListInsightsResponse');

View File

@@ -0,0 +1,61 @@
<?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;
class GoogleCloudRecommenderV1ListRecommendationsResponse extends \Google\Collection
{
protected $collection_key = 'recommendations';
/**
* @var string
*/
public $nextPageToken;
protected $recommendationsType = GoogleCloudRecommenderV1Recommendation::class;
protected $recommendationsDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param GoogleCloudRecommenderV1Recommendation[]
*/
public function setRecommendations($recommendations)
{
$this->recommendations = $recommendations;
}
/**
* @return GoogleCloudRecommenderV1Recommendation[]
*/
public function getRecommendations()
{
return $this->recommendations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommenderV1ListRecommendationsResponse::class, 'Google_Service_Recommender_GoogleCloudRecommenderV1ListRecommendationsResponse');

View File

@@ -0,0 +1,62 @@
<?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;
class GoogleCloudRecommenderV1MarkInsightAcceptedRequest extends \Google\Model
{
/**
* @var string
*/
public $etag;
/**
* @var string[]
*/
public $stateMetadata;
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string[]
*/
public function setStateMetadata($stateMetadata)
{
$this->stateMetadata = $stateMetadata;
}
/**
* @return string[]
*/
public function getStateMetadata()
{
return $this->stateMetadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommenderV1MarkInsightAcceptedRequest::class, 'Google_Service_Recommender_GoogleCloudRecommenderV1MarkInsightAcceptedRequest');

View File

@@ -0,0 +1,62 @@
<?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;
class GoogleCloudRecommenderV1MarkRecommendationClaimedRequest extends \Google\Model
{
/**
* @var string
*/
public $etag;
/**
* @var string[]
*/
public $stateMetadata;
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string[]
*/
public function setStateMetadata($stateMetadata)
{
$this->stateMetadata = $stateMetadata;
}
/**
* @return string[]
*/
public function getStateMetadata()
{
return $this->stateMetadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommenderV1MarkRecommendationClaimedRequest::class, 'Google_Service_Recommender_GoogleCloudRecommenderV1MarkRecommendationClaimedRequest');

View File

@@ -0,0 +1,44 @@
<?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;
class GoogleCloudRecommenderV1MarkRecommendationDismissedRequest extends \Google\Model
{
/**
* @var string
*/
public $etag;
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommenderV1MarkRecommendationDismissedRequest::class, 'Google_Service_Recommender_GoogleCloudRecommenderV1MarkRecommendationDismissedRequest');

View File

@@ -0,0 +1,62 @@
<?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;
class GoogleCloudRecommenderV1MarkRecommendationFailedRequest extends \Google\Model
{
/**
* @var string
*/
public $etag;
/**
* @var string[]
*/
public $stateMetadata;
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string[]
*/
public function setStateMetadata($stateMetadata)
{
$this->stateMetadata = $stateMetadata;
}
/**
* @return string[]
*/
public function getStateMetadata()
{
return $this->stateMetadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommenderV1MarkRecommendationFailedRequest::class, 'Google_Service_Recommender_GoogleCloudRecommenderV1MarkRecommendationFailedRequest');

View File

@@ -0,0 +1,62 @@
<?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;
class GoogleCloudRecommenderV1MarkRecommendationSucceededRequest extends \Google\Model
{
/**
* @var string
*/
public $etag;
/**
* @var string[]
*/
public $stateMetadata;
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string[]
*/
public function setStateMetadata($stateMetadata)
{
$this->stateMetadata = $stateMetadata;
}
/**
* @return string[]
*/
public function getStateMetadata()
{
return $this->stateMetadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommenderV1MarkRecommendationSucceededRequest::class, 'Google_Service_Recommender_GoogleCloudRecommenderV1MarkRecommendationSucceededRequest');

View File

@@ -0,0 +1,202 @@
<?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;
class GoogleCloudRecommenderV1Operation extends \Google\Model
{
/**
* @var string
*/
public $action;
/**
* @var string
*/
public $path;
/**
* @var array[]
*/
public $pathFilters;
protected $pathValueMatchersType = GoogleCloudRecommenderV1ValueMatcher::class;
protected $pathValueMatchersDataType = 'map';
/**
* @var string
*/
public $resource;
/**
* @var string
*/
public $resourceType;
/**
* @var string
*/
public $sourcePath;
/**
* @var string
*/
public $sourceResource;
/**
* @var array
*/
public $value;
protected $valueMatcherType = GoogleCloudRecommenderV1ValueMatcher::class;
protected $valueMatcherDataType = '';
/**
* @param string
*/
public function setAction($action)
{
$this->action = $action;
}
/**
* @return string
*/
public function getAction()
{
return $this->action;
}
/**
* @param string
*/
public function setPath($path)
{
$this->path = $path;
}
/**
* @return string
*/
public function getPath()
{
return $this->path;
}
/**
* @param array[]
*/
public function setPathFilters($pathFilters)
{
$this->pathFilters = $pathFilters;
}
/**
* @return array[]
*/
public function getPathFilters()
{
return $this->pathFilters;
}
/**
* @param GoogleCloudRecommenderV1ValueMatcher[]
*/
public function setPathValueMatchers($pathValueMatchers)
{
$this->pathValueMatchers = $pathValueMatchers;
}
/**
* @return GoogleCloudRecommenderV1ValueMatcher[]
*/
public function getPathValueMatchers()
{
return $this->pathValueMatchers;
}
/**
* @param string
*/
public function setResource($resource)
{
$this->resource = $resource;
}
/**
* @return string
*/
public function getResource()
{
return $this->resource;
}
/**
* @param string
*/
public function setResourceType($resourceType)
{
$this->resourceType = $resourceType;
}
/**
* @return string
*/
public function getResourceType()
{
return $this->resourceType;
}
/**
* @param string
*/
public function setSourcePath($sourcePath)
{
$this->sourcePath = $sourcePath;
}
/**
* @return string
*/
public function getSourcePath()
{
return $this->sourcePath;
}
/**
* @param string
*/
public function setSourceResource($sourceResource)
{
$this->sourceResource = $sourceResource;
}
/**
* @return string
*/
public function getSourceResource()
{
return $this->sourceResource;
}
/**
* @param array
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return array
*/
public function getValue()
{
return $this->value;
}
/**
* @param GoogleCloudRecommenderV1ValueMatcher
*/
public function setValueMatcher(GoogleCloudRecommenderV1ValueMatcher $valueMatcher)
{
$this->valueMatcher = $valueMatcher;
}
/**
* @return GoogleCloudRecommenderV1ValueMatcher
*/
public function getValueMatcher()
{
return $this->valueMatcher;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommenderV1Operation::class, 'Google_Service_Recommender_GoogleCloudRecommenderV1Operation');

View File

@@ -0,0 +1,43 @@
<?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;
class GoogleCloudRecommenderV1OperationGroup extends \Google\Collection
{
protected $collection_key = 'operations';
protected $operationsType = GoogleCloudRecommenderV1Operation::class;
protected $operationsDataType = 'array';
/**
* @param GoogleCloudRecommenderV1Operation[]
*/
public function setOperations($operations)
{
$this->operations = $operations;
}
/**
* @return GoogleCloudRecommenderV1Operation[]
*/
public function getOperations()
{
return $this->operations;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommenderV1OperationGroup::class, 'Google_Service_Recommender_GoogleCloudRecommenderV1OperationGroup');

View File

@@ -0,0 +1,251 @@
<?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;
class GoogleCloudRecommenderV1Recommendation extends \Google\Collection
{
protected $collection_key = 'targetResources';
protected $additionalImpactType = GoogleCloudRecommenderV1Impact::class;
protected $additionalImpactDataType = 'array';
protected $associatedInsightsType = GoogleCloudRecommenderV1RecommendationInsightReference::class;
protected $associatedInsightsDataType = 'array';
protected $contentType = GoogleCloudRecommenderV1RecommendationContent::class;
protected $contentDataType = '';
/**
* @var string
*/
public $description;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $lastRefreshTime;
/**
* @var string
*/
public $name;
protected $primaryImpactType = GoogleCloudRecommenderV1Impact::class;
protected $primaryImpactDataType = '';
/**
* @var string
*/
public $priority;
/**
* @var string
*/
public $recommenderSubtype;
protected $stateInfoType = GoogleCloudRecommenderV1RecommendationStateInfo::class;
protected $stateInfoDataType = '';
/**
* @var string[]
*/
public $targetResources;
/**
* @var string
*/
public $xorGroupId;
/**
* @param GoogleCloudRecommenderV1Impact[]
*/
public function setAdditionalImpact($additionalImpact)
{
$this->additionalImpact = $additionalImpact;
}
/**
* @return GoogleCloudRecommenderV1Impact[]
*/
public function getAdditionalImpact()
{
return $this->additionalImpact;
}
/**
* @param GoogleCloudRecommenderV1RecommendationInsightReference[]
*/
public function setAssociatedInsights($associatedInsights)
{
$this->associatedInsights = $associatedInsights;
}
/**
* @return GoogleCloudRecommenderV1RecommendationInsightReference[]
*/
public function getAssociatedInsights()
{
return $this->associatedInsights;
}
/**
* @param GoogleCloudRecommenderV1RecommendationContent
*/
public function setContent(GoogleCloudRecommenderV1RecommendationContent $content)
{
$this->content = $content;
}
/**
* @return GoogleCloudRecommenderV1RecommendationContent
*/
public function getContent()
{
return $this->content;
}
/**
* @param string
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setLastRefreshTime($lastRefreshTime)
{
$this->lastRefreshTime = $lastRefreshTime;
}
/**
* @return string
*/
public function getLastRefreshTime()
{
return $this->lastRefreshTime;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param GoogleCloudRecommenderV1Impact
*/
public function setPrimaryImpact(GoogleCloudRecommenderV1Impact $primaryImpact)
{
$this->primaryImpact = $primaryImpact;
}
/**
* @return GoogleCloudRecommenderV1Impact
*/
public function getPrimaryImpact()
{
return $this->primaryImpact;
}
/**
* @param string
*/
public function setPriority($priority)
{
$this->priority = $priority;
}
/**
* @return string
*/
public function getPriority()
{
return $this->priority;
}
/**
* @param string
*/
public function setRecommenderSubtype($recommenderSubtype)
{
$this->recommenderSubtype = $recommenderSubtype;
}
/**
* @return string
*/
public function getRecommenderSubtype()
{
return $this->recommenderSubtype;
}
/**
* @param GoogleCloudRecommenderV1RecommendationStateInfo
*/
public function setStateInfo(GoogleCloudRecommenderV1RecommendationStateInfo $stateInfo)
{
$this->stateInfo = $stateInfo;
}
/**
* @return GoogleCloudRecommenderV1RecommendationStateInfo
*/
public function getStateInfo()
{
return $this->stateInfo;
}
/**
* @param string[]
*/
public function setTargetResources($targetResources)
{
$this->targetResources = $targetResources;
}
/**
* @return string[]
*/
public function getTargetResources()
{
return $this->targetResources;
}
/**
* @param string
*/
public function setXorGroupId($xorGroupId)
{
$this->xorGroupId = $xorGroupId;
}
/**
* @return string
*/
public function getXorGroupId()
{
return $this->xorGroupId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommenderV1Recommendation::class, 'Google_Service_Recommender_GoogleCloudRecommenderV1Recommendation');

View File

@@ -0,0 +1,61 @@
<?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;
class GoogleCloudRecommenderV1RecommendationContent extends \Google\Collection
{
protected $collection_key = 'operationGroups';
protected $operationGroupsType = GoogleCloudRecommenderV1OperationGroup::class;
protected $operationGroupsDataType = 'array';
/**
* @var array[]
*/
public $overview;
/**
* @param GoogleCloudRecommenderV1OperationGroup[]
*/
public function setOperationGroups($operationGroups)
{
$this->operationGroups = $operationGroups;
}
/**
* @return GoogleCloudRecommenderV1OperationGroup[]
*/
public function getOperationGroups()
{
return $this->operationGroups;
}
/**
* @param array[]
*/
public function setOverview($overview)
{
$this->overview = $overview;
}
/**
* @return array[]
*/
public function getOverview()
{
return $this->overview;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommenderV1RecommendationContent::class, 'Google_Service_Recommender_GoogleCloudRecommenderV1RecommendationContent');

View File

@@ -0,0 +1,44 @@
<?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;
class GoogleCloudRecommenderV1RecommendationInsightReference extends \Google\Model
{
/**
* @var string
*/
public $insight;
/**
* @param string
*/
public function setInsight($insight)
{
$this->insight = $insight;
}
/**
* @return string
*/
public function getInsight()
{
return $this->insight;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommenderV1RecommendationInsightReference::class, 'Google_Service_Recommender_GoogleCloudRecommenderV1RecommendationInsightReference');

View File

@@ -0,0 +1,62 @@
<?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;
class GoogleCloudRecommenderV1RecommendationStateInfo extends \Google\Model
{
/**
* @var string
*/
public $state;
/**
* @var string[]
*/
public $stateMetadata;
/**
* @param string
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return string
*/
public function getState()
{
return $this->state;
}
/**
* @param string[]
*/
public function setStateMetadata($stateMetadata)
{
$this->stateMetadata = $stateMetadata;
}
/**
* @return string[]
*/
public function getStateMetadata()
{
return $this->stateMetadata;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommenderV1RecommendationStateInfo::class, 'Google_Service_Recommender_GoogleCloudRecommenderV1RecommendationStateInfo');

View File

@@ -0,0 +1,150 @@
<?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;
class GoogleCloudRecommenderV1RecommenderConfig extends \Google\Model
{
/**
* @var string[]
*/
public $annotations;
/**
* @var string
*/
public $displayName;
/**
* @var string
*/
public $etag;
/**
* @var string
*/
public $name;
protected $recommenderGenerationConfigType = GoogleCloudRecommenderV1RecommenderGenerationConfig::class;
protected $recommenderGenerationConfigDataType = '';
/**
* @var string
*/
public $revisionId;
/**
* @var string
*/
public $updateTime;
/**
* @param string[]
*/
public function setAnnotations($annotations)
{
$this->annotations = $annotations;
}
/**
* @return string[]
*/
public function getAnnotations()
{
return $this->annotations;
}
/**
* @param string
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* @param string
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param GoogleCloudRecommenderV1RecommenderGenerationConfig
*/
public function setRecommenderGenerationConfig(GoogleCloudRecommenderV1RecommenderGenerationConfig $recommenderGenerationConfig)
{
$this->recommenderGenerationConfig = $recommenderGenerationConfig;
}
/**
* @return GoogleCloudRecommenderV1RecommenderGenerationConfig
*/
public function getRecommenderGenerationConfig()
{
return $this->recommenderGenerationConfig;
}
/**
* @param string
*/
public function setRevisionId($revisionId)
{
$this->revisionId = $revisionId;
}
/**
* @return string
*/
public function getRevisionId()
{
return $this->revisionId;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommenderV1RecommenderConfig::class, 'Google_Service_Recommender_GoogleCloudRecommenderV1RecommenderConfig');

View File

@@ -0,0 +1,44 @@
<?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;
class GoogleCloudRecommenderV1RecommenderGenerationConfig extends \Google\Model
{
/**
* @var array[]
*/
public $params;
/**
* @param array[]
*/
public function setParams($params)
{
$this->params = $params;
}
/**
* @return array[]
*/
public function getParams()
{
return $this->params;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommenderV1RecommenderGenerationConfig::class, 'Google_Service_Recommender_GoogleCloudRecommenderV1RecommenderGenerationConfig');

View File

@@ -0,0 +1,63 @@
<?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;
class GoogleCloudRecommenderV1ReliabilityProjection extends \Google\Collection
{
protected $collection_key = 'risks';
/**
* @var array[]
*/
public $details;
/**
* @var string[]
*/
public $risks;
/**
* @param array[]
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* @param string[]
*/
public function setRisks($risks)
{
$this->risks = $risks;
}
/**
* @return string[]
*/
public function getRisks()
{
return $this->risks;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommenderV1ReliabilityProjection::class, 'Google_Service_Recommender_GoogleCloudRecommenderV1ReliabilityProjection');

View File

@@ -0,0 +1,44 @@
<?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;
class GoogleCloudRecommenderV1SecurityProjection extends \Google\Model
{
/**
* @var array[]
*/
public $details;
/**
* @param array[]
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommenderV1SecurityProjection::class, 'Google_Service_Recommender_GoogleCloudRecommenderV1SecurityProjection');

View File

@@ -0,0 +1,53 @@
<?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;
class GoogleCloudRecommenderV1SustainabilityProjection extends \Google\Model
{
/**
* @var string
*/
public $duration;
public $kgCO2e;
/**
* @param string
*/
public function setDuration($duration)
{
$this->duration = $duration;
}
/**
* @return string
*/
public function getDuration()
{
return $this->duration;
}
public function setKgCO2e($kgCO2e)
{
$this->kgCO2e = $kgCO2e;
}
public function getKgCO2e()
{
return $this->kgCO2e;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommenderV1SustainabilityProjection::class, 'Google_Service_Recommender_GoogleCloudRecommenderV1SustainabilityProjection');

View File

@@ -0,0 +1,44 @@
<?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;
class GoogleCloudRecommenderV1ValueMatcher extends \Google\Model
{
/**
* @var string
*/
public $matchesPattern;
/**
* @param string
*/
public function setMatchesPattern($matchesPattern)
{
$this->matchesPattern = $matchesPattern;
}
/**
* @return string
*/
public function getMatchesPattern()
{
return $this->matchesPattern;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleCloudRecommenderV1ValueMatcher::class, 'Google_Service_Recommender_GoogleCloudRecommenderV1ValueMatcher');

View File

@@ -0,0 +1,80 @@
<?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;
class GoogleTypeMoney extends \Google\Model
{
/**
* @var string
*/
public $currencyCode;
/**
* @var int
*/
public $nanos;
/**
* @var string
*/
public $units;
/**
* @param string
*/
public function setCurrencyCode($currencyCode)
{
$this->currencyCode = $currencyCode;
}
/**
* @return string
*/
public function getCurrencyCode()
{
return $this->currencyCode;
}
/**
* @param int
*/
public function setNanos($nanos)
{
$this->nanos = $nanos;
}
/**
* @return int
*/
public function getNanos()
{
return $this->nanos;
}
/**
* @param string
*/
public function setUnits($units)
{
$this->units = $units;
}
/**
* @return string
*/
public function getUnits()
{
return $this->units;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleTypeMoney::class, 'Google_Service_Recommender_GoogleTypeMoney');

View File

@@ -0,0 +1,33 @@
<?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;
/**
* The "billingAccounts" collection of methods.
* Typical usage is:
* <code>
* $recommenderService = new Google\Service\Recommender(...);
* $billingAccounts = $recommenderService->billingAccounts;
* </code>
*/
class BillingAccounts extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BillingAccounts::class, 'Google_Service_Recommender_Resource_BillingAccounts');

View File

@@ -0,0 +1,33 @@
<?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;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $recommenderService = new Google\Service\Recommender(...);
* $locations = $recommenderService->billingAccounts_locations;
* </code>
*/
class BillingAccountsLocations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BillingAccountsLocations::class, 'Google_Service_Recommender_Resource_BillingAccountsLocations');

View File

@@ -0,0 +1,77 @@
<?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\GoogleCloudRecommenderV1InsightTypeConfig;
/**
* The "insightTypes" collection of methods.
* Typical usage is:
* <code>
* $recommenderService = new Google\Service\Recommender(...);
* $insightTypes = $recommenderService->billingAccounts_locations_insightTypes;
* </code>
*/
class BillingAccountsLocationsInsightTypes extends \Google\Service\Resource
{
/**
* Gets the requested InsightTypeConfig. There is only one instance of the
* config for each InsightType. (insightTypes.getConfig)
*
* @param string $name Required. Name of the InsightTypeConfig to get.
* Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insight
* Types/[INSIGHT_TYPE_ID]/config` * `projects/[PROJECT_ID]/locations/[LOCATION]
* /insightTypes/[INSIGHT_TYPE_ID]/config` * `organizations/[ORGANIZATION_ID]/lo
* cations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` * `billingAccounts/
* [BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/conf
* ig`
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1InsightTypeConfig
* @throws \Google\Service\Exception
*/
public function getConfig($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getConfig', [$params], GoogleCloudRecommenderV1InsightTypeConfig::class);
}
/**
* Updates an InsightTypeConfig change. This will create a new revision of the
* config. (insightTypes.updateConfig)
*
* @param string $name Identifier. Name of insight type config. Eg, projects/[PR
* OJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config
* @param GoogleCloudRecommenderV1InsightTypeConfig $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 GoogleCloudRecommenderV1InsightTypeConfig
* @throws \Google\Service\Exception
*/
public function updateConfig($name, GoogleCloudRecommenderV1InsightTypeConfig $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateConfig', [$params], GoogleCloudRecommenderV1InsightTypeConfig::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BillingAccountsLocationsInsightTypes::class, 'Google_Service_Recommender_Resource_BillingAccountsLocationsInsightTypes');

View File

@@ -0,0 +1,116 @@
<?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\GoogleCloudRecommenderV1Insight;
use Google\Service\Recommender\GoogleCloudRecommenderV1ListInsightsResponse;
use Google\Service\Recommender\GoogleCloudRecommenderV1MarkInsightAcceptedRequest;
/**
* The "insights" collection of methods.
* Typical usage is:
* <code>
* $recommenderService = new Google\Service\Recommender(...);
* $insights = $recommenderService->billingAccounts_locations_insightTypes_insights;
* </code>
*/
class BillingAccountsLocationsInsightTypesInsights extends \Google\Service\Resource
{
/**
* Gets the requested insight. Requires the recommender.*.get IAM permission for
* the specified insight type. (insights.get)
*
* @param string $name Required. Name of the insight.
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Insight
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudRecommenderV1Insight::class);
}
/**
* Lists insights for the specified Cloud Resource. Requires the
* recommender.*.list IAM permission for the specified insight type.
* (insights.listBillingAccountsLocationsInsightTypesInsights)
*
* @param string $parent Required. The container resource on which to execute
* the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCA
* TION]/insightTypes/[INSIGHT_TYPE_ID]` *
* `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *
* `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSI
* GHT_TYPE_ID]` *
* `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `
* organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TY
* PE_ID]` LOCATION here refers to GCP Locations:
* https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers to supported
* insight types: https://cloud.google.com/recommender/docs/insights/insight-
* types.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter expression to restrict the insights
* returned. Supported filter fields: * `stateInfo.state` * `insightSubtype` *
* `severity` * `targetResources` Examples: * `stateInfo.state = ACTIVE OR
* stateInfo.state = DISMISSED` * `insightSubtype = PERMISSIONS_USAGE` *
* `severity = CRITICAL OR severity = HIGH` * `targetResources :
* //compute.googleapis.com/projects/1234/zones/us-
* central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (severity =
* CRITICAL OR severity = HIGH)` The max allowed filter length is 500
* characters. (These expressions are based on the filter language described at
* https://google.aip.dev/160)
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. If not specified, the
* server will determine the number of results to return.
* @opt_param string pageToken Optional. If present, retrieves the next batch of
* results from the preceding call to this method. `page_token` must be the
* value of `next_page_token` from the previous response. The values of other
* method parameters must be identical to those in the previous call.
* @return GoogleCloudRecommenderV1ListInsightsResponse
* @throws \Google\Service\Exception
*/
public function listBillingAccountsLocationsInsightTypesInsights($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudRecommenderV1ListInsightsResponse::class);
}
/**
* Marks the Insight State as Accepted. Users can use this method to indicate to
* the Recommender API that they have applied some action based on the insight.
* This stops the insight content from being updated. MarkInsightAccepted can be
* applied to insights in ACTIVE state. Requires the recommender.*.update IAM
* permission for the specified insight. (insights.markAccepted)
*
* @param string $name Required. Name of the insight.
* @param GoogleCloudRecommenderV1MarkInsightAcceptedRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Insight
* @throws \Google\Service\Exception
*/
public function markAccepted($name, GoogleCloudRecommenderV1MarkInsightAcceptedRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('markAccepted', [$params], GoogleCloudRecommenderV1Insight::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BillingAccountsLocationsInsightTypesInsights::class, 'Google_Service_Recommender_Resource_BillingAccountsLocationsInsightTypesInsights');

View File

@@ -0,0 +1,76 @@
<?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->billingAccounts_locations_recommenders;
* </code>
*/
class BillingAccountsLocationsRecommenders 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(BillingAccountsLocationsRecommenders::class, 'Google_Service_Recommender_Resource_BillingAccountsLocationsRecommenders');

View File

@@ -0,0 +1,183 @@
<?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\GoogleCloudRecommenderV1ListRecommendationsResponse;
use Google\Service\Recommender\GoogleCloudRecommenderV1MarkRecommendationClaimedRequest;
use Google\Service\Recommender\GoogleCloudRecommenderV1MarkRecommendationDismissedRequest;
use Google\Service\Recommender\GoogleCloudRecommenderV1MarkRecommendationFailedRequest;
use Google\Service\Recommender\GoogleCloudRecommenderV1MarkRecommendationSucceededRequest;
use Google\Service\Recommender\GoogleCloudRecommenderV1Recommendation;
/**
* The "recommendations" collection of methods.
* Typical usage is:
* <code>
* $recommenderService = new Google\Service\Recommender(...);
* $recommendations = $recommenderService->billingAccounts_locations_recommenders_recommendations;
* </code>
*/
class BillingAccountsLocationsRecommendersRecommendations extends \Google\Service\Resource
{
/**
* Gets the requested recommendation. Requires the recommender.*.get IAM
* permission for the specified recommender. (recommendations.get)
*
* @param string $name Required. Name of the recommendation.
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Recommendation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudRecommenderV1Recommendation::class);
}
/**
* Lists recommendations for the specified Cloud Resource. Requires the
* recommender.*.list IAM permission for the specified recommender.
* (recommendations.listBillingAccountsLocationsRecommendersRecommendations)
*
* @param string $parent Required. The container resource on which to execute
* the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCA
* TION]/recommenders/[RECOMMENDER_ID]` *
* `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *
* `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECO
* MMENDER_ID]` *
* `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `o
* rganizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER
* _ID]` LOCATION here refers to GCP Locations:
* https://cloud.google.com/about/locations/ RECOMMENDER_ID refers to supported
* recommenders: https://cloud.google.com/recommender/docs/recommenders.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter expression to restrict the recommendations
* returned. Supported filter fields: * `state_info.state` *
* `recommenderSubtype` * `priority` * `targetResources` Examples: *
* `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` *
* `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` *
* `priority = P1 OR priority = P2` * `targetResources :
* //compute.googleapis.com/projects/1234/zones/us-
* central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (priority =
* P1 OR priority = P2)` The max allowed filter length is 500 characters. (These
* expressions are based on the filter language described at
* https://google.aip.dev/160)
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. If not specified, the
* server will determine the number of results to return.
* @opt_param string pageToken Optional. If present, retrieves the next batch of
* results from the preceding call to this method. `page_token` must be the
* value of `next_page_token` from the previous response. The values of other
* method parameters must be identical to those in the previous call.
* @return GoogleCloudRecommenderV1ListRecommendationsResponse
* @throws \Google\Service\Exception
*/
public function listBillingAccountsLocationsRecommendersRecommendations($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudRecommenderV1ListRecommendationsResponse::class);
}
/**
* Marks the Recommendation State as Claimed. Users can use this method to
* indicate to the Recommender API that they are starting to apply the
* recommendation themselves. This stops the recommendation content from being
* updated. Associated insights are frozen and placed in the ACCEPTED state.
* MarkRecommendationClaimed can be applied to recommendations in CLAIMED,
* SUCCEEDED, FAILED, or ACTIVE state. Requires the recommender.*.update IAM
* permission for the specified recommender. (recommendations.markClaimed)
*
* @param string $name Required. Name of the recommendation.
* @param GoogleCloudRecommenderV1MarkRecommendationClaimedRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Recommendation
* @throws \Google\Service\Exception
*/
public function markClaimed($name, GoogleCloudRecommenderV1MarkRecommendationClaimedRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('markClaimed', [$params], GoogleCloudRecommenderV1Recommendation::class);
}
/**
* Mark the Recommendation State as Dismissed. Users can use this method to
* indicate to the Recommender API that an ACTIVE recommendation has to be
* marked back as DISMISSED. MarkRecommendationDismissed can be applied to
* recommendations in ACTIVE state. Requires the recommender.*.update IAM
* permission for the specified recommender. (recommendations.markDismissed)
*
* @param string $name Required. Name of the recommendation.
* @param GoogleCloudRecommenderV1MarkRecommendationDismissedRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Recommendation
* @throws \Google\Service\Exception
*/
public function markDismissed($name, GoogleCloudRecommenderV1MarkRecommendationDismissedRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('markDismissed', [$params], GoogleCloudRecommenderV1Recommendation::class);
}
/**
* Marks the Recommendation State as Failed. Users can use this method to
* indicate to the Recommender API that they have applied the recommendation
* themselves, and the operation failed. This stops the recommendation content
* from being updated. Associated insights are frozen and placed in the ACCEPTED
* state. MarkRecommendationFailed can be applied to recommendations in ACTIVE,
* CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM
* permission for the specified recommender. (recommendations.markFailed)
*
* @param string $name Required. Name of the recommendation.
* @param GoogleCloudRecommenderV1MarkRecommendationFailedRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Recommendation
* @throws \Google\Service\Exception
*/
public function markFailed($name, GoogleCloudRecommenderV1MarkRecommendationFailedRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('markFailed', [$params], GoogleCloudRecommenderV1Recommendation::class);
}
/**
* Marks the Recommendation State as Succeeded. Users can use this method to
* indicate to the Recommender API that they have applied the recommendation
* themselves, and the operation was successful. This stops the recommendation
* content from being updated. Associated insights are frozen and placed in the
* ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations
* in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the
* recommender.*.update IAM permission for the specified recommender.
* (recommendations.markSucceeded)
*
* @param string $name Required. Name of the recommendation.
* @param GoogleCloudRecommenderV1MarkRecommendationSucceededRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Recommendation
* @throws \Google\Service\Exception
*/
public function markSucceeded($name, GoogleCloudRecommenderV1MarkRecommendationSucceededRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('markSucceeded', [$params], GoogleCloudRecommenderV1Recommendation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BillingAccountsLocationsRecommendersRecommendations::class, 'Google_Service_Recommender_Resource_BillingAccountsLocationsRecommendersRecommendations');

View File

@@ -0,0 +1,33 @@
<?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;
/**
* The "folders" collection of methods.
* Typical usage is:
* <code>
* $recommenderService = new Google\Service\Recommender(...);
* $folders = $recommenderService->folders;
* </code>
*/
class Folders extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Folders::class, 'Google_Service_Recommender_Resource_Folders');

View File

@@ -0,0 +1,33 @@
<?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;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $recommenderService = new Google\Service\Recommender(...);
* $locations = $recommenderService->folders_locations;
* </code>
*/
class FoldersLocations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersLocations::class, 'Google_Service_Recommender_Resource_FoldersLocations');

View File

@@ -0,0 +1,33 @@
<?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;
/**
* The "insightTypes" collection of methods.
* Typical usage is:
* <code>
* $recommenderService = new Google\Service\Recommender(...);
* $insightTypes = $recommenderService->folders_locations_insightTypes;
* </code>
*/
class FoldersLocationsInsightTypes extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersLocationsInsightTypes::class, 'Google_Service_Recommender_Resource_FoldersLocationsInsightTypes');

View File

@@ -0,0 +1,116 @@
<?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\GoogleCloudRecommenderV1Insight;
use Google\Service\Recommender\GoogleCloudRecommenderV1ListInsightsResponse;
use Google\Service\Recommender\GoogleCloudRecommenderV1MarkInsightAcceptedRequest;
/**
* The "insights" collection of methods.
* Typical usage is:
* <code>
* $recommenderService = new Google\Service\Recommender(...);
* $insights = $recommenderService->folders_locations_insightTypes_insights;
* </code>
*/
class FoldersLocationsInsightTypesInsights extends \Google\Service\Resource
{
/**
* Gets the requested insight. Requires the recommender.*.get IAM permission for
* the specified insight type. (insights.get)
*
* @param string $name Required. Name of the insight.
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Insight
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudRecommenderV1Insight::class);
}
/**
* Lists insights for the specified Cloud Resource. Requires the
* recommender.*.list IAM permission for the specified insight type.
* (insights.listFoldersLocationsInsightTypesInsights)
*
* @param string $parent Required. The container resource on which to execute
* the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCA
* TION]/insightTypes/[INSIGHT_TYPE_ID]` *
* `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *
* `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSI
* GHT_TYPE_ID]` *
* `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `
* organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TY
* PE_ID]` LOCATION here refers to GCP Locations:
* https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers to supported
* insight types: https://cloud.google.com/recommender/docs/insights/insight-
* types.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter expression to restrict the insights
* returned. Supported filter fields: * `stateInfo.state` * `insightSubtype` *
* `severity` * `targetResources` Examples: * `stateInfo.state = ACTIVE OR
* stateInfo.state = DISMISSED` * `insightSubtype = PERMISSIONS_USAGE` *
* `severity = CRITICAL OR severity = HIGH` * `targetResources :
* //compute.googleapis.com/projects/1234/zones/us-
* central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (severity =
* CRITICAL OR severity = HIGH)` The max allowed filter length is 500
* characters. (These expressions are based on the filter language described at
* https://google.aip.dev/160)
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. If not specified, the
* server will determine the number of results to return.
* @opt_param string pageToken Optional. If present, retrieves the next batch of
* results from the preceding call to this method. `page_token` must be the
* value of `next_page_token` from the previous response. The values of other
* method parameters must be identical to those in the previous call.
* @return GoogleCloudRecommenderV1ListInsightsResponse
* @throws \Google\Service\Exception
*/
public function listFoldersLocationsInsightTypesInsights($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudRecommenderV1ListInsightsResponse::class);
}
/**
* Marks the Insight State as Accepted. Users can use this method to indicate to
* the Recommender API that they have applied some action based on the insight.
* This stops the insight content from being updated. MarkInsightAccepted can be
* applied to insights in ACTIVE state. Requires the recommender.*.update IAM
* permission for the specified insight. (insights.markAccepted)
*
* @param string $name Required. Name of the insight.
* @param GoogleCloudRecommenderV1MarkInsightAcceptedRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Insight
* @throws \Google\Service\Exception
*/
public function markAccepted($name, GoogleCloudRecommenderV1MarkInsightAcceptedRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('markAccepted', [$params], GoogleCloudRecommenderV1Insight::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersLocationsInsightTypesInsights::class, 'Google_Service_Recommender_Resource_FoldersLocationsInsightTypesInsights');

View File

@@ -0,0 +1,33 @@
<?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;
/**
* The "recommenders" collection of methods.
* Typical usage is:
* <code>
* $recommenderService = new Google\Service\Recommender(...);
* $recommenders = $recommenderService->folders_locations_recommenders;
* </code>
*/
class FoldersLocationsRecommenders extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersLocationsRecommenders::class, 'Google_Service_Recommender_Resource_FoldersLocationsRecommenders');

View File

@@ -0,0 +1,183 @@
<?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\GoogleCloudRecommenderV1ListRecommendationsResponse;
use Google\Service\Recommender\GoogleCloudRecommenderV1MarkRecommendationClaimedRequest;
use Google\Service\Recommender\GoogleCloudRecommenderV1MarkRecommendationDismissedRequest;
use Google\Service\Recommender\GoogleCloudRecommenderV1MarkRecommendationFailedRequest;
use Google\Service\Recommender\GoogleCloudRecommenderV1MarkRecommendationSucceededRequest;
use Google\Service\Recommender\GoogleCloudRecommenderV1Recommendation;
/**
* The "recommendations" collection of methods.
* Typical usage is:
* <code>
* $recommenderService = new Google\Service\Recommender(...);
* $recommendations = $recommenderService->folders_locations_recommenders_recommendations;
* </code>
*/
class FoldersLocationsRecommendersRecommendations extends \Google\Service\Resource
{
/**
* Gets the requested recommendation. Requires the recommender.*.get IAM
* permission for the specified recommender. (recommendations.get)
*
* @param string $name Required. Name of the recommendation.
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Recommendation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudRecommenderV1Recommendation::class);
}
/**
* Lists recommendations for the specified Cloud Resource. Requires the
* recommender.*.list IAM permission for the specified recommender.
* (recommendations.listFoldersLocationsRecommendersRecommendations)
*
* @param string $parent Required. The container resource on which to execute
* the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCA
* TION]/recommenders/[RECOMMENDER_ID]` *
* `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *
* `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECO
* MMENDER_ID]` *
* `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `o
* rganizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER
* _ID]` LOCATION here refers to GCP Locations:
* https://cloud.google.com/about/locations/ RECOMMENDER_ID refers to supported
* recommenders: https://cloud.google.com/recommender/docs/recommenders.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter expression to restrict the recommendations
* returned. Supported filter fields: * `state_info.state` *
* `recommenderSubtype` * `priority` * `targetResources` Examples: *
* `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` *
* `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` *
* `priority = P1 OR priority = P2` * `targetResources :
* //compute.googleapis.com/projects/1234/zones/us-
* central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (priority =
* P1 OR priority = P2)` The max allowed filter length is 500 characters. (These
* expressions are based on the filter language described at
* https://google.aip.dev/160)
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. If not specified, the
* server will determine the number of results to return.
* @opt_param string pageToken Optional. If present, retrieves the next batch of
* results from the preceding call to this method. `page_token` must be the
* value of `next_page_token` from the previous response. The values of other
* method parameters must be identical to those in the previous call.
* @return GoogleCloudRecommenderV1ListRecommendationsResponse
* @throws \Google\Service\Exception
*/
public function listFoldersLocationsRecommendersRecommendations($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudRecommenderV1ListRecommendationsResponse::class);
}
/**
* Marks the Recommendation State as Claimed. Users can use this method to
* indicate to the Recommender API that they are starting to apply the
* recommendation themselves. This stops the recommendation content from being
* updated. Associated insights are frozen and placed in the ACCEPTED state.
* MarkRecommendationClaimed can be applied to recommendations in CLAIMED,
* SUCCEEDED, FAILED, or ACTIVE state. Requires the recommender.*.update IAM
* permission for the specified recommender. (recommendations.markClaimed)
*
* @param string $name Required. Name of the recommendation.
* @param GoogleCloudRecommenderV1MarkRecommendationClaimedRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Recommendation
* @throws \Google\Service\Exception
*/
public function markClaimed($name, GoogleCloudRecommenderV1MarkRecommendationClaimedRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('markClaimed', [$params], GoogleCloudRecommenderV1Recommendation::class);
}
/**
* Mark the Recommendation State as Dismissed. Users can use this method to
* indicate to the Recommender API that an ACTIVE recommendation has to be
* marked back as DISMISSED. MarkRecommendationDismissed can be applied to
* recommendations in ACTIVE state. Requires the recommender.*.update IAM
* permission for the specified recommender. (recommendations.markDismissed)
*
* @param string $name Required. Name of the recommendation.
* @param GoogleCloudRecommenderV1MarkRecommendationDismissedRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Recommendation
* @throws \Google\Service\Exception
*/
public function markDismissed($name, GoogleCloudRecommenderV1MarkRecommendationDismissedRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('markDismissed', [$params], GoogleCloudRecommenderV1Recommendation::class);
}
/**
* Marks the Recommendation State as Failed. Users can use this method to
* indicate to the Recommender API that they have applied the recommendation
* themselves, and the operation failed. This stops the recommendation content
* from being updated. Associated insights are frozen and placed in the ACCEPTED
* state. MarkRecommendationFailed can be applied to recommendations in ACTIVE,
* CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM
* permission for the specified recommender. (recommendations.markFailed)
*
* @param string $name Required. Name of the recommendation.
* @param GoogleCloudRecommenderV1MarkRecommendationFailedRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Recommendation
* @throws \Google\Service\Exception
*/
public function markFailed($name, GoogleCloudRecommenderV1MarkRecommendationFailedRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('markFailed', [$params], GoogleCloudRecommenderV1Recommendation::class);
}
/**
* Marks the Recommendation State as Succeeded. Users can use this method to
* indicate to the Recommender API that they have applied the recommendation
* themselves, and the operation was successful. This stops the recommendation
* content from being updated. Associated insights are frozen and placed in the
* ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations
* in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the
* recommender.*.update IAM permission for the specified recommender.
* (recommendations.markSucceeded)
*
* @param string $name Required. Name of the recommendation.
* @param GoogleCloudRecommenderV1MarkRecommendationSucceededRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Recommendation
* @throws \Google\Service\Exception
*/
public function markSucceeded($name, GoogleCloudRecommenderV1MarkRecommendationSucceededRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('markSucceeded', [$params], GoogleCloudRecommenderV1Recommendation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FoldersLocationsRecommendersRecommendations::class, 'Google_Service_Recommender_Resource_FoldersLocationsRecommendersRecommendations');

View File

@@ -0,0 +1,33 @@
<?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;
/**
* The "organizations" collection of methods.
* Typical usage is:
* <code>
* $recommenderService = new Google\Service\Recommender(...);
* $organizations = $recommenderService->organizations;
* </code>
*/
class Organizations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Organizations::class, 'Google_Service_Recommender_Resource_Organizations');

View File

@@ -0,0 +1,33 @@
<?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;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $recommenderService = new Google\Service\Recommender(...);
* $locations = $recommenderService->organizations_locations;
* </code>
*/
class OrganizationsLocations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsLocations::class, 'Google_Service_Recommender_Resource_OrganizationsLocations');

View File

@@ -0,0 +1,77 @@
<?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\GoogleCloudRecommenderV1InsightTypeConfig;
/**
* The "insightTypes" collection of methods.
* Typical usage is:
* <code>
* $recommenderService = new Google\Service\Recommender(...);
* $insightTypes = $recommenderService->organizations_locations_insightTypes;
* </code>
*/
class OrganizationsLocationsInsightTypes extends \Google\Service\Resource
{
/**
* Gets the requested InsightTypeConfig. There is only one instance of the
* config for each InsightType. (insightTypes.getConfig)
*
* @param string $name Required. Name of the InsightTypeConfig to get.
* Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insight
* Types/[INSIGHT_TYPE_ID]/config` * `projects/[PROJECT_ID]/locations/[LOCATION]
* /insightTypes/[INSIGHT_TYPE_ID]/config` * `organizations/[ORGANIZATION_ID]/lo
* cations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` * `billingAccounts/
* [BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/conf
* ig`
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1InsightTypeConfig
* @throws \Google\Service\Exception
*/
public function getConfig($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getConfig', [$params], GoogleCloudRecommenderV1InsightTypeConfig::class);
}
/**
* Updates an InsightTypeConfig change. This will create a new revision of the
* config. (insightTypes.updateConfig)
*
* @param string $name Identifier. Name of insight type config. Eg, projects/[PR
* OJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config
* @param GoogleCloudRecommenderV1InsightTypeConfig $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 GoogleCloudRecommenderV1InsightTypeConfig
* @throws \Google\Service\Exception
*/
public function updateConfig($name, GoogleCloudRecommenderV1InsightTypeConfig $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateConfig', [$params], GoogleCloudRecommenderV1InsightTypeConfig::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsLocationsInsightTypes::class, 'Google_Service_Recommender_Resource_OrganizationsLocationsInsightTypes');

View File

@@ -0,0 +1,116 @@
<?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\GoogleCloudRecommenderV1Insight;
use Google\Service\Recommender\GoogleCloudRecommenderV1ListInsightsResponse;
use Google\Service\Recommender\GoogleCloudRecommenderV1MarkInsightAcceptedRequest;
/**
* The "insights" collection of methods.
* Typical usage is:
* <code>
* $recommenderService = new Google\Service\Recommender(...);
* $insights = $recommenderService->organizations_locations_insightTypes_insights;
* </code>
*/
class OrganizationsLocationsInsightTypesInsights extends \Google\Service\Resource
{
/**
* Gets the requested insight. Requires the recommender.*.get IAM permission for
* the specified insight type. (insights.get)
*
* @param string $name Required. Name of the insight.
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Insight
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudRecommenderV1Insight::class);
}
/**
* Lists insights for the specified Cloud Resource. Requires the
* recommender.*.list IAM permission for the specified insight type.
* (insights.listOrganizationsLocationsInsightTypesInsights)
*
* @param string $parent Required. The container resource on which to execute
* the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCA
* TION]/insightTypes/[INSIGHT_TYPE_ID]` *
* `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *
* `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSI
* GHT_TYPE_ID]` *
* `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `
* organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TY
* PE_ID]` LOCATION here refers to GCP Locations:
* https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers to supported
* insight types: https://cloud.google.com/recommender/docs/insights/insight-
* types.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter expression to restrict the insights
* returned. Supported filter fields: * `stateInfo.state` * `insightSubtype` *
* `severity` * `targetResources` Examples: * `stateInfo.state = ACTIVE OR
* stateInfo.state = DISMISSED` * `insightSubtype = PERMISSIONS_USAGE` *
* `severity = CRITICAL OR severity = HIGH` * `targetResources :
* //compute.googleapis.com/projects/1234/zones/us-
* central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (severity =
* CRITICAL OR severity = HIGH)` The max allowed filter length is 500
* characters. (These expressions are based on the filter language described at
* https://google.aip.dev/160)
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. If not specified, the
* server will determine the number of results to return.
* @opt_param string pageToken Optional. If present, retrieves the next batch of
* results from the preceding call to this method. `page_token` must be the
* value of `next_page_token` from the previous response. The values of other
* method parameters must be identical to those in the previous call.
* @return GoogleCloudRecommenderV1ListInsightsResponse
* @throws \Google\Service\Exception
*/
public function listOrganizationsLocationsInsightTypesInsights($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudRecommenderV1ListInsightsResponse::class);
}
/**
* Marks the Insight State as Accepted. Users can use this method to indicate to
* the Recommender API that they have applied some action based on the insight.
* This stops the insight content from being updated. MarkInsightAccepted can be
* applied to insights in ACTIVE state. Requires the recommender.*.update IAM
* permission for the specified insight. (insights.markAccepted)
*
* @param string $name Required. Name of the insight.
* @param GoogleCloudRecommenderV1MarkInsightAcceptedRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Insight
* @throws \Google\Service\Exception
*/
public function markAccepted($name, GoogleCloudRecommenderV1MarkInsightAcceptedRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('markAccepted', [$params], GoogleCloudRecommenderV1Insight::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsLocationsInsightTypesInsights::class, 'Google_Service_Recommender_Resource_OrganizationsLocationsInsightTypesInsights');

View File

@@ -0,0 +1,76 @@
<?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->organizations_locations_recommenders;
* </code>
*/
class OrganizationsLocationsRecommenders 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(OrganizationsLocationsRecommenders::class, 'Google_Service_Recommender_Resource_OrganizationsLocationsRecommenders');

View File

@@ -0,0 +1,183 @@
<?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\GoogleCloudRecommenderV1ListRecommendationsResponse;
use Google\Service\Recommender\GoogleCloudRecommenderV1MarkRecommendationClaimedRequest;
use Google\Service\Recommender\GoogleCloudRecommenderV1MarkRecommendationDismissedRequest;
use Google\Service\Recommender\GoogleCloudRecommenderV1MarkRecommendationFailedRequest;
use Google\Service\Recommender\GoogleCloudRecommenderV1MarkRecommendationSucceededRequest;
use Google\Service\Recommender\GoogleCloudRecommenderV1Recommendation;
/**
* The "recommendations" collection of methods.
* Typical usage is:
* <code>
* $recommenderService = new Google\Service\Recommender(...);
* $recommendations = $recommenderService->organizations_locations_recommenders_recommendations;
* </code>
*/
class OrganizationsLocationsRecommendersRecommendations extends \Google\Service\Resource
{
/**
* Gets the requested recommendation. Requires the recommender.*.get IAM
* permission for the specified recommender. (recommendations.get)
*
* @param string $name Required. Name of the recommendation.
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Recommendation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudRecommenderV1Recommendation::class);
}
/**
* Lists recommendations for the specified Cloud Resource. Requires the
* recommender.*.list IAM permission for the specified recommender.
* (recommendations.listOrganizationsLocationsRecommendersRecommendations)
*
* @param string $parent Required. The container resource on which to execute
* the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCA
* TION]/recommenders/[RECOMMENDER_ID]` *
* `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *
* `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECO
* MMENDER_ID]` *
* `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `o
* rganizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER
* _ID]` LOCATION here refers to GCP Locations:
* https://cloud.google.com/about/locations/ RECOMMENDER_ID refers to supported
* recommenders: https://cloud.google.com/recommender/docs/recommenders.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter expression to restrict the recommendations
* returned. Supported filter fields: * `state_info.state` *
* `recommenderSubtype` * `priority` * `targetResources` Examples: *
* `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` *
* `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` *
* `priority = P1 OR priority = P2` * `targetResources :
* //compute.googleapis.com/projects/1234/zones/us-
* central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (priority =
* P1 OR priority = P2)` The max allowed filter length is 500 characters. (These
* expressions are based on the filter language described at
* https://google.aip.dev/160)
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. If not specified, the
* server will determine the number of results to return.
* @opt_param string pageToken Optional. If present, retrieves the next batch of
* results from the preceding call to this method. `page_token` must be the
* value of `next_page_token` from the previous response. The values of other
* method parameters must be identical to those in the previous call.
* @return GoogleCloudRecommenderV1ListRecommendationsResponse
* @throws \Google\Service\Exception
*/
public function listOrganizationsLocationsRecommendersRecommendations($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudRecommenderV1ListRecommendationsResponse::class);
}
/**
* Marks the Recommendation State as Claimed. Users can use this method to
* indicate to the Recommender API that they are starting to apply the
* recommendation themselves. This stops the recommendation content from being
* updated. Associated insights are frozen and placed in the ACCEPTED state.
* MarkRecommendationClaimed can be applied to recommendations in CLAIMED,
* SUCCEEDED, FAILED, or ACTIVE state. Requires the recommender.*.update IAM
* permission for the specified recommender. (recommendations.markClaimed)
*
* @param string $name Required. Name of the recommendation.
* @param GoogleCloudRecommenderV1MarkRecommendationClaimedRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Recommendation
* @throws \Google\Service\Exception
*/
public function markClaimed($name, GoogleCloudRecommenderV1MarkRecommendationClaimedRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('markClaimed', [$params], GoogleCloudRecommenderV1Recommendation::class);
}
/**
* Mark the Recommendation State as Dismissed. Users can use this method to
* indicate to the Recommender API that an ACTIVE recommendation has to be
* marked back as DISMISSED. MarkRecommendationDismissed can be applied to
* recommendations in ACTIVE state. Requires the recommender.*.update IAM
* permission for the specified recommender. (recommendations.markDismissed)
*
* @param string $name Required. Name of the recommendation.
* @param GoogleCloudRecommenderV1MarkRecommendationDismissedRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Recommendation
* @throws \Google\Service\Exception
*/
public function markDismissed($name, GoogleCloudRecommenderV1MarkRecommendationDismissedRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('markDismissed', [$params], GoogleCloudRecommenderV1Recommendation::class);
}
/**
* Marks the Recommendation State as Failed. Users can use this method to
* indicate to the Recommender API that they have applied the recommendation
* themselves, and the operation failed. This stops the recommendation content
* from being updated. Associated insights are frozen and placed in the ACCEPTED
* state. MarkRecommendationFailed can be applied to recommendations in ACTIVE,
* CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM
* permission for the specified recommender. (recommendations.markFailed)
*
* @param string $name Required. Name of the recommendation.
* @param GoogleCloudRecommenderV1MarkRecommendationFailedRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Recommendation
* @throws \Google\Service\Exception
*/
public function markFailed($name, GoogleCloudRecommenderV1MarkRecommendationFailedRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('markFailed', [$params], GoogleCloudRecommenderV1Recommendation::class);
}
/**
* Marks the Recommendation State as Succeeded. Users can use this method to
* indicate to the Recommender API that they have applied the recommendation
* themselves, and the operation was successful. This stops the recommendation
* content from being updated. Associated insights are frozen and placed in the
* ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations
* in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the
* recommender.*.update IAM permission for the specified recommender.
* (recommendations.markSucceeded)
*
* @param string $name Required. Name of the recommendation.
* @param GoogleCloudRecommenderV1MarkRecommendationSucceededRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Recommendation
* @throws \Google\Service\Exception
*/
public function markSucceeded($name, GoogleCloudRecommenderV1MarkRecommendationSucceededRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('markSucceeded', [$params], GoogleCloudRecommenderV1Recommendation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OrganizationsLocationsRecommendersRecommendations::class, 'Google_Service_Recommender_Resource_OrganizationsLocationsRecommendersRecommendations');

View File

@@ -0,0 +1,33 @@
<?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;
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $recommenderService = new Google\Service\Recommender(...);
* $projects = $recommenderService->projects;
* </code>
*/
class Projects extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Projects::class, 'Google_Service_Recommender_Resource_Projects');

View File

@@ -0,0 +1,33 @@
<?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;
/**
* The "locations" collection of methods.
* Typical usage is:
* <code>
* $recommenderService = new Google\Service\Recommender(...);
* $locations = $recommenderService->projects_locations;
* </code>
*/
class ProjectsLocations extends \Google\Service\Resource
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocations::class, 'Google_Service_Recommender_Resource_ProjectsLocations');

View File

@@ -0,0 +1,77 @@
<?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\GoogleCloudRecommenderV1InsightTypeConfig;
/**
* The "insightTypes" collection of methods.
* Typical usage is:
* <code>
* $recommenderService = new Google\Service\Recommender(...);
* $insightTypes = $recommenderService->projects_locations_insightTypes;
* </code>
*/
class ProjectsLocationsInsightTypes extends \Google\Service\Resource
{
/**
* Gets the requested InsightTypeConfig. There is only one instance of the
* config for each InsightType. (insightTypes.getConfig)
*
* @param string $name Required. Name of the InsightTypeConfig to get.
* Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCATION]/insight
* Types/[INSIGHT_TYPE_ID]/config` * `projects/[PROJECT_ID]/locations/[LOCATION]
* /insightTypes/[INSIGHT_TYPE_ID]/config` * `organizations/[ORGANIZATION_ID]/lo
* cations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config` * `billingAccounts/
* [BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/conf
* ig`
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1InsightTypeConfig
* @throws \Google\Service\Exception
*/
public function getConfig($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('getConfig', [$params], GoogleCloudRecommenderV1InsightTypeConfig::class);
}
/**
* Updates an InsightTypeConfig change. This will create a new revision of the
* config. (insightTypes.updateConfig)
*
* @param string $name Identifier. Name of insight type config. Eg, projects/[PR
* OJECT_NUMBER]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]/config
* @param GoogleCloudRecommenderV1InsightTypeConfig $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 GoogleCloudRecommenderV1InsightTypeConfig
* @throws \Google\Service\Exception
*/
public function updateConfig($name, GoogleCloudRecommenderV1InsightTypeConfig $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateConfig', [$params], GoogleCloudRecommenderV1InsightTypeConfig::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsInsightTypes::class, 'Google_Service_Recommender_Resource_ProjectsLocationsInsightTypes');

View File

@@ -0,0 +1,116 @@
<?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\GoogleCloudRecommenderV1Insight;
use Google\Service\Recommender\GoogleCloudRecommenderV1ListInsightsResponse;
use Google\Service\Recommender\GoogleCloudRecommenderV1MarkInsightAcceptedRequest;
/**
* The "insights" collection of methods.
* Typical usage is:
* <code>
* $recommenderService = new Google\Service\Recommender(...);
* $insights = $recommenderService->projects_locations_insightTypes_insights;
* </code>
*/
class ProjectsLocationsInsightTypesInsights extends \Google\Service\Resource
{
/**
* Gets the requested insight. Requires the recommender.*.get IAM permission for
* the specified insight type. (insights.get)
*
* @param string $name Required. Name of the insight.
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Insight
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudRecommenderV1Insight::class);
}
/**
* Lists insights for the specified Cloud Resource. Requires the
* recommender.*.list IAM permission for the specified insight type.
* (insights.listProjectsLocationsInsightTypesInsights)
*
* @param string $parent Required. The container resource on which to execute
* the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCA
* TION]/insightTypes/[INSIGHT_TYPE_ID]` *
* `projects/[PROJECT_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` *
* `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/insightTypes/[INSI
* GHT_TYPE_ID]` *
* `folders/[FOLDER_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TYPE_ID]` * `
* organizations/[ORGANIZATION_ID]/locations/[LOCATION]/insightTypes/[INSIGHT_TY
* PE_ID]` LOCATION here refers to GCP Locations:
* https://cloud.google.com/about/locations/ INSIGHT_TYPE_ID refers to supported
* insight types: https://cloud.google.com/recommender/docs/insights/insight-
* types.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Optional. Filter expression to restrict the insights
* returned. Supported filter fields: * `stateInfo.state` * `insightSubtype` *
* `severity` * `targetResources` Examples: * `stateInfo.state = ACTIVE OR
* stateInfo.state = DISMISSED` * `insightSubtype = PERMISSIONS_USAGE` *
* `severity = CRITICAL OR severity = HIGH` * `targetResources :
* //compute.googleapis.com/projects/1234/zones/us-
* central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (severity =
* CRITICAL OR severity = HIGH)` The max allowed filter length is 500
* characters. (These expressions are based on the filter language described at
* https://google.aip.dev/160)
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. If not specified, the
* server will determine the number of results to return.
* @opt_param string pageToken Optional. If present, retrieves the next batch of
* results from the preceding call to this method. `page_token` must be the
* value of `next_page_token` from the previous response. The values of other
* method parameters must be identical to those in the previous call.
* @return GoogleCloudRecommenderV1ListInsightsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsInsightTypesInsights($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudRecommenderV1ListInsightsResponse::class);
}
/**
* Marks the Insight State as Accepted. Users can use this method to indicate to
* the Recommender API that they have applied some action based on the insight.
* This stops the insight content from being updated. MarkInsightAccepted can be
* applied to insights in ACTIVE state. Requires the recommender.*.update IAM
* permission for the specified insight. (insights.markAccepted)
*
* @param string $name Required. Name of the insight.
* @param GoogleCloudRecommenderV1MarkInsightAcceptedRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Insight
* @throws \Google\Service\Exception
*/
public function markAccepted($name, GoogleCloudRecommenderV1MarkInsightAcceptedRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('markAccepted', [$params], GoogleCloudRecommenderV1Insight::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsInsightTypesInsights::class, 'Google_Service_Recommender_Resource_ProjectsLocationsInsightTypesInsights');

View File

@@ -0,0 +1,76 @@
<?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');

View File

@@ -0,0 +1,183 @@
<?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\GoogleCloudRecommenderV1ListRecommendationsResponse;
use Google\Service\Recommender\GoogleCloudRecommenderV1MarkRecommendationClaimedRequest;
use Google\Service\Recommender\GoogleCloudRecommenderV1MarkRecommendationDismissedRequest;
use Google\Service\Recommender\GoogleCloudRecommenderV1MarkRecommendationFailedRequest;
use Google\Service\Recommender\GoogleCloudRecommenderV1MarkRecommendationSucceededRequest;
use Google\Service\Recommender\GoogleCloudRecommenderV1Recommendation;
/**
* The "recommendations" collection of methods.
* Typical usage is:
* <code>
* $recommenderService = new Google\Service\Recommender(...);
* $recommendations = $recommenderService->projects_locations_recommenders_recommendations;
* </code>
*/
class ProjectsLocationsRecommendersRecommendations extends \Google\Service\Resource
{
/**
* Gets the requested recommendation. Requires the recommender.*.get IAM
* permission for the specified recommender. (recommendations.get)
*
* @param string $name Required. Name of the recommendation.
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Recommendation
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], GoogleCloudRecommenderV1Recommendation::class);
}
/**
* Lists recommendations for the specified Cloud Resource. Requires the
* recommender.*.list IAM permission for the specified recommender.
* (recommendations.listProjectsLocationsRecommendersRecommendations)
*
* @param string $parent Required. The container resource on which to execute
* the request. Acceptable formats: * `projects/[PROJECT_NUMBER]/locations/[LOCA
* TION]/recommenders/[RECOMMENDER_ID]` *
* `projects/[PROJECT_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` *
* `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION]/recommenders/[RECO
* MMENDER_ID]` *
* `folders/[FOLDER_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER_ID]` * `o
* rganizations/[ORGANIZATION_ID]/locations/[LOCATION]/recommenders/[RECOMMENDER
* _ID]` LOCATION here refers to GCP Locations:
* https://cloud.google.com/about/locations/ RECOMMENDER_ID refers to supported
* recommenders: https://cloud.google.com/recommender/docs/recommenders.
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter expression to restrict the recommendations
* returned. Supported filter fields: * `state_info.state` *
* `recommenderSubtype` * `priority` * `targetResources` Examples: *
* `stateInfo.state = ACTIVE OR stateInfo.state = DISMISSED` *
* `recommenderSubtype = REMOVE_ROLE OR recommenderSubtype = REPLACE_ROLE` *
* `priority = P1 OR priority = P2` * `targetResources :
* //compute.googleapis.com/projects/1234/zones/us-
* central1-a/instances/instance-1` * `stateInfo.state = ACTIVE AND (priority =
* P1 OR priority = P2)` The max allowed filter length is 500 characters. (These
* expressions are based on the filter language described at
* https://google.aip.dev/160)
* @opt_param int pageSize Optional. The maximum number of results to return
* from this request. Non-positive values are ignored. If not specified, the
* server will determine the number of results to return.
* @opt_param string pageToken Optional. If present, retrieves the next batch of
* results from the preceding call to this method. `page_token` must be the
* value of `next_page_token` from the previous response. The values of other
* method parameters must be identical to those in the previous call.
* @return GoogleCloudRecommenderV1ListRecommendationsResponse
* @throws \Google\Service\Exception
*/
public function listProjectsLocationsRecommendersRecommendations($parent, $optParams = [])
{
$params = ['parent' => $parent];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], GoogleCloudRecommenderV1ListRecommendationsResponse::class);
}
/**
* Marks the Recommendation State as Claimed. Users can use this method to
* indicate to the Recommender API that they are starting to apply the
* recommendation themselves. This stops the recommendation content from being
* updated. Associated insights are frozen and placed in the ACCEPTED state.
* MarkRecommendationClaimed can be applied to recommendations in CLAIMED,
* SUCCEEDED, FAILED, or ACTIVE state. Requires the recommender.*.update IAM
* permission for the specified recommender. (recommendations.markClaimed)
*
* @param string $name Required. Name of the recommendation.
* @param GoogleCloudRecommenderV1MarkRecommendationClaimedRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Recommendation
* @throws \Google\Service\Exception
*/
public function markClaimed($name, GoogleCloudRecommenderV1MarkRecommendationClaimedRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('markClaimed', [$params], GoogleCloudRecommenderV1Recommendation::class);
}
/**
* Mark the Recommendation State as Dismissed. Users can use this method to
* indicate to the Recommender API that an ACTIVE recommendation has to be
* marked back as DISMISSED. MarkRecommendationDismissed can be applied to
* recommendations in ACTIVE state. Requires the recommender.*.update IAM
* permission for the specified recommender. (recommendations.markDismissed)
*
* @param string $name Required. Name of the recommendation.
* @param GoogleCloudRecommenderV1MarkRecommendationDismissedRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Recommendation
* @throws \Google\Service\Exception
*/
public function markDismissed($name, GoogleCloudRecommenderV1MarkRecommendationDismissedRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('markDismissed', [$params], GoogleCloudRecommenderV1Recommendation::class);
}
/**
* Marks the Recommendation State as Failed. Users can use this method to
* indicate to the Recommender API that they have applied the recommendation
* themselves, and the operation failed. This stops the recommendation content
* from being updated. Associated insights are frozen and placed in the ACCEPTED
* state. MarkRecommendationFailed can be applied to recommendations in ACTIVE,
* CLAIMED, SUCCEEDED, or FAILED state. Requires the recommender.*.update IAM
* permission for the specified recommender. (recommendations.markFailed)
*
* @param string $name Required. Name of the recommendation.
* @param GoogleCloudRecommenderV1MarkRecommendationFailedRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Recommendation
* @throws \Google\Service\Exception
*/
public function markFailed($name, GoogleCloudRecommenderV1MarkRecommendationFailedRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('markFailed', [$params], GoogleCloudRecommenderV1Recommendation::class);
}
/**
* Marks the Recommendation State as Succeeded. Users can use this method to
* indicate to the Recommender API that they have applied the recommendation
* themselves, and the operation was successful. This stops the recommendation
* content from being updated. Associated insights are frozen and placed in the
* ACCEPTED state. MarkRecommendationSucceeded can be applied to recommendations
* in ACTIVE, CLAIMED, SUCCEEDED, or FAILED state. Requires the
* recommender.*.update IAM permission for the specified recommender.
* (recommendations.markSucceeded)
*
* @param string $name Required. Name of the recommendation.
* @param GoogleCloudRecommenderV1MarkRecommendationSucceededRequest $postBody
* @param array $optParams Optional parameters.
* @return GoogleCloudRecommenderV1Recommendation
* @throws \Google\Service\Exception
*/
public function markSucceeded($name, GoogleCloudRecommenderV1MarkRecommendationSucceededRequest $postBody, $optParams = [])
{
$params = ['name' => $name, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('markSucceeded', [$params], GoogleCloudRecommenderV1Recommendation::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ProjectsLocationsRecommendersRecommendations::class, 'Google_Service_Recommender_Resource_ProjectsLocationsRecommendersRecommendations');