ancestors = $ancestors; } /** * @return string[] */ public function getAncestors() { return $this->ancestors; } /** * The asset type of the resource as defined by CAIS. Example: * `compute.googleapis.com/Firewall` See [Supported asset * types](https://cloud.google.com/asset-inventory/docs/supported-asset-types) * for more information. * * @param string $assetType */ public function setAssetType($assetType) { $this->assetType = $assetType; } /** * @return string */ public function getAssetType() { return $this->assetType; } /** * The full name of the resource. Example: `//compute.googleapis.com/projects/ * my_project_123/zones/zone1/instances/instance1` See [Resource names](https: * //cloud.google.com/apis/design/resource_names#full_resource_name) for more * information. * * @param string $resource */ public function setResource($resource) { $this->resource = $resource; } /** * @return string */ public function getResource() { return $this->resource; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleCloudPolicysimulatorV1ResourceContext::class, 'Google_Service_PolicySimulator_GoogleCloudPolicysimulatorV1ResourceContext');