gestione documentale avanzata 1 parte

This commit is contained in:
2026-05-28 09:34:28 +02:00
parent 3471befb1a
commit f2b0833b90
34482 changed files with 4312269 additions and 546 deletions
@@ -0,0 +1,134 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class AbuseDetected extends \Google\Model
{
/**
* AbuseDetected alert variation type unspecified. No alert should be
* unspecified.
*/
public const VARIATION_TYPE_ABUSE_DETECTED_VARIATION_TYPE_UNSPECIFIED = 'ABUSE_DETECTED_VARIATION_TYPE_UNSPECIFIED';
/**
* Variation displayed for Drive abusive content alerts.
*/
public const VARIATION_TYPE_DRIVE_ABUSIVE_CONTENT = 'DRIVE_ABUSIVE_CONTENT';
/**
* Variation displayed for Limited Disable alerts, when a Google service is
* disabled for a user, totally or partially, due to the user's abusive
* behavior.
*/
public const VARIATION_TYPE_LIMITED_DISABLE = 'LIMITED_DISABLE';
protected $additionalDetailsType = EntityList::class;
protected $additionalDetailsDataType = '';
/**
* Product that the abuse is originating from.
*
* @var string
*/
public $product;
/**
* Unique identifier of each sub alert that is onboarded.
*
* @var string
*/
public $subAlertId;
/**
* Variation of AbuseDetected alerts. The variation_type determines the texts
* displayed the alert details. This differs from sub_alert_id because each
* sub alert can have multiple variation_types, representing different stages
* of the alert.
*
* @var string
*/
public $variationType;
/**
* List of abusive users/entities to be displayed in a table in the alert.
*
* @param EntityList $additionalDetails
*/
public function setAdditionalDetails(EntityList $additionalDetails)
{
$this->additionalDetails = $additionalDetails;
}
/**
* @return EntityList
*/
public function getAdditionalDetails()
{
return $this->additionalDetails;
}
/**
* Product that the abuse is originating from.
*
* @param string $product
*/
public function setProduct($product)
{
$this->product = $product;
}
/**
* @return string
*/
public function getProduct()
{
return $this->product;
}
/**
* Unique identifier of each sub alert that is onboarded.
*
* @param string $subAlertId
*/
public function setSubAlertId($subAlertId)
{
$this->subAlertId = $subAlertId;
}
/**
* @return string
*/
public function getSubAlertId()
{
return $this->subAlertId;
}
/**
* Variation of AbuseDetected alerts. The variation_type determines the texts
* displayed the alert details. This differs from sub_alert_id because each
* sub alert can have multiple variation_types, representing different stages
* of the alert.
*
* Accepted values: ABUSE_DETECTED_VARIATION_TYPE_UNSPECIFIED,
* DRIVE_ABUSIVE_CONTENT, LIMITED_DISABLE
*
* @param self::VARIATION_TYPE_* $variationType
*/
public function setVariationType($variationType)
{
$this->variationType = $variationType;
}
/**
* @return self::VARIATION_TYPE_*
*/
public function getVariationType()
{
return $this->variationType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AbuseDetected::class, 'Google_Service_AlertCenter_AbuseDetected');
@@ -0,0 +1,160 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class AccessApproval extends \Google\Collection
{
protected $collection_key = 'tickets';
/**
* Justification for data access based on justification enums.
*
* @var string[]
*/
public $justificationReason;
/**
* Office location of Google staff requesting access such as "US".
*
* @var string
*/
public $officeLocation;
/**
* Products within scope of the Access Approvals request.
*
* @var string[]
*/
public $products;
/**
* ID of the Access Approvals request. This is a helpful field when requesting
* support from Google.
*
* @var string
*/
public $requestId;
/**
* Scope of access, also known as a resource. This is further narrowed down by
* the product field.
*
* @var string
*/
public $scope;
protected $ticketsType = SupportTicket::class;
protected $ticketsDataType = 'array';
/**
* Justification for data access based on justification enums.
*
* @param string[] $justificationReason
*/
public function setJustificationReason($justificationReason)
{
$this->justificationReason = $justificationReason;
}
/**
* @return string[]
*/
public function getJustificationReason()
{
return $this->justificationReason;
}
/**
* Office location of Google staff requesting access such as "US".
*
* @param string $officeLocation
*/
public function setOfficeLocation($officeLocation)
{
$this->officeLocation = $officeLocation;
}
/**
* @return string
*/
public function getOfficeLocation()
{
return $this->officeLocation;
}
/**
* Products within scope of the Access Approvals request.
*
* @param string[] $products
*/
public function setProducts($products)
{
$this->products = $products;
}
/**
* @return string[]
*/
public function getProducts()
{
return $this->products;
}
/**
* ID of the Access Approvals request. This is a helpful field when requesting
* support from Google.
*
* @param string $requestId
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* Scope of access, also known as a resource. This is further narrowed down by
* the product field.
*
* @param string $scope
*/
public function setScope($scope)
{
$this->scope = $scope;
}
/**
* @return string
*/
public function getScope()
{
return $this->scope;
}
/**
* Support tickets related to this Access Approvals request. Populated if
* there is an associated case number.
*
* @param SupportTicket[] $tickets
*/
public function setTickets($tickets)
{
$this->tickets = $tickets;
}
/**
* @return SupportTicket[]
*/
public function getTickets()
{
return $this->tickets;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccessApproval::class, 'Google_Service_AlertCenter_AccessApproval');
@@ -0,0 +1,120 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class AccountSuspensionDetails extends \Google\Model
{
/**
* Abuse reason is unspecified.
*/
public const ABUSE_REASON_ACCOUNT_SUSPENSION_ABUSE_REASON_UNSPECIFIED = 'ACCOUNT_SUSPENSION_ABUSE_REASON_UNSPECIFIED';
/**
* This account is being suspended for a Terms of Service violation.
*/
public const ABUSE_REASON_TOS_VIOLATION = 'TOS_VIOLATION';
/**
* This account is being suspended for spam.
*/
public const ABUSE_REASON_SPAM = 'SPAM';
/**
* This account is being suspended for phishing.
*/
public const ABUSE_REASON_PHISHING = 'PHISHING';
/**
* This account is being suspended for artificially boosting traffic to a
* website.
*/
public const ABUSE_REASON_TRAFFIC_PUMPING = 'TRAFFIC_PUMPING';
/**
* This account is being suspended for fraud.
*/
public const ABUSE_REASON_FRAUD = 'FRAUD';
/**
* This account is being suspended for number harvesting.
*/
public const ABUSE_REASON_NUMBER_HARVESTING = 'NUMBER_HARVESTING';
/**
* This account is being suspended for payments fraud.
*/
public const ABUSE_REASON_PAYMENTS_FRAUD = 'PAYMENTS_FRAUD';
/**
* This account is being suspended for unwanted content.
*/
public const ABUSE_REASON_UNWANTED_CONTENT = 'UNWANTED_CONTENT';
/**
* This account is being suspended for being an unqualified educational
* institution.
*/
public const ABUSE_REASON_UNQUALIFIED_EDU = 'UNQUALIFIED_EDU';
/**
* The reason why this account is receiving an account suspension warning.
*
* @var string
*/
public $abuseReason;
/**
* The name of the product being abused. This is restricted to only the
* following values: "Gmail" "Google Workspace" "Payments" "Voice" "YouTube"
* "Other"
*
* @var string
*/
public $productName;
/**
* The reason why this account is receiving an account suspension warning.
*
* Accepted values: ACCOUNT_SUSPENSION_ABUSE_REASON_UNSPECIFIED,
* TOS_VIOLATION, SPAM, PHISHING, TRAFFIC_PUMPING, FRAUD, NUMBER_HARVESTING,
* PAYMENTS_FRAUD, UNWANTED_CONTENT, UNQUALIFIED_EDU
*
* @param self::ABUSE_REASON_* $abuseReason
*/
public function setAbuseReason($abuseReason)
{
$this->abuseReason = $abuseReason;
}
/**
* @return self::ABUSE_REASON_*
*/
public function getAbuseReason()
{
return $this->abuseReason;
}
/**
* The name of the product being abused. This is restricted to only the
* following values: "Gmail" "Google Workspace" "Payments" "Voice" "YouTube"
* "Other"
*
* @param string $productName
*/
public function setProductName($productName)
{
$this->productName = $productName;
}
/**
* @return string
*/
public function getProductName()
{
return $this->productName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountSuspensionDetails::class, 'Google_Service_AlertCenter_AccountSuspensionDetails');
@@ -0,0 +1,116 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class AccountSuspensionWarning extends \Google\Collection
{
/**
* State is unspecified.
*/
public const STATE_ACCOUNT_SUSPENSION_WARNING_STATE_UNSPECIFIED = 'ACCOUNT_SUSPENSION_WARNING_STATE_UNSPECIFIED';
/**
* Customer is receiving a warning about imminent suspension.
*/
public const STATE_WARNING = 'WARNING';
/**
* Customer is being notified that their account has been suspended.
*/
public const STATE_SUSPENDED = 'SUSPENDED';
/**
* Customer is being notified that their suspension appeal was approved.
*/
public const STATE_APPEAL_APPROVED = 'APPEAL_APPROVED';
/**
* Customer has submitted their appeal, which is pending review.
*/
public const STATE_APPEAL_SUBMITTED = 'APPEAL_SUBMITTED';
protected $collection_key = 'suspensionDetails';
/**
* The amount of time remaining to appeal an imminent suspension. After this
* window has elapsed, the account will be suspended. Only populated if the
* account suspension is in WARNING state.
*
* @var string
*/
public $appealWindow;
/**
* Account suspension warning state.
*
* @var string
*/
public $state;
protected $suspensionDetailsType = AccountSuspensionDetails::class;
protected $suspensionDetailsDataType = 'array';
/**
* The amount of time remaining to appeal an imminent suspension. After this
* window has elapsed, the account will be suspended. Only populated if the
* account suspension is in WARNING state.
*
* @param string $appealWindow
*/
public function setAppealWindow($appealWindow)
{
$this->appealWindow = $appealWindow;
}
/**
* @return string
*/
public function getAppealWindow()
{
return $this->appealWindow;
}
/**
* Account suspension warning state.
*
* Accepted values: ACCOUNT_SUSPENSION_WARNING_STATE_UNSPECIFIED, WARNING,
* SUSPENDED, APPEAL_APPROVED, APPEAL_SUBMITTED
*
* @param self::STATE_* $state
*/
public function setState($state)
{
$this->state = $state;
}
/**
* @return self::STATE_*
*/
public function getState()
{
return $this->state;
}
/**
* Details about why an account is being suspended.
*
* @param AccountSuspensionDetails[] $suspensionDetails
*/
public function setSuspensionDetails($suspensionDetails)
{
$this->suspensionDetails = $suspensionDetails;
}
/**
* @return AccountSuspensionDetails[]
*/
public function getSuspensionDetails()
{
return $this->suspensionDetails;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountSuspensionWarning::class, 'Google_Service_AlertCenter_AccountSuspensionWarning');
@@ -0,0 +1,69 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class AccountWarning extends \Google\Model
{
/**
* Required. The email of the user that this event belongs to.
*
* @var string
*/
public $email;
protected $loginDetailsType = LoginDetails::class;
protected $loginDetailsDataType = '';
/**
* Required. The email of the user that this event belongs to.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Optional. Details of the login action associated with the warning event.
* This is only available for: * Suspicious login * Suspicious login (less
* secure app) * Suspicious programmatic login * User suspended (suspicious
* activity)
*
* @param LoginDetails $loginDetails
*/
public function setLoginDetails(LoginDetails $loginDetails)
{
$this->loginDetails = $loginDetails;
}
/**
* @return LoginDetails
*/
public function getLoginDetails()
{
return $this->loginDetails;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AccountWarning::class, 'Google_Service_AlertCenter_AccountWarning');
@@ -0,0 +1,50 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class ActionInfo extends \Google\Model
{
/**
* Google Cloud Storage location of the content that violated the rule. This
* field has format: "/"
*
* @var string
*/
public $evidenceLockerFilePath;
/**
* Google Cloud Storage location of the content that violated the rule. This
* field has format: "/"
*
* @param string $evidenceLockerFilePath
*/
public function setEvidenceLockerFilePath($evidenceLockerFilePath)
{
$this->evidenceLockerFilePath = $evidenceLockerFilePath;
}
/**
* @return string
*/
public function getEvidenceLockerFilePath()
{
return $this->evidenceLockerFilePath;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ActionInfo::class, 'Google_Service_AlertCenter_ActionInfo');
@@ -0,0 +1,301 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class ActivityRule extends \Google\Collection
{
protected $collection_key = 'supersededAlerts';
/**
* List of action names associated with the rule threshold.
*
* @var string[]
*/
public $actionNames;
/**
* Rule create timestamp.
*
* @var string
*/
public $createTime;
/**
* Description of the rule.
*
* @var string
*/
public $description;
/**
* Alert display name.
*
* @var string
*/
public $displayName;
/**
* Rule name.
*
* @var string
*/
public $name;
/**
* Query that is used to get the data from the associated source.
*
* @var string
*/
public $query;
/**
* List of alert IDs superseded by this alert. It is used to indicate that
* this alert is essentially extension of superseded alerts and we found the
* relationship after creating these alerts.
*
* @var string[]
*/
public $supersededAlerts;
/**
* Alert ID superseding this alert. It is used to indicate that superseding
* alert is essentially extension of this alert and we found the relationship
* after creating both alerts.
*
* @var string
*/
public $supersedingAlert;
/**
* Alert threshold is for example “COUNT > 5”.
*
* @var string
*/
public $threshold;
/**
* The trigger sources for this rule. * GMAIL_EVENTS * DEVICE_EVENTS *
* USER_EVENTS
*
* @var string
*/
public $triggerSource;
/**
* The timestamp of the last update to the rule.
*
* @var string
*/
public $updateTime;
/**
* Rule window size. Possible values are 1 hour or 24 hours.
*
* @var string
*/
public $windowSize;
/**
* List of action names associated with the rule threshold.
*
* @param string[] $actionNames
*/
public function setActionNames($actionNames)
{
$this->actionNames = $actionNames;
}
/**
* @return string[]
*/
public function getActionNames()
{
return $this->actionNames;
}
/**
* Rule create timestamp.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Description of the rule.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Alert display name.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Rule name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Query that is used to get the data from the associated source.
*
* @param string $query
*/
public function setQuery($query)
{
$this->query = $query;
}
/**
* @return string
*/
public function getQuery()
{
return $this->query;
}
/**
* List of alert IDs superseded by this alert. It is used to indicate that
* this alert is essentially extension of superseded alerts and we found the
* relationship after creating these alerts.
*
* @param string[] $supersededAlerts
*/
public function setSupersededAlerts($supersededAlerts)
{
$this->supersededAlerts = $supersededAlerts;
}
/**
* @return string[]
*/
public function getSupersededAlerts()
{
return $this->supersededAlerts;
}
/**
* Alert ID superseding this alert. It is used to indicate that superseding
* alert is essentially extension of this alert and we found the relationship
* after creating both alerts.
*
* @param string $supersedingAlert
*/
public function setSupersedingAlert($supersedingAlert)
{
$this->supersedingAlert = $supersedingAlert;
}
/**
* @return string
*/
public function getSupersedingAlert()
{
return $this->supersedingAlert;
}
/**
* Alert threshold is for example “COUNT > 5”.
*
* @param string $threshold
*/
public function setThreshold($threshold)
{
$this->threshold = $threshold;
}
/**
* @return string
*/
public function getThreshold()
{
return $this->threshold;
}
/**
* The trigger sources for this rule. * GMAIL_EVENTS * DEVICE_EVENTS *
* USER_EVENTS
*
* @param string $triggerSource
*/
public function setTriggerSource($triggerSource)
{
$this->triggerSource = $triggerSource;
}
/**
* @return string
*/
public function getTriggerSource()
{
return $this->triggerSource;
}
/**
* The timestamp of the last update to the rule.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
/**
* Rule window size. Possible values are 1 hour or 24 hours.
*
* @param string $windowSize
*/
public function setWindowSize($windowSize)
{
$this->windowSize = $windowSize;
}
/**
* @return string
*/
public function getWindowSize()
{
return $this->windowSize;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ActivityRule::class, 'Google_Service_AlertCenter_ActivityRule');
@@ -0,0 +1,350 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class Alert extends \Google\Model
{
/**
* Output only. The unique identifier for the alert.
*
* @var string
*/
public $alertId;
/**
* Output only. The time this alert was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The unique identifier of the Google Workspace account of the
* customer.
*
* @var string
*/
public $customerId;
/**
* Optional. The data associated with this alert, for example
* google.apps.alertcenter.type.DeviceCompromised.
*
* @var array[]
*/
public $data;
/**
* Output only. `True` if this alert is marked for deletion.
*
* @var bool
*/
public $deleted;
/**
* Optional. The time the event that caused this alert ceased being active. If
* provided, the end time must not be earlier than the start time. If not
* provided, it indicates an ongoing alert.
*
* @var string
*/
public $endTime;
/**
* Optional. `etag` is used for optimistic concurrency control as a way to
* help prevent simultaneous updates of an alert from overwriting each other.
* It is strongly suggested that systems make use of the `etag` in the read-
* modify-write cycle to perform alert updates in order to avoid race
* conditions: An `etag` is returned in the response which contains alerts,
* and systems are expected to put that etag in the request to update alert to
* ensure that their change will be applied to the same version of the alert.
* If no `etag` is provided in the call to update alert, then the existing
* alert is overwritten blindly.
*
* @var string
*/
public $etag;
protected $metadataType = AlertMetadata::class;
protected $metadataDataType = '';
/**
* Output only. An optional [Security Investigation
* Tool](https://support.google.com/a/answer/7575955) query for this alert.
*
* @var string
*/
public $securityInvestigationToolLink;
/**
* Required. A unique identifier for the system that reported the alert. This
* is output only after alert is created. Supported sources are any of the
* following: * Google Operations * Mobile device management * Gmail phishing
* * Data Loss Prevention * Domain wide takeout * State sponsored attack *
* Google identity * Apps outage
*
* @var string
*/
public $source;
/**
* Required. The time the event that caused this alert was started or
* detected.
*
* @var string
*/
public $startTime;
/**
* Required. The type of the alert. This is output only after alert is
* created. For a list of available alert types see [Google Workspace Alert ty
* pes](https://developers.google.com/workspace/admin/alertcenter/reference/al
* ert-types).
*
* @var string
*/
public $type;
/**
* Output only. The time this alert was last updated.
*
* @var string
*/
public $updateTime;
/**
* Output only. The unique identifier for the alert.
*
* @param string $alertId
*/
public function setAlertId($alertId)
{
$this->alertId = $alertId;
}
/**
* @return string
*/
public function getAlertId()
{
return $this->alertId;
}
/**
* Output only. The time this alert was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The unique identifier of the Google Workspace account of the
* customer.
*
* @param string $customerId
*/
public function setCustomerId($customerId)
{
$this->customerId = $customerId;
}
/**
* @return string
*/
public function getCustomerId()
{
return $this->customerId;
}
/**
* Optional. The data associated with this alert, for example
* google.apps.alertcenter.type.DeviceCompromised.
*
* @param array[] $data
*/
public function setData($data)
{
$this->data = $data;
}
/**
* @return array[]
*/
public function getData()
{
return $this->data;
}
/**
* Output only. `True` if this alert is marked for deletion.
*
* @param bool $deleted
*/
public function setDeleted($deleted)
{
$this->deleted = $deleted;
}
/**
* @return bool
*/
public function getDeleted()
{
return $this->deleted;
}
/**
* Optional. The time the event that caused this alert ceased being active. If
* provided, the end time must not be earlier than the start time. If not
* provided, it indicates an ongoing alert.
*
* @param string $endTime
*/
public function setEndTime($endTime)
{
$this->endTime = $endTime;
}
/**
* @return string
*/
public function getEndTime()
{
return $this->endTime;
}
/**
* Optional. `etag` is used for optimistic concurrency control as a way to
* help prevent simultaneous updates of an alert from overwriting each other.
* It is strongly suggested that systems make use of the `etag` in the read-
* modify-write cycle to perform alert updates in order to avoid race
* conditions: An `etag` is returned in the response which contains alerts,
* and systems are expected to put that etag in the request to update alert to
* ensure that their change will be applied to the same version of the alert.
* If no `etag` is provided in the call to update alert, then the existing
* alert is overwritten blindly.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Output only. The metadata associated with this alert.
*
* @param AlertMetadata $metadata
*/
public function setMetadata(AlertMetadata $metadata)
{
$this->metadata = $metadata;
}
/**
* @return AlertMetadata
*/
public function getMetadata()
{
return $this->metadata;
}
/**
* Output only. An optional [Security Investigation
* Tool](https://support.google.com/a/answer/7575955) query for this alert.
*
* @param string $securityInvestigationToolLink
*/
public function setSecurityInvestigationToolLink($securityInvestigationToolLink)
{
$this->securityInvestigationToolLink = $securityInvestigationToolLink;
}
/**
* @return string
*/
public function getSecurityInvestigationToolLink()
{
return $this->securityInvestigationToolLink;
}
/**
* Required. A unique identifier for the system that reported the alert. This
* is output only after alert is created. Supported sources are any of the
* following: * Google Operations * Mobile device management * Gmail phishing
* * Data Loss Prevention * Domain wide takeout * State sponsored attack *
* Google identity * Apps outage
*
* @param string $source
*/
public function setSource($source)
{
$this->source = $source;
}
/**
* @return string
*/
public function getSource()
{
return $this->source;
}
/**
* Required. The time the event that caused this alert was started or
* detected.
*
* @param string $startTime
*/
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
/**
* @return string
*/
public function getStartTime()
{
return $this->startTime;
}
/**
* Required. The type of the alert. This is output only after alert is
* created. For a list of available alert types see [Google Workspace Alert ty
* pes](https://developers.google.com/workspace/admin/alertcenter/reference/al
* ert-types).
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* Output only. The time this alert was last updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Alert::class, 'Google_Service_AlertCenter_Alert');
@@ -0,0 +1,179 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class AlertFeedback extends \Google\Model
{
/**
* The feedback type is not specified.
*/
public const TYPE_ALERT_FEEDBACK_TYPE_UNSPECIFIED = 'ALERT_FEEDBACK_TYPE_UNSPECIFIED';
/**
* The alert report is not useful.
*/
public const TYPE_NOT_USEFUL = 'NOT_USEFUL';
/**
* The alert report is somewhat useful.
*/
public const TYPE_SOMEWHAT_USEFUL = 'SOMEWHAT_USEFUL';
/**
* The alert report is very useful.
*/
public const TYPE_VERY_USEFUL = 'VERY_USEFUL';
/**
* Output only. The alert identifier.
*
* @var string
*/
public $alertId;
/**
* Output only. The time this feedback was created.
*
* @var string
*/
public $createTime;
/**
* Output only. The unique identifier of the Google Workspace account of the
* customer.
*
* @var string
*/
public $customerId;
/**
* Output only. The email of the user that provided the feedback.
*
* @var string
*/
public $email;
/**
* Output only. The unique identifier for the feedback.
*
* @var string
*/
public $feedbackId;
/**
* Required. The type of the feedback.
*
* @var string
*/
public $type;
/**
* Output only. The alert identifier.
*
* @param string $alertId
*/
public function setAlertId($alertId)
{
$this->alertId = $alertId;
}
/**
* @return string
*/
public function getAlertId()
{
return $this->alertId;
}
/**
* Output only. The time this feedback was created.
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Output only. The unique identifier of the Google Workspace account of the
* customer.
*
* @param string $customerId
*/
public function setCustomerId($customerId)
{
$this->customerId = $customerId;
}
/**
* @return string
*/
public function getCustomerId()
{
return $this->customerId;
}
/**
* Output only. The email of the user that provided the feedback.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Output only. The unique identifier for the feedback.
*
* @param string $feedbackId
*/
public function setFeedbackId($feedbackId)
{
$this->feedbackId = $feedbackId;
}
/**
* @return string
*/
public function getFeedbackId()
{
return $this->feedbackId;
}
/**
* Required. The type of the feedback.
*
* Accepted values: ALERT_FEEDBACK_TYPE_UNSPECIFIED, NOT_USEFUL,
* SOMEWHAT_USEFUL, VERY_USEFUL
*
* @param self::TYPE_* $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return self::TYPE_*
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AlertFeedback::class, 'Google_Service_AlertCenter_AlertFeedback');
@@ -0,0 +1,208 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class AlertMetadata extends \Google\Model
{
/**
* Output only. The alert identifier.
*
* @var string
*/
public $alertId;
/**
* The email address of the user assigned to the alert.
*
* @var string
*/
public $assignee;
/**
* Output only. The unique identifier of the Google Workspace account of the
* customer.
*
* @var string
*/
public $customerId;
/**
* Optional. `etag` is used for optimistic concurrency control as a way to
* help prevent simultaneous updates of an alert metadata from overwriting
* each other. It is strongly suggested that systems make use of the `etag` in
* the read-modify-write cycle to perform metadata updates in order to avoid
* race conditions: An `etag` is returned in the response which contains alert
* metadata, and systems are expected to put that etag in the request to
* update alert metadata to ensure that their change will be applied to the
* same version of the alert metadata. If no `etag` is provided in the call to
* update alert metadata, then the existing alert metadata is overwritten
* blindly.
*
* @var string
*/
public $etag;
/**
* The severity value of the alert. Alert Center will set this field at alert
* creation time, default's to an empty string when it could not be
* determined. The supported values for update actions on this field are the
* following: * HIGH * MEDIUM * LOW
*
* @var string
*/
public $severity;
/**
* The current status of the alert. The supported values are the following: *
* NOT_STARTED * IN_PROGRESS * CLOSED
*
* @var string
*/
public $status;
/**
* Output only. The time this metadata was last updated.
*
* @var string
*/
public $updateTime;
/**
* Output only. The alert identifier.
*
* @param string $alertId
*/
public function setAlertId($alertId)
{
$this->alertId = $alertId;
}
/**
* @return string
*/
public function getAlertId()
{
return $this->alertId;
}
/**
* The email address of the user assigned to the alert.
*
* @param string $assignee
*/
public function setAssignee($assignee)
{
$this->assignee = $assignee;
}
/**
* @return string
*/
public function getAssignee()
{
return $this->assignee;
}
/**
* Output only. The unique identifier of the Google Workspace account of the
* customer.
*
* @param string $customerId
*/
public function setCustomerId($customerId)
{
$this->customerId = $customerId;
}
/**
* @return string
*/
public function getCustomerId()
{
return $this->customerId;
}
/**
* Optional. `etag` is used for optimistic concurrency control as a way to
* help prevent simultaneous updates of an alert metadata from overwriting
* each other. It is strongly suggested that systems make use of the `etag` in
* the read-modify-write cycle to perform metadata updates in order to avoid
* race conditions: An `etag` is returned in the response which contains alert
* metadata, and systems are expected to put that etag in the request to
* update alert metadata to ensure that their change will be applied to the
* same version of the alert metadata. If no `etag` is provided in the call to
* update alert metadata, then the existing alert metadata is overwritten
* blindly.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* The severity value of the alert. Alert Center will set this field at alert
* creation time, default's to an empty string when it could not be
* determined. The supported values for update actions on this field are the
* following: * HIGH * MEDIUM * LOW
*
* @param string $severity
*/
public function setSeverity($severity)
{
$this->severity = $severity;
}
/**
* @return string
*/
public function getSeverity()
{
return $this->severity;
}
/**
* The current status of the alert. The supported values are the following: *
* NOT_STARTED * IN_PROGRESS * CLOSED
*
* @param string $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return string
*/
public function getStatus()
{
return $this->status;
}
/**
* Output only. The time this metadata was last updated.
*
* @param string $updateTime
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AlertMetadata::class, 'Google_Service_AlertCenter_AlertMetadata');
@@ -0,0 +1,25 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class AlertcenterEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AlertcenterEmpty::class, 'Google_Service_AlertCenter_AlertcenterEmpty');
@@ -0,0 +1,94 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class ApnsCertificateExpirationInfo extends \Google\Model
{
/**
* The Apple ID used to create the certificate. It may be blank if admins
* didn't enter it.
*
* @var string
*/
public $appleId;
/**
* The expiration date of the APNS certificate.
*
* @var string
*/
public $expirationTime;
/**
* The UID of the certificate.
*
* @var string
*/
public $uid;
/**
* The Apple ID used to create the certificate. It may be blank if admins
* didn't enter it.
*
* @param string $appleId
*/
public function setAppleId($appleId)
{
$this->appleId = $appleId;
}
/**
* @return string
*/
public function getAppleId()
{
return $this->appleId;
}
/**
* The expiration date of the APNS certificate.
*
* @param string $expirationTime
*/
public function setExpirationTime($expirationTime)
{
$this->expirationTime = $expirationTime;
}
/**
* @return string
*/
public function getExpirationTime()
{
return $this->expirationTime;
}
/**
* The UID of the certificate.
*
* @param string $uid
*/
public function setUid($uid)
{
$this->uid = $uid;
}
/**
* @return string
*/
public function getUid()
{
return $this->uid;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ApnsCertificateExpirationInfo::class, 'Google_Service_AlertCenter_ApnsCertificateExpirationInfo');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class AppMakerSqlSetupNotification extends \Google\Collection
{
protected $collection_key = 'requestInfo';
protected $requestInfoType = RequestInfo::class;
protected $requestInfoDataType = 'array';
/**
* List of applications with requests for default SQL set up.
*
* @param RequestInfo[] $requestInfo
*/
public function setRequestInfo($requestInfo)
{
$this->requestInfo = $requestInfo;
}
/**
* @return RequestInfo[]
*/
public function getRequestInfo()
{
return $this->requestInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppMakerSqlSetupNotification::class, 'Google_Service_AlertCenter_AppMakerSqlSetupNotification');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class AppSettingsChanged extends \Google\Model
{
/**
* Any other associated alert details, for example, AlertConfiguration.
*
* @var string
*/
public $alertDetails;
/**
* Rule name
*
* @var string
*/
public $name;
/**
* Any other associated alert details, for example, AlertConfiguration.
*
* @param string $alertDetails
*/
public function setAlertDetails($alertDetails)
{
$this->alertDetails = $alertDetails;
}
/**
* @return string
*/
public function getAlertDetails()
{
return $this->alertDetails;
}
/**
* Rule name
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppSettingsChanged::class, 'Google_Service_AlertCenter_AppSettingsChanged');
@@ -0,0 +1,215 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class AppsOutage extends \Google\Collection
{
/**
* Status is unspecified.
*/
public const STATUS_STATUS_UNSPECIFIED = 'STATUS_UNSPECIFIED';
/**
* The incident has just been reported.
*/
public const STATUS_NEW = 'NEW';
/**
* The incident is ongoing.
*/
public const STATUS_ONGOING = 'ONGOING';
/**
* The incident has been resolved.
*/
public const STATUS_RESOLVED = 'RESOLVED';
/**
* Further assessment indicated no customer impact.
*/
public const STATUS_FALSE_POSITIVE = 'FALSE_POSITIVE';
/**
* The incident has been partially resolved.
*/
public const STATUS_PARTIALLY_RESOLVED = 'PARTIALLY_RESOLVED';
/**
* The incident was merged into a parent.
*/
public const STATUS_MERGED = 'MERGED';
/**
* The incident has lower impact than initially anticipated.
*/
public const STATUS_DOWNGRADED = 'DOWNGRADED';
protected $collection_key = 'products';
/**
* Link to the outage event in Google Workspace Status Dashboard
*
* @var string
*/
public $dashboardUri;
/**
* Incident tracking ID.
*
* @var string
*/
public $incidentTrackingId;
protected $mergeInfoType = MergeInfo::class;
protected $mergeInfoDataType = '';
/**
* Timestamp by which the next update is expected to arrive.
*
* @var string
*/
public $nextUpdateTime;
/**
* List of products impacted by the outage.
*
* @var string[]
*/
public $products;
/**
* Timestamp when the outage is expected to be resolved, or has confirmed
* resolution. Provided only when known.
*
* @var string
*/
public $resolutionTime;
/**
* Current outage status.
*
* @var string
*/
public $status;
/**
* Link to the outage event in Google Workspace Status Dashboard
*
* @param string $dashboardUri
*/
public function setDashboardUri($dashboardUri)
{
$this->dashboardUri = $dashboardUri;
}
/**
* @return string
*/
public function getDashboardUri()
{
return $this->dashboardUri;
}
/**
* Incident tracking ID.
*
* @param string $incidentTrackingId
*/
public function setIncidentTrackingId($incidentTrackingId)
{
$this->incidentTrackingId = $incidentTrackingId;
}
/**
* @return string
*/
public function getIncidentTrackingId()
{
return $this->incidentTrackingId;
}
/**
* Indicates new alert details under which the outage is communicated. Only
* populated when Status is MERGED.
*
* @param MergeInfo $mergeInfo
*/
public function setMergeInfo(MergeInfo $mergeInfo)
{
$this->mergeInfo = $mergeInfo;
}
/**
* @return MergeInfo
*/
public function getMergeInfo()
{
return $this->mergeInfo;
}
/**
* Timestamp by which the next update is expected to arrive.
*
* @param string $nextUpdateTime
*/
public function setNextUpdateTime($nextUpdateTime)
{
$this->nextUpdateTime = $nextUpdateTime;
}
/**
* @return string
*/
public function getNextUpdateTime()
{
return $this->nextUpdateTime;
}
/**
* List of products impacted by the outage.
*
* @param string[] $products
*/
public function setProducts($products)
{
$this->products = $products;
}
/**
* @return string[]
*/
public function getProducts()
{
return $this->products;
}
/**
* Timestamp when the outage is expected to be resolved, or has confirmed
* resolution. Provided only when known.
*
* @param string $resolutionTime
*/
public function setResolutionTime($resolutionTime)
{
$this->resolutionTime = $resolutionTime;
}
/**
* @return string
*/
public function getResolutionTime()
{
return $this->resolutionTime;
}
/**
* Current outage status.
*
* Accepted values: STATUS_UNSPECIFIED, NEW, ONGOING, RESOLVED,
* FALSE_POSITIVE, PARTIALLY_RESOLVED, MERGED, DOWNGRADED
*
* @param self::STATUS_* $status
*/
public function setStatus($status)
{
$this->status = $status;
}
/**
* @return self::STATUS_*
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AppsOutage::class, 'Google_Service_AlertCenter_AppsOutage');
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class Attachment extends \Google\Model
{
protected $csvType = Csv::class;
protected $csvDataType = '';
/**
* A CSV file attachment.
*
* @param Csv $csv
*/
public function setCsv(Csv $csv)
{
$this->csv = $csv;
}
/**
* @return Csv
*/
public function getCsv()
{
return $this->csv;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Attachment::class, 'Google_Service_AlertCenter_Attachment');
@@ -0,0 +1,103 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class BadWhitelist extends \Google\Collection
{
protected $collection_key = 'messages';
protected $domainIdType = DomainId::class;
protected $domainIdDataType = '';
protected $maliciousEntityType = MaliciousEntity::class;
protected $maliciousEntityDataType = '';
protected $messagesType = GmailMessageInfo::class;
protected $messagesDataType = 'array';
/**
* The source IP address of the malicious email, for example, `127.0.0.1`.
*
* @var string
*/
public $sourceIp;
/**
* The domain ID.
*
* @param DomainId $domainId
*/
public function setDomainId(DomainId $domainId)
{
$this->domainId = $domainId;
}
/**
* @return DomainId
*/
public function getDomainId()
{
return $this->domainId;
}
/**
* The entity whose actions triggered a Gmail phishing alert.
*
* @param MaliciousEntity $maliciousEntity
*/
public function setMaliciousEntity(MaliciousEntity $maliciousEntity)
{
$this->maliciousEntity = $maliciousEntity;
}
/**
* @return MaliciousEntity
*/
public function getMaliciousEntity()
{
return $this->maliciousEntity;
}
/**
* The list of messages contained by this alert.
*
* @param GmailMessageInfo[] $messages
*/
public function setMessages($messages)
{
$this->messages = $messages;
}
/**
* @return GmailMessageInfo[]
*/
public function getMessages()
{
return $this->messages;
}
/**
* The source IP address of the malicious email, for example, `127.0.0.1`.
*
* @param string $sourceIp
*/
public function setSourceIp($sourceIp)
{
$this->sourceIp = $sourceIp;
}
/**
* @return string
*/
public function getSourceIp()
{
return $this->sourceIp;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BadWhitelist::class, 'Google_Service_AlertCenter_BadWhitelist');
@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class BatchDeleteAlertsRequest extends \Google\Collection
{
protected $collection_key = 'alertId';
/**
* Required. The list of alert IDs to delete.
*
* @var string[]
*/
public $alertId;
/**
* Optional. The unique identifier of the Google Workspace account of the
* customer the alerts are associated with. The `customer_id` must have the
* initial "C" stripped (for example, `046psxkn`). Inferred from the caller
* identity if not provided. [Find your customer
* ID](https://support.google.com/cloudidentity/answer/10070793).
*
* @var string
*/
public $customerId;
/**
* Required. The list of alert IDs to delete.
*
* @param string[] $alertId
*/
public function setAlertId($alertId)
{
$this->alertId = $alertId;
}
/**
* @return string[]
*/
public function getAlertId()
{
return $this->alertId;
}
/**
* Optional. The unique identifier of the Google Workspace account of the
* customer the alerts are associated with. The `customer_id` must have the
* initial "C" stripped (for example, `046psxkn`). Inferred from the caller
* identity if not provided. [Find your customer
* ID](https://support.google.com/cloudidentity/answer/10070793).
*
* @param string $customerId
*/
public function setCustomerId($customerId)
{
$this->customerId = $customerId;
}
/**
* @return string
*/
public function getCustomerId()
{
return $this->customerId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchDeleteAlertsRequest::class, 'Google_Service_AlertCenter_BatchDeleteAlertsRequest');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class BatchDeleteAlertsResponse extends \Google\Collection
{
protected $collection_key = 'successAlertIds';
protected $failedAlertStatusType = Status::class;
protected $failedAlertStatusDataType = 'map';
/**
* The successful list of alert IDs.
*
* @var string[]
*/
public $successAlertIds;
/**
* The status details for each failed `alert_id`.
*
* @param Status[] $failedAlertStatus
*/
public function setFailedAlertStatus($failedAlertStatus)
{
$this->failedAlertStatus = $failedAlertStatus;
}
/**
* @return Status[]
*/
public function getFailedAlertStatus()
{
return $this->failedAlertStatus;
}
/**
* The successful list of alert IDs.
*
* @param string[] $successAlertIds
*/
public function setSuccessAlertIds($successAlertIds)
{
$this->successAlertIds = $successAlertIds;
}
/**
* @return string[]
*/
public function getSuccessAlertIds()
{
return $this->successAlertIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchDeleteAlertsResponse::class, 'Google_Service_AlertCenter_BatchDeleteAlertsResponse');
@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class BatchUndeleteAlertsRequest extends \Google\Collection
{
protected $collection_key = 'alertId';
/**
* Required. The list of alert IDs to undelete.
*
* @var string[]
*/
public $alertId;
/**
* Optional. The unique identifier of the Google Workspace account of the
* customer the alerts are associated with. The `customer_id` must have the
* initial "C" stripped (for example, `046psxkn`). Inferred from the caller
* identity if not provided. [Find your customer
* ID](https://support.google.com/cloudidentity/answer/10070793).
*
* @var string
*/
public $customerId;
/**
* Required. The list of alert IDs to undelete.
*
* @param string[] $alertId
*/
public function setAlertId($alertId)
{
$this->alertId = $alertId;
}
/**
* @return string[]
*/
public function getAlertId()
{
return $this->alertId;
}
/**
* Optional. The unique identifier of the Google Workspace account of the
* customer the alerts are associated with. The `customer_id` must have the
* initial "C" stripped (for example, `046psxkn`). Inferred from the caller
* identity if not provided. [Find your customer
* ID](https://support.google.com/cloudidentity/answer/10070793).
*
* @param string $customerId
*/
public function setCustomerId($customerId)
{
$this->customerId = $customerId;
}
/**
* @return string
*/
public function getCustomerId()
{
return $this->customerId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchUndeleteAlertsRequest::class, 'Google_Service_AlertCenter_BatchUndeleteAlertsRequest');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class BatchUndeleteAlertsResponse extends \Google\Collection
{
protected $collection_key = 'successAlertIds';
protected $failedAlertStatusType = Status::class;
protected $failedAlertStatusDataType = 'map';
/**
* The successful list of alert IDs.
*
* @var string[]
*/
public $successAlertIds;
/**
* The status details for each failed `alert_id`.
*
* @param Status[] $failedAlertStatus
*/
public function setFailedAlertStatus($failedAlertStatus)
{
$this->failedAlertStatus = $failedAlertStatus;
}
/**
* @return Status[]
*/
public function getFailedAlertStatus()
{
return $this->failedAlertStatus;
}
/**
* The successful list of alert IDs.
*
* @param string[] $successAlertIds
*/
public function setSuccessAlertIds($successAlertIds)
{
$this->successAlertIds = $successAlertIds;
}
/**
* @return string[]
*/
public function getSuccessAlertIds()
{
return $this->successAlertIds;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchUndeleteAlertsResponse::class, 'Google_Service_AlertCenter_BatchUndeleteAlertsResponse');
@@ -0,0 +1,63 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class ClientSideEncryptionServiceUnavailable extends \Google\Collection
{
protected $collection_key = 'keyServiceError';
protected $idpErrorType = IdentityProviderError::class;
protected $idpErrorDataType = 'array';
protected $keyServiceErrorType = KeyServiceError::class;
protected $keyServiceErrorDataType = 'array';
/**
* Identity providers impacted by an outage or misconfiguration.
*
* @param IdentityProviderError[] $idpError
*/
public function setIdpError($idpError)
{
$this->idpError = $idpError;
}
/**
* @return IdentityProviderError[]
*/
public function getIdpError()
{
return $this->idpError;
}
/**
* External key services impacted by an outage or misconfiguration.
*
* @param KeyServiceError[] $keyServiceError
*/
public function setKeyServiceError($keyServiceError)
{
$this->keyServiceError = $keyServiceError;
}
/**
* @return KeyServiceError[]
*/
public function getKeyServiceError()
{
return $this->keyServiceError;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ClientSideEncryptionServiceUnavailable::class, 'Google_Service_AlertCenter_ClientSideEncryptionServiceUnavailable');
@@ -0,0 +1,84 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class CloudPubsubTopic extends \Google\Model
{
/**
* Payload format is not specified (will use JSON as default).
*/
public const PAYLOAD_FORMAT_PAYLOAD_FORMAT_UNSPECIFIED = 'PAYLOAD_FORMAT_UNSPECIFIED';
/**
* Use JSON.
*/
public const PAYLOAD_FORMAT_JSON = 'JSON';
/**
* Optional. The format of the payload that would be sent. If not specified
* the format will be JSON.
*
* @var string
*/
public $payloadFormat;
/**
* The `name` field of a Cloud Pubsub [Topic] (https://cloud.google.com/pubsub
* /docs/reference/rest/v1/projects.topics#Topic).
*
* @var string
*/
public $topicName;
/**
* Optional. The format of the payload that would be sent. If not specified
* the format will be JSON.
*
* Accepted values: PAYLOAD_FORMAT_UNSPECIFIED, JSON
*
* @param self::PAYLOAD_FORMAT_* $payloadFormat
*/
public function setPayloadFormat($payloadFormat)
{
$this->payloadFormat = $payloadFormat;
}
/**
* @return self::PAYLOAD_FORMAT_*
*/
public function getPayloadFormat()
{
return $this->payloadFormat;
}
/**
* The `name` field of a Cloud Pubsub [Topic] (https://cloud.google.com/pubsub
* /docs/reference/rest/v1/projects.topics#Topic).
*
* @param string $topicName
*/
public function setTopicName($topicName)
{
$this->topicName = $topicName;
}
/**
* @return string
*/
public function getTopicName()
{
return $this->topicName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CloudPubsubTopic::class, 'Google_Service_AlertCenter_CloudPubsubTopic');
@@ -0,0 +1,68 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class Csv extends \Google\Collection
{
protected $collection_key = 'headers';
protected $dataRowsType = CsvRow::class;
protected $dataRowsDataType = 'array';
/**
* The list of headers for data columns in a CSV file.
*
* @var string[]
*/
public $headers;
/**
* The list of data rows in a CSV file, as string arrays rather than as a
* single comma-separated string.
*
* @param CsvRow[] $dataRows
*/
public function setDataRows($dataRows)
{
$this->dataRows = $dataRows;
}
/**
* @return CsvRow[]
*/
public function getDataRows()
{
return $this->dataRows;
}
/**
* The list of headers for data columns in a CSV file.
*
* @param string[] $headers
*/
public function setHeaders($headers)
{
$this->headers = $headers;
}
/**
* @return string[]
*/
public function getHeaders()
{
return $this->headers;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Csv::class, 'Google_Service_AlertCenter_Csv');
@@ -0,0 +1,51 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class CsvRow extends \Google\Collection
{
protected $collection_key = 'entries';
/**
* The data entries in a CSV file row, as a string array rather than a single
* comma-separated string.
*
* @var string[]
*/
public $entries;
/**
* The data entries in a CSV file row, as a string array rather than a single
* comma-separated string.
*
* @param string[] $entries
*/
public function setEntries($entries)
{
$this->entries = $entries;
}
/**
* @return string[]
*/
public function getEntries()
{
return $this->entries;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CsvRow::class, 'Google_Service_AlertCenter_CsvRow');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class DeviceCompromised extends \Google\Collection
{
protected $collection_key = 'events';
/**
* The email of the user this alert was created for.
*
* @var string
*/
public $email;
protected $eventsType = DeviceCompromisedSecurityDetail::class;
protected $eventsDataType = 'array';
/**
* The email of the user this alert was created for.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Required. The list of security events.
*
* @param DeviceCompromisedSecurityDetail[] $events
*/
public function setEvents($events)
{
$this->events = $events;
}
/**
* @return DeviceCompromisedSecurityDetail[]
*/
public function getEvents()
{
return $this->events;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeviceCompromised::class, 'Google_Service_AlertCenter_DeviceCompromised');
@@ -0,0 +1,182 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class DeviceCompromisedSecurityDetail extends \Google\Model
{
/**
* The device compromised state. Possible values are "`Compromised`" or "`Not
* Compromised`".
*
* @var string
*/
public $deviceCompromisedState;
/**
* Required. The device ID.
*
* @var string
*/
public $deviceId;
/**
* The model of the device.
*
* @var string
*/
public $deviceModel;
/**
* The type of the device.
*
* @var string
*/
public $deviceType;
/**
* Required for iOS, empty for others.
*
* @var string
*/
public $iosVendorId;
/**
* The device resource ID.
*
* @var string
*/
public $resourceId;
/**
* The serial number of the device.
*
* @var string
*/
public $serialNumber;
/**
* The device compromised state. Possible values are "`Compromised`" or "`Not
* Compromised`".
*
* @param string $deviceCompromisedState
*/
public function setDeviceCompromisedState($deviceCompromisedState)
{
$this->deviceCompromisedState = $deviceCompromisedState;
}
/**
* @return string
*/
public function getDeviceCompromisedState()
{
return $this->deviceCompromisedState;
}
/**
* Required. The device ID.
*
* @param string $deviceId
*/
public function setDeviceId($deviceId)
{
$this->deviceId = $deviceId;
}
/**
* @return string
*/
public function getDeviceId()
{
return $this->deviceId;
}
/**
* The model of the device.
*
* @param string $deviceModel
*/
public function setDeviceModel($deviceModel)
{
$this->deviceModel = $deviceModel;
}
/**
* @return string
*/
public function getDeviceModel()
{
return $this->deviceModel;
}
/**
* The type of the device.
*
* @param string $deviceType
*/
public function setDeviceType($deviceType)
{
$this->deviceType = $deviceType;
}
/**
* @return string
*/
public function getDeviceType()
{
return $this->deviceType;
}
/**
* Required for iOS, empty for others.
*
* @param string $iosVendorId
*/
public function setIosVendorId($iosVendorId)
{
$this->iosVendorId = $iosVendorId;
}
/**
* @return string
*/
public function getIosVendorId()
{
return $this->iosVendorId;
}
/**
* The device resource ID.
*
* @param string $resourceId
*/
public function setResourceId($resourceId)
{
$this->resourceId = $resourceId;
}
/**
* @return string
*/
public function getResourceId()
{
return $this->resourceId;
}
/**
* The serial number of the device.
*
* @param string $serialNumber
*/
public function setSerialNumber($serialNumber)
{
$this->serialNumber = $serialNumber;
}
/**
* @return string
*/
public function getSerialNumber()
{
return $this->serialNumber;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeviceCompromisedSecurityDetail::class, 'Google_Service_AlertCenter_DeviceCompromisedSecurityDetail');
@@ -0,0 +1,246 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class DeviceManagementRule extends \Google\Model
{
/**
* Required. The device ID.
*
* @var string
*/
public $deviceId;
/**
* The model of the device.
*
* @var string
*/
public $deviceModel;
/**
* The type of the device.
*
* @var string
*/
public $deviceType;
/**
* The email of the user this alert was created for.
*
* @var string
*/
public $email;
/**
* ID of the rule that triggered the alert
*
* @var string
*/
public $id;
/**
* Required for iOS, empty for others.
*
* @var string
*/
public $iosVendorId;
/**
* Obfuscated ID of the owner of the device
*
* @var string
*/
public $ownerId;
/**
* The device resource ID.
*
* @var string
*/
public $resourceId;
/**
* Action taken as result of the rule
*
* @var string
*/
public $ruleAction;
/**
* The serial number of the device.
*
* @var string
*/
public $serialNumber;
/**
* Required. The device ID.
*
* @param string $deviceId
*/
public function setDeviceId($deviceId)
{
$this->deviceId = $deviceId;
}
/**
* @return string
*/
public function getDeviceId()
{
return $this->deviceId;
}
/**
* The model of the device.
*
* @param string $deviceModel
*/
public function setDeviceModel($deviceModel)
{
$this->deviceModel = $deviceModel;
}
/**
* @return string
*/
public function getDeviceModel()
{
return $this->deviceModel;
}
/**
* The type of the device.
*
* @param string $deviceType
*/
public function setDeviceType($deviceType)
{
$this->deviceType = $deviceType;
}
/**
* @return string
*/
public function getDeviceType()
{
return $this->deviceType;
}
/**
* The email of the user this alert was created for.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* ID of the rule that triggered the alert
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Required for iOS, empty for others.
*
* @param string $iosVendorId
*/
public function setIosVendorId($iosVendorId)
{
$this->iosVendorId = $iosVendorId;
}
/**
* @return string
*/
public function getIosVendorId()
{
return $this->iosVendorId;
}
/**
* Obfuscated ID of the owner of the device
*
* @param string $ownerId
*/
public function setOwnerId($ownerId)
{
$this->ownerId = $ownerId;
}
/**
* @return string
*/
public function getOwnerId()
{
return $this->ownerId;
}
/**
* The device resource ID.
*
* @param string $resourceId
*/
public function setResourceId($resourceId)
{
$this->resourceId = $resourceId;
}
/**
* @return string
*/
public function getResourceId()
{
return $this->resourceId;
}
/**
* Action taken as result of the rule
*
* @param string $ruleAction
*/
public function setRuleAction($ruleAction)
{
$this->ruleAction = $ruleAction;
}
/**
* @return string
*/
public function getRuleAction()
{
return $this->ruleAction;
}
/**
* The serial number of the device.
*
* @param string $serialNumber
*/
public function setSerialNumber($serialNumber)
{
$this->serialNumber = $serialNumber;
}
/**
* @return string
*/
public function getSerialNumber()
{
return $this->serialNumber;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DeviceManagementRule::class, 'Google_Service_AlertCenter_DeviceManagementRule');
@@ -0,0 +1,47 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class DlpRuleViolation extends \Google\Model
{
protected $ruleViolationInfoType = RuleViolationInfo::class;
protected $ruleViolationInfoDataType = '';
/**
* Details about the violated DLP rule. Admins can use the predefined
* detectors provided by Google Cloud DLP https://cloud.google.com/dlp/ when
* setting up a DLP rule. Matched Cloud DLP detectors in this violation if any
* will be captured in the MatchInfo.predefined_detector.
*
* @param RuleViolationInfo $ruleViolationInfo
*/
public function setRuleViolationInfo(RuleViolationInfo $ruleViolationInfo)
{
$this->ruleViolationInfo = $ruleViolationInfo;
}
/**
* @return RuleViolationInfo
*/
public function getRuleViolationInfo()
{
return $this->ruleViolationInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DlpRuleViolation::class, 'Google_Service_AlertCenter_DlpRuleViolation');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class DomainId extends \Google\Model
{
/**
* The primary domain for the customer.
*
* @var string
*/
public $customerPrimaryDomain;
/**
* The primary domain for the customer.
*
* @param string $customerPrimaryDomain
*/
public function setCustomerPrimaryDomain($customerPrimaryDomain)
{
$this->customerPrimaryDomain = $customerPrimaryDomain;
}
/**
* @return string
*/
public function getCustomerPrimaryDomain()
{
return $this->customerPrimaryDomain;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DomainId::class, 'Google_Service_AlertCenter_DomainId');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class DomainWideTakeoutInitiated extends \Google\Model
{
/**
* The email of the admin who initiated the takeout.
*
* @var string
*/
public $email;
/**
* The takeout request ID.
*
* @var string
*/
public $takeoutRequestId;
/**
* The email of the admin who initiated the takeout.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* The takeout request ID.
*
* @param string $takeoutRequestId
*/
public function setTakeoutRequestId($takeoutRequestId)
{
$this->takeoutRequestId = $takeoutRequestId;
}
/**
* @return string
*/
public function getTakeoutRequestId()
{
return $this->takeoutRequestId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DomainWideTakeoutInitiated::class, 'Google_Service_AlertCenter_DomainWideTakeoutInitiated');
@@ -0,0 +1,150 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class DriveSyncStateChanged extends \Google\Model
{
/**
* Unspecified state
*/
public const SYNC_STATE_SYNC_STATE_UNSPECIFIED = 'SYNC_STATE_UNSPECIFIED';
/**
* Sync is paused
*/
public const SYNC_STATE_PAUSED = 'PAUSED';
/**
* Sync is resumed
*/
public const SYNC_STATE_RESUMED = 'RESUMED';
/**
* Unspecified state change reason
*/
public const SYNC_STATE_CHANGE_REASON_SYNC_STATE_CHANGE_REASON_UNSPECIFIED = 'SYNC_STATE_CHANGE_REASON_UNSPECIFIED';
/**
* Sync state was changed due to unusual activity, such as potential
* ransomware
*/
public const SYNC_STATE_CHANGE_REASON_UNUSUAL_ACTIVITY = 'UNUSUAL_ACTIVITY';
/**
* The user provided feedback indicating that the initial sync state change
* may have been caused by unexpected activity
*/
public const SYNC_STATE_CHANGE_REASON_USER_FEEDBACK_TRUE_POSITIVE = 'USER_FEEDBACK_TRUE_POSITIVE';
/**
* The user provided feedback indicating that the initial sync state change
* may have been caused by a false positive
*/
public const SYNC_STATE_CHANGE_REASON_USER_FEEDBACK_FALSE_POSITIVE = 'USER_FEEDBACK_FALSE_POSITIVE';
/**
* Email of the user affected.
*
* @var string
*/
public $email;
/**
* Time at which sync was paused.
*
* @var string
*/
public $syncPauseStartTime;
/**
* The current sync state.
*
* @var string
*/
public $syncState;
/**
* The reason for the sync state change.
*
* @var string
*/
public $syncStateChangeReason;
/**
* Email of the user affected.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Time at which sync was paused.
*
* @param string $syncPauseStartTime
*/
public function setSyncPauseStartTime($syncPauseStartTime)
{
$this->syncPauseStartTime = $syncPauseStartTime;
}
/**
* @return string
*/
public function getSyncPauseStartTime()
{
return $this->syncPauseStartTime;
}
/**
* The current sync state.
*
* Accepted values: SYNC_STATE_UNSPECIFIED, PAUSED, RESUMED
*
* @param self::SYNC_STATE_* $syncState
*/
public function setSyncState($syncState)
{
$this->syncState = $syncState;
}
/**
* @return self::SYNC_STATE_*
*/
public function getSyncState()
{
return $this->syncState;
}
/**
* The reason for the sync state change.
*
* Accepted values: SYNC_STATE_CHANGE_REASON_UNSPECIFIED, UNUSUAL_ACTIVITY,
* USER_FEEDBACK_TRUE_POSITIVE, USER_FEEDBACK_FALSE_POSITIVE
*
* @param self::SYNC_STATE_CHANGE_REASON_* $syncStateChangeReason
*/
public function setSyncStateChangeReason($syncStateChangeReason)
{
$this->syncStateChangeReason = $syncStateChangeReason;
}
/**
* @return self::SYNC_STATE_CHANGE_REASON_*
*/
public function getSyncStateChangeReason()
{
return $this->syncStateChangeReason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(DriveSyncStateChanged::class, 'Google_Service_AlertCenter_DriveSyncStateChanged');
@@ -0,0 +1,99 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class Entity extends \Google\Collection
{
protected $collection_key = 'values';
/**
* Link to a Security Investigation Tool search based on this entity, if
* available.
*
* @var string
*/
public $link;
/**
* Human-readable name of this entity, such as an email address, file ID, or
* device name.
*
* @var string
*/
public $name;
/**
* Extra values beyond name. The order of values should align with headers in
* EntityList.
*
* @var string[]
*/
public $values;
/**
* Link to a Security Investigation Tool search based on this entity, if
* available.
*
* @param string $link
*/
public function setLink($link)
{
$this->link = $link;
}
/**
* @return string
*/
public function getLink()
{
return $this->link;
}
/**
* Human-readable name of this entity, such as an email address, file ID, or
* device name.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Extra values beyond name. The order of values should align with headers in
* EntityList.
*
* @param string[] $values
*/
public function setValues($values)
{
$this->values = $values;
}
/**
* @return string[]
*/
public function getValues()
{
return $this->values;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Entity::class, 'Google_Service_AlertCenter_Entity');
@@ -0,0 +1,91 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class EntityList extends \Google\Collection
{
protected $collection_key = 'headers';
protected $entitiesType = Entity::class;
protected $entitiesDataType = 'array';
/**
* Headers of the values in entities. If no value is defined in Entity, this
* field should be empty.
*
* @var string[]
*/
public $headers;
/**
* Name of the key detail used to display this entity list.
*
* @var string
*/
public $name;
/**
* List of entities affected by the alert.
*
* @param Entity[] $entities
*/
public function setEntities($entities)
{
$this->entities = $entities;
}
/**
* @return Entity[]
*/
public function getEntities()
{
return $this->entities;
}
/**
* Headers of the values in entities. If no value is defined in Entity, this
* field should be empty.
*
* @param string[] $headers
*/
public function setHeaders($headers)
{
$this->headers = $headers;
}
/**
* @return string[]
*/
public function getHeaders()
{
return $this->headers;
}
/**
* Name of the key detail used to display this entity list.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EntityList::class, 'Google_Service_AlertCenter_EntityList');
@@ -0,0 +1,225 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class GmailMessageInfo extends \Google\Collection
{
protected $collection_key = 'attachmentsSha256Hash';
/**
* The `SHA256` hash of email's attachment and all MIME parts.
*
* @var string[]
*/
public $attachmentsSha256Hash;
/**
* The date of the event related to this email.
*
* @var string
*/
public $date;
/**
* The hash of the message body text.
*
* @var string
*/
public $md5HashMessageBody;
/**
* The MD5 Hash of email's subject (only available for reported emails).
*
* @var string
*/
public $md5HashSubject;
/**
* The snippet of the message body text (only available for reported emails).
*
* @var string
*/
public $messageBodySnippet;
/**
* The message ID.
*
* @var string
*/
public $messageId;
/**
* The recipient of this email.
*
* @var string
*/
public $recipient;
/**
* The sent time of the email.
*
* @var string
*/
public $sentTime;
/**
* The email subject text (only available for reported emails).
*
* @var string
*/
public $subjectText;
/**
* The `SHA256` hash of email's attachment and all MIME parts.
*
* @param string[] $attachmentsSha256Hash
*/
public function setAttachmentsSha256Hash($attachmentsSha256Hash)
{
$this->attachmentsSha256Hash = $attachmentsSha256Hash;
}
/**
* @return string[]
*/
public function getAttachmentsSha256Hash()
{
return $this->attachmentsSha256Hash;
}
/**
* The date of the event related to this email.
*
* @param string $date
*/
public function setDate($date)
{
$this->date = $date;
}
/**
* @return string
*/
public function getDate()
{
return $this->date;
}
/**
* The hash of the message body text.
*
* @param string $md5HashMessageBody
*/
public function setMd5HashMessageBody($md5HashMessageBody)
{
$this->md5HashMessageBody = $md5HashMessageBody;
}
/**
* @return string
*/
public function getMd5HashMessageBody()
{
return $this->md5HashMessageBody;
}
/**
* The MD5 Hash of email's subject (only available for reported emails).
*
* @param string $md5HashSubject
*/
public function setMd5HashSubject($md5HashSubject)
{
$this->md5HashSubject = $md5HashSubject;
}
/**
* @return string
*/
public function getMd5HashSubject()
{
return $this->md5HashSubject;
}
/**
* The snippet of the message body text (only available for reported emails).
*
* @param string $messageBodySnippet
*/
public function setMessageBodySnippet($messageBodySnippet)
{
$this->messageBodySnippet = $messageBodySnippet;
}
/**
* @return string
*/
public function getMessageBodySnippet()
{
return $this->messageBodySnippet;
}
/**
* The message ID.
*
* @param string $messageId
*/
public function setMessageId($messageId)
{
$this->messageId = $messageId;
}
/**
* @return string
*/
public function getMessageId()
{
return $this->messageId;
}
/**
* The recipient of this email.
*
* @param string $recipient
*/
public function setRecipient($recipient)
{
$this->recipient = $recipient;
}
/**
* @return string
*/
public function getRecipient()
{
return $this->recipient;
}
/**
* The sent time of the email.
*
* @param string $sentTime
*/
public function setSentTime($sentTime)
{
$this->sentTime = $sentTime;
}
/**
* @return string
*/
public function getSentTime()
{
return $this->sentTime;
}
/**
* The email subject text (only available for reported emails).
*
* @param string $subjectText
*/
public function setSubjectText($subjectText)
{
$this->subjectText = $subjectText;
}
/**
* @return string
*/
public function getSubjectText()
{
return $this->subjectText;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GmailMessageInfo::class, 'Google_Service_AlertCenter_GmailMessageInfo');
@@ -0,0 +1,161 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class GoogleOperations extends \Google\Collection
{
protected $collection_key = 'affectedUserEmails';
/**
* The list of emails which correspond to the users directly affected by the
* incident.
*
* @var string[]
*/
public $affectedUserEmails;
protected $attachmentDataType = Attachment::class;
protected $attachmentDataDataType = '';
/**
* A detailed, freeform incident description.
*
* @var string
*/
public $description;
/**
* Customer domain for email template personalization.
*
* @var string
*/
public $domain;
/**
* A header to display above the incident message. Typically used to attach a
* localized notice on the timeline for followup comms translations.
*
* @var string
*/
public $header;
/**
* A one-line incident description.
*
* @var string
*/
public $title;
/**
* The list of emails which correspond to the users directly affected by the
* incident.
*
* @param string[] $affectedUserEmails
*/
public function setAffectedUserEmails($affectedUserEmails)
{
$this->affectedUserEmails = $affectedUserEmails;
}
/**
* @return string[]
*/
public function getAffectedUserEmails()
{
return $this->affectedUserEmails;
}
/**
* Optional. Application-specific data for an incident, provided when the
* Google Workspace application which reported the incident cannot be
* completely restored to a valid state.
*
* @param Attachment $attachmentData
*/
public function setAttachmentData(Attachment $attachmentData)
{
$this->attachmentData = $attachmentData;
}
/**
* @return Attachment
*/
public function getAttachmentData()
{
return $this->attachmentData;
}
/**
* A detailed, freeform incident description.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* Customer domain for email template personalization.
*
* @param string $domain
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* A header to display above the incident message. Typically used to attach a
* localized notice on the timeline for followup comms translations.
*
* @param string $header
*/
public function setHeader($header)
{
$this->header = $header;
}
/**
* @return string
*/
public function getHeader()
{
return $this->header;
}
/**
* A one-line incident description.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(GoogleOperations::class, 'Google_Service_AlertCenter_GoogleOperations');
@@ -0,0 +1,143 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class IdentityProviderError extends \Google\Model
{
/**
* Error info not specified.
*/
public const ERROR_INFO_IDENTITY_PROVIDER_ERROR_INFO_UNSPECIFIED = 'IDENTITY_PROVIDER_ERROR_INFO_UNSPECIFIED';
/**
* Email in the ID token is different from the user's email.
*/
public const ERROR_INFO_EMAIL_MISMATCH = 'EMAIL_MISMATCH';
/**
* Discovery URL was unreachable.
*/
public const ERROR_INFO_UNAVAILABLE_DISCOVERY_CONTENT = 'UNAVAILABLE_DISCOVERY_CONTENT';
/**
* Discovery URL did not contain all the necessary information.
*/
public const ERROR_INFO_INVALID_DISCOVERY_CONTENT = 'INVALID_DISCOVERY_CONTENT';
/**
* URL for client-side encryption configuration content was unreachable.
*/
public const ERROR_INFO_UNAVAILABLE_CSE_CONFIGURATION_CONTENT = 'UNAVAILABLE_CSE_CONFIGURATION_CONTENT';
/**
* Client-side encryption .well-known URL did not contain all the necessary
* information.
*/
public const ERROR_INFO_INVALID_CSE_CONFIGURATION_CONTENT = 'INVALID_CSE_CONFIGURATION_CONTENT';
/**
* ID token returned by the identity provider is invalid.
*/
public const ERROR_INFO_INVALID_ID_TOKEN = 'INVALID_ID_TOKEN';
/**
* OIDC setup error.
*/
public const ERROR_INFO_INVALID_OIDC_SETUP = 'INVALID_OIDC_SETUP';
/**
* Identity provider was unreachable.
*/
public const ERROR_INFO_UNAVAILABLE_IDP = 'UNAVAILABLE_IDP';
/**
* Auth code exchange error.
*/
public const ERROR_INFO_AUTH_CODE_EXCHANGE_ERROR = 'AUTH_CODE_EXCHANGE_ERROR';
/**
* Authentication token has no "email" or "google_email" claim.
*/
public const ERROR_INFO_AUTHENTICATION_TOKEN_MISSING_CLAIM_EMAIL = 'AUTHENTICATION_TOKEN_MISSING_CLAIM_EMAIL';
/**
* Authorization base url of the identity provider.
*
* @var string
*/
public $authorizationBaseUrl;
/**
* Number of similar errors encountered.
*
* @var string
*/
public $errorCount;
/**
* Info on the identity provider error.
*
* @var string
*/
public $errorInfo;
/**
* Authorization base url of the identity provider.
*
* @param string $authorizationBaseUrl
*/
public function setAuthorizationBaseUrl($authorizationBaseUrl)
{
$this->authorizationBaseUrl = $authorizationBaseUrl;
}
/**
* @return string
*/
public function getAuthorizationBaseUrl()
{
return $this->authorizationBaseUrl;
}
/**
* Number of similar errors encountered.
*
* @param string $errorCount
*/
public function setErrorCount($errorCount)
{
$this->errorCount = $errorCount;
}
/**
* @return string
*/
public function getErrorCount()
{
return $this->errorCount;
}
/**
* Info on the identity provider error.
*
* Accepted values: IDENTITY_PROVIDER_ERROR_INFO_UNSPECIFIED, EMAIL_MISMATCH,
* UNAVAILABLE_DISCOVERY_CONTENT, INVALID_DISCOVERY_CONTENT,
* UNAVAILABLE_CSE_CONFIGURATION_CONTENT, INVALID_CSE_CONFIGURATION_CONTENT,
* INVALID_ID_TOKEN, INVALID_OIDC_SETUP, UNAVAILABLE_IDP,
* AUTH_CODE_EXCHANGE_ERROR, AUTHENTICATION_TOKEN_MISSING_CLAIM_EMAIL
*
* @param self::ERROR_INFO_* $errorInfo
*/
public function setErrorInfo($errorInfo)
{
$this->errorInfo = $errorInfo;
}
/**
* @return self::ERROR_INFO_*
*/
public function getErrorInfo()
{
return $this->errorInfo;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(IdentityProviderError::class, 'Google_Service_AlertCenter_IdentityProviderError');
@@ -0,0 +1,147 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class KeyServiceError extends \Google\Model
{
/**
* Error info not specified.
*/
public const ERROR_INFO_KEY_SERVICE_ERROR_INFO_UNSPECIFIED = 'KEY_SERVICE_ERROR_INFO_UNSPECIFIED';
/**
* The response has malformed JSON.
*/
public const ERROR_INFO_MALFORMED_JSON = 'MALFORMED_JSON';
/**
* The response did not contain the wrapped/unwrapped key.
*/
public const ERROR_INFO_MISSING_KEY = 'MISSING_KEY';
/**
* SMIME sign only: The sign response did not contain the signature.
*/
public const ERROR_INFO_MISSING_SIGNATURE = 'MISSING_SIGNATURE';
/**
* SMIME only: The sign response does not include the algorithm name.
*/
public const ERROR_INFO_MISSING_ALGORITHM_NAME = 'MISSING_ALGORITHM_NAME';
/**
* SMIME only: the algorithm name in the response is not supported by the
* client.
*/
public const ERROR_INFO_UNSUPPORTED_ALGORITHM = 'UNSUPPORTED_ALGORITHM';
/**
* Fetch request on the client has failed.
*/
public const ERROR_INFO_FETCH_REQUEST_ERROR = 'FETCH_REQUEST_ERROR';
/**
* Number of similar errors encountered.
*
* @var string
*/
public $errorCount;
/**
* Info on the key service error.
*
* @var string
*/
public $errorInfo;
/**
* HTTP response status code from the key service.
*
* @var string
*/
public $httpResponseCode;
/**
* Url of the external key service.
*
* @var string
*/
public $keyServiceUrl;
/**
* Number of similar errors encountered.
*
* @param string $errorCount
*/
public function setErrorCount($errorCount)
{
$this->errorCount = $errorCount;
}
/**
* @return string
*/
public function getErrorCount()
{
return $this->errorCount;
}
/**
* Info on the key service error.
*
* Accepted values: KEY_SERVICE_ERROR_INFO_UNSPECIFIED, MALFORMED_JSON,
* MISSING_KEY, MISSING_SIGNATURE, MISSING_ALGORITHM_NAME,
* UNSUPPORTED_ALGORITHM, FETCH_REQUEST_ERROR
*
* @param self::ERROR_INFO_* $errorInfo
*/
public function setErrorInfo($errorInfo)
{
$this->errorInfo = $errorInfo;
}
/**
* @return self::ERROR_INFO_*
*/
public function getErrorInfo()
{
return $this->errorInfo;
}
/**
* HTTP response status code from the key service.
*
* @param string $httpResponseCode
*/
public function setHttpResponseCode($httpResponseCode)
{
$this->httpResponseCode = $httpResponseCode;
}
/**
* @return string
*/
public function getHttpResponseCode()
{
return $this->httpResponseCode;
}
/**
* Url of the external key service.
*
* @param string $keyServiceUrl
*/
public function setKeyServiceUrl($keyServiceUrl)
{
$this->keyServiceUrl = $keyServiceUrl;
}
/**
* @return string
*/
public function getKeyServiceUrl()
{
return $this->keyServiceUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(KeyServiceError::class, 'Google_Service_AlertCenter_KeyServiceError');
@@ -0,0 +1,46 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class ListAlertFeedbackResponse extends \Google\Collection
{
protected $collection_key = 'feedback';
protected $feedbackType = AlertFeedback::class;
protected $feedbackDataType = 'array';
/**
* The list of alert feedback. Feedback entries for each alert are ordered by
* creation time descending.
*
* @param AlertFeedback[] $feedback
*/
public function setFeedback($feedback)
{
$this->feedback = $feedback;
}
/**
* @return AlertFeedback[]
*/
public function getFeedback()
{
return $this->feedback;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListAlertFeedbackResponse::class, 'Google_Service_AlertCenter_ListAlertFeedbackResponse');
@@ -0,0 +1,73 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class ListAlertsResponse extends \Google\Collection
{
protected $collection_key = 'alerts';
protected $alertsType = Alert::class;
protected $alertsDataType = 'array';
/**
* The token for the next page. If not empty, indicates that there may be more
* alerts that match the listing request; this value can be used in a
* subsequent ListAlertsRequest to get alerts continuing from last result of
* the current list call.
*
* @var string
*/
public $nextPageToken;
/**
* The list of alerts.
*
* @param Alert[] $alerts
*/
public function setAlerts($alerts)
{
$this->alerts = $alerts;
}
/**
* @return Alert[]
*/
public function getAlerts()
{
return $this->alerts;
}
/**
* The token for the next page. If not empty, indicates that there may be more
* alerts that match the listing request; this value can be used in a
* subsequent ListAlertsRequest to get alerts continuing from last result of
* the current list call.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListAlertsResponse::class, 'Google_Service_AlertCenter_ListAlertsResponse');
@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class LoginDetails extends \Google\Model
{
/**
* Optional. The human-readable IP address (for example, `11.22.33.44`) that
* is associated with the warning event.
*
* @var string
*/
public $ipAddress;
/**
* Optional. The successful login time that is associated with the warning
* event. This isn't present for blocked login attempts.
*
* @var string
*/
public $loginTime;
/**
* Optional. The human-readable IP address (for example, `11.22.33.44`) that
* is associated with the warning event.
*
* @param string $ipAddress
*/
public function setIpAddress($ipAddress)
{
$this->ipAddress = $ipAddress;
}
/**
* @return string
*/
public function getIpAddress()
{
return $this->ipAddress;
}
/**
* Optional. The successful login time that is associated with the warning
* event. This isn't present for blocked login attempts.
*
* @param string $loginTime
*/
public function setLoginTime($loginTime)
{
$this->loginTime = $loginTime;
}
/**
* @return string
*/
public function getLoginTime()
{
return $this->loginTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LoginDetails::class, 'Google_Service_AlertCenter_LoginDetails');
@@ -0,0 +1,140 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class MailPhishing extends \Google\Collection
{
/**
* System action is unspecified.
*/
public const SYSTEM_ACTION_TYPE_SYSTEM_ACTION_TYPE_UNSPECIFIED = 'SYSTEM_ACTION_TYPE_UNSPECIFIED';
/**
* No operation.
*/
public const SYSTEM_ACTION_TYPE_NO_OPERATION = 'NO_OPERATION';
/**
* Messages were removed from the inbox.
*/
public const SYSTEM_ACTION_TYPE_REMOVED_FROM_INBOX = 'REMOVED_FROM_INBOX';
protected $collection_key = 'messages';
protected $domainIdType = DomainId::class;
protected $domainIdDataType = '';
/**
* If `true`, the email originated from within the organization.
*
* @var bool
*/
public $isInternal;
protected $maliciousEntityType = MaliciousEntity::class;
protected $maliciousEntityDataType = '';
protected $messagesType = GmailMessageInfo::class;
protected $messagesDataType = 'array';
/**
* System actions on the messages.
*
* @var string
*/
public $systemActionType;
/**
* The domain ID.
*
* @param DomainId $domainId
*/
public function setDomainId(DomainId $domainId)
{
$this->domainId = $domainId;
}
/**
* @return DomainId
*/
public function getDomainId()
{
return $this->domainId;
}
/**
* If `true`, the email originated from within the organization.
*
* @param bool $isInternal
*/
public function setIsInternal($isInternal)
{
$this->isInternal = $isInternal;
}
/**
* @return bool
*/
public function getIsInternal()
{
return $this->isInternal;
}
/**
* The entity whose actions triggered a Gmail phishing alert.
*
* @param MaliciousEntity $maliciousEntity
*/
public function setMaliciousEntity(MaliciousEntity $maliciousEntity)
{
$this->maliciousEntity = $maliciousEntity;
}
/**
* @return MaliciousEntity
*/
public function getMaliciousEntity()
{
return $this->maliciousEntity;
}
/**
* The list of messages contained by this alert.
*
* @param GmailMessageInfo[] $messages
*/
public function setMessages($messages)
{
$this->messages = $messages;
}
/**
* @return GmailMessageInfo[]
*/
public function getMessages()
{
return $this->messages;
}
/**
* System actions on the messages.
*
* Accepted values: SYSTEM_ACTION_TYPE_UNSPECIFIED, NO_OPERATION,
* REMOVED_FROM_INBOX
*
* @param self::SYSTEM_ACTION_TYPE_* $systemActionType
*/
public function setSystemActionType($systemActionType)
{
$this->systemActionType = $systemActionType;
}
/**
* @return self::SYSTEM_ACTION_TYPE_*
*/
public function getSystemActionType()
{
return $this->systemActionType;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MailPhishing::class, 'Google_Service_AlertCenter_MailPhishing');
@@ -0,0 +1,88 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class MaliciousEntity extends \Google\Model
{
/**
* The header from display name.
*
* @var string
*/
public $displayName;
protected $entityType = User::class;
protected $entityDataType = '';
/**
* The sender email address.
*
* @var string
*/
public $fromHeader;
/**
* The header from display name.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The actor who triggered a gmail phishing alert.
*
* @param User $entity
*/
public function setEntity(User $entity)
{
$this->entity = $entity;
}
/**
* @return User
*/
public function getEntity()
{
return $this->entity;
}
/**
* The sender email address.
*
* @param string $fromHeader
*/
public function setFromHeader($fromHeader)
{
$this->fromHeader = $fromHeader;
}
/**
* @return string
*/
public function getFromHeader()
{
return $this->fromHeader;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MaliciousEntity::class, 'Google_Service_AlertCenter_MaliciousEntity');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class MandatoryServiceAnnouncement extends \Google\Model
{
/**
* Detailed, freeform text describing the announcement
*
* @var string
*/
public $description;
/**
* One line summary of the announcement
*
* @var string
*/
public $title;
/**
* Detailed, freeform text describing the announcement
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* One line summary of the announcement
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MandatoryServiceAnnouncement::class, 'Google_Service_AlertCenter_MandatoryServiceAnnouncement');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class MatchInfo extends \Google\Model
{
protected $predefinedDetectorType = PredefinedDetectorInfo::class;
protected $predefinedDetectorDataType = '';
protected $userDefinedDetectorType = UserDefinedDetectorInfo::class;
protected $userDefinedDetectorDataType = '';
/**
* For matched detector predefined by Google.
*
* @param PredefinedDetectorInfo $predefinedDetector
*/
public function setPredefinedDetector(PredefinedDetectorInfo $predefinedDetector)
{
$this->predefinedDetector = $predefinedDetector;
}
/**
* @return PredefinedDetectorInfo
*/
public function getPredefinedDetector()
{
return $this->predefinedDetector;
}
/**
* For matched detector defined by administrators.
*
* @param UserDefinedDetectorInfo $userDefinedDetector
*/
public function setUserDefinedDetector(UserDefinedDetectorInfo $userDefinedDetector)
{
$this->userDefinedDetector = $userDefinedDetector;
}
/**
* @return UserDefinedDetectorInfo
*/
public function getUserDefinedDetector()
{
return $this->userDefinedDetector;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MatchInfo::class, 'Google_Service_AlertCenter_MatchInfo');
@@ -0,0 +1,72 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class MergeInfo extends \Google\Model
{
/**
* Optional. New alert ID. Reference the [google.apps.alertcenter.Alert] with
* this ID for the current state.
*
* @var string
*/
public $newAlertId;
/**
* The new tracking ID from the parent incident.
*
* @var string
*/
public $newIncidentTrackingId;
/**
* Optional. New alert ID. Reference the [google.apps.alertcenter.Alert] with
* this ID for the current state.
*
* @param string $newAlertId
*/
public function setNewAlertId($newAlertId)
{
$this->newAlertId = $newAlertId;
}
/**
* @return string
*/
public function getNewAlertId()
{
return $this->newAlertId;
}
/**
* The new tracking ID from the parent incident.
*
* @param string $newIncidentTrackingId
*/
public function setNewIncidentTrackingId($newIncidentTrackingId)
{
$this->newIncidentTrackingId = $newIncidentTrackingId;
}
/**
* @return string
*/
public function getNewIncidentTrackingId()
{
return $this->newIncidentTrackingId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(MergeInfo::class, 'Google_Service_AlertCenter_MergeInfo');
@@ -0,0 +1,44 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class Notification extends \Google\Model
{
protected $cloudPubsubTopicType = CloudPubsubTopic::class;
protected $cloudPubsubTopicDataType = '';
/**
* A Google Cloud Pub/sub topic destination.
*
* @param CloudPubsubTopic $cloudPubsubTopic
*/
public function setCloudPubsubTopic(CloudPubsubTopic $cloudPubsubTopic)
{
$this->cloudPubsubTopic = $cloudPubsubTopic;
}
/**
* @return CloudPubsubTopic
*/
public function getCloudPubsubTopic()
{
return $this->cloudPubsubTopic;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Notification::class, 'Google_Service_AlertCenter_Notification');
@@ -0,0 +1,62 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class OutOfDomainForwarding extends \Google\Model
{
public $actorEmail;
public $enableTime;
public $forwardeeEmail;
public $ipAddress;
public function setActorEmail($actorEmail)
{
$this->actorEmail = $actorEmail;
}
public function getActorEmail()
{
return $this->actorEmail;
}
public function setEnableTime($enableTime)
{
$this->enableTime = $enableTime;
}
public function getEnableTime()
{
return $this->enableTime;
}
public function setForwardeeEmail($forwardeeEmail)
{
$this->forwardeeEmail = $forwardeeEmail;
}
public function getForwardeeEmail()
{
return $this->forwardeeEmail;
}
public function setIpAddress($ipAddress)
{
$this->ipAddress = $ipAddress;
}
public function getIpAddress()
{
return $this->ipAddress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(OutOfDomainForwarding::class, 'Google_Service_AlertCenter_OutOfDomainForwarding');
@@ -0,0 +1,103 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class PhishingSpike extends \Google\Collection
{
protected $collection_key = 'messages';
protected $domainIdType = DomainId::class;
protected $domainIdDataType = '';
/**
* If `true`, the email originated from within the organization.
*
* @var bool
*/
public $isInternal;
protected $maliciousEntityType = MaliciousEntity::class;
protected $maliciousEntityDataType = '';
protected $messagesType = GmailMessageInfo::class;
protected $messagesDataType = 'array';
/**
* The domain ID.
*
* @param DomainId $domainId
*/
public function setDomainId(DomainId $domainId)
{
$this->domainId = $domainId;
}
/**
* @return DomainId
*/
public function getDomainId()
{
return $this->domainId;
}
/**
* If `true`, the email originated from within the organization.
*
* @param bool $isInternal
*/
public function setIsInternal($isInternal)
{
$this->isInternal = $isInternal;
}
/**
* @return bool
*/
public function getIsInternal()
{
return $this->isInternal;
}
/**
* The entity whose actions triggered a Gmail phishing alert.
*
* @param MaliciousEntity $maliciousEntity
*/
public function setMaliciousEntity(MaliciousEntity $maliciousEntity)
{
$this->maliciousEntity = $maliciousEntity;
}
/**
* @return MaliciousEntity
*/
public function getMaliciousEntity()
{
return $this->maliciousEntity;
}
/**
* The list of messages contained by this alert.
*
* @param GmailMessageInfo[] $messages
*/
public function setMessages($messages)
{
$this->messages = $messages;
}
/**
* @return GmailMessageInfo[]
*/
public function getMessages()
{
return $this->messages;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PhishingSpike::class, 'Google_Service_AlertCenter_PhishingSpike');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class PredefinedDetectorInfo extends \Google\Model
{
/**
* Name that uniquely identifies the detector.
*
* @var string
*/
public $detectorName;
/**
* Name that uniquely identifies the detector.
*
* @param string $detectorName
*/
public function setDetectorName($detectorName)
{
$this->detectorName = $detectorName;
}
/**
* @return string
*/
public function getDetectorName()
{
return $this->detectorName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PredefinedDetectorInfo::class, 'Google_Service_AlertCenter_PredefinedDetectorInfo');
@@ -0,0 +1,92 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class PrimaryAdminChangedEvent extends \Google\Model
{
/**
* domain in which actioned occurred
*
* @var string
*/
public $domain;
/**
* Email of person who was the primary admin before the action
*
* @var string
*/
public $previousAdminEmail;
/**
* Email of person who is the primary admin after the action
*
* @var string
*/
public $updatedAdminEmail;
/**
* domain in which actioned occurred
*
* @param string $domain
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* Email of person who was the primary admin before the action
*
* @param string $previousAdminEmail
*/
public function setPreviousAdminEmail($previousAdminEmail)
{
$this->previousAdminEmail = $previousAdminEmail;
}
/**
* @return string
*/
public function getPreviousAdminEmail()
{
return $this->previousAdminEmail;
}
/**
* Email of person who is the primary admin after the action
*
* @param string $updatedAdminEmail
*/
public function setUpdatedAdminEmail($updatedAdminEmail)
{
$this->updatedAdminEmail = $updatedAdminEmail;
}
/**
* @return string
*/
public function getUpdatedAdminEmail()
{
return $this->updatedAdminEmail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(PrimaryAdminChangedEvent::class, 'Google_Service_AlertCenter_PrimaryAdminChangedEvent');
@@ -0,0 +1,96 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class ReportingRule extends \Google\Model
{
/**
* Any other associated alert details, for example, AlertConfiguration.
*
* @var string
*/
public $alertDetails;
/**
* Rule name
*
* @var string
*/
public $name;
/**
* Alert Rule query Sample Query query { condition { filter {
* expected_application_id: 777491262838 expected_event_name:
* "indexable_content_change" filter_op: IN } } conjunction_operator: OR }
*
* @var string
*/
public $query;
/**
* Any other associated alert details, for example, AlertConfiguration.
*
* @param string $alertDetails
*/
public function setAlertDetails($alertDetails)
{
$this->alertDetails = $alertDetails;
}
/**
* @return string
*/
public function getAlertDetails()
{
return $this->alertDetails;
}
/**
* Rule name
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Alert Rule query Sample Query query { condition { filter {
* expected_application_id: 777491262838 expected_event_name:
* "indexable_content_change" filter_op: IN } } conjunction_operator: OR }
*
* @param string $query
*/
public function setQuery($query)
{
$this->query = $query;
}
/**
* @return string
*/
public function getQuery()
{
return $this->query;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ReportingRule::class, 'Google_Service_AlertCenter_ReportingRule');
@@ -0,0 +1,95 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class RequestInfo extends \Google\Collection
{
protected $collection_key = 'appDeveloperEmail';
/**
* List of app developers who triggered notifications for above application.
*
* @var string[]
*/
public $appDeveloperEmail;
/**
* Required. The application that requires the SQL setup.
*
* @var string
*/
public $appKey;
/**
* Required. Number of requests sent for this application to set up default
* SQL instance.
*
* @var string
*/
public $numberOfRequests;
/**
* List of app developers who triggered notifications for above application.
*
* @param string[] $appDeveloperEmail
*/
public function setAppDeveloperEmail($appDeveloperEmail)
{
$this->appDeveloperEmail = $appDeveloperEmail;
}
/**
* @return string[]
*/
public function getAppDeveloperEmail()
{
return $this->appDeveloperEmail;
}
/**
* Required. The application that requires the SQL setup.
*
* @param string $appKey
*/
public function setAppKey($appKey)
{
$this->appKey = $appKey;
}
/**
* @return string
*/
public function getAppKey()
{
return $this->appKey;
}
/**
* Required. Number of requests sent for this application to set up default
* SQL instance.
*
* @param string $numberOfRequests
*/
public function setNumberOfRequests($numberOfRequests)
{
$this->numberOfRequests = $numberOfRequests;
}
/**
* @return string
*/
public function getNumberOfRequests()
{
return $this->numberOfRequests;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RequestInfo::class, 'Google_Service_AlertCenter_RequestInfo');
@@ -0,0 +1,193 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter\Resource;
use Google\Service\AlertCenter\Alert;
use Google\Service\AlertCenter\AlertMetadata;
use Google\Service\AlertCenter\AlertcenterEmpty;
use Google\Service\AlertCenter\BatchDeleteAlertsRequest;
use Google\Service\AlertCenter\BatchDeleteAlertsResponse;
use Google\Service\AlertCenter\BatchUndeleteAlertsRequest;
use Google\Service\AlertCenter\BatchUndeleteAlertsResponse;
use Google\Service\AlertCenter\ListAlertsResponse;
use Google\Service\AlertCenter\UndeleteAlertRequest;
/**
* The "alerts" collection of methods.
* Typical usage is:
* <code>
* $alertcenterService = new Google\Service\AlertCenter(...);
* $alerts = $alertcenterService->alerts;
* </code>
*/
class Alerts extends \Google\Service\Resource
{
/**
* Performs batch delete operation on alerts. (alerts.batchDelete)
*
* @param BatchDeleteAlertsRequest $postBody
* @param array $optParams Optional parameters.
* @return BatchDeleteAlertsResponse
* @throws \Google\Service\Exception
*/
public function batchDelete(BatchDeleteAlertsRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchDelete', [$params], BatchDeleteAlertsResponse::class);
}
/**
* Performs batch undelete operation on alerts. (alerts.batchUndelete)
*
* @param BatchUndeleteAlertsRequest $postBody
* @param array $optParams Optional parameters.
* @return BatchUndeleteAlertsResponse
* @throws \Google\Service\Exception
*/
public function batchUndelete(BatchUndeleteAlertsRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchUndelete', [$params], BatchUndeleteAlertsResponse::class);
}
/**
* Marks the specified alert for deletion. An alert that has been marked for
* deletion is removed from Alert Center after 30 days. Marking an alert for
* deletion has no effect on an alert which has already been marked for
* deletion. Attempting to mark a nonexistent alert for deletion results in a
* `NOT_FOUND` error. (alerts.delete)
*
* @param string $alertId Required. The identifier of the alert to delete.
* @param array $optParams Optional parameters.
*
* @opt_param string customerId Optional. The unique identifier of the Google
* Workspace account of the customer the alert is associated with. The
* `customer_id` must have the initial "C" stripped (for example, `046psxkn`).
* Inferred from the caller identity if not provided. [Find your customer
* ID](https://support.google.com/cloudidentity/answer/10070793).
* @return AlertcenterEmpty
* @throws \Google\Service\Exception
*/
public function delete($alertId, $optParams = [])
{
$params = ['alertId' => $alertId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], AlertcenterEmpty::class);
}
/**
* Gets the specified alert. Attempting to get a nonexistent alert returns
* `NOT_FOUND` error. (alerts.get)
*
* @param string $alertId Required. The identifier of the alert to retrieve.
* @param array $optParams Optional parameters.
*
* @opt_param string customerId Optional. The unique identifier of the Google
* Workspace account of the customer the alert is associated with. The
* `customer_id` must have the initial "C" stripped (for example, `046psxkn`).
* Inferred from the caller identity if not provided. [Find your customer
* ID](https://support.google.com/cloudidentity/answer/10070793).
* @return Alert
* @throws \Google\Service\Exception
*/
public function get($alertId, $optParams = [])
{
$params = ['alertId' => $alertId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Alert::class);
}
/**
* Returns the metadata of an alert. Attempting to get metadata for a non-
* existent alert returns `NOT_FOUND` error. (alerts.getMetadata)
*
* @param string $alertId Required. The identifier of the alert this metadata
* belongs to.
* @param array $optParams Optional parameters.
*
* @opt_param string customerId Optional. The unique identifier of the Google
* Workspace account of the customer the alert metadata is associated with. The
* `customer_id` must have the initial "C" stripped (for example, `046psxkn`).
* Inferred from the caller identity if not provided. [Find your customer
* ID](https://support.google.com/cloudidentity/answer/10070793).
* @return AlertMetadata
* @throws \Google\Service\Exception
*/
public function getMetadata($alertId, $optParams = [])
{
$params = ['alertId' => $alertId];
$params = array_merge($params, $optParams);
return $this->call('getMetadata', [$params], AlertMetadata::class);
}
/**
* Lists the alerts. (alerts.listAlerts)
*
* @param array $optParams Optional parameters.
*
* @opt_param string customerId Optional. The unique identifier of the Google
* Workspace account of the customer the alerts are associated with. The
* `customer_id` must have the initial "C" stripped (for example, `046psxkn`).
* Inferred from the caller identity if not provided. [Find your customer
* ID](https://support.google.com/cloudidentity/answer/10070793).
* @opt_param string filter Optional. A query string for filtering alert
* results. For more details, see [Query filters](https://developers.google.com/
* workspace/admin/alertcenter/guides/query-filters) and [Supported query filter
* fields](https://developers.google.com/workspace/admin/alertcenter/reference/f
* ilter-fields#alerts.list).
* @opt_param string orderBy Optional. The sort order of the list results. If
* not specified results may be returned in arbitrary order. You can sort the
* results in descending order based on the creation timestamp using
* `order_by="create_time desc"`. Currently, supported sorting are `create_time
* asc`, `create_time desc`, `update_time desc`
* @opt_param int pageSize Optional. The requested page size. Server may return
* fewer items than requested. If unspecified, server picks an appropriate
* default.
* @opt_param string pageToken Optional. A token identifying a page of results
* the server should return. If empty, a new iteration is started. To continue
* an iteration, pass in the value from the previous ListAlertsResponse's
* next_page_token field.
* @return ListAlertsResponse
* @throws \Google\Service\Exception
*/
public function listAlerts($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAlertsResponse::class);
}
/**
* Restores, or "undeletes", an alert that was marked for deletion within the
* past 30 days. Attempting to undelete an alert which was marked for deletion
* over 30 days ago (which has been removed from the Alert Center database) or a
* nonexistent alert returns a `NOT_FOUND` error. Attempting to undelete an
* alert which has not been marked for deletion has no effect. (alerts.undelete)
*
* @param string $alertId Required. The identifier of the alert to undelete.
* @param UndeleteAlertRequest $postBody
* @param array $optParams Optional parameters.
* @return Alert
* @throws \Google\Service\Exception
*/
public function undelete($alertId, UndeleteAlertRequest $postBody, $optParams = [])
{
$params = ['alertId' => $alertId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('undelete', [$params], Alert::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Alerts::class, 'Google_Service_AlertCenter_Resource_Alerts');
@@ -0,0 +1,88 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter\Resource;
use Google\Service\AlertCenter\AlertFeedback;
use Google\Service\AlertCenter\ListAlertFeedbackResponse;
/**
* The "feedback" collection of methods.
* Typical usage is:
* <code>
* $alertcenterService = new Google\Service\AlertCenter(...);
* $feedback = $alertcenterService->alerts_feedback;
* </code>
*/
class AlertsFeedback extends \Google\Service\Resource
{
/**
* Creates new feedback for an alert. Attempting to create a feedback for a non-
* existent alert returns `NOT_FOUND` error. Attempting to create a feedback for
* an alert that is marked for deletion returns `FAILED_PRECONDITION' error.
* (feedback.create)
*
* @param string $alertId Required. The identifier of the alert this feedback
* belongs to.
* @param AlertFeedback $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string customerId Optional. The unique identifier of the Google
* Workspace account of the customer the alert is associated with. The
* `customer_id` must have the initial "C" stripped (for example, `046psxkn`).
* Inferred from the caller identity if not provided. [Find your customer
* ID](https://support.google.com/cloudidentity/answer/10070793).
* @return AlertFeedback
* @throws \Google\Service\Exception
*/
public function create($alertId, AlertFeedback $postBody, $optParams = [])
{
$params = ['alertId' => $alertId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], AlertFeedback::class);
}
/**
* Lists all the feedback for an alert. Attempting to list feedbacks for a non-
* existent alert returns `NOT_FOUND` error. (feedback.listAlertsFeedback)
*
* @param string $alertId Required. The alert identifier. The "-" wildcard could
* be used to represent all alerts.
* @param array $optParams Optional parameters.
*
* @opt_param string customerId Optional. The unique identifier of the Google
* Workspace account of the customer the alert is associated with. The
* `customer_id` must have the initial "C" stripped (for example, `046psxkn`).
* Inferred from the caller identity if not provided. [Find your customer
* ID](https://support.google.com/cloudidentity/answer/10070793).
* @opt_param string filter Optional. A query string for filtering alert
* feedback results. For more details, see [Query filters](https://developers.go
* ogle.com/workspace/admin/alertcenter/guides/query-filters) and [Supported
* query filter fields](https://developers.google.com/workspace/admin/alertcente
* r/reference/filter-fields#alerts.feedback.list).
* @return ListAlertFeedbackResponse
* @throws \Google\Service\Exception
*/
public function listAlertsFeedback($alertId, $optParams = [])
{
$params = ['alertId' => $alertId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListAlertFeedbackResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AlertsFeedback::class, 'Google_Service_AlertCenter_Resource_AlertsFeedback');
@@ -0,0 +1,74 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter\Resource;
use Google\Service\AlertCenter\Settings;
/**
* The "v1beta1" collection of methods.
* Typical usage is:
* <code>
* $alertcenterService = new Google\Service\AlertCenter(...);
* $v1beta1 = $alertcenterService->v1beta1;
* </code>
*/
class V1beta1 extends \Google\Service\Resource
{
/**
* Returns customer-level settings. (v1beta1.getSettings)
*
* @param array $optParams Optional parameters.
*
* @opt_param string customerId Optional. The unique identifier of the Google
* Workspace account of the customer the alert settings are associated with. The
* `customer_id` must/ have the initial "C" stripped (for example, `046psxkn`).
* Inferred from the caller identity if not provided. [Find your customer
* ID](https://support.google.com/cloudidentity/answer/10070793).
* @return Settings
* @throws \Google\Service\Exception
*/
public function getSettings($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('getSettings', [$params], Settings::class);
}
/**
* Updates the customer-level settings. (v1beta1.updateSettings)
*
* @param Settings $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string customerId Optional. The unique identifier of the Google
* Workspace account of the customer the alert settings are associated with. The
* `customer_id` must have the initial "C" stripped (for example, `046psxkn`).
* Inferred from the caller identity if not provided. [Find your customer
* ID](https://support.google.com/cloudidentity/answer/10070793).
* @return Settings
* @throws \Google\Service\Exception
*/
public function updateSettings(Settings $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('updateSettings', [$params], Settings::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(V1beta1::class, 'Google_Service_AlertCenter_Resource_V1beta1');
@@ -0,0 +1,162 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class ResourceInfo extends \Google\Model
{
/**
* Chat attachment ID.
*
* @var string
*/
public $chatAttachmentId;
/**
* Chat message ID.
*
* @var string
*/
public $chatMessageId;
/**
* Id to identify a device. For example, for Android devices, this is the
* "Android Device Id" and for Chrome OS devices, it's the "Device Virtual
* Id".
*
* @var string
*/
public $deviceId;
/**
* Drive file ID.
*
* @var string
*/
public $documentId;
/**
* RFC2822 message ID.
*
* @var string
*/
public $messageId;
/**
* Title of the resource, for example email subject, or document title.
*
* @var string
*/
public $resourceTitle;
/**
* Chat attachment ID.
*
* @param string $chatAttachmentId
*/
public function setChatAttachmentId($chatAttachmentId)
{
$this->chatAttachmentId = $chatAttachmentId;
}
/**
* @return string
*/
public function getChatAttachmentId()
{
return $this->chatAttachmentId;
}
/**
* Chat message ID.
*
* @param string $chatMessageId
*/
public function setChatMessageId($chatMessageId)
{
$this->chatMessageId = $chatMessageId;
}
/**
* @return string
*/
public function getChatMessageId()
{
return $this->chatMessageId;
}
/**
* Id to identify a device. For example, for Android devices, this is the
* "Android Device Id" and for Chrome OS devices, it's the "Device Virtual
* Id".
*
* @param string $deviceId
*/
public function setDeviceId($deviceId)
{
$this->deviceId = $deviceId;
}
/**
* @return string
*/
public function getDeviceId()
{
return $this->deviceId;
}
/**
* Drive file ID.
*
* @param string $documentId
*/
public function setDocumentId($documentId)
{
$this->documentId = $documentId;
}
/**
* @return string
*/
public function getDocumentId()
{
return $this->documentId;
}
/**
* RFC2822 message ID.
*
* @param string $messageId
*/
public function setMessageId($messageId)
{
$this->messageId = $messageId;
}
/**
* @return string
*/
public function getMessageId()
{
return $this->messageId;
}
/**
* Title of the resource, for example email subject, or document title.
*
* @param string $resourceTitle
*/
public function setResourceTitle($resourceTitle)
{
$this->resourceTitle = $resourceTitle;
}
/**
* @return string
*/
public function getResourceTitle()
{
return $this->resourceTitle;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ResourceInfo::class, 'Google_Service_AlertCenter_ResourceInfo');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class RuleInfo extends \Google\Model
{
/**
* User provided name of the rule.
*
* @var string
*/
public $displayName;
/**
* Resource name that uniquely identifies the rule.
*
* @var string
*/
public $resourceName;
/**
* User provided name of the rule.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Resource name that uniquely identifies the rule.
*
* @param string $resourceName
*/
public function setResourceName($resourceName)
{
$this->resourceName = $resourceName;
}
/**
* @return string
*/
public function getResourceName()
{
return $this->resourceName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RuleInfo::class, 'Google_Service_AlertCenter_RuleInfo');
@@ -0,0 +1,355 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class RuleViolationInfo extends \Google\Collection
{
/**
* Data source is unspecified.
*/
public const DATA_SOURCE_DATA_SOURCE_UNSPECIFIED = 'DATA_SOURCE_UNSPECIFIED';
/**
* Drive data source.
*/
public const DATA_SOURCE_DRIVE = 'DRIVE';
/**
* Gmail data source.
*/
public const DATA_SOURCE_GMAIL = 'GMAIL';
/**
* Chrome data source.
*/
public const DATA_SOURCE_CHROME = 'CHROME';
/**
* Chat data source.
*/
public const DATA_SOURCE_CHAT = 'CHAT';
/**
* Event type wasn't set.
*/
public const EVENT_TYPE_EVENT_TYPE_UNSPECIFIED = 'EVENT_TYPE_UNSPECIFIED';
/**
* An access attempt was blocked.
*/
public const EVENT_TYPE_ACCESS_BLOCKED = 'ACCESS_BLOCKED';
/**
* A sharing attempt was blocked.
*/
public const EVENT_TYPE_SHARING_BLOCKED = 'SHARING_BLOCKED';
/**
* Trigger is unspecified.
*/
public const TRIGGER_TRIGGER_UNSPECIFIED = 'TRIGGER_UNSPECIFIED';
/**
* A Drive file is shared.
*/
public const TRIGGER_DRIVE_SHARE = 'DRIVE_SHARE';
/**
* An email message is sent.
*/
public const TRIGGER_MAIL_BEING_SENT = 'MAIL_BEING_SENT';
/**
* A file being downloaded in a Chrome browser.
*/
public const TRIGGER_CHROME_FILE_DOWNLOAD = 'CHROME_FILE_DOWNLOAD';
/**
* A file being uploaded from a Chrome browser.
*/
public const TRIGGER_CHROME_FILE_UPLOAD = 'CHROME_FILE_UPLOAD';
/**
* Web content being uploaded from a Chrome browser.
*/
public const TRIGGER_CHROME_WEB_CONTENT_UPLOAD = 'CHROME_WEB_CONTENT_UPLOAD';
/**
* A Chat message is sent.
*/
public const TRIGGER_CHAT_MESSAGE_SENT = 'CHAT_MESSAGE_SENT';
/**
* A Chat attachment is uploaded.
*/
public const TRIGGER_CHAT_ATTACHMENT_UPLOADED = 'CHAT_ATTACHMENT_UPLOADED';
/**
* A page is being printed by Chrome.
*/
public const TRIGGER_CHROME_PAGE_PRINT = 'CHROME_PAGE_PRINT';
/**
* A URL is visited within Chrome.
*/
public const TRIGGER_CHROME_URL_VISITED = 'CHROME_URL_VISITED';
/**
* A file being transferred (copy or moved) between different file systems on
* ChromeOS.
*/
public const TRIGGER_CHROMEOS_FILE_TRANSFER = 'CHROMEOS_FILE_TRANSFER';
/**
* Gemini access.
*/
public const TRIGGER_GEMINI_ACCESS = 'GEMINI_ACCESS';
protected $collection_key = 'triggeredActionTypes';
/**
* Source of the data.
*
* @var string
*/
public $dataSource;
/**
* Event associated with this alert after applying the rule.
*
* @var string
*/
public $eventType;
protected $matchInfoType = MatchInfo::class;
protected $matchInfoDataType = 'array';
/**
* Resource recipients. For Drive, they are grantees that the Drive file was
* shared with at the time of rule triggering. Valid values include user
* emails, group emails, domains, or 'anyone' if the file was publicly
* accessible. If the file was private the recipients list will be empty. For
* Gmail, they are emails of the users or groups that the Gmail message was
* sent to.
*
* @var string[]
*/
public $recipients;
protected $resourceInfoType = ResourceInfo::class;
protected $resourceInfoDataType = '';
protected $ruleInfoType = RuleInfo::class;
protected $ruleInfoDataType = '';
/**
* Actions suppressed due to other actions with higher priority.
*
* @var string[]
*/
public $suppressedActionTypes;
/**
* Trigger of the rule.
*
* @var string
*/
public $trigger;
protected $triggeredActionInfoType = ActionInfo::class;
protected $triggeredActionInfoDataType = 'array';
/**
* Actions applied as a consequence of the rule being triggered.
*
* @var string[]
*/
public $triggeredActionTypes;
/**
* Email of the user who caused the violation. Value could be empty if not
* applicable, for example, a violation found by drive continuous scan.
*
* @var string
*/
public $triggeringUserEmail;
/**
* Source of the data.
*
* Accepted values: DATA_SOURCE_UNSPECIFIED, DRIVE, GMAIL, CHROME, CHAT
*
* @param self::DATA_SOURCE_* $dataSource
*/
public function setDataSource($dataSource)
{
$this->dataSource = $dataSource;
}
/**
* @return self::DATA_SOURCE_*
*/
public function getDataSource()
{
return $this->dataSource;
}
/**
* Event associated with this alert after applying the rule.
*
* Accepted values: EVENT_TYPE_UNSPECIFIED, ACCESS_BLOCKED, SHARING_BLOCKED
*
* @param self::EVENT_TYPE_* $eventType
*/
public function setEventType($eventType)
{
$this->eventType = $eventType;
}
/**
* @return self::EVENT_TYPE_*
*/
public function getEventType()
{
return $this->eventType;
}
/**
* List of matches that were found in the resource content.
*
* @param MatchInfo[] $matchInfo
*/
public function setMatchInfo($matchInfo)
{
$this->matchInfo = $matchInfo;
}
/**
* @return MatchInfo[]
*/
public function getMatchInfo()
{
return $this->matchInfo;
}
/**
* Resource recipients. For Drive, they are grantees that the Drive file was
* shared with at the time of rule triggering. Valid values include user
* emails, group emails, domains, or 'anyone' if the file was publicly
* accessible. If the file was private the recipients list will be empty. For
* Gmail, they are emails of the users or groups that the Gmail message was
* sent to.
*
* @param string[] $recipients
*/
public function setRecipients($recipients)
{
$this->recipients = $recipients;
}
/**
* @return string[]
*/
public function getRecipients()
{
return $this->recipients;
}
/**
* Details of the resource which violated the rule.
*
* @param ResourceInfo $resourceInfo
*/
public function setResourceInfo(ResourceInfo $resourceInfo)
{
$this->resourceInfo = $resourceInfo;
}
/**
* @return ResourceInfo
*/
public function getResourceInfo()
{
return $this->resourceInfo;
}
/**
* Details of the violated rule.
*
* @param RuleInfo $ruleInfo
*/
public function setRuleInfo(RuleInfo $ruleInfo)
{
$this->ruleInfo = $ruleInfo;
}
/**
* @return RuleInfo
*/
public function getRuleInfo()
{
return $this->ruleInfo;
}
/**
* Actions suppressed due to other actions with higher priority.
*
* @param string[] $suppressedActionTypes
*/
public function setSuppressedActionTypes($suppressedActionTypes)
{
$this->suppressedActionTypes = $suppressedActionTypes;
}
/**
* @return string[]
*/
public function getSuppressedActionTypes()
{
return $this->suppressedActionTypes;
}
/**
* Trigger of the rule.
*
* Accepted values: TRIGGER_UNSPECIFIED, DRIVE_SHARE, MAIL_BEING_SENT,
* CHROME_FILE_DOWNLOAD, CHROME_FILE_UPLOAD, CHROME_WEB_CONTENT_UPLOAD,
* CHAT_MESSAGE_SENT, CHAT_ATTACHMENT_UPLOADED, CHROME_PAGE_PRINT,
* CHROME_URL_VISITED, CHROMEOS_FILE_TRANSFER, GEMINI_ACCESS
*
* @param self::TRIGGER_* $trigger
*/
public function setTrigger($trigger)
{
$this->trigger = $trigger;
}
/**
* @return self::TRIGGER_*
*/
public function getTrigger()
{
return $this->trigger;
}
/**
* Metadata related to the triggered actions.
*
* @param ActionInfo[] $triggeredActionInfo
*/
public function setTriggeredActionInfo($triggeredActionInfo)
{
$this->triggeredActionInfo = $triggeredActionInfo;
}
/**
* @return ActionInfo[]
*/
public function getTriggeredActionInfo()
{
return $this->triggeredActionInfo;
}
/**
* Actions applied as a consequence of the rule being triggered.
*
* @param string[] $triggeredActionTypes
*/
public function setTriggeredActionTypes($triggeredActionTypes)
{
$this->triggeredActionTypes = $triggeredActionTypes;
}
/**
* @return string[]
*/
public function getTriggeredActionTypes()
{
return $this->triggeredActionTypes;
}
/**
* Email of the user who caused the violation. Value could be empty if not
* applicable, for example, a violation found by drive continuous scan.
*
* @param string $triggeringUserEmail
*/
public function setTriggeringUserEmail($triggeringUserEmail)
{
$this->triggeringUserEmail = $triggeringUserEmail;
}
/**
* @return string
*/
public function getTriggeringUserEmail()
{
return $this->triggeringUserEmail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(RuleViolationInfo::class, 'Google_Service_AlertCenter_RuleViolationInfo');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class SSOProfileCreatedEvent extends \Google\Model
{
/**
* sso profile name which got created
*
* @var string
*/
public $inboundSsoProfileName;
/**
* sso profile name which got created
*
* @param string $inboundSsoProfileName
*/
public function setInboundSsoProfileName($inboundSsoProfileName)
{
$this->inboundSsoProfileName = $inboundSsoProfileName;
}
/**
* @return string
*/
public function getInboundSsoProfileName()
{
return $this->inboundSsoProfileName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SSOProfileCreatedEvent::class, 'Google_Service_AlertCenter_SSOProfileCreatedEvent');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class SSOProfileDeletedEvent extends \Google\Model
{
/**
* sso profile name which got deleted
*
* @var string
*/
public $inboundSsoProfileName;
/**
* sso profile name which got deleted
*
* @param string $inboundSsoProfileName
*/
public function setInboundSsoProfileName($inboundSsoProfileName)
{
$this->inboundSsoProfileName = $inboundSsoProfileName;
}
/**
* @return string
*/
public function getInboundSsoProfileName()
{
return $this->inboundSsoProfileName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SSOProfileDeletedEvent::class, 'Google_Service_AlertCenter_SSOProfileDeletedEvent');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class SSOProfileUpdatedEvent extends \Google\Model
{
/**
* changes made to sso profile
*
* @var string
*/
public $inboundSsoProfileChanges;
/**
* sso profile name which got updated
*
* @var string
*/
public $inboundSsoProfileName;
/**
* changes made to sso profile
*
* @param string $inboundSsoProfileChanges
*/
public function setInboundSsoProfileChanges($inboundSsoProfileChanges)
{
$this->inboundSsoProfileChanges = $inboundSsoProfileChanges;
}
/**
* @return string
*/
public function getInboundSsoProfileChanges()
{
return $this->inboundSsoProfileChanges;
}
/**
* sso profile name which got updated
*
* @param string $inboundSsoProfileName
*/
public function setInboundSsoProfileName($inboundSsoProfileName)
{
$this->inboundSsoProfileName = $inboundSsoProfileName;
}
/**
* @return string
*/
public function getInboundSsoProfileName()
{
return $this->inboundSsoProfileName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SSOProfileUpdatedEvent::class, 'Google_Service_AlertCenter_SSOProfileUpdatedEvent');
@@ -0,0 +1,161 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class SensitiveAdminAction extends \Google\Model
{
/**
* Email of person who performed the action
*
* @var string
*/
public $actorEmail;
/**
* The time at which event occurred
*
* @var string
*/
public $eventTime;
protected $primaryAdminChangedEventType = PrimaryAdminChangedEvent::class;
protected $primaryAdminChangedEventDataType = '';
protected $ssoProfileCreatedEventType = SSOProfileCreatedEvent::class;
protected $ssoProfileCreatedEventDataType = '';
protected $ssoProfileDeletedEventType = SSOProfileDeletedEvent::class;
protected $ssoProfileDeletedEventDataType = '';
protected $ssoProfileUpdatedEventType = SSOProfileUpdatedEvent::class;
protected $ssoProfileUpdatedEventDataType = '';
protected $superAdminPasswordResetEventType = SuperAdminPasswordResetEvent::class;
protected $superAdminPasswordResetEventDataType = '';
/**
* Email of person who performed the action
*
* @param string $actorEmail
*/
public function setActorEmail($actorEmail)
{
$this->actorEmail = $actorEmail;
}
/**
* @return string
*/
public function getActorEmail()
{
return $this->actorEmail;
}
/**
* The time at which event occurred
*
* @param string $eventTime
*/
public function setEventTime($eventTime)
{
$this->eventTime = $eventTime;
}
/**
* @return string
*/
public function getEventTime()
{
return $this->eventTime;
}
/**
* Event occurred when primary admin changed in customer's account
*
* @param PrimaryAdminChangedEvent $primaryAdminChangedEvent
*/
public function setPrimaryAdminChangedEvent(PrimaryAdminChangedEvent $primaryAdminChangedEvent)
{
$this->primaryAdminChangedEvent = $primaryAdminChangedEvent;
}
/**
* @return PrimaryAdminChangedEvent
*/
public function getPrimaryAdminChangedEvent()
{
return $this->primaryAdminChangedEvent;
}
/**
* Event occurred when SSO Profile created in customer's account
*
* @param SSOProfileCreatedEvent $ssoProfileCreatedEvent
*/
public function setSsoProfileCreatedEvent(SSOProfileCreatedEvent $ssoProfileCreatedEvent)
{
$this->ssoProfileCreatedEvent = $ssoProfileCreatedEvent;
}
/**
* @return SSOProfileCreatedEvent
*/
public function getSsoProfileCreatedEvent()
{
return $this->ssoProfileCreatedEvent;
}
/**
* Event occurred when SSO Profile deleted in customer's account
*
* @param SSOProfileDeletedEvent $ssoProfileDeletedEvent
*/
public function setSsoProfileDeletedEvent(SSOProfileDeletedEvent $ssoProfileDeletedEvent)
{
$this->ssoProfileDeletedEvent = $ssoProfileDeletedEvent;
}
/**
* @return SSOProfileDeletedEvent
*/
public function getSsoProfileDeletedEvent()
{
return $this->ssoProfileDeletedEvent;
}
/**
* Event occurred when SSO Profile updated in customer's account
*
* @param SSOProfileUpdatedEvent $ssoProfileUpdatedEvent
*/
public function setSsoProfileUpdatedEvent(SSOProfileUpdatedEvent $ssoProfileUpdatedEvent)
{
$this->ssoProfileUpdatedEvent = $ssoProfileUpdatedEvent;
}
/**
* @return SSOProfileUpdatedEvent
*/
public function getSsoProfileUpdatedEvent()
{
return $this->ssoProfileUpdatedEvent;
}
/**
* Event occurred when password was reset for super admin in customer's
* account
*
* @param SuperAdminPasswordResetEvent $superAdminPasswordResetEvent
*/
public function setSuperAdminPasswordResetEvent(SuperAdminPasswordResetEvent $superAdminPasswordResetEvent)
{
$this->superAdminPasswordResetEvent = $superAdminPasswordResetEvent;
}
/**
* @return SuperAdminPasswordResetEvent
*/
public function getSuperAdminPasswordResetEvent()
{
return $this->superAdminPasswordResetEvent;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SensitiveAdminAction::class, 'Google_Service_AlertCenter_SensitiveAdminAction');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class Settings extends \Google\Collection
{
protected $collection_key = 'notifications';
protected $notificationsType = Notification::class;
protected $notificationsDataType = 'array';
/**
* The list of notifications.
*
* @param Notification[] $notifications
*/
public function setNotifications($notifications)
{
$this->notifications = $notifications;
}
/**
* @return Notification[]
*/
public function getNotifications()
{
return $this->notifications;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Settings::class, 'Google_Service_AlertCenter_Settings');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class StateSponsoredAttack extends \Google\Model
{
/**
* The email of the user this incident was created for.
*
* @var string
*/
public $email;
/**
* The email of the user this incident was created for.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(StateSponsoredAttack::class, 'Google_Service_AlertCenter_StateSponsoredAttack');
@@ -0,0 +1,99 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class Status extends \Google\Collection
{
protected $collection_key = 'details';
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @var int
*/
public $code;
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @var array[]
*/
public $details;
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @var string
*/
public $message;
/**
* The status code, which should be an enum value of google.rpc.Code.
*
* @param int $code
*/
public function setCode($code)
{
$this->code = $code;
}
/**
* @return int
*/
public function getCode()
{
return $this->code;
}
/**
* A list of messages that carry the error details. There is a common set of
* message types for APIs to use.
*
* @param array[] $details
*/
public function setDetails($details)
{
$this->details = $details;
}
/**
* @return array[]
*/
public function getDetails()
{
return $this->details;
}
/**
* A developer-facing error message, which should be in English. Any user-
* facing error message should be localized and sent in the
* google.rpc.Status.details field, or localized by the client.
*
* @param string $message
*/
public function setMessage($message)
{
$this->message = $message;
}
/**
* @return string
*/
public function getMessage()
{
return $this->message;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Status::class, 'Google_Service_AlertCenter_Status');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class SuperAdminPasswordResetEvent extends \Google\Model
{
/**
* email of person whose password was reset
*
* @var string
*/
public $userEmail;
/**
* email of person whose password was reset
*
* @param string $userEmail
*/
public function setUserEmail($userEmail)
{
$this->userEmail = $userEmail;
}
/**
* @return string
*/
public function getUserEmail()
{
return $this->userEmail;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SuperAdminPasswordResetEvent::class, 'Google_Service_AlertCenter_SuperAdminPasswordResetEvent');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class SupportTicket extends \Google\Model
{
/**
* Support ticket ID
*
* @var string
*/
public $ticketId;
/**
* Link to support ticket
*
* @var string
*/
public $ticketUrl;
/**
* Support ticket ID
*
* @param string $ticketId
*/
public function setTicketId($ticketId)
{
$this->ticketId = $ticketId;
}
/**
* @return string
*/
public function getTicketId()
{
return $this->ticketId;
}
/**
* Link to support ticket
*
* @param string $ticketUrl
*/
public function setTicketUrl($ticketUrl)
{
$this->ticketUrl = $ticketUrl;
}
/**
* @return string
*/
public function getTicketUrl()
{
return $this->ticketUrl;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SupportTicket::class, 'Google_Service_AlertCenter_SupportTicket');
@@ -0,0 +1,67 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class SuspiciousActivity extends \Google\Collection
{
protected $collection_key = 'events';
/**
* The email of the user this alert was created for.
*
* @var string
*/
public $email;
protected $eventsType = SuspiciousActivitySecurityDetail::class;
protected $eventsDataType = 'array';
/**
* The email of the user this alert was created for.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Required. The list of security events.
*
* @param SuspiciousActivitySecurityDetail[] $events
*/
public function setEvents($events)
{
$this->events = $events;
}
/**
* @return SuspiciousActivitySecurityDetail[]
*/
public function getEvents()
{
return $this->events;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SuspiciousActivity::class, 'Google_Service_AlertCenter_SuspiciousActivity');
@@ -0,0 +1,224 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class SuspiciousActivitySecurityDetail extends \Google\Model
{
/**
* Required. The device ID.
*
* @var string
*/
public $deviceId;
/**
* The model of the device.
*
* @var string
*/
public $deviceModel;
/**
* The device property which was changed.
*
* @var string
*/
public $deviceProperty;
/**
* The type of the device.
*
* @var string
*/
public $deviceType;
/**
* Required for iOS, empty for others.
*
* @var string
*/
public $iosVendorId;
/**
* The new value of the device property after the change.
*
* @var string
*/
public $newValue;
/**
* The old value of the device property before the change.
*
* @var string
*/
public $oldValue;
/**
* The device resource ID.
*
* @var string
*/
public $resourceId;
/**
* The serial number of the device.
*
* @var string
*/
public $serialNumber;
/**
* Required. The device ID.
*
* @param string $deviceId
*/
public function setDeviceId($deviceId)
{
$this->deviceId = $deviceId;
}
/**
* @return string
*/
public function getDeviceId()
{
return $this->deviceId;
}
/**
* The model of the device.
*
* @param string $deviceModel
*/
public function setDeviceModel($deviceModel)
{
$this->deviceModel = $deviceModel;
}
/**
* @return string
*/
public function getDeviceModel()
{
return $this->deviceModel;
}
/**
* The device property which was changed.
*
* @param string $deviceProperty
*/
public function setDeviceProperty($deviceProperty)
{
$this->deviceProperty = $deviceProperty;
}
/**
* @return string
*/
public function getDeviceProperty()
{
return $this->deviceProperty;
}
/**
* The type of the device.
*
* @param string $deviceType
*/
public function setDeviceType($deviceType)
{
$this->deviceType = $deviceType;
}
/**
* @return string
*/
public function getDeviceType()
{
return $this->deviceType;
}
/**
* Required for iOS, empty for others.
*
* @param string $iosVendorId
*/
public function setIosVendorId($iosVendorId)
{
$this->iosVendorId = $iosVendorId;
}
/**
* @return string
*/
public function getIosVendorId()
{
return $this->iosVendorId;
}
/**
* The new value of the device property after the change.
*
* @param string $newValue
*/
public function setNewValue($newValue)
{
$this->newValue = $newValue;
}
/**
* @return string
*/
public function getNewValue()
{
return $this->newValue;
}
/**
* The old value of the device property before the change.
*
* @param string $oldValue
*/
public function setOldValue($oldValue)
{
$this->oldValue = $oldValue;
}
/**
* @return string
*/
public function getOldValue()
{
return $this->oldValue;
}
/**
* The device resource ID.
*
* @param string $resourceId
*/
public function setResourceId($resourceId)
{
$this->resourceId = $resourceId;
}
/**
* @return string
*/
public function getResourceId()
{
return $this->resourceId;
}
/**
* The serial number of the device.
*
* @param string $serialNumber
*/
public function setSerialNumber($serialNumber)
{
$this->serialNumber = $serialNumber;
}
/**
* @return string
*/
public function getSerialNumber()
{
return $this->serialNumber;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(SuspiciousActivitySecurityDetail::class, 'Google_Service_AlertCenter_SuspiciousActivitySecurityDetail');
@@ -0,0 +1,183 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class TransferError extends \Google\Model
{
/**
* Entity type wasn't set.
*/
public const ENTITY_TYPE_TRANSFER_ENTITY_TYPE_UNSPECIFIED = 'TRANSFER_ENTITY_TYPE_UNSPECIFIED';
/**
* Transfer to auto attendant.
*/
public const ENTITY_TYPE_TRANSFER_AUTO_ATTENDANT = 'TRANSFER_AUTO_ATTENDANT';
/**
* Transfer to ring group.
*/
public const ENTITY_TYPE_TRANSFER_RING_GROUP = 'TRANSFER_RING_GROUP';
/**
* Transfer to user.
*/
public const ENTITY_TYPE_TRANSFER_USER = 'TRANSFER_USER';
/**
* Reason wasn't specified.
*/
public const INVALID_REASON_TRANSFER_INVALID_REASON_UNSPECIFIED = 'TRANSFER_INVALID_REASON_UNSPECIFIED';
/**
* The transfer target can't be found—most likely it was deleted.
*/
public const INVALID_REASON_TRANSFER_TARGET_DELETED = 'TRANSFER_TARGET_DELETED';
/**
* The user's Google Voice license was removed.
*/
public const INVALID_REASON_UNLICENSED = 'UNLICENSED';
/**
* The user's Google Workspace account was suspended.
*/
public const INVALID_REASON_SUSPENDED = 'SUSPENDED';
/**
* The transfer target no longer has a phone number. This reason should become
* deprecated once we support numberless transfer.
*/
public const INVALID_REASON_NO_PHONE_NUMBER = 'NO_PHONE_NUMBER';
/**
* User's email address. This may be unavailable if the entity was deleted.
*
* @var string
*/
public $email;
/**
* Type of entity being transferred to. For ring group members, this should
* always be USER.
*
* @var string
*/
public $entityType;
/**
* Ring group or auto attendant ID. Not set for users.
*
* @var string
*/
public $id;
/**
* Reason for the error.
*
* @var string
*/
public $invalidReason;
/**
* User's full name, or the ring group / auto attendant name. This may be
* unavailable if the entity was deleted.
*
* @var string
*/
public $name;
/**
* User's email address. This may be unavailable if the entity was deleted.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Type of entity being transferred to. For ring group members, this should
* always be USER.
*
* Accepted values: TRANSFER_ENTITY_TYPE_UNSPECIFIED, TRANSFER_AUTO_ATTENDANT,
* TRANSFER_RING_GROUP, TRANSFER_USER
*
* @param self::ENTITY_TYPE_* $entityType
*/
public function setEntityType($entityType)
{
$this->entityType = $entityType;
}
/**
* @return self::ENTITY_TYPE_*
*/
public function getEntityType()
{
return $this->entityType;
}
/**
* Ring group or auto attendant ID. Not set for users.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Reason for the error.
*
* Accepted values: TRANSFER_INVALID_REASON_UNSPECIFIED,
* TRANSFER_TARGET_DELETED, UNLICENSED, SUSPENDED, NO_PHONE_NUMBER
*
* @param self::INVALID_REASON_* $invalidReason
*/
public function setInvalidReason($invalidReason)
{
$this->invalidReason = $invalidReason;
}
/**
* @return self::INVALID_REASON_*
*/
public function getInvalidReason()
{
return $this->invalidReason;
}
/**
* User's full name, or the ring group / auto attendant name. This may be
* unavailable if the entity was deleted.
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TransferError::class, 'Google_Service_AlertCenter_TransferError');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class TransferMisconfiguration extends \Google\Collection
{
protected $collection_key = 'errors';
protected $errorsType = TransferError::class;
protected $errorsDataType = 'array';
/**
* Details for each invalid transfer or forward.
*
* @param TransferError[] $errors
*/
public function setErrors($errors)
{
$this->errors = $errors;
}
/**
* @return TransferError[]
*/
public function getErrors()
{
return $this->errors;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TransferMisconfiguration::class, 'Google_Service_AlertCenter_TransferMisconfiguration');
@@ -0,0 +1,56 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class UndeleteAlertRequest extends \Google\Model
{
/**
* Optional. The unique identifier of the Google Workspace account of the
* customer the alert is associated with. The `customer_id` must have the
* initial "C" stripped (for example, `046psxkn`). Inferred from the caller
* identity if not provided. [Find your customer
* ID](https://support.google.com/cloudidentity/answer/10070793).
*
* @var string
*/
public $customerId;
/**
* Optional. The unique identifier of the Google Workspace account of the
* customer the alert is associated with. The `customer_id` must have the
* initial "C" stripped (for example, `046psxkn`). Inferred from the caller
* identity if not provided. [Find your customer
* ID](https://support.google.com/cloudidentity/answer/10070793).
*
* @param string $customerId
*/
public function setCustomerId($customerId)
{
$this->customerId = $customerId;
}
/**
* @return string
*/
public function getCustomerId()
{
return $this->customerId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UndeleteAlertRequest::class, 'Google_Service_AlertCenter_UndeleteAlertRequest');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class User extends \Google\Model
{
/**
* Display name of the user.
*
* @var string
*/
public $displayName;
/**
* Email address of the user.
*
* @var string
*/
public $emailAddress;
/**
* Display name of the user.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Email address of the user.
*
* @param string $emailAddress
*/
public function setEmailAddress($emailAddress)
{
$this->emailAddress = $emailAddress;
}
/**
* @return string
*/
public function getEmailAddress()
{
return $this->emailAddress;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(User::class, 'Google_Service_AlertCenter_User');
@@ -0,0 +1,48 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class UserChanges extends \Google\Model
{
/**
* Rule name
*
* @var string
*/
public $name;
/**
* Rule name
*
* @param string $name
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UserChanges::class, 'Google_Service_AlertCenter_UserChanges');
@@ -0,0 +1,70 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class UserDefinedDetectorInfo extends \Google\Model
{
/**
* Display name of the detector.
*
* @var string
*/
public $displayName;
/**
* Resource name that uniquely identifies the detector.
*
* @var string
*/
public $resourceName;
/**
* Display name of the detector.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* Resource name that uniquely identifies the detector.
*
* @param string $resourceName
*/
public function setResourceName($resourceName)
{
$this->resourceName = $resourceName;
}
/**
* @return string
*/
public function getResourceName()
{
return $this->resourceName;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(UserDefinedDetectorInfo::class, 'Google_Service_AlertCenter_UserDefinedDetectorInfo');
@@ -0,0 +1,167 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class VaultAcceleratedDeletion extends \Google\Model
{
/**
* Unspecified action type
*/
public const ACTION_TYPE_VAULT_ACCELERATED_DELETION_ACTION_TYPE_UNSPECIFIED = 'VAULT_ACCELERATED_DELETION_ACTION_TYPE_UNSPECIFIED';
/**
* AD Create action type
*/
public const ACTION_TYPE_VAULT_ACCELERATED_DELETION_ACTION_TYPE_CREATE = 'VAULT_ACCELERATED_DELETION_ACTION_TYPE_CREATE';
/**
* AD Cancel action type
*/
public const ACTION_TYPE_VAULT_ACCELERATED_DELETION_ACTION_TYPE_CANCEL = 'VAULT_ACCELERATED_DELETION_ACTION_TYPE_CANCEL';
/**
* Unspecified app type
*/
public const APP_TYPE_VAULT_ACCELERATED_DELETION_APP_TYPE_UNSPECIFIED = 'VAULT_ACCELERATED_DELETION_APP_TYPE_UNSPECIFIED';
/**
* Gmail app type
*/
public const APP_TYPE_VAULT_ACCELERATED_DELETION_APP_TYPE_GMAIL = 'VAULT_ACCELERATED_DELETION_APP_TYPE_GMAIL';
/**
* The action can be one of create and cancel
*
* @var string
*/
public $actionType;
/**
* Currentlty only Gmail is supported as app type
*
* @var string
*/
public $appType;
/**
* The UTC timestamp of when the AD request was created
*
* @var string
*/
public $createTime;
/**
* Accelerated deletion request ID intended to be used to construct the Vault
* UI link to the AD request
*
* @var string
*/
public $deletionRequestId;
/**
* Matter ID of the accelerated deletion request intended to be used to
* construct the Vault UI link to the AD request
*
* @var string
*/
public $matterId;
/**
* The action can be one of create and cancel
*
* Accepted values: VAULT_ACCELERATED_DELETION_ACTION_TYPE_UNSPECIFIED,
* VAULT_ACCELERATED_DELETION_ACTION_TYPE_CREATE,
* VAULT_ACCELERATED_DELETION_ACTION_TYPE_CANCEL
*
* @param self::ACTION_TYPE_* $actionType
*/
public function setActionType($actionType)
{
$this->actionType = $actionType;
}
/**
* @return self::ACTION_TYPE_*
*/
public function getActionType()
{
return $this->actionType;
}
/**
* Currentlty only Gmail is supported as app type
*
* Accepted values: VAULT_ACCELERATED_DELETION_APP_TYPE_UNSPECIFIED,
* VAULT_ACCELERATED_DELETION_APP_TYPE_GMAIL
*
* @param self::APP_TYPE_* $appType
*/
public function setAppType($appType)
{
$this->appType = $appType;
}
/**
* @return self::APP_TYPE_*
*/
public function getAppType()
{
return $this->appType;
}
/**
* The UTC timestamp of when the AD request was created
*
* @param string $createTime
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* Accelerated deletion request ID intended to be used to construct the Vault
* UI link to the AD request
*
* @param string $deletionRequestId
*/
public function setDeletionRequestId($deletionRequestId)
{
$this->deletionRequestId = $deletionRequestId;
}
/**
* @return string
*/
public function getDeletionRequestId()
{
return $this->deletionRequestId;
}
/**
* Matter ID of the accelerated deletion request intended to be used to
* construct the Vault UI link to the AD request
*
* @param string $matterId
*/
public function setMatterId($matterId)
{
$this->matterId = $matterId;
}
/**
* @return string
*/
public function getMatterId()
{
return $this->matterId;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VaultAcceleratedDeletion::class, 'Google_Service_AlertCenter_VaultAcceleratedDeletion');
@@ -0,0 +1,160 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class VoiceMisconfiguration extends \Google\Model
{
/**
* Entity type wasn't set.
*/
public const ENTITY_TYPE_ENTITY_TYPE_UNSPECIFIED = 'ENTITY_TYPE_UNSPECIFIED';
/**
* Invalid auto attendant.
*/
public const ENTITY_TYPE_AUTO_ATTENDANT = 'AUTO_ATTENDANT';
/**
* Invalid ring group.
*/
public const ENTITY_TYPE_RING_GROUP = 'RING_GROUP';
/**
* Name of the entity whose configuration is now invalid.
*
* @var string
*/
public $entityName;
/**
* Type of the entity whose configuration is now invalid.
*
* @var string
*/
public $entityType;
/**
* Link that the admin can follow to fix the issue.
*
* @var string
*/
public $fixUri;
protected $membersMisconfigurationType = TransferMisconfiguration::class;
protected $membersMisconfigurationDataType = '';
protected $transferMisconfigurationType = TransferMisconfiguration::class;
protected $transferMisconfigurationDataType = '';
protected $voicemailMisconfigurationType = VoicemailMisconfiguration::class;
protected $voicemailMisconfigurationDataType = '';
/**
* Name of the entity whose configuration is now invalid.
*
* @param string $entityName
*/
public function setEntityName($entityName)
{
$this->entityName = $entityName;
}
/**
* @return string
*/
public function getEntityName()
{
return $this->entityName;
}
/**
* Type of the entity whose configuration is now invalid.
*
* Accepted values: ENTITY_TYPE_UNSPECIFIED, AUTO_ATTENDANT, RING_GROUP
*
* @param self::ENTITY_TYPE_* $entityType
*/
public function setEntityType($entityType)
{
$this->entityType = $entityType;
}
/**
* @return self::ENTITY_TYPE_*
*/
public function getEntityType()
{
return $this->entityType;
}
/**
* Link that the admin can follow to fix the issue.
*
* @param string $fixUri
*/
public function setFixUri($fixUri)
{
$this->fixUri = $fixUri;
}
/**
* @return string
*/
public function getFixUri()
{
return $this->fixUri;
}
/**
* Issue(s) with members of a ring group.
*
* @param TransferMisconfiguration $membersMisconfiguration
*/
public function setMembersMisconfiguration(TransferMisconfiguration $membersMisconfiguration)
{
$this->membersMisconfiguration = $membersMisconfiguration;
}
/**
* @return TransferMisconfiguration
*/
public function getMembersMisconfiguration()
{
return $this->membersMisconfiguration;
}
/**
* Issue(s) with transferring or forwarding to an external entity.
*
* @param TransferMisconfiguration $transferMisconfiguration
*/
public function setTransferMisconfiguration(TransferMisconfiguration $transferMisconfiguration)
{
$this->transferMisconfiguration = $transferMisconfiguration;
}
/**
* @return TransferMisconfiguration
*/
public function getTransferMisconfiguration()
{
return $this->transferMisconfiguration;
}
/**
* Issue(s) with sending to voicemail.
*
* @param VoicemailMisconfiguration $voicemailMisconfiguration
*/
public function setVoicemailMisconfiguration(VoicemailMisconfiguration $voicemailMisconfiguration)
{
$this->voicemailMisconfiguration = $voicemailMisconfiguration;
}
/**
* @return VoicemailMisconfiguration
*/
public function getVoicemailMisconfiguration()
{
return $this->voicemailMisconfiguration;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VoiceMisconfiguration::class, 'Google_Service_AlertCenter_VoiceMisconfiguration');
@@ -0,0 +1,45 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class VoicemailMisconfiguration extends \Google\Collection
{
protected $collection_key = 'errors';
protected $errorsType = VoicemailRecipientError::class;
protected $errorsDataType = 'array';
/**
* Issue(s) with voicemail recipients.
*
* @param VoicemailRecipientError[] $errors
*/
public function setErrors($errors)
{
$this->errors = $errors;
}
/**
* @return VoicemailRecipientError[]
*/
public function getErrors()
{
return $this->errors;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VoicemailMisconfiguration::class, 'Google_Service_AlertCenter_VoicemailMisconfiguration');
@@ -0,0 +1,87 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\AlertCenter;
class VoicemailRecipientError extends \Google\Model
{
/**
* Reason wasn't specified.
*/
public const INVALID_REASON_EMAIL_INVALID_REASON_UNSPECIFIED = 'EMAIL_INVALID_REASON_UNSPECIFIED';
/**
* User can't receive emails due to insufficient quota.
*/
public const INVALID_REASON_OUT_OF_QUOTA = 'OUT_OF_QUOTA';
/**
* All recipients were deleted.
*/
public const INVALID_REASON_RECIPIENT_DELETED = 'RECIPIENT_DELETED';
/**
* Email address of the invalid recipient. This may be unavailable if the
* recipient was deleted.
*
* @var string
*/
public $email;
/**
* Reason for the error.
*
* @var string
*/
public $invalidReason;
/**
* Email address of the invalid recipient. This may be unavailable if the
* recipient was deleted.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* Reason for the error.
*
* Accepted values: EMAIL_INVALID_REASON_UNSPECIFIED, OUT_OF_QUOTA,
* RECIPIENT_DELETED
*
* @param self::INVALID_REASON_* $invalidReason
*/
public function setInvalidReason($invalidReason)
{
$this->invalidReason = $invalidReason;
}
/**
* @return self::INVALID_REASON_*
*/
public function getInvalidReason()
{
return $this->invalidReason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(VoicemailRecipientError::class, 'Google_Service_AlertCenter_VoicemailRecipientError');