allowCredentials = $allowCredentials;
}
/**
* @return bool
*/
public function getAllowCredentials()
{
return $this->allowCredentials;
}
/**
* @param string[]
*/
public function setAllowHeaders($allowHeaders)
{
$this->allowHeaders = $allowHeaders;
}
/**
* @return string[]
*/
public function getAllowHeaders()
{
return $this->allowHeaders;
}
/**
* @param string[]
*/
public function setAllowMethods($allowMethods)
{
$this->allowMethods = $allowMethods;
}
/**
* @return string[]
*/
public function getAllowMethods()
{
return $this->allowMethods;
}
/**
* @param string[]
*/
public function setAllowOriginRegexes($allowOriginRegexes)
{
$this->allowOriginRegexes = $allowOriginRegexes;
}
/**
* @return string[]
*/
public function getAllowOriginRegexes()
{
return $this->allowOriginRegexes;
}
/**
* @param string[]
*/
public function setAllowOrigins($allowOrigins)
{
$this->allowOrigins = $allowOrigins;
}
/**
* @return string[]
*/
public function getAllowOrigins()
{
return $this->allowOrigins;
}
/**
* @param bool
*/
public function setDisabled($disabled)
{
$this->disabled = $disabled;
}
/**
* @return bool
*/
public function getDisabled()
{
return $this->disabled;
}
/**
* @param string[]
*/
public function setExposeHeaders($exposeHeaders)
{
$this->exposeHeaders = $exposeHeaders;
}
/**
* @return string[]
*/
public function getExposeHeaders()
{
return $this->exposeHeaders;
}
/**
* @param int
*/
public function setMaxAge($maxAge)
{
$this->maxAge = $maxAge;
}
/**
* @return int
*/
public function getMaxAge()
{
return $this->maxAge;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CorsPolicy::class, 'Google_Service_Compute_CorsPolicy');