channel = $channel; } /** * @return self::CHANNEL_* */ public function getChannel() { return $this->channel; } /** * Deny Maintenance Period that is applied to resource to indicate when * maintenance is forbidden. The protocol supports zero-to-many such periods, * but the current SLM Rollout implementation only supports zero-to-one. * * @param DenyMaintenancePeriod[] $denyMaintenancePeriods */ public function setDenyMaintenancePeriods($denyMaintenancePeriods) { $this->denyMaintenancePeriods = $denyMaintenancePeriods; } /** * @return DenyMaintenancePeriod[] */ public function getDenyMaintenancePeriods() { return $this->denyMaintenancePeriods; } /** * Optional. Maintenance window that is applied to resources covered by this * policy. * * @param MaintenanceWindow $window */ public function setWindow(MaintenanceWindow $window) { $this->window = $window; } /** * @return MaintenanceWindow */ public function getWindow() { return $this->window; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(UpdatePolicy::class, 'Google_Service_Connectors_UpdatePolicy');