externalResources = $externalResources; } /** * @return string[] */ public function getExternalResources() { return $this->externalResources; } /** * A list of ApiOperations allowed to be performed by the sources specified in * the corresponding EgressFrom. A request matches if it uses an * operation/service in this list. * * @param ApiOperation[] $operations */ public function setOperations($operations) { $this->operations = $operations; } /** * @return ApiOperation[] */ public function getOperations() { return $this->operations; } /** * A list of resources, currently only projects in the form `projects/`, that * are allowed to be accessed by sources defined in the corresponding * EgressFrom. A request matches if it contains a resource in this list. If * `*` is specified for `resources`, then this EgressTo rule will authorize * access to all resources outside the perimeter. * * @param string[] $resources */ public function setResources($resources) { $this->resources = $resources; } /** * @return string[] */ public function getResources() { return $this->resources; } /** * IAM roles that represent the set of operations that the sources specified * in the corresponding EgressFrom. are allowed to perform in this * ServicePerimeter. * * @param string[] $roles */ public function setRoles($roles) { $this->roles = $roles; } /** * @return string[] */ public function getRoles() { return $this->roles; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(EgressTo::class, 'Google_Service_AccessContextManager_EgressTo');