identities = $identities; } /** * @return string[] */ public function getIdentities() { return $this->identities; } /** * Specifies the type of identities that are allowed access to outside the * perimeter. If left unspecified, then members of `identities` field will be * allowed access. * * Accepted values: IDENTITY_TYPE_UNSPECIFIED, ANY_IDENTITY, ANY_USER_ACCOUNT, * ANY_SERVICE_ACCOUNT * * @param self::IDENTITY_TYPE_* $identityType */ public function setIdentityType($identityType) { $this->identityType = $identityType; } /** * @return self::IDENTITY_TYPE_* */ public function getIdentityType() { return $this->identityType; } /** * Whether to enforce traffic restrictions based on `sources` field. If the * `sources` fields is non-empty, then this field must be set to * `SOURCE_RESTRICTION_ENABLED`. * * Accepted values: SOURCE_RESTRICTION_UNSPECIFIED, * SOURCE_RESTRICTION_ENABLED, SOURCE_RESTRICTION_DISABLED * * @param self::SOURCE_RESTRICTION_* $sourceRestriction */ public function setSourceRestriction($sourceRestriction) { $this->sourceRestriction = $sourceRestriction; } /** * @return self::SOURCE_RESTRICTION_* */ public function getSourceRestriction() { return $this->sourceRestriction; } /** * Sources that this EgressPolicy authorizes access from. If this field is not * empty, then `source_restriction` must be set to * `SOURCE_RESTRICTION_ENABLED`. * * @param GoogleIdentityAccesscontextmanagerV1EgressSource[] $sources */ public function setSources($sources) { $this->sources = $sources; } /** * @return GoogleIdentityAccesscontextmanagerV1EgressSource[] */ public function getSources() { return $this->sources; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(GoogleIdentityAccesscontextmanagerV1EgressFrom::class, 'Google_Service_CloudAsset_GoogleIdentityAccesscontextmanagerV1EgressFrom');