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
+139
View File
@@ -0,0 +1,139 @@
<?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\Calendar;
class Acl extends \Google\Collection
{
protected $collection_key = 'items';
/**
* ETag of the collection.
*
* @var string
*/
public $etag;
protected $itemsType = AclRule::class;
protected $itemsDataType = 'array';
/**
* Type of the collection ("calendar#acl").
*
* @var string
*/
public $kind;
/**
* Token used to access the next page of this result. Omitted if no further
* results are available, in which case nextSyncToken is provided.
*
* @var string
*/
public $nextPageToken;
/**
* Token used at a later point in time to retrieve only the entries that have
* changed since this result was returned. Omitted if further results are
* available, in which case nextPageToken is provided.
*
* @var string
*/
public $nextSyncToken;
/**
* ETag of the collection.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* List of rules on the access control list.
*
* @param AclRule[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return AclRule[]
*/
public function getItems()
{
return $this->items;
}
/**
* Type of the collection ("calendar#acl").
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Token used to access the next page of this result. Omitted if no further
* results are available, in which case nextSyncToken is provided.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Token used at a later point in time to retrieve only the entries that have
* changed since this result was returned. Omitted if further results are
* available, in which case nextPageToken is provided.
*
* @param string $nextSyncToken
*/
public function setNextSyncToken($nextSyncToken)
{
$this->nextSyncToken = $nextSyncToken;
}
/**
* @return string
*/
public function getNextSyncToken()
{
return $this->nextSyncToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Acl::class, 'Google_Service_Calendar_Acl');
@@ -0,0 +1,154 @@
<?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\Calendar;
class AclRule extends \Google\Model
{
/**
* ETag of the resource.
*
* @var string
*/
public $etag;
/**
* Identifier of the Access Control List (ACL) rule. See Sharing calendars.
*
* @var string
*/
public $id;
/**
* Type of the resource ("calendar#aclRule").
*
* @var string
*/
public $kind;
/**
* The role assigned to the scope. Possible values are: - "none" - Provides no
* access. - "freeBusyReader" - Provides read access to free/busy
* information. - "reader" - Provides read access to the calendar. Private
* events will appear to users with reader access, but event details will be
* hidden. - "writer" - Provides read and write access to the calendar.
* Private events will appear to users with writer access, and event details
* will be visible. Provides read access to the calendar's ACLs. - "owner" -
* Provides manager access to the calendar. This role has all of the
* permissions of the writer role with the additional ability to modify access
* levels of other users. Important: the owner role is different from the
* calendar's data owner. A calendar has a single data owner, but can have
* multiple users with owner role.
*
* @var string
*/
public $role;
protected $scopeType = AclRuleScope::class;
protected $scopeDataType = '';
/**
* ETag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Identifier of the Access Control List (ACL) rule. See Sharing calendars.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Type of the resource ("calendar#aclRule").
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The role assigned to the scope. Possible values are: - "none" - Provides no
* access. - "freeBusyReader" - Provides read access to free/busy
* information. - "reader" - Provides read access to the calendar. Private
* events will appear to users with reader access, but event details will be
* hidden. - "writer" - Provides read and write access to the calendar.
* Private events will appear to users with writer access, and event details
* will be visible. Provides read access to the calendar's ACLs. - "owner" -
* Provides manager access to the calendar. This role has all of the
* permissions of the writer role with the additional ability to modify access
* levels of other users. Important: the owner role is different from the
* calendar's data owner. A calendar has a single data owner, but can have
* multiple users with owner role.
*
* @param string $role
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
/**
* The extent to which calendar access is granted by this ACL rule.
*
* @param AclRuleScope $scope
*/
public function setScope(AclRuleScope $scope)
{
$this->scope = $scope;
}
/**
* @return AclRuleScope
*/
public function getScope()
{
return $this->scope;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AclRule::class, 'Google_Service_Calendar_AclRule');
@@ -0,0 +1,80 @@
<?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\Calendar;
class AclRuleScope extends \Google\Model
{
/**
* The type of the scope. Possible values are: - "default" - The public scope.
* This is the default value. - "user" - Limits the scope to a single user.
* - "group" - Limits the scope to a group. - "domain" - Limits the scope to
* a domain. Note: The permissions granted to the "default", or public, scope
* apply to any user, authenticated or not.
*
* @var string
*/
public $type;
/**
* The email address of a user or group, or the name of a domain, depending on
* the scope type. Omitted for type "default".
*
* @var string
*/
public $value;
/**
* The type of the scope. Possible values are: - "default" - The public scope.
* This is the default value. - "user" - Limits the scope to a single user.
* - "group" - Limits the scope to a group. - "domain" - Limits the scope to
* a domain. Note: The permissions granted to the "default", or public, scope
* apply to any user, authenticated or not.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* The email address of a user or group, or the name of a domain, depending on
* the scope type. Omitted for type "default".
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(AclRuleScope::class, 'Google_Service_Calendar_AclRuleScope');
@@ -0,0 +1,251 @@
<?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\Calendar;
class Calendar extends \Google\Model
{
/**
* Whether this calendar automatically accepts invitations. Only valid for
* resource calendars.
*
* @var bool
*/
public $autoAcceptInvitations;
protected $conferencePropertiesType = ConferenceProperties::class;
protected $conferencePropertiesDataType = '';
/**
* The email of the owner of the calendar. Set only for secondary calendars.
* Read-only.
*
* @var string
*/
public $dataOwner;
/**
* Description of the calendar. Optional.
*
* @var string
*/
public $description;
/**
* ETag of the resource.
*
* @var string
*/
public $etag;
/**
* Identifier of the calendar. To retrieve IDs call the calendarList.list()
* method.
*
* @var string
*/
public $id;
/**
* Type of the resource ("calendar#calendar").
*
* @var string
*/
public $kind;
/**
* Geographic location of the calendar as free-form text. Optional.
*
* @var string
*/
public $location;
/**
* Title of the calendar.
*
* @var string
*/
public $summary;
/**
* The time zone of the calendar. (Formatted as an IANA Time Zone Database
* name, e.g. "Europe/Zurich".) Optional.
*
* @var string
*/
public $timeZone;
/**
* Whether this calendar automatically accepts invitations. Only valid for
* resource calendars.
*
* @param bool $autoAcceptInvitations
*/
public function setAutoAcceptInvitations($autoAcceptInvitations)
{
$this->autoAcceptInvitations = $autoAcceptInvitations;
}
/**
* @return bool
*/
public function getAutoAcceptInvitations()
{
return $this->autoAcceptInvitations;
}
/**
* Conferencing properties for this calendar, for example what types of
* conferences are allowed.
*
* @param ConferenceProperties $conferenceProperties
*/
public function setConferenceProperties(ConferenceProperties $conferenceProperties)
{
$this->conferenceProperties = $conferenceProperties;
}
/**
* @return ConferenceProperties
*/
public function getConferenceProperties()
{
return $this->conferenceProperties;
}
/**
* The email of the owner of the calendar. Set only for secondary calendars.
* Read-only.
*
* @param string $dataOwner
*/
public function setDataOwner($dataOwner)
{
$this->dataOwner = $dataOwner;
}
/**
* @return string
*/
public function getDataOwner()
{
return $this->dataOwner;
}
/**
* Description of the calendar. Optional.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* ETag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Identifier of the calendar. To retrieve IDs call the calendarList.list()
* method.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Type of the resource ("calendar#calendar").
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Geographic location of the calendar as free-form text. Optional.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* Title of the calendar.
*
* @param string $summary
*/
public function setSummary($summary)
{
$this->summary = $summary;
}
/**
* @return string
*/
public function getSummary()
{
return $this->summary;
}
/**
* The time zone of the calendar. (Formatted as an IANA Time Zone Database
* name, e.g. "Europe/Zurich".) Optional.
*
* @param string $timeZone
*/
public function setTimeZone($timeZone)
{
$this->timeZone = $timeZone;
}
/**
* @return string
*/
public function getTimeZone()
{
return $this->timeZone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Calendar::class, 'Google_Service_Calendar_Calendar');
@@ -0,0 +1,139 @@
<?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\Calendar;
class CalendarList extends \Google\Collection
{
protected $collection_key = 'items';
/**
* ETag of the collection.
*
* @var string
*/
public $etag;
protected $itemsType = CalendarListEntry::class;
protected $itemsDataType = 'array';
/**
* Type of the collection ("calendar#calendarList").
*
* @var string
*/
public $kind;
/**
* Token used to access the next page of this result. Omitted if no further
* results are available, in which case nextSyncToken is provided.
*
* @var string
*/
public $nextPageToken;
/**
* Token used at a later point in time to retrieve only the entries that have
* changed since this result was returned. Omitted if further results are
* available, in which case nextPageToken is provided.
*
* @var string
*/
public $nextSyncToken;
/**
* ETag of the collection.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* Calendars that are present on the user's calendar list.
*
* @param CalendarListEntry[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return CalendarListEntry[]
*/
public function getItems()
{
return $this->items;
}
/**
* Type of the collection ("calendar#calendarList").
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Token used to access the next page of this result. Omitted if no further
* results are available, in which case nextSyncToken is provided.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Token used at a later point in time to retrieve only the entries that have
* changed since this result was returned. Omitted if further results are
* available, in which case nextPageToken is provided.
*
* @param string $nextSyncToken
*/
public function setNextSyncToken($nextSyncToken)
{
$this->nextSyncToken = $nextSyncToken;
}
/**
* @return string
*/
public function getNextSyncToken()
{
return $this->nextSyncToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CalendarList::class, 'Google_Service_Calendar_CalendarList');
@@ -0,0 +1,535 @@
<?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\Calendar;
class CalendarListEntry extends \Google\Collection
{
protected $collection_key = 'defaultReminders';
/**
* The effective access role that the authenticated user has on the calendar.
* Read-only. Possible values are: - "freeBusyReader" - Provides read access
* to free/busy information. - "reader" - Provides read access to the
* calendar. Private events will appear to users with reader access, but event
* details will be hidden. - "writer" - Provides read and write access to the
* calendar. Private events will appear to users with writer access, and event
* details will be visible. - "owner" - Provides manager access to the
* calendar. This role has all of the permissions of the writer role with the
* additional ability to see and modify access levels of other users.
* Important: the owner role is different from the calendar's data owner. A
* calendar has a single data owner, but can have multiple users with owner
* role.
*
* @var string
*/
public $accessRole;
/**
* Whether this calendar automatically accepts invitations. Only valid for
* resource calendars. Read-only.
*
* @var bool
*/
public $autoAcceptInvitations;
/**
* The main color of the calendar in the hexadecimal format "#0088aa". This
* property supersedes the index-based colorId property. To set or change this
* property, you need to specify colorRgbFormat=true in the parameters of the
* insert, update and patch methods. Optional.
*
* @var string
*/
public $backgroundColor;
/**
* The color of the calendar. This is an ID referring to an entry in the
* calendar section of the colors definition (see the colors endpoint). This
* property is superseded by the backgroundColor and foregroundColor
* properties and can be ignored when using these properties. Optional.
*
* @var string
*/
public $colorId;
protected $conferencePropertiesType = ConferenceProperties::class;
protected $conferencePropertiesDataType = '';
/**
* The email of the owner of the calendar. Set only for secondary calendars.
* Read-only.
*
* @var string
*/
public $dataOwner;
protected $defaultRemindersType = EventReminder::class;
protected $defaultRemindersDataType = 'array';
/**
* Whether this calendar list entry has been deleted from the calendar list.
* Read-only. Optional. The default is False.
*
* @var bool
*/
public $deleted;
/**
* Description of the calendar. Optional. Read-only.
*
* @var string
*/
public $description;
/**
* ETag of the resource.
*
* @var string
*/
public $etag;
/**
* The foreground color of the calendar in the hexadecimal format "#ffffff".
* This property supersedes the index-based colorId property. To set or change
* this property, you need to specify colorRgbFormat=true in the parameters of
* the insert, update and patch methods. Optional.
*
* @var string
*/
public $foregroundColor;
/**
* Whether the calendar has been hidden from the list. Optional. The attribute
* is only returned when the calendar is hidden, in which case the value is
* true.
*
* @var bool
*/
public $hidden;
/**
* Identifier of the calendar.
*
* @var string
*/
public $id;
/**
* Type of the resource ("calendar#calendarListEntry").
*
* @var string
*/
public $kind;
/**
* Geographic location of the calendar as free-form text. Optional. Read-only.
*
* @var string
*/
public $location;
protected $notificationSettingsType = CalendarListEntryNotificationSettings::class;
protected $notificationSettingsDataType = '';
/**
* Whether the calendar is the primary calendar of the authenticated user.
* Read-only. Optional. The default is False.
*
* @var bool
*/
public $primary;
/**
* Whether the calendar content shows up in the calendar UI. Optional. The
* default is False.
*
* @var bool
*/
public $selected;
/**
* Title of the calendar. Read-only.
*
* @var string
*/
public $summary;
/**
* The summary that the authenticated user has set for this calendar.
* Optional.
*
* @var string
*/
public $summaryOverride;
/**
* The time zone of the calendar. Optional. Read-only.
*
* @var string
*/
public $timeZone;
/**
* The effective access role that the authenticated user has on the calendar.
* Read-only. Possible values are: - "freeBusyReader" - Provides read access
* to free/busy information. - "reader" - Provides read access to the
* calendar. Private events will appear to users with reader access, but event
* details will be hidden. - "writer" - Provides read and write access to the
* calendar. Private events will appear to users with writer access, and event
* details will be visible. - "owner" - Provides manager access to the
* calendar. This role has all of the permissions of the writer role with the
* additional ability to see and modify access levels of other users.
* Important: the owner role is different from the calendar's data owner. A
* calendar has a single data owner, but can have multiple users with owner
* role.
*
* @param string $accessRole
*/
public function setAccessRole($accessRole)
{
$this->accessRole = $accessRole;
}
/**
* @return string
*/
public function getAccessRole()
{
return $this->accessRole;
}
/**
* Whether this calendar automatically accepts invitations. Only valid for
* resource calendars. Read-only.
*
* @param bool $autoAcceptInvitations
*/
public function setAutoAcceptInvitations($autoAcceptInvitations)
{
$this->autoAcceptInvitations = $autoAcceptInvitations;
}
/**
* @return bool
*/
public function getAutoAcceptInvitations()
{
return $this->autoAcceptInvitations;
}
/**
* The main color of the calendar in the hexadecimal format "#0088aa". This
* property supersedes the index-based colorId property. To set or change this
* property, you need to specify colorRgbFormat=true in the parameters of the
* insert, update and patch methods. Optional.
*
* @param string $backgroundColor
*/
public function setBackgroundColor($backgroundColor)
{
$this->backgroundColor = $backgroundColor;
}
/**
* @return string
*/
public function getBackgroundColor()
{
return $this->backgroundColor;
}
/**
* The color of the calendar. This is an ID referring to an entry in the
* calendar section of the colors definition (see the colors endpoint). This
* property is superseded by the backgroundColor and foregroundColor
* properties and can be ignored when using these properties. Optional.
*
* @param string $colorId
*/
public function setColorId($colorId)
{
$this->colorId = $colorId;
}
/**
* @return string
*/
public function getColorId()
{
return $this->colorId;
}
/**
* Conferencing properties for this calendar, for example what types of
* conferences are allowed.
*
* @param ConferenceProperties $conferenceProperties
*/
public function setConferenceProperties(ConferenceProperties $conferenceProperties)
{
$this->conferenceProperties = $conferenceProperties;
}
/**
* @return ConferenceProperties
*/
public function getConferenceProperties()
{
return $this->conferenceProperties;
}
/**
* The email of the owner of the calendar. Set only for secondary calendars.
* Read-only.
*
* @param string $dataOwner
*/
public function setDataOwner($dataOwner)
{
$this->dataOwner = $dataOwner;
}
/**
* @return string
*/
public function getDataOwner()
{
return $this->dataOwner;
}
/**
* The default reminders that the authenticated user has for this calendar.
*
* @param EventReminder[] $defaultReminders
*/
public function setDefaultReminders($defaultReminders)
{
$this->defaultReminders = $defaultReminders;
}
/**
* @return EventReminder[]
*/
public function getDefaultReminders()
{
return $this->defaultReminders;
}
/**
* Whether this calendar list entry has been deleted from the calendar list.
* Read-only. Optional. The default is False.
*
* @param bool $deleted
*/
public function setDeleted($deleted)
{
$this->deleted = $deleted;
}
/**
* @return bool
*/
public function getDeleted()
{
return $this->deleted;
}
/**
* Description of the calendar. Optional. Read-only.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* ETag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* The foreground color of the calendar in the hexadecimal format "#ffffff".
* This property supersedes the index-based colorId property. To set or change
* this property, you need to specify colorRgbFormat=true in the parameters of
* the insert, update and patch methods. Optional.
*
* @param string $foregroundColor
*/
public function setForegroundColor($foregroundColor)
{
$this->foregroundColor = $foregroundColor;
}
/**
* @return string
*/
public function getForegroundColor()
{
return $this->foregroundColor;
}
/**
* Whether the calendar has been hidden from the list. Optional. The attribute
* is only returned when the calendar is hidden, in which case the value is
* true.
*
* @param bool $hidden
*/
public function setHidden($hidden)
{
$this->hidden = $hidden;
}
/**
* @return bool
*/
public function getHidden()
{
return $this->hidden;
}
/**
* Identifier of the calendar.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Type of the resource ("calendar#calendarListEntry").
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Geographic location of the calendar as free-form text. Optional. Read-only.
*
* @param string $location
*/
public function setLocation($location)
{
$this->location = $location;
}
/**
* @return string
*/
public function getLocation()
{
return $this->location;
}
/**
* The notifications that the authenticated user is receiving for this
* calendar.
*
* @param CalendarListEntryNotificationSettings $notificationSettings
*/
public function setNotificationSettings(CalendarListEntryNotificationSettings $notificationSettings)
{
$this->notificationSettings = $notificationSettings;
}
/**
* @return CalendarListEntryNotificationSettings
*/
public function getNotificationSettings()
{
return $this->notificationSettings;
}
/**
* Whether the calendar is the primary calendar of the authenticated user.
* Read-only. Optional. The default is False.
*
* @param bool $primary
*/
public function setPrimary($primary)
{
$this->primary = $primary;
}
/**
* @return bool
*/
public function getPrimary()
{
return $this->primary;
}
/**
* Whether the calendar content shows up in the calendar UI. Optional. The
* default is False.
*
* @param bool $selected
*/
public function setSelected($selected)
{
$this->selected = $selected;
}
/**
* @return bool
*/
public function getSelected()
{
return $this->selected;
}
/**
* Title of the calendar. Read-only.
*
* @param string $summary
*/
public function setSummary($summary)
{
$this->summary = $summary;
}
/**
* @return string
*/
public function getSummary()
{
return $this->summary;
}
/**
* The summary that the authenticated user has set for this calendar.
* Optional.
*
* @param string $summaryOverride
*/
public function setSummaryOverride($summaryOverride)
{
$this->summaryOverride = $summaryOverride;
}
/**
* @return string
*/
public function getSummaryOverride()
{
return $this->summaryOverride;
}
/**
* The time zone of the calendar. Optional. Read-only.
*
* @param string $timeZone
*/
public function setTimeZone($timeZone)
{
$this->timeZone = $timeZone;
}
/**
* @return string
*/
public function getTimeZone()
{
return $this->timeZone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CalendarListEntry::class, 'Google_Service_Calendar_CalendarListEntry');
@@ -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\Calendar;
class CalendarListEntryNotificationSettings extends \Google\Collection
{
protected $collection_key = 'notifications';
protected $notificationsType = CalendarNotification::class;
protected $notificationsDataType = 'array';
/**
* The list of notifications set for this calendar.
*
* @param CalendarNotification[] $notifications
*/
public function setNotifications($notifications)
{
$this->notifications = $notifications;
}
/**
* @return CalendarNotification[]
*/
public function getNotifications()
{
return $this->notifications;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CalendarListEntryNotificationSettings::class, 'Google_Service_Calendar_CalendarListEntryNotificationSettings');
@@ -0,0 +1,86 @@
<?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\Calendar;
class CalendarNotification extends \Google\Model
{
/**
* The method used to deliver the notification. The possible value is: -
* "email" - Notifications are sent via email. Required when adding a
* notification.
*
* @var string
*/
public $method;
/**
* The type of notification. Possible values are: - "eventCreation" -
* Notification sent when a new event is put on the calendar. - "eventChange"
* - Notification sent when an event is changed. - "eventCancellation" -
* Notification sent when an event is cancelled. - "eventResponse" -
* Notification sent when an attendee responds to the event invitation. -
* "agenda" - An agenda with the events of the day (sent out in the morning).
* Required when adding a notification.
*
* @var string
*/
public $type;
/**
* The method used to deliver the notification. The possible value is: -
* "email" - Notifications are sent via email. Required when adding a
* notification.
*
* @param string $method
*/
public function setMethod($method)
{
$this->method = $method;
}
/**
* @return string
*/
public function getMethod()
{
return $this->method;
}
/**
* The type of notification. Possible values are: - "eventCreation" -
* Notification sent when a new event is put on the calendar. - "eventChange"
* - Notification sent when an event is changed. - "eventCancellation" -
* Notification sent when an event is cancelled. - "eventResponse" -
* Notification sent when an attendee responds to the event invitation. -
* "agenda" - An agenda with the events of the day (sent out in the morning).
* Required when adding a notification.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CalendarNotification::class, 'Google_Service_Calendar_CalendarNotification');
@@ -0,0 +1,258 @@
<?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\Calendar;
class Channel extends \Google\Model
{
/**
* The address where notifications are delivered for this channel.
*
* @var string
*/
public $address;
/**
* Date and time of notification channel expiration, expressed as a Unix
* timestamp, in milliseconds. Optional.
*
* @var string
*/
public $expiration;
/**
* A UUID or similar unique string that identifies this channel.
*
* @var string
*/
public $id;
/**
* Identifies this as a notification channel used to watch for changes to a
* resource, which is "api#channel".
*
* @var string
*/
public $kind;
/**
* Additional parameters controlling delivery channel behavior. Optional.
*
* @var string[]
*/
public $params;
/**
* A Boolean value to indicate whether payload is wanted. Optional.
*
* @var bool
*/
public $payload;
/**
* An opaque ID that identifies the resource being watched on this channel.
* Stable across different API versions.
*
* @var string
*/
public $resourceId;
/**
* A version-specific identifier for the watched resource.
*
* @var string
*/
public $resourceUri;
/**
* An arbitrary string delivered to the target address with each notification
* delivered over this channel. Optional.
*
* @var string
*/
public $token;
/**
* The type of delivery mechanism used for this channel. Valid values are
* "web_hook" (or "webhook"). Both values refer to a channel where Http
* requests are used to deliver messages.
*
* @var string
*/
public $type;
/**
* The address where notifications are delivered for this channel.
*
* @param string $address
*/
public function setAddress($address)
{
$this->address = $address;
}
/**
* @return string
*/
public function getAddress()
{
return $this->address;
}
/**
* Date and time of notification channel expiration, expressed as a Unix
* timestamp, in milliseconds. Optional.
*
* @param string $expiration
*/
public function setExpiration($expiration)
{
$this->expiration = $expiration;
}
/**
* @return string
*/
public function getExpiration()
{
return $this->expiration;
}
/**
* A UUID or similar unique string that identifies this channel.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Identifies this as a notification channel used to watch for changes to a
* resource, which is "api#channel".
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Additional parameters controlling delivery channel behavior. Optional.
*
* @param string[] $params
*/
public function setParams($params)
{
$this->params = $params;
}
/**
* @return string[]
*/
public function getParams()
{
return $this->params;
}
/**
* A Boolean value to indicate whether payload is wanted. Optional.
*
* @param bool $payload
*/
public function setPayload($payload)
{
$this->payload = $payload;
}
/**
* @return bool
*/
public function getPayload()
{
return $this->payload;
}
/**
* An opaque ID that identifies the resource being watched on this channel.
* Stable across different API versions.
*
* @param string $resourceId
*/
public function setResourceId($resourceId)
{
$this->resourceId = $resourceId;
}
/**
* @return string
*/
public function getResourceId()
{
return $this->resourceId;
}
/**
* A version-specific identifier for the watched resource.
*
* @param string $resourceUri
*/
public function setResourceUri($resourceUri)
{
$this->resourceUri = $resourceUri;
}
/**
* @return string
*/
public function getResourceUri()
{
return $this->resourceUri;
}
/**
* An arbitrary string delivered to the target address with each notification
* delivered over this channel. Optional.
*
* @param string $token
*/
public function setToken($token)
{
$this->token = $token;
}
/**
* @return string
*/
public function getToken()
{
return $this->token;
}
/**
* The type of delivery mechanism used for this channel. Valid values are
* "web_hook" (or "webhook"). Both values refer to a channel where Http
* requests are used to deliver messages.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Channel::class, 'Google_Service_Calendar_Channel');
@@ -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\Calendar;
class ColorDefinition extends \Google\Model
{
/**
* The background color associated with this color definition.
*
* @var string
*/
public $background;
/**
* The foreground color that can be used to write on top of a background with
* 'background' color.
*
* @var string
*/
public $foreground;
/**
* The background color associated with this color definition.
*
* @param string $background
*/
public function setBackground($background)
{
$this->background = $background;
}
/**
* @return string
*/
public function getBackground()
{
return $this->background;
}
/**
* The foreground color that can be used to write on top of a background with
* 'background' color.
*
* @param string $foreground
*/
public function setForeground($foreground)
{
$this->foreground = $foreground;
}
/**
* @return string
*/
public function getForeground()
{
return $this->foreground;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ColorDefinition::class, 'Google_Service_Calendar_ColorDefinition');
+112
View File
@@ -0,0 +1,112 @@
<?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\Calendar;
class Colors extends \Google\Model
{
protected $calendarType = ColorDefinition::class;
protected $calendarDataType = 'map';
protected $eventType = ColorDefinition::class;
protected $eventDataType = 'map';
/**
* Type of the resource ("calendar#colors").
*
* @var string
*/
public $kind;
/**
* Last modification time of the color palette (as a RFC3339 timestamp). Read-
* only.
*
* @var string
*/
public $updated;
/**
* A global palette of calendar colors, mapping from the color ID to its
* definition. A calendarListEntry resource refers to one of these color IDs
* in its colorId field. Read-only.
*
* @param ColorDefinition[] $calendar
*/
public function setCalendar($calendar)
{
$this->calendar = $calendar;
}
/**
* @return ColorDefinition[]
*/
public function getCalendar()
{
return $this->calendar;
}
/**
* A global palette of event colors, mapping from the color ID to its
* definition. An event resource may refer to one of these color IDs in its
* colorId field. Read-only.
*
* @param ColorDefinition[] $event
*/
public function setEvent($event)
{
$this->event = $event;
}
/**
* @return ColorDefinition[]
*/
public function getEvent()
{
return $this->event;
}
/**
* Type of the resource ("calendar#colors").
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Last modification time of the color palette (as a RFC3339 timestamp). Read-
* only.
*
* @param string $updated
*/
public function setUpdated($updated)
{
$this->updated = $updated;
}
/**
* @return string
*/
public function getUpdated()
{
return $this->updated;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Colors::class, 'Google_Service_Calendar_Colors');
@@ -0,0 +1,194 @@
<?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\Calendar;
class ConferenceData extends \Google\Collection
{
protected $collection_key = 'entryPoints';
/**
* The ID of the conference. Can be used by developers to keep track of
* conferences, should not be displayed to users. The ID value is formed
* differently for each conference solution type: - eventHangout: ID is not
* set. (This conference type is deprecated.) - eventNamedHangout: ID is the
* name of the Hangout. (This conference type is deprecated.) - hangoutsMeet:
* ID is the 10-letter meeting code, for example aaa-bbbb-ccc. - addOn: ID is
* defined by the third-party provider. Optional.
*
* @var string
*/
public $conferenceId;
protected $conferenceSolutionType = ConferenceSolution::class;
protected $conferenceSolutionDataType = '';
protected $createRequestType = CreateConferenceRequest::class;
protected $createRequestDataType = '';
protected $entryPointsType = EntryPoint::class;
protected $entryPointsDataType = 'array';
/**
* Additional notes (such as instructions from the domain administrator, legal
* notices) to display to the user. Can contain HTML. The maximum length is
* 2048 characters. Optional.
*
* @var string
*/
public $notes;
protected $parametersType = ConferenceParameters::class;
protected $parametersDataType = '';
/**
* The signature of the conference data. Generated on server side. Unset for a
* conference with a failed create request. Optional for a conference with a
* pending create request.
*
* @var string
*/
public $signature;
/**
* The ID of the conference. Can be used by developers to keep track of
* conferences, should not be displayed to users. The ID value is formed
* differently for each conference solution type: - eventHangout: ID is not
* set. (This conference type is deprecated.) - eventNamedHangout: ID is the
* name of the Hangout. (This conference type is deprecated.) - hangoutsMeet:
* ID is the 10-letter meeting code, for example aaa-bbbb-ccc. - addOn: ID is
* defined by the third-party provider. Optional.
*
* @param string $conferenceId
*/
public function setConferenceId($conferenceId)
{
$this->conferenceId = $conferenceId;
}
/**
* @return string
*/
public function getConferenceId()
{
return $this->conferenceId;
}
/**
* The conference solution, such as Google Meet. Unset for a conference with a
* failed create request. Either conferenceSolution and at least one
* entryPoint, or createRequest is required.
*
* @param ConferenceSolution $conferenceSolution
*/
public function setConferenceSolution(ConferenceSolution $conferenceSolution)
{
$this->conferenceSolution = $conferenceSolution;
}
/**
* @return ConferenceSolution
*/
public function getConferenceSolution()
{
return $this->conferenceSolution;
}
/**
* A request to generate a new conference and attach it to the event. The data
* is generated asynchronously. To see whether the data is present check the
* status field. Either conferenceSolution and at least one entryPoint, or
* createRequest is required.
*
* @param CreateConferenceRequest $createRequest
*/
public function setCreateRequest(CreateConferenceRequest $createRequest)
{
$this->createRequest = $createRequest;
}
/**
* @return CreateConferenceRequest
*/
public function getCreateRequest()
{
return $this->createRequest;
}
/**
* Information about individual conference entry points, such as URLs or phone
* numbers. All of them must belong to the same conference. Either
* conferenceSolution and at least one entryPoint, or createRequest is
* required.
*
* @param EntryPoint[] $entryPoints
*/
public function setEntryPoints($entryPoints)
{
$this->entryPoints = $entryPoints;
}
/**
* @return EntryPoint[]
*/
public function getEntryPoints()
{
return $this->entryPoints;
}
/**
* Additional notes (such as instructions from the domain administrator, legal
* notices) to display to the user. Can contain HTML. The maximum length is
* 2048 characters. Optional.
*
* @param string $notes
*/
public function setNotes($notes)
{
$this->notes = $notes;
}
/**
* @return string
*/
public function getNotes()
{
return $this->notes;
}
/**
* Additional properties related to a conference. An example would be a
* solution-specific setting for enabling video streaming.
*
* @param ConferenceParameters $parameters
*/
public function setParameters(ConferenceParameters $parameters)
{
$this->parameters = $parameters;
}
/**
* @return ConferenceParameters
*/
public function getParameters()
{
return $this->parameters;
}
/**
* The signature of the conference data. Generated on server side. Unset for a
* conference with a failed create request. Optional for a conference with a
* pending create request.
*
* @param string $signature
*/
public function setSignature($signature)
{
$this->signature = $signature;
}
/**
* @return string
*/
public function getSignature()
{
return $this->signature;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConferenceData::class, 'Google_Service_Calendar_ConferenceData');
@@ -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\Calendar;
class ConferenceParameters extends \Google\Model
{
protected $addOnParametersType = ConferenceParametersAddOnParameters::class;
protected $addOnParametersDataType = '';
/**
* Additional add-on specific data.
*
* @param ConferenceParametersAddOnParameters $addOnParameters
*/
public function setAddOnParameters(ConferenceParametersAddOnParameters $addOnParameters)
{
$this->addOnParameters = $addOnParameters;
}
/**
* @return ConferenceParametersAddOnParameters
*/
public function getAddOnParameters()
{
return $this->addOnParameters;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConferenceParameters::class, 'Google_Service_Calendar_ConferenceParameters');
@@ -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\Calendar;
class ConferenceParametersAddOnParameters extends \Google\Model
{
/**
* @var string[]
*/
public $parameters;
/**
* @param string[] $parameters
*/
public function setParameters($parameters)
{
$this->parameters = $parameters;
}
/**
* @return string[]
*/
public function getParameters()
{
return $this->parameters;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConferenceParametersAddOnParameters::class, 'Google_Service_Calendar_ConferenceParametersAddOnParameters');
@@ -0,0 +1,53 @@
<?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\Calendar;
class ConferenceProperties extends \Google\Collection
{
protected $collection_key = 'allowedConferenceSolutionTypes';
/**
* The types of conference solutions that are supported for this calendar. The
* possible values are: - "eventHangout" - "eventNamedHangout" -
* "hangoutsMeet" Optional.
*
* @var string[]
*/
public $allowedConferenceSolutionTypes;
/**
* The types of conference solutions that are supported for this calendar. The
* possible values are: - "eventHangout" - "eventNamedHangout" -
* "hangoutsMeet" Optional.
*
* @param string[] $allowedConferenceSolutionTypes
*/
public function setAllowedConferenceSolutionTypes($allowedConferenceSolutionTypes)
{
$this->allowedConferenceSolutionTypes = $allowedConferenceSolutionTypes;
}
/**
* @return string[]
*/
public function getAllowedConferenceSolutionTypes()
{
return $this->allowedConferenceSolutionTypes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConferenceProperties::class, 'Google_Service_Calendar_ConferenceProperties');
@@ -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\Calendar;
class ConferenceRequestStatus extends \Google\Model
{
/**
* The current status of the conference create request. Read-only. The
* possible values are: - "pending": the conference create request is still
* being processed. - "success": the conference create request succeeded, the
* entry points are populated. - "failure": the conference create request
* failed, there are no entry points.
*
* @var string
*/
public $statusCode;
/**
* The current status of the conference create request. Read-only. The
* possible values are: - "pending": the conference create request is still
* being processed. - "success": the conference create request succeeded, the
* entry points are populated. - "failure": the conference create request
* failed, there are no entry points.
*
* @param string $statusCode
*/
public function setStatusCode($statusCode)
{
$this->statusCode = $statusCode;
}
/**
* @return string
*/
public function getStatusCode()
{
return $this->statusCode;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConferenceRequestStatus::class, 'Google_Service_Calendar_ConferenceRequestStatus');
@@ -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\Calendar;
class ConferenceSolution extends \Google\Model
{
/**
* The user-visible icon for this solution.
*
* @var string
*/
public $iconUri;
protected $keyType = ConferenceSolutionKey::class;
protected $keyDataType = '';
/**
* The user-visible name of this solution. Not localized.
*
* @var string
*/
public $name;
/**
* The user-visible icon for this solution.
*
* @param string $iconUri
*/
public function setIconUri($iconUri)
{
$this->iconUri = $iconUri;
}
/**
* @return string
*/
public function getIconUri()
{
return $this->iconUri;
}
/**
* The key which can uniquely identify the conference solution for this event.
*
* @param ConferenceSolutionKey $key
*/
public function setKey(ConferenceSolutionKey $key)
{
$this->key = $key;
}
/**
* @return ConferenceSolutionKey
*/
public function getKey()
{
return $this->key;
}
/**
* The user-visible name of this solution. Not localized.
*
* @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(ConferenceSolution::class, 'Google_Service_Calendar_ConferenceSolution');
@@ -0,0 +1,64 @@
<?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\Calendar;
class ConferenceSolutionKey extends \Google\Model
{
/**
* The conference solution type. If a client encounters an unfamiliar or empty
* type, it should still be able to display the entry points. However, it
* should disallow modifications. The possible values are: - "eventHangout"
* for Hangouts for consumers (deprecated; existing events may show this
* conference solution type but new conferences cannot be created) -
* "eventNamedHangout" for classic Hangouts for Google Workspace users
* (deprecated; existing events may show this conference solution type but new
* conferences cannot be created) - "hangoutsMeet" for Google Meet
* (http://meet.google.com) - "addOn" for 3P conference providers
*
* @var string
*/
public $type;
/**
* The conference solution type. If a client encounters an unfamiliar or empty
* type, it should still be able to display the entry points. However, it
* should disallow modifications. The possible values are: - "eventHangout"
* for Hangouts for consumers (deprecated; existing events may show this
* conference solution type but new conferences cannot be created) -
* "eventNamedHangout" for classic Hangouts for Google Workspace users
* (deprecated; existing events may show this conference solution type but new
* conferences cannot be created) - "hangoutsMeet" for Google Meet
* (http://meet.google.com) - "addOn" for 3P conference providers
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ConferenceSolutionKey::class, 'Google_Service_Calendar_ConferenceSolutionKey');
@@ -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\Calendar;
class CreateConferenceRequest extends \Google\Model
{
protected $conferenceSolutionKeyType = ConferenceSolutionKey::class;
protected $conferenceSolutionKeyDataType = '';
/**
* The client-generated unique ID for this request. Clients should regenerate
* this ID for every new request. If an ID provided is the same as for the
* previous request, the request is ignored.
*
* @var string
*/
public $requestId;
protected $statusType = ConferenceRequestStatus::class;
protected $statusDataType = '';
/**
* The conference solution, such as Hangouts or Google Meet.
*
* @param ConferenceSolutionKey $conferenceSolutionKey
*/
public function setConferenceSolutionKey(ConferenceSolutionKey $conferenceSolutionKey)
{
$this->conferenceSolutionKey = $conferenceSolutionKey;
}
/**
* @return ConferenceSolutionKey
*/
public function getConferenceSolutionKey()
{
return $this->conferenceSolutionKey;
}
/**
* The client-generated unique ID for this request. Clients should regenerate
* this ID for every new request. If an ID provided is the same as for the
* previous request, the request is ignored.
*
* @param string $requestId
*/
public function setRequestId($requestId)
{
$this->requestId = $requestId;
}
/**
* @return string
*/
public function getRequestId()
{
return $this->requestId;
}
/**
* The status of the conference create request.
*
* @param ConferenceRequestStatus $status
*/
public function setStatus(ConferenceRequestStatus $status)
{
$this->status = $status;
}
/**
* @return ConferenceRequestStatus
*/
public function getStatus()
{
return $this->status;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreateConferenceRequest::class, 'Google_Service_Calendar_CreateConferenceRequest');
@@ -0,0 +1,325 @@
<?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\Calendar;
class EntryPoint extends \Google\Collection
{
protected $collection_key = 'entryPointFeatures';
/**
* The access code to access the conference. The maximum length is 128
* characters. When creating new conference data, populate only the subset of
* {meetingCode, accessCode, passcode, password, pin} fields that match the
* terminology that the conference provider uses. Only the populated fields
* should be displayed. Optional.
*
* @var string
*/
public $accessCode;
/**
* Features of the entry point, such as being toll or toll-free. One entry
* point can have multiple features. However, toll and toll-free cannot be
* both set on the same entry point.
*
* @var string[]
*/
public $entryPointFeatures;
/**
* The type of the conference entry point. Possible values are: - "video" -
* joining a conference over HTTP. A conference can have zero or one video
* entry point. - "phone" - joining a conference by dialing a phone number. A
* conference can have zero or more phone entry points. - "sip" - joining a
* conference over SIP. A conference can have zero or one sip entry point. -
* "more" - further conference joining instructions, for example additional
* phone numbers. A conference can have zero or one more entry point. A
* conference with only a more entry point is not a valid conference.
*
* @var string
*/
public $entryPointType;
/**
* The label for the URI. Visible to end users. Not localized. The maximum
* length is 512 characters. Examples: - for video: meet.google.com/aaa-
* bbbb-ccc - for phone: +1 123 268 2601 - for sip: 12345678@altostrat.com -
* for more: should not be filled Optional.
*
* @var string
*/
public $label;
/**
* The meeting code to access the conference. The maximum length is 128
* characters. When creating new conference data, populate only the subset of
* {meetingCode, accessCode, passcode, password, pin} fields that match the
* terminology that the conference provider uses. Only the populated fields
* should be displayed. Optional.
*
* @var string
*/
public $meetingCode;
/**
* The passcode to access the conference. The maximum length is 128
* characters. When creating new conference data, populate only the subset of
* {meetingCode, accessCode, passcode, password, pin} fields that match the
* terminology that the conference provider uses. Only the populated fields
* should be displayed.
*
* @var string
*/
public $passcode;
/**
* The password to access the conference. The maximum length is 128
* characters. When creating new conference data, populate only the subset of
* {meetingCode, accessCode, passcode, password, pin} fields that match the
* terminology that the conference provider uses. Only the populated fields
* should be displayed. Optional.
*
* @var string
*/
public $password;
/**
* The PIN to access the conference. The maximum length is 128 characters.
* When creating new conference data, populate only the subset of
* {meetingCode, accessCode, passcode, password, pin} fields that match the
* terminology that the conference provider uses. Only the populated fields
* should be displayed. Optional.
*
* @var string
*/
public $pin;
/**
* The CLDR/ISO 3166 region code for the country associated with this phone
* access. Example: "SE" for Sweden. Calendar backend will populate this field
* only for EntryPointType.PHONE.
*
* @var string
*/
public $regionCode;
/**
* The URI of the entry point. The maximum length is 1300 characters. Format:
* - for video, http: or https: schema is required. - for phone, tel: schema
* is required. The URI should include the entire dial sequence (e.g.,
* tel:+12345678900,,,123456789;1234). - for sip, sip: schema is required,
* e.g., sip:12345678@myprovider.com. - for more, http: or https: schema is
* required.
*
* @var string
*/
public $uri;
/**
* The access code to access the conference. The maximum length is 128
* characters. When creating new conference data, populate only the subset of
* {meetingCode, accessCode, passcode, password, pin} fields that match the
* terminology that the conference provider uses. Only the populated fields
* should be displayed. Optional.
*
* @param string $accessCode
*/
public function setAccessCode($accessCode)
{
$this->accessCode = $accessCode;
}
/**
* @return string
*/
public function getAccessCode()
{
return $this->accessCode;
}
/**
* Features of the entry point, such as being toll or toll-free. One entry
* point can have multiple features. However, toll and toll-free cannot be
* both set on the same entry point.
*
* @param string[] $entryPointFeatures
*/
public function setEntryPointFeatures($entryPointFeatures)
{
$this->entryPointFeatures = $entryPointFeatures;
}
/**
* @return string[]
*/
public function getEntryPointFeatures()
{
return $this->entryPointFeatures;
}
/**
* The type of the conference entry point. Possible values are: - "video" -
* joining a conference over HTTP. A conference can have zero or one video
* entry point. - "phone" - joining a conference by dialing a phone number. A
* conference can have zero or more phone entry points. - "sip" - joining a
* conference over SIP. A conference can have zero or one sip entry point. -
* "more" - further conference joining instructions, for example additional
* phone numbers. A conference can have zero or one more entry point. A
* conference with only a more entry point is not a valid conference.
*
* @param string $entryPointType
*/
public function setEntryPointType($entryPointType)
{
$this->entryPointType = $entryPointType;
}
/**
* @return string
*/
public function getEntryPointType()
{
return $this->entryPointType;
}
/**
* The label for the URI. Visible to end users. Not localized. The maximum
* length is 512 characters. Examples: - for video: meet.google.com/aaa-
* bbbb-ccc - for phone: +1 123 268 2601 - for sip: 12345678@altostrat.com -
* for more: should not be filled Optional.
*
* @param string $label
*/
public function setLabel($label)
{
$this->label = $label;
}
/**
* @return string
*/
public function getLabel()
{
return $this->label;
}
/**
* The meeting code to access the conference. The maximum length is 128
* characters. When creating new conference data, populate only the subset of
* {meetingCode, accessCode, passcode, password, pin} fields that match the
* terminology that the conference provider uses. Only the populated fields
* should be displayed. Optional.
*
* @param string $meetingCode
*/
public function setMeetingCode($meetingCode)
{
$this->meetingCode = $meetingCode;
}
/**
* @return string
*/
public function getMeetingCode()
{
return $this->meetingCode;
}
/**
* The passcode to access the conference. The maximum length is 128
* characters. When creating new conference data, populate only the subset of
* {meetingCode, accessCode, passcode, password, pin} fields that match the
* terminology that the conference provider uses. Only the populated fields
* should be displayed.
*
* @param string $passcode
*/
public function setPasscode($passcode)
{
$this->passcode = $passcode;
}
/**
* @return string
*/
public function getPasscode()
{
return $this->passcode;
}
/**
* The password to access the conference. The maximum length is 128
* characters. When creating new conference data, populate only the subset of
* {meetingCode, accessCode, passcode, password, pin} fields that match the
* terminology that the conference provider uses. Only the populated fields
* should be displayed. Optional.
*
* @param string $password
*/
public function setPassword($password)
{
$this->password = $password;
}
/**
* @return string
*/
public function getPassword()
{
return $this->password;
}
/**
* The PIN to access the conference. The maximum length is 128 characters.
* When creating new conference data, populate only the subset of
* {meetingCode, accessCode, passcode, password, pin} fields that match the
* terminology that the conference provider uses. Only the populated fields
* should be displayed. Optional.
*
* @param string $pin
*/
public function setPin($pin)
{
$this->pin = $pin;
}
/**
* @return string
*/
public function getPin()
{
return $this->pin;
}
/**
* The CLDR/ISO 3166 region code for the country associated with this phone
* access. Example: "SE" for Sweden. Calendar backend will populate this field
* only for EntryPointType.PHONE.
*
* @param string $regionCode
*/
public function setRegionCode($regionCode)
{
$this->regionCode = $regionCode;
}
/**
* @return string
*/
public function getRegionCode()
{
return $this->regionCode;
}
/**
* The URI of the entry point. The maximum length is 1300 characters. Format:
* - for video, http: or https: schema is required. - for phone, tel: schema
* is required. The URI should include the entire dial sequence (e.g.,
* tel:+12345678900,,,123456789;1234). - for sip, sip: schema is required,
* e.g., sip:12345678@myprovider.com. - for more, http: or https: schema is
* required.
*
* @param string $uri
*/
public function setUri($uri)
{
$this->uri = $uri;
}
/**
* @return string
*/
public function getUri()
{
return $this->uri;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EntryPoint::class, 'Google_Service_Calendar_EntryPoint');
+84
View File
@@ -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\Calendar;
class Error extends \Google\Model
{
/**
* Domain, or broad category, of the error.
*
* @var string
*/
public $domain;
/**
* Specific reason for the error. Some of the possible values are: -
* "groupTooBig" - The group of users requested is too large for a single
* query. - "tooManyCalendarsRequested" - The number of calendars requested
* is too large for a single query. - "notFound" - The requested resource was
* not found. - "internalError" - The API service has encountered an internal
* error. Additional error types may be added in the future, so clients
* should gracefully handle additional error statuses not included in this
* list.
*
* @var string
*/
public $reason;
/**
* Domain, or broad category, of the error.
*
* @param string $domain
*/
public function setDomain($domain)
{
$this->domain = $domain;
}
/**
* @return string
*/
public function getDomain()
{
return $this->domain;
}
/**
* Specific reason for the error. Some of the possible values are: -
* "groupTooBig" - The group of users requested is too large for a single
* query. - "tooManyCalendarsRequested" - The number of calendars requested
* is too large for a single query. - "notFound" - The requested resource was
* not found. - "internalError" - The API service has encountered an internal
* error. Additional error types may be added in the future, so clients
* should gracefully handle additional error statuses not included in this
* list.
*
* @param string $reason
*/
public function setReason($reason)
{
$this->reason = $reason;
}
/**
* @return string
*/
public function getReason()
{
return $this->reason;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Error::class, 'Google_Service_Calendar_Error');
File diff suppressed because it is too large Load Diff
@@ -0,0 +1,144 @@
<?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\Calendar;
class EventAttachment extends \Google\Model
{
/**
* ID of the attached file. Read-only. For Google Drive files, this is the ID
* of the corresponding Files resource entry in the Drive API.
*
* @var string
*/
public $fileId;
/**
* URL link to the attachment. For adding Google Drive file attachments use
* the same format as in alternateLink property of the Files resource in the
* Drive API. Required when adding an attachment.
*
* @var string
*/
public $fileUrl;
/**
* URL link to the attachment's icon. This field can only be modified for
* custom third-party attachments.
*
* @var string
*/
public $iconLink;
/**
* Internet media type (MIME type) of the attachment.
*
* @var string
*/
public $mimeType;
/**
* Attachment title.
*
* @var string
*/
public $title;
/**
* ID of the attached file. Read-only. For Google Drive files, this is the ID
* of the corresponding Files resource entry in the Drive API.
*
* @param string $fileId
*/
public function setFileId($fileId)
{
$this->fileId = $fileId;
}
/**
* @return string
*/
public function getFileId()
{
return $this->fileId;
}
/**
* URL link to the attachment. For adding Google Drive file attachments use
* the same format as in alternateLink property of the Files resource in the
* Drive API. Required when adding an attachment.
*
* @param string $fileUrl
*/
public function setFileUrl($fileUrl)
{
$this->fileUrl = $fileUrl;
}
/**
* @return string
*/
public function getFileUrl()
{
return $this->fileUrl;
}
/**
* URL link to the attachment's icon. This field can only be modified for
* custom third-party attachments.
*
* @param string $iconLink
*/
public function setIconLink($iconLink)
{
$this->iconLink = $iconLink;
}
/**
* @return string
*/
public function getIconLink()
{
return $this->iconLink;
}
/**
* Internet media type (MIME type) of the attachment.
*
* @param string $mimeType
*/
public function setMimeType($mimeType)
{
$this->mimeType = $mimeType;
}
/**
* @return string
*/
public function getMimeType()
{
return $this->mimeType;
}
/**
* Attachment title.
*
* @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(EventAttachment::class, 'Google_Service_Calendar_EventAttachment');
@@ -0,0 +1,310 @@
<?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\Calendar;
class EventAttendee extends \Google\Model
{
/**
* Number of additional guests. Optional. The default is 0.
*
* @var int
*/
public $additionalGuests;
/**
* If present, indicates the status of an asynchronous operation ongoing for
* this attendee (e.g. listing of members of large attendee groups). Read-
* only. The default is to not be present. Possible values are: -
* "inProgress" - The asynchronous operation is in progress. - (not present)
* - Otherwise.
*
* @var string
*/
public $asyncOperation;
/**
* The attendee's response comment. Optional.
*
* @var string
*/
public $comment;
/**
* The attendee's name, if available. Optional.
*
* @var string
*/
public $displayName;
/**
* The attendee's email address, if available. This field must be present when
* adding an attendee. It must be a valid email address as per RFC5322.
* Required when adding an attendee.
*
* @var string
*/
public $email;
/**
* The attendee's Profile ID, if available.
*
* @var string
*/
public $id;
/**
* Whether this is an optional attendee. Optional. The default is False.
*
* @var bool
*/
public $optional;
/**
* Whether the attendee is the organizer of the event. Read-only. The default
* is False.
*
* @var bool
*/
public $organizer;
/**
* Whether the attendee is a resource. Can only be set when the attendee is
* added to the event for the first time. Subsequent modifications are
* ignored. Optional. The default is False.
*
* @var bool
*/
public $resource;
/**
* The attendee's response status. Possible values are: - "needsAction" - The
* attendee has not responded to the invitation (recommended for new events).
* - "declined" - The attendee has declined the invitation. - "tentative" -
* The attendee has tentatively accepted the invitation. - "accepted" - The
* attendee has accepted the invitation. Warning: If you add an event using
* the values declined, tentative, or accepted, attendees with the "Add
* invitations to my calendar" setting set to "When I respond to invitation in
* email" or "Only if the sender is known" might have their response reset to
* needsAction and won't see an event in their calendar unless they change
* their response in the event invitation email. Furthermore, if more than 200
* guests are invited to the event, response status is not propagated to the
* guests.
*
* @var string
*/
public $responseStatus;
/**
* Whether this entry represents the calendar on which this copy of the event
* appears. Read-only. The default is False.
*
* @var bool
*/
public $self;
/**
* Number of additional guests. Optional. The default is 0.
*
* @param int $additionalGuests
*/
public function setAdditionalGuests($additionalGuests)
{
$this->additionalGuests = $additionalGuests;
}
/**
* @return int
*/
public function getAdditionalGuests()
{
return $this->additionalGuests;
}
/**
* If present, indicates the status of an asynchronous operation ongoing for
* this attendee (e.g. listing of members of large attendee groups). Read-
* only. The default is to not be present. Possible values are: -
* "inProgress" - The asynchronous operation is in progress. - (not present)
* - Otherwise.
*
* @param string $asyncOperation
*/
public function setAsyncOperation($asyncOperation)
{
$this->asyncOperation = $asyncOperation;
}
/**
* @return string
*/
public function getAsyncOperation()
{
return $this->asyncOperation;
}
/**
* The attendee's response comment. Optional.
*
* @param string $comment
*/
public function setComment($comment)
{
$this->comment = $comment;
}
/**
* @return string
*/
public function getComment()
{
return $this->comment;
}
/**
* The attendee's name, if available. Optional.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The attendee's email address, if available. This field must be present when
* adding an attendee. It must be a valid email address as per RFC5322.
* Required when adding an attendee.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* The attendee's Profile ID, if available.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Whether this is an optional attendee. Optional. The default is False.
*
* @param bool $optional
*/
public function setOptional($optional)
{
$this->optional = $optional;
}
/**
* @return bool
*/
public function getOptional()
{
return $this->optional;
}
/**
* Whether the attendee is the organizer of the event. Read-only. The default
* is False.
*
* @param bool $organizer
*/
public function setOrganizer($organizer)
{
$this->organizer = $organizer;
}
/**
* @return bool
*/
public function getOrganizer()
{
return $this->organizer;
}
/**
* Whether the attendee is a resource. Can only be set when the attendee is
* added to the event for the first time. Subsequent modifications are
* ignored. Optional. The default is False.
*
* @param bool $resource
*/
public function setResource($resource)
{
$this->resource = $resource;
}
/**
* @return bool
*/
public function getResource()
{
return $this->resource;
}
/**
* The attendee's response status. Possible values are: - "needsAction" - The
* attendee has not responded to the invitation (recommended for new events).
* - "declined" - The attendee has declined the invitation. - "tentative" -
* The attendee has tentatively accepted the invitation. - "accepted" - The
* attendee has accepted the invitation. Warning: If you add an event using
* the values declined, tentative, or accepted, attendees with the "Add
* invitations to my calendar" setting set to "When I respond to invitation in
* email" or "Only if the sender is known" might have their response reset to
* needsAction and won't see an event in their calendar unless they change
* their response in the event invitation email. Furthermore, if more than 200
* guests are invited to the event, response status is not propagated to the
* guests.
*
* @param string $responseStatus
*/
public function setResponseStatus($responseStatus)
{
$this->responseStatus = $responseStatus;
}
/**
* @return string
*/
public function getResponseStatus()
{
return $this->responseStatus;
}
/**
* Whether this entry represents the calendar on which this copy of the event
* appears. Read-only. The default is False.
*
* @param bool $self
*/
public function setSelf($self)
{
$this->self = $self;
}
/**
* @return bool
*/
public function getSelf()
{
return $this->self;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventAttendee::class, 'Google_Service_Calendar_EventAttendee');
@@ -0,0 +1,114 @@
<?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\Calendar;
class EventBirthdayProperties extends \Google\Model
{
/**
* Resource name of the contact this birthday event is linked to. This can be
* used to fetch contact details from People API. Format: "people/c12345".
* Read-only.
*
* @var string
*/
public $contact;
/**
* Custom type label specified for this event. This is populated if
* birthdayProperties.type is set to "custom". Read-only.
*
* @var string
*/
public $customTypeName;
/**
* Type of birthday or special event. Possible values are: - "anniversary" -
* An anniversary other than birthday. Always has a contact. - "birthday" - A
* birthday event. This is the default value. - "custom" - A special date
* whose label is further specified in the customTypeName field. Always has a
* contact. - "other" - A special date which does not fall into the other
* categories, and does not have a custom label. Always has a contact. -
* "self" - Calendar owner's own birthday. Cannot have a contact. The
* Calendar API only supports creating events with the type "birthday". The
* type cannot be changed after the event is created.
*
* @var string
*/
public $type;
/**
* Resource name of the contact this birthday event is linked to. This can be
* used to fetch contact details from People API. Format: "people/c12345".
* Read-only.
*
* @param string $contact
*/
public function setContact($contact)
{
$this->contact = $contact;
}
/**
* @return string
*/
public function getContact()
{
return $this->contact;
}
/**
* Custom type label specified for this event. This is populated if
* birthdayProperties.type is set to "custom". Read-only.
*
* @param string $customTypeName
*/
public function setCustomTypeName($customTypeName)
{
$this->customTypeName = $customTypeName;
}
/**
* @return string
*/
public function getCustomTypeName()
{
return $this->customTypeName;
}
/**
* Type of birthday or special event. Possible values are: - "anniversary" -
* An anniversary other than birthday. Always has a contact. - "birthday" - A
* birthday event. This is the default value. - "custom" - A special date
* whose label is further specified in the customTypeName field. Always has a
* contact. - "other" - A special date which does not fall into the other
* categories, and does not have a custom label. Always has a contact. -
* "self" - Calendar owner's own birthday. Cannot have a contact. The
* Calendar API only supports creating events with the type "birthday". The
* type cannot be changed after the event is created.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventBirthdayProperties::class, 'Google_Service_Calendar_EventBirthdayProperties');
@@ -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\Calendar;
class EventCreator extends \Google\Model
{
/**
* The creator's name, if available.
*
* @var string
*/
public $displayName;
/**
* The creator's email address, if available.
*
* @var string
*/
public $email;
/**
* The creator's Profile ID, if available.
*
* @var string
*/
public $id;
/**
* Whether the creator corresponds to the calendar on which this copy of the
* event appears. Read-only. The default is False.
*
* @var bool
*/
public $self;
/**
* The creator's name, if available.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The creator's email address, if available.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* The creator's Profile ID, if available.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Whether the creator corresponds to the calendar on which this copy of the
* event appears. Read-only. The default is False.
*
* @param bool $self
*/
public function setSelf($self)
{
$this->self = $self;
}
/**
* @return bool
*/
public function getSelf()
{
return $this->self;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventCreator::class, 'Google_Service_Calendar_EventCreator');
@@ -0,0 +1,104 @@
<?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\Calendar;
class EventDateTime extends \Google\Model
{
/**
* The date, in the format "yyyy-mm-dd", if this is an all-day event.
*
* @var string
*/
public $date;
/**
* The time, as a combined date-time value (formatted according to RFC3339). A
* time zone offset is required unless a time zone is explicitly specified in
* timeZone.
*
* @var string
*/
public $dateTime;
/**
* The time zone in which the time is specified. (Formatted as an IANA Time
* Zone Database name, e.g. "Europe/Zurich".) For recurring events this field
* is required and specifies the time zone in which the recurrence is
* expanded. For single events this field is optional and indicates a custom
* time zone for the event start/end.
*
* @var string
*/
public $timeZone;
/**
* The date, in the format "yyyy-mm-dd", if this is an all-day event.
*
* @param string $date
*/
public function setDate($date)
{
$this->date = $date;
}
/**
* @return string
*/
public function getDate()
{
return $this->date;
}
/**
* The time, as a combined date-time value (formatted according to RFC3339). A
* time zone offset is required unless a time zone is explicitly specified in
* timeZone.
*
* @param string $dateTime
*/
public function setDateTime($dateTime)
{
$this->dateTime = $dateTime;
}
/**
* @return string
*/
public function getDateTime()
{
return $this->dateTime;
}
/**
* The time zone in which the time is specified. (Formatted as an IANA Time
* Zone Database name, e.g. "Europe/Zurich".) For recurring events this field
* is required and specifies the time zone in which the recurrence is
* expanded. For single events this field is optional and indicates a custom
* time zone for the event start/end.
*
* @param string $timeZone
*/
public function setTimeZone($timeZone)
{
$this->timeZone = $timeZone;
}
/**
* @return string
*/
public function getTimeZone()
{
return $this->timeZone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventDateTime::class, 'Google_Service_Calendar_EventDateTime');
@@ -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\Calendar;
class EventExtendedProperties extends \Google\Model
{
/**
* Properties that are private to the copy of the event that appears on this
* calendar.
*
* @var string[]
*/
public $private;
/**
* Properties that are shared between copies of the event on other attendees'
* calendars.
*
* @var string[]
*/
public $shared;
/**
* Properties that are private to the copy of the event that appears on this
* calendar.
*
* @param string[] $private
*/
public function setPrivate($private)
{
$this->private = $private;
}
/**
* @return string[]
*/
public function getPrivate()
{
return $this->private;
}
/**
* Properties that are shared between copies of the event on other attendees'
* calendars.
*
* @param string[] $shared
*/
public function setShared($shared)
{
$this->shared = $shared;
}
/**
* @return string[]
*/
public function getShared()
{
return $this->shared;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventExtendedProperties::class, 'Google_Service_Calendar_EventExtendedProperties');
@@ -0,0 +1,108 @@
<?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\Calendar;
class EventFocusTimeProperties extends \Google\Model
{
/**
* Whether to decline meeting invitations which overlap Focus Time events.
* Valid values are declineNone, meaning that no meeting invitations are
* declined; declineAllConflictingInvitations, meaning that all conflicting
* meeting invitations that conflict with the event are declined; and
* declineOnlyNewConflictingInvitations, meaning that only new conflicting
* meeting invitations which arrive while the Focus Time event is present are
* to be declined.
*
* @var string
*/
public $autoDeclineMode;
/**
* The status to mark the user in Chat and related products. This can be
* available or doNotDisturb.
*
* @var string
*/
public $chatStatus;
/**
* Response message to set if an existing event or new invitation is
* automatically declined by Calendar.
*
* @var string
*/
public $declineMessage;
/**
* Whether to decline meeting invitations which overlap Focus Time events.
* Valid values are declineNone, meaning that no meeting invitations are
* declined; declineAllConflictingInvitations, meaning that all conflicting
* meeting invitations that conflict with the event are declined; and
* declineOnlyNewConflictingInvitations, meaning that only new conflicting
* meeting invitations which arrive while the Focus Time event is present are
* to be declined.
*
* @param string $autoDeclineMode
*/
public function setAutoDeclineMode($autoDeclineMode)
{
$this->autoDeclineMode = $autoDeclineMode;
}
/**
* @return string
*/
public function getAutoDeclineMode()
{
return $this->autoDeclineMode;
}
/**
* The status to mark the user in Chat and related products. This can be
* available or doNotDisturb.
*
* @param string $chatStatus
*/
public function setChatStatus($chatStatus)
{
$this->chatStatus = $chatStatus;
}
/**
* @return string
*/
public function getChatStatus()
{
return $this->chatStatus;
}
/**
* Response message to set if an existing event or new invitation is
* automatically declined by Calendar.
*
* @param string $declineMessage
*/
public function setDeclineMessage($declineMessage)
{
$this->declineMessage = $declineMessage;
}
/**
* @return string
*/
public function getDeclineMessage()
{
return $this->declineMessage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventFocusTimeProperties::class, 'Google_Service_Calendar_EventFocusTimeProperties');
@@ -0,0 +1,210 @@
<?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\Calendar;
class EventGadget extends \Google\Model
{
/**
* The gadget's display mode. Deprecated. Possible values are: - "icon" - The
* gadget displays next to the event's title in the calendar view. - "chip" -
* The gadget displays when the event is clicked.
*
* @var string
*/
public $display;
/**
* The gadget's height in pixels. The height must be an integer greater than
* 0. Optional. Deprecated.
*
* @var int
*/
public $height;
/**
* The gadget's icon URL. The URL scheme must be HTTPS. Deprecated.
*
* @var string
*/
public $iconLink;
/**
* The gadget's URL. The URL scheme must be HTTPS. Deprecated.
*
* @var string
*/
public $link;
/**
* Preferences.
*
* @var string[]
*/
public $preferences;
/**
* The gadget's title. Deprecated.
*
* @var string
*/
public $title;
/**
* The gadget's type. Deprecated.
*
* @var string
*/
public $type;
/**
* The gadget's width in pixels. The width must be an integer greater than 0.
* Optional. Deprecated.
*
* @var int
*/
public $width;
/**
* The gadget's display mode. Deprecated. Possible values are: - "icon" - The
* gadget displays next to the event's title in the calendar view. - "chip" -
* The gadget displays when the event is clicked.
*
* @param string $display
*/
public function setDisplay($display)
{
$this->display = $display;
}
/**
* @return string
*/
public function getDisplay()
{
return $this->display;
}
/**
* The gadget's height in pixels. The height must be an integer greater than
* 0. Optional. Deprecated.
*
* @param int $height
*/
public function setHeight($height)
{
$this->height = $height;
}
/**
* @return int
*/
public function getHeight()
{
return $this->height;
}
/**
* The gadget's icon URL. The URL scheme must be HTTPS. Deprecated.
*
* @param string $iconLink
*/
public function setIconLink($iconLink)
{
$this->iconLink = $iconLink;
}
/**
* @return string
*/
public function getIconLink()
{
return $this->iconLink;
}
/**
* The gadget's URL. The URL scheme must be HTTPS. Deprecated.
*
* @param string $link
*/
public function setLink($link)
{
$this->link = $link;
}
/**
* @return string
*/
public function getLink()
{
return $this->link;
}
/**
* Preferences.
*
* @param string[] $preferences
*/
public function setPreferences($preferences)
{
$this->preferences = $preferences;
}
/**
* @return string[]
*/
public function getPreferences()
{
return $this->preferences;
}
/**
* The gadget's title. Deprecated.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* The gadget's type. Deprecated.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
/**
* The gadget's width in pixels. The width must be an integer greater than 0.
* Optional. Deprecated.
*
* @param int $width
*/
public function setWidth($width)
{
$this->width = $width;
}
/**
* @return int
*/
public function getWidth()
{
return $this->width;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventGadget::class, 'Google_Service_Calendar_EventGadget');
@@ -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\Calendar;
class EventLabel extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventLabel::class, 'Google_Service_Calendar_EventLabel');
@@ -0,0 +1,118 @@
<?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\Calendar;
class EventOrganizer extends \Google\Model
{
/**
* The organizer's name, if available.
*
* @var string
*/
public $displayName;
/**
* The organizer's email address, if available. It must be a valid email
* address as per RFC5322.
*
* @var string
*/
public $email;
/**
* The organizer's Profile ID, if available.
*
* @var string
*/
public $id;
/**
* Whether the organizer corresponds to the calendar on which this copy of the
* event appears. Read-only. The default is False.
*
* @var bool
*/
public $self;
/**
* The organizer's name, if available.
*
* @param string $displayName
*/
public function setDisplayName($displayName)
{
$this->displayName = $displayName;
}
/**
* @return string
*/
public function getDisplayName()
{
return $this->displayName;
}
/**
* The organizer's email address, if available. It must be a valid email
* address as per RFC5322.
*
* @param string $email
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* The organizer's Profile ID, if available.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Whether the organizer corresponds to the calendar on which this copy of the
* event appears. Read-only. The default is False.
*
* @param bool $self
*/
public function setSelf($self)
{
$this->self = $self;
}
/**
* @return bool
*/
public function getSelf()
{
return $this->self;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventOrganizer::class, 'Google_Service_Calendar_EventOrganizer');
@@ -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\Calendar;
class EventOutOfOfficeProperties extends \Google\Model
{
/**
* Whether to decline meeting invitations which overlap Out of office events.
* Valid values are declineNone, meaning that no meeting invitations are
* declined; declineAllConflictingInvitations, meaning that all conflicting
* meeting invitations that conflict with the event are declined; and
* declineOnlyNewConflictingInvitations, meaning that only new conflicting
* meeting invitations which arrive while the Out of office event is present
* are to be declined.
*
* @var string
*/
public $autoDeclineMode;
/**
* Response message to set if an existing event or new invitation is
* automatically declined by Calendar.
*
* @var string
*/
public $declineMessage;
/**
* Whether to decline meeting invitations which overlap Out of office events.
* Valid values are declineNone, meaning that no meeting invitations are
* declined; declineAllConflictingInvitations, meaning that all conflicting
* meeting invitations that conflict with the event are declined; and
* declineOnlyNewConflictingInvitations, meaning that only new conflicting
* meeting invitations which arrive while the Out of office event is present
* are to be declined.
*
* @param string $autoDeclineMode
*/
public function setAutoDeclineMode($autoDeclineMode)
{
$this->autoDeclineMode = $autoDeclineMode;
}
/**
* @return string
*/
public function getAutoDeclineMode()
{
return $this->autoDeclineMode;
}
/**
* Response message to set if an existing event or new invitation is
* automatically declined by Calendar.
*
* @param string $declineMessage
*/
public function setDeclineMessage($declineMessage)
{
$this->declineMessage = $declineMessage;
}
/**
* @return string
*/
public function getDeclineMessage()
{
return $this->declineMessage;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventOutOfOfficeProperties::class, 'Google_Service_Calendar_EventOutOfOfficeProperties');
@@ -0,0 +1,78 @@
<?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\Calendar;
class EventReminder extends \Google\Model
{
/**
* The method used by this reminder. Possible values are: - "email" -
* Reminders are sent via email. - "popup" - Reminders are sent via a UI
* popup. Required when adding a reminder.
*
* @var string
*/
public $method;
/**
* Number of minutes before the start of the event when the reminder should
* trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
* Required when adding a reminder.
*
* @var int
*/
public $minutes;
/**
* The method used by this reminder. Possible values are: - "email" -
* Reminders are sent via email. - "popup" - Reminders are sent via a UI
* popup. Required when adding a reminder.
*
* @param string $method
*/
public function setMethod($method)
{
$this->method = $method;
}
/**
* @return string
*/
public function getMethod()
{
return $this->method;
}
/**
* Number of minutes before the start of the event when the reminder should
* trigger. Valid values are between 0 and 40320 (4 weeks in minutes).
* Required when adding a reminder.
*
* @param int $minutes
*/
public function setMinutes($minutes)
{
$this->minutes = $minutes;
}
/**
* @return int
*/
public function getMinutes()
{
return $this->minutes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventReminder::class, 'Google_Service_Calendar_EventReminder');
@@ -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\Calendar;
class EventReminders extends \Google\Collection
{
protected $collection_key = 'overrides';
protected $overridesType = EventReminder::class;
protected $overridesDataType = 'array';
/**
* Whether the default reminders of the calendar apply to the event.
*
* @var bool
*/
public $useDefault;
/**
* If the event doesn't use the default reminders, this lists the reminders
* specific to the event, or, if not set, indicates that no reminders are set
* for this event. The maximum number of override reminders is 5.
*
* @param EventReminder[] $overrides
*/
public function setOverrides($overrides)
{
$this->overrides = $overrides;
}
/**
* @return EventReminder[]
*/
public function getOverrides()
{
return $this->overrides;
}
/**
* Whether the default reminders of the calendar apply to the event.
*
* @param bool $useDefault
*/
public function setUseDefault($useDefault)
{
$this->useDefault = $useDefault;
}
/**
* @return bool
*/
public function getUseDefault()
{
return $this->useDefault;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventReminders::class, 'Google_Service_Calendar_EventReminders');
@@ -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\Calendar;
class EventSource extends \Google\Model
{
/**
* Title of the source; for example a title of a web page or an email subject.
*
* @var string
*/
public $title;
/**
* URL of the source pointing to a resource. The URL scheme must be HTTP or
* HTTPS.
*
* @var string
*/
public $url;
/**
* Title of the source; for example a title of a web page or an email subject.
*
* @param string $title
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* URL of the source pointing to a resource. The URL scheme must be HTTP or
* HTTPS.
*
* @param string $url
*/
public function setUrl($url)
{
$this->url = $url;
}
/**
* @return string
*/
public function getUrl()
{
return $this->url;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventSource::class, 'Google_Service_Calendar_EventSource');
@@ -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\Calendar;
class EventWorkingLocationProperties extends \Google\Model
{
protected $customLocationType = EventWorkingLocationPropertiesCustomLocation::class;
protected $customLocationDataType = '';
/**
* If present, specifies that the user is working at home.
*
* @var array
*/
public $homeOffice;
protected $officeLocationType = EventWorkingLocationPropertiesOfficeLocation::class;
protected $officeLocationDataType = '';
/**
* Type of the working location. Possible values are: - "homeOffice" - The
* user is working at home. - "officeLocation" - The user is working from an
* office. - "customLocation" - The user is working from a custom location.
* Any details are specified in a sub-field of the specified name, but this
* field may be missing if empty. Any other fields are ignored. Required when
* adding working location properties.
*
* @var string
*/
public $type;
/**
* If present, specifies that the user is working from a custom location.
*
* @param EventWorkingLocationPropertiesCustomLocation $customLocation
*/
public function setCustomLocation(EventWorkingLocationPropertiesCustomLocation $customLocation)
{
$this->customLocation = $customLocation;
}
/**
* @return EventWorkingLocationPropertiesCustomLocation
*/
public function getCustomLocation()
{
return $this->customLocation;
}
/**
* If present, specifies that the user is working at home.
*
* @param array $homeOffice
*/
public function setHomeOffice($homeOffice)
{
$this->homeOffice = $homeOffice;
}
/**
* @return array
*/
public function getHomeOffice()
{
return $this->homeOffice;
}
/**
* If present, specifies that the user is working from an office.
*
* @param EventWorkingLocationPropertiesOfficeLocation $officeLocation
*/
public function setOfficeLocation(EventWorkingLocationPropertiesOfficeLocation $officeLocation)
{
$this->officeLocation = $officeLocation;
}
/**
* @return EventWorkingLocationPropertiesOfficeLocation
*/
public function getOfficeLocation()
{
return $this->officeLocation;
}
/**
* Type of the working location. Possible values are: - "homeOffice" - The
* user is working at home. - "officeLocation" - The user is working from an
* office. - "customLocation" - The user is working from a custom location.
* Any details are specified in a sub-field of the specified name, but this
* field may be missing if empty. Any other fields are ignored. Required when
* adding working location properties.
*
* @param string $type
*/
public function setType($type)
{
$this->type = $type;
}
/**
* @return string
*/
public function getType()
{
return $this->type;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventWorkingLocationProperties::class, 'Google_Service_Calendar_EventWorkingLocationProperties');
@@ -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\Calendar;
class EventWorkingLocationPropertiesCustomLocation extends \Google\Model
{
/**
* An optional extra label for additional information.
*
* @var string
*/
public $label;
/**
* An optional extra label for additional information.
*
* @param string $label
*/
public function setLabel($label)
{
$this->label = $label;
}
/**
* @return string
*/
public function getLabel()
{
return $this->label;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventWorkingLocationPropertiesCustomLocation::class, 'Google_Service_Calendar_EventWorkingLocationPropertiesCustomLocation');
@@ -0,0 +1,142 @@
<?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\Calendar;
class EventWorkingLocationPropertiesOfficeLocation extends \Google\Model
{
/**
* An optional building identifier. This should reference a building ID in the
* organization's Resources database.
*
* @var string
*/
public $buildingId;
/**
* An optional desk identifier.
*
* @var string
*/
public $deskId;
/**
* An optional floor identifier.
*
* @var string
*/
public $floorId;
/**
* An optional floor section identifier.
*
* @var string
*/
public $floorSectionId;
/**
* The office name that's displayed in Calendar Web and Mobile clients. We
* recommend you reference a building name in the organization's Resources
* database.
*
* @var string
*/
public $label;
/**
* An optional building identifier. This should reference a building ID in the
* organization's Resources database.
*
* @param string $buildingId
*/
public function setBuildingId($buildingId)
{
$this->buildingId = $buildingId;
}
/**
* @return string
*/
public function getBuildingId()
{
return $this->buildingId;
}
/**
* An optional desk identifier.
*
* @param string $deskId
*/
public function setDeskId($deskId)
{
$this->deskId = $deskId;
}
/**
* @return string
*/
public function getDeskId()
{
return $this->deskId;
}
/**
* An optional floor identifier.
*
* @param string $floorId
*/
public function setFloorId($floorId)
{
$this->floorId = $floorId;
}
/**
* @return string
*/
public function getFloorId()
{
return $this->floorId;
}
/**
* An optional floor section identifier.
*
* @param string $floorSectionId
*/
public function setFloorSectionId($floorSectionId)
{
$this->floorSectionId = $floorSectionId;
}
/**
* @return string
*/
public function getFloorSectionId()
{
return $this->floorSectionId;
}
/**
* The office name that's displayed in Calendar Web and Mobile clients. We
* recommend you reference a building name in the organization's Resources
* database.
*
* @param string $label
*/
public function setLabel($label)
{
$this->label = $label;
}
/**
* @return string
*/
public function getLabel()
{
return $this->label;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(EventWorkingLocationPropertiesOfficeLocation::class, 'Google_Service_Calendar_EventWorkingLocationPropertiesOfficeLocation');
+291
View File
@@ -0,0 +1,291 @@
<?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\Calendar;
class Events extends \Google\Collection
{
protected $collection_key = 'items';
/**
* The user's access role for this calendar. Read-only. Possible values are: -
* "none" - The user has no access. - "freeBusyReader" - The user has read
* access to free/busy information. - "reader" - The user has read access to
* the calendar. Private events will appear to users with reader access, but
* event details will be hidden. - "writer" - The user has read and write
* access to the calendar. Private events will appear to users with writer
* access, and event details will be visible. - "owner" - The user has
* manager access to the calendar. This role has all of the permissions of the
* writer role with the additional ability to see and modify access levels of
* other users. Important: the owner role is different from the calendar's
* data owner. A calendar has a single data owner, but can have multiple users
* with owner role.
*
* @var string
*/
public $accessRole;
protected $defaultRemindersType = EventReminder::class;
protected $defaultRemindersDataType = 'array';
/**
* Description of the calendar. Read-only.
*
* @var string
*/
public $description;
/**
* ETag of the collection.
*
* @var string
*/
public $etag;
protected $itemsType = Event::class;
protected $itemsDataType = 'array';
/**
* Type of the collection ("calendar#events").
*
* @var string
*/
public $kind;
/**
* Token used to access the next page of this result. Omitted if no further
* results are available, in which case nextSyncToken is provided.
*
* @var string
*/
public $nextPageToken;
/**
* Token used at a later point in time to retrieve only the entries that have
* changed since this result was returned. Omitted if further results are
* available, in which case nextPageToken is provided.
*
* @var string
*/
public $nextSyncToken;
/**
* Title of the calendar. Read-only.
*
* @var string
*/
public $summary;
/**
* The time zone of the calendar. Read-only.
*
* @var string
*/
public $timeZone;
/**
* Last modification time of the calendar (as a RFC3339 timestamp). Read-only.
*
* @var string
*/
public $updated;
/**
* The user's access role for this calendar. Read-only. Possible values are: -
* "none" - The user has no access. - "freeBusyReader" - The user has read
* access to free/busy information. - "reader" - The user has read access to
* the calendar. Private events will appear to users with reader access, but
* event details will be hidden. - "writer" - The user has read and write
* access to the calendar. Private events will appear to users with writer
* access, and event details will be visible. - "owner" - The user has
* manager access to the calendar. This role has all of the permissions of the
* writer role with the additional ability to see and modify access levels of
* other users. Important: the owner role is different from the calendar's
* data owner. A calendar has a single data owner, but can have multiple users
* with owner role.
*
* @param string $accessRole
*/
public function setAccessRole($accessRole)
{
$this->accessRole = $accessRole;
}
/**
* @return string
*/
public function getAccessRole()
{
return $this->accessRole;
}
/**
* The default reminders on the calendar for the authenticated user. These
* reminders apply to all events on this calendar that do not explicitly
* override them (i.e. do not have reminders.useDefault set to True).
*
* @param EventReminder[] $defaultReminders
*/
public function setDefaultReminders($defaultReminders)
{
$this->defaultReminders = $defaultReminders;
}
/**
* @return EventReminder[]
*/
public function getDefaultReminders()
{
return $this->defaultReminders;
}
/**
* Description of the calendar. Read-only.
*
* @param string $description
*/
public function setDescription($description)
{
$this->description = $description;
}
/**
* @return string
*/
public function getDescription()
{
return $this->description;
}
/**
* ETag of the collection.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* List of events on the calendar.
*
* @param Event[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Event[]
*/
public function getItems()
{
return $this->items;
}
/**
* Type of the collection ("calendar#events").
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Token used to access the next page of this result. Omitted if no further
* results are available, in which case nextSyncToken is provided.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Token used at a later point in time to retrieve only the entries that have
* changed since this result was returned. Omitted if further results are
* available, in which case nextPageToken is provided.
*
* @param string $nextSyncToken
*/
public function setNextSyncToken($nextSyncToken)
{
$this->nextSyncToken = $nextSyncToken;
}
/**
* @return string
*/
public function getNextSyncToken()
{
return $this->nextSyncToken;
}
/**
* Title of the calendar. Read-only.
*
* @param string $summary
*/
public function setSummary($summary)
{
$this->summary = $summary;
}
/**
* @return string
*/
public function getSummary()
{
return $this->summary;
}
/**
* The time zone of the calendar. Read-only.
*
* @param string $timeZone
*/
public function setTimeZone($timeZone)
{
$this->timeZone = $timeZone;
}
/**
* @return string
*/
public function getTimeZone()
{
return $this->timeZone;
}
/**
* Last modification time of the calendar (as a RFC3339 timestamp). Read-only.
*
* @param string $updated
*/
public function setUpdated($updated)
{
$this->updated = $updated;
}
/**
* @return string
*/
public function getUpdated()
{
return $this->updated;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Events::class, 'Google_Service_Calendar_Events');
@@ -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\Calendar;
class FreeBusyCalendar extends \Google\Collection
{
protected $collection_key = 'errors';
protected $busyType = TimePeriod::class;
protected $busyDataType = 'array';
protected $errorsType = Error::class;
protected $errorsDataType = 'array';
/**
* List of time ranges during which this calendar should be regarded as busy.
*
* @param TimePeriod[] $busy
*/
public function setBusy($busy)
{
$this->busy = $busy;
}
/**
* @return TimePeriod[]
*/
public function getBusy()
{
return $this->busy;
}
/**
* Optional error(s) (if computation for the calendar failed).
*
* @param Error[] $errors
*/
public function setErrors($errors)
{
$this->errors = $errors;
}
/**
* @return Error[]
*/
public function getErrors()
{
return $this->errors;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FreeBusyCalendar::class, 'Google_Service_Calendar_FreeBusyCalendar');
@@ -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\Calendar;
class FreeBusyGroup extends \Google\Collection
{
protected $collection_key = 'errors';
/**
* List of calendars' identifiers within a group.
*
* @var string[]
*/
public $calendars;
protected $errorsType = Error::class;
protected $errorsDataType = 'array';
/**
* List of calendars' identifiers within a group.
*
* @param string[] $calendars
*/
public function setCalendars($calendars)
{
$this->calendars = $calendars;
}
/**
* @return string[]
*/
public function getCalendars()
{
return $this->calendars;
}
/**
* Optional error(s) (if computation for the group failed).
*
* @param Error[] $errors
*/
public function setErrors($errors)
{
$this->errors = $errors;
}
/**
* @return Error[]
*/
public function getErrors()
{
return $this->errors;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FreeBusyGroup::class, 'Google_Service_Calendar_FreeBusyGroup');
@@ -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\Calendar;
class FreeBusyRequest extends \Google\Collection
{
protected $collection_key = 'items';
/**
* Maximal number of calendars for which FreeBusy information is to be
* provided. Optional. Maximum value is 50.
*
* @var int
*/
public $calendarExpansionMax;
/**
* Maximal number of calendar identifiers to be provided for a single group.
* Optional. An error is returned for a group with more members than this
* value. Maximum value is 100.
*
* @var int
*/
public $groupExpansionMax;
protected $itemsType = FreeBusyRequestItem::class;
protected $itemsDataType = 'array';
/**
* The end of the interval for the query formatted as per RFC3339.
*
* @var string
*/
public $timeMax;
/**
* The start of the interval for the query formatted as per RFC3339.
*
* @var string
*/
public $timeMin;
/**
* Time zone used in the response. Optional. The default is UTC.
*
* @var string
*/
public $timeZone;
/**
* Maximal number of calendars for which FreeBusy information is to be
* provided. Optional. Maximum value is 50.
*
* @param int $calendarExpansionMax
*/
public function setCalendarExpansionMax($calendarExpansionMax)
{
$this->calendarExpansionMax = $calendarExpansionMax;
}
/**
* @return int
*/
public function getCalendarExpansionMax()
{
return $this->calendarExpansionMax;
}
/**
* Maximal number of calendar identifiers to be provided for a single group.
* Optional. An error is returned for a group with more members than this
* value. Maximum value is 100.
*
* @param int $groupExpansionMax
*/
public function setGroupExpansionMax($groupExpansionMax)
{
$this->groupExpansionMax = $groupExpansionMax;
}
/**
* @return int
*/
public function getGroupExpansionMax()
{
return $this->groupExpansionMax;
}
/**
* List of calendars and/or groups to query.
*
* @param FreeBusyRequestItem[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return FreeBusyRequestItem[]
*/
public function getItems()
{
return $this->items;
}
/**
* The end of the interval for the query formatted as per RFC3339.
*
* @param string $timeMax
*/
public function setTimeMax($timeMax)
{
$this->timeMax = $timeMax;
}
/**
* @return string
*/
public function getTimeMax()
{
return $this->timeMax;
}
/**
* The start of the interval for the query formatted as per RFC3339.
*
* @param string $timeMin
*/
public function setTimeMin($timeMin)
{
$this->timeMin = $timeMin;
}
/**
* @return string
*/
public function getTimeMin()
{
return $this->timeMin;
}
/**
* Time zone used in the response. Optional. The default is UTC.
*
* @param string $timeZone
*/
public function setTimeZone($timeZone)
{
$this->timeZone = $timeZone;
}
/**
* @return string
*/
public function getTimeZone()
{
return $this->timeZone;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FreeBusyRequest::class, 'Google_Service_Calendar_FreeBusyRequest');
@@ -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\Calendar;
class FreeBusyRequestItem extends \Google\Model
{
/**
* The identifier of a calendar or a group.
*
* @var string
*/
public $id;
/**
* The identifier of a calendar or a group.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FreeBusyRequestItem::class, 'Google_Service_Calendar_FreeBusyRequestItem');
@@ -0,0 +1,128 @@
<?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\Calendar;
class FreeBusyResponse extends \Google\Model
{
protected $calendarsType = FreeBusyCalendar::class;
protected $calendarsDataType = 'map';
protected $groupsType = FreeBusyGroup::class;
protected $groupsDataType = 'map';
/**
* Type of the resource ("calendar#freeBusy").
*
* @var string
*/
public $kind;
/**
* The end of the interval.
*
* @var string
*/
public $timeMax;
/**
* The start of the interval.
*
* @var string
*/
public $timeMin;
/**
* List of free/busy information for calendars.
*
* @param FreeBusyCalendar[] $calendars
*/
public function setCalendars($calendars)
{
$this->calendars = $calendars;
}
/**
* @return FreeBusyCalendar[]
*/
public function getCalendars()
{
return $this->calendars;
}
/**
* Expansion of groups.
*
* @param FreeBusyGroup[] $groups
*/
public function setGroups($groups)
{
$this->groups = $groups;
}
/**
* @return FreeBusyGroup[]
*/
public function getGroups()
{
return $this->groups;
}
/**
* Type of the resource ("calendar#freeBusy").
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* The end of the interval.
*
* @param string $timeMax
*/
public function setTimeMax($timeMax)
{
$this->timeMax = $timeMax;
}
/**
* @return string
*/
public function getTimeMax()
{
return $this->timeMax;
}
/**
* The start of the interval.
*
* @param string $timeMin
*/
public function setTimeMin($timeMin)
{
$this->timeMin = $timeMin;
}
/**
* @return string
*/
public function getTimeMin()
{
return $this->timeMin;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(FreeBusyResponse::class, 'Google_Service_Calendar_FreeBusyResponse');
@@ -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\Calendar;
class LabelProperties extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(LabelProperties::class, 'Google_Service_Calendar_LabelProperties');
@@ -0,0 +1,204 @@
<?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\Calendar\Resource;
use Google\Service\Calendar\Acl as AclModel;
use Google\Service\Calendar\AclRule;
use Google\Service\Calendar\Channel;
/**
* The "acl" collection of methods.
* Typical usage is:
* <code>
* $calendarService = new Google\Service\Calendar(...);
* $acl = $calendarService->acl;
* </code>
*/
class Acl extends \Google\Service\Resource
{
/**
* Deletes an access control rule. (acl.delete)
*
* @param string $calendarId Calendar identifier. To retrieve calendar IDs call
* the calendarList.list method. If you want to access the primary calendar of
* the currently logged in user, use the "primary" keyword.
* @param string $ruleId ACL rule identifier.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($calendarId, $ruleId, $optParams = [])
{
$params = ['calendarId' => $calendarId, 'ruleId' => $ruleId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Returns an access control rule. (acl.get)
*
* @param string $calendarId Calendar identifier. To retrieve calendar IDs call
* the calendarList.list method. If you want to access the primary calendar of
* the currently logged in user, use the "primary" keyword.
* @param string $ruleId ACL rule identifier.
* @param array $optParams Optional parameters.
* @return AclRule
* @throws \Google\Service\Exception
*/
public function get($calendarId, $ruleId, $optParams = [])
{
$params = ['calendarId' => $calendarId, 'ruleId' => $ruleId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], AclRule::class);
}
/**
* Creates an access control rule. (acl.insert)
*
* @param string $calendarId Calendar identifier. To retrieve calendar IDs call
* the calendarList.list method. If you want to access the primary calendar of
* the currently logged in user, use the "primary" keyword.
* @param AclRule $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool sendNotifications Whether to send notifications about the
* calendar sharing change. Optional. The default is True.
* @return AclRule
* @throws \Google\Service\Exception
*/
public function insert($calendarId, AclRule $postBody, $optParams = [])
{
$params = ['calendarId' => $calendarId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], AclRule::class);
}
/**
* Returns the rules in the access control list for the calendar. (acl.listAcl)
*
* @param string $calendarId Calendar identifier. To retrieve calendar IDs call
* the calendarList.list method. If you want to access the primary calendar of
* the currently logged in user, use the "primary" keyword.
* @param array $optParams Optional parameters.
*
* @opt_param int maxResults Maximum number of entries returned on one result
* page. By default the value is 100 entries. The page size can never be larger
* than 250 entries. Optional.
* @opt_param string pageToken Token specifying which result page to return.
* Optional.
* @opt_param bool showDeleted Whether to include deleted ACLs in the result.
* Deleted ACLs are represented by role equal to "none". Deleted ACLs will
* always be included if syncToken is provided. Optional. The default is False.
* @opt_param string syncToken Token obtained from the nextSyncToken field
* returned on the last page of results from the previous list request. It makes
* the result of this list request contain only entries that have changed since
* then. All entries deleted since the previous list request will always be in
* the result set and it is not allowed to set showDeleted to False. If the
* syncToken expires, the server will respond with a 410 GONE response code and
* the client should clear its storage and perform a full synchronization
* without any syncToken. Learn more about incremental synchronization.
* Optional. The default is to return all entries.
* @return AclModel
* @throws \Google\Service\Exception
*/
public function listAcl($calendarId, $optParams = [])
{
$params = ['calendarId' => $calendarId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], AclModel::class);
}
/**
* Updates an access control rule. This method supports patch semantics.
* (acl.patch)
*
* @param string $calendarId Calendar identifier. To retrieve calendar IDs call
* the calendarList.list method. If you want to access the primary calendar of
* the currently logged in user, use the "primary" keyword.
* @param string $ruleId ACL rule identifier.
* @param AclRule $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool sendNotifications Whether to send notifications about the
* calendar sharing change. Note that there are no notifications on access
* removal. Optional. The default is True.
* @return AclRule
* @throws \Google\Service\Exception
*/
public function patch($calendarId, $ruleId, AclRule $postBody, $optParams = [])
{
$params = ['calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], AclRule::class);
}
/**
* Updates an access control rule. (acl.update)
*
* @param string $calendarId Calendar identifier. To retrieve calendar IDs call
* the calendarList.list method. If you want to access the primary calendar of
* the currently logged in user, use the "primary" keyword.
* @param string $ruleId ACL rule identifier.
* @param AclRule $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool sendNotifications Whether to send notifications about the
* calendar sharing change. Note that there are no notifications on access
* removal. Optional. The default is True.
* @return AclRule
* @throws \Google\Service\Exception
*/
public function update($calendarId, $ruleId, AclRule $postBody, $optParams = [])
{
$params = ['calendarId' => $calendarId, 'ruleId' => $ruleId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], AclRule::class);
}
/**
* Watch for changes to ACL resources. (acl.watch)
*
* @param string $calendarId Calendar identifier. To retrieve calendar IDs call
* the calendarList.list method. If you want to access the primary calendar of
* the currently logged in user, use the "primary" keyword.
* @param Channel $postBody
* @param array $optParams Optional parameters.
*
* @opt_param int maxResults Maximum number of entries returned on one result
* page. By default the value is 100 entries. The page size can never be larger
* than 250 entries. Optional.
* @opt_param string pageToken Token specifying which result page to return.
* Optional.
* @opt_param bool showDeleted Whether to include deleted ACLs in the result.
* Deleted ACLs are represented by role equal to "none". Deleted ACLs will
* always be included if syncToken is provided. Optional. The default is False.
* @opt_param string syncToken Token obtained from the nextSyncToken field
* returned on the last page of results from the previous list request. It makes
* the result of this list request contain only entries that have changed since
* then. All entries deleted since the previous list request will always be in
* the result set and it is not allowed to set showDeleted to False. If the
* syncToken expires, the server will respond with a 410 GONE response code and
* the client should clear its storage and perform a full synchronization
* without any syncToken. Learn more about incremental synchronization.
* Optional. The default is to return all entries.
* @return Channel
* @throws \Google\Service\Exception
*/
public function watch($calendarId, Channel $postBody, $optParams = [])
{
$params = ['calendarId' => $calendarId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('watch', [$params], Channel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Acl::class, 'Google_Service_Calendar_Resource_Acl');
@@ -0,0 +1,210 @@
<?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\Calendar\Resource;
use Google\Service\Calendar\CalendarList as CalendarListModel;
use Google\Service\Calendar\CalendarListEntry;
use Google\Service\Calendar\Channel;
/**
* The "calendarList" collection of methods.
* Typical usage is:
* <code>
* $calendarService = new Google\Service\Calendar(...);
* $calendarList = $calendarService->calendarList;
* </code>
*/
class CalendarList extends \Google\Service\Resource
{
/**
* Removes a calendar from the user's calendar list. (calendarList.delete)
*
* @param string $calendarId Calendar identifier. To retrieve calendar IDs call
* the calendarList.list method. If you want to access the primary calendar of
* the currently logged in user, use the "primary" keyword.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($calendarId, $optParams = [])
{
$params = ['calendarId' => $calendarId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Returns a calendar from the user's calendar list. (calendarList.get)
*
* @param string $calendarId Calendar identifier. To retrieve calendar IDs call
* the calendarList.list method. If you want to access the primary calendar of
* the currently logged in user, use the "primary" keyword.
* @param array $optParams Optional parameters.
* @return CalendarListEntry
* @throws \Google\Service\Exception
*/
public function get($calendarId, $optParams = [])
{
$params = ['calendarId' => $calendarId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], CalendarListEntry::class);
}
/**
* Inserts an existing calendar into the user's calendar list.
* (calendarList.insert)
*
* @param CalendarListEntry $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool colorRgbFormat Whether to use the foregroundColor and
* backgroundColor fields to write the calendar colors (RGB). If this feature is
* used, the index-based colorId field will be set to the best matching option
* automatically. Optional. The default is False.
* @return CalendarListEntry
* @throws \Google\Service\Exception
*/
public function insert(CalendarListEntry $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], CalendarListEntry::class);
}
/**
* Returns the calendars on the user's calendar list.
* (calendarList.listCalendarList)
*
* @param array $optParams Optional parameters.
*
* @opt_param int maxResults Maximum number of entries returned on one result
* page. By default the value is 100 entries. The page size can never be larger
* than 250 entries. Optional.
* @opt_param string minAccessRole The minimum access role for the user in the
* returned entries. Optional. The default is no restriction.
* @opt_param string pageToken Token specifying which result page to return.
* Optional.
* @opt_param bool showDeleted Whether to include deleted calendar list entries
* in the result. Optional. The default is False.
* @opt_param bool showHidden Whether to show hidden entries. Optional. The
* default is False.
* @opt_param string syncToken Token obtained from the nextSyncToken field
* returned on the last page of results from the previous list request. It makes
* the result of this list request contain only entries that have changed since
* then. If only read-only fields such as calendar properties or ACLs have
* changed, the entry won't be returned. All entries deleted and hidden since
* the previous list request will always be in the result set and it is not
* allowed to set showDeleted neither showHidden to False. To ensure client
* state consistency minAccessRole query parameter cannot be specified together
* with nextSyncToken. If the syncToken expires, the server will respond with a
* 410 GONE response code and the client should clear its storage and perform a
* full synchronization without any syncToken. Learn more about incremental
* synchronization. Optional. The default is to return all entries.
* @return CalendarListModel
* @throws \Google\Service\Exception
*/
public function listCalendarList($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], CalendarListModel::class);
}
/**
* Updates an existing calendar on the user's calendar list. This method
* supports patch semantics. (calendarList.patch)
*
* @param string $calendarId Calendar identifier. To retrieve calendar IDs call
* the calendarList.list method. If you want to access the primary calendar of
* the currently logged in user, use the "primary" keyword.
* @param CalendarListEntry $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool colorRgbFormat Whether to use the foregroundColor and
* backgroundColor fields to write the calendar colors (RGB). If this feature is
* used, the index-based colorId field will be set to the best matching option
* automatically. Optional. The default is False.
* @return CalendarListEntry
* @throws \Google\Service\Exception
*/
public function patch($calendarId, CalendarListEntry $postBody, $optParams = [])
{
$params = ['calendarId' => $calendarId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], CalendarListEntry::class);
}
/**
* Updates an existing calendar on the user's calendar list.
* (calendarList.update)
*
* @param string $calendarId Calendar identifier. To retrieve calendar IDs call
* the calendarList.list method. If you want to access the primary calendar of
* the currently logged in user, use the "primary" keyword.
* @param CalendarListEntry $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool colorRgbFormat Whether to use the foregroundColor and
* backgroundColor fields to write the calendar colors (RGB). If this feature is
* used, the index-based colorId field will be set to the best matching option
* automatically. Optional. The default is False.
* @return CalendarListEntry
* @throws \Google\Service\Exception
*/
public function update($calendarId, CalendarListEntry $postBody, $optParams = [])
{
$params = ['calendarId' => $calendarId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], CalendarListEntry::class);
}
/**
* Watch for changes to CalendarList resources. (calendarList.watch)
*
* @param Channel $postBody
* @param array $optParams Optional parameters.
*
* @opt_param int maxResults Maximum number of entries returned on one result
* page. By default the value is 100 entries. The page size can never be larger
* than 250 entries. Optional.
* @opt_param string minAccessRole The minimum access role for the user in the
* returned entries. Optional. The default is no restriction.
* @opt_param string pageToken Token specifying which result page to return.
* Optional.
* @opt_param bool showDeleted Whether to include deleted calendar list entries
* in the result. Optional. The default is False.
* @opt_param bool showHidden Whether to show hidden entries. Optional. The
* default is False.
* @opt_param string syncToken Token obtained from the nextSyncToken field
* returned on the last page of results from the previous list request. It makes
* the result of this list request contain only entries that have changed since
* then. If only read-only fields such as calendar properties or ACLs have
* changed, the entry won't be returned. All entries deleted and hidden since
* the previous list request will always be in the result set and it is not
* allowed to set showDeleted neither showHidden to False. To ensure client
* state consistency minAccessRole query parameter cannot be specified together
* with nextSyncToken. If the syncToken expires, the server will respond with a
* 410 GONE response code and the client should clear its storage and perform a
* full synchronization without any syncToken. Learn more about incremental
* synchronization. Optional. The default is to return all entries.
* @return Channel
* @throws \Google\Service\Exception
*/
public function watch(Channel $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('watch', [$params], Channel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CalendarList::class, 'Google_Service_Calendar_Resource_CalendarList');
@@ -0,0 +1,141 @@
<?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\Calendar\Resource;
use Google\Service\Calendar\Calendar;
/**
* The "calendars" collection of methods.
* Typical usage is:
* <code>
* $calendarService = new Google\Service\Calendar(...);
* $calendars = $calendarService->calendars;
* </code>
*/
class Calendars extends \Google\Service\Resource
{
/**
* Clears a primary calendar. This operation deletes all events associated with
* the primary calendar of an account. (calendars.clear)
*
* @param string $calendarId Calendar identifier. To retrieve calendar IDs call
* the calendarList.list method. If you want to access the primary calendar of
* the currently logged in user, use the "primary" keyword.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function clear($calendarId, $optParams = [])
{
$params = ['calendarId' => $calendarId];
$params = array_merge($params, $optParams);
return $this->call('clear', [$params]);
}
/**
* Deletes a secondary calendar. Use calendars.clear for clearing all events on
* primary calendars. (calendars.delete)
*
* @param string $calendarId Calendar identifier. To retrieve calendar IDs call
* the calendarList.list method. If you want to access the primary calendar of
* the currently logged in user, use the "primary" keyword.
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function delete($calendarId, $optParams = [])
{
$params = ['calendarId' => $calendarId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Returns metadata for a calendar. (calendars.get)
*
* @param string $calendarId Calendar identifier. To retrieve calendar IDs call
* the calendarList.list method. If you want to access the primary calendar of
* the currently logged in user, use the "primary" keyword.
* @param array $optParams Optional parameters.
* @return Calendar
* @throws \Google\Service\Exception
*/
public function get($calendarId, $optParams = [])
{
$params = ['calendarId' => $calendarId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Calendar::class);
}
/**
* Creates a secondary calendar. The authenticated user for the request is made
* the data owner of the new calendar.
*
* Note: We recommend to authenticate as the intended data owner of the
* calendar. You can use domain-wide delegation of authority to allow
* applications to act on behalf of a specific user. Don't use a service account
* for authentication. If you use a service account for authentication, the
* service account is the data owner, which can lead to unexpected behavior. For
* example, if a service account is the data owner, data ownership cannot be
* transferred. (calendars.insert)
*
* @param Calendar $postBody
* @param array $optParams Optional parameters.
* @return Calendar
* @throws \Google\Service\Exception
*/
public function insert(Calendar $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], Calendar::class);
}
/**
* Updates metadata for a calendar. This method supports patch semantics.
* (calendars.patch)
*
* @param string $calendarId Calendar identifier. To retrieve calendar IDs call
* the calendarList.list method. If you want to access the primary calendar of
* the currently logged in user, use the "primary" keyword.
* @param Calendar $postBody
* @param array $optParams Optional parameters.
* @return Calendar
* @throws \Google\Service\Exception
*/
public function patch($calendarId, Calendar $postBody, $optParams = [])
{
$params = ['calendarId' => $calendarId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Calendar::class);
}
/**
* Updates metadata for a calendar. (calendars.update)
*
* @param string $calendarId Calendar identifier. To retrieve calendar IDs call
* the calendarList.list method. If you want to access the primary calendar of
* the currently logged in user, use the "primary" keyword.
* @param Calendar $postBody
* @param array $optParams Optional parameters.
* @return Calendar
* @throws \Google\Service\Exception
*/
public function update($calendarId, Calendar $postBody, $optParams = [])
{
$params = ['calendarId' => $calendarId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Calendar::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Calendars::class, 'Google_Service_Calendar_Resource_Calendars');
@@ -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\Calendar\Resource;
use Google\Service\Calendar\Channel;
/**
* The "channels" collection of methods.
* Typical usage is:
* <code>
* $calendarService = new Google\Service\Calendar(...);
* $channels = $calendarService->channels;
* </code>
*/
class Channels extends \Google\Service\Resource
{
/**
* Stop watching resources through this channel (channels.stop)
*
* @param Channel $postBody
* @param array $optParams Optional parameters.
* @throws \Google\Service\Exception
*/
public function stop(Channel $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('stop', [$params]);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Channels::class, 'Google_Service_Calendar_Resource_Channels');
@@ -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\Calendar\Resource;
use Google\Service\Calendar\Colors as ColorsModel;
/**
* The "colors" collection of methods.
* Typical usage is:
* <code>
* $calendarService = new Google\Service\Calendar(...);
* $colors = $calendarService->colors;
* </code>
*/
class Colors extends \Google\Service\Resource
{
/**
* Returns the color definitions for calendars and events. (colors.get)
*
* @param array $optParams Optional parameters.
* @return ColorsModel
* @throws \Google\Service\Exception
*/
public function get($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], ColorsModel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Colors::class, 'Google_Service_Calendar_Resource_Colors');
@@ -0,0 +1,537 @@
<?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\Calendar\Resource;
use Google\Service\Calendar\Channel;
use Google\Service\Calendar\Event;
use Google\Service\Calendar\Events as EventsModel;
/**
* The "events" collection of methods.
* Typical usage is:
* <code>
* $calendarService = new Google\Service\Calendar(...);
* $events = $calendarService->events;
* </code>
*/
class Events extends \Google\Service\Resource
{
/**
* Deletes an event. (events.delete)
*
* @param string $calendarId Calendar identifier. To retrieve calendar IDs call
* the calendarList.list method. If you want to access the primary calendar of
* the currently logged in user, use the "primary" keyword.
* @param string $eventId Event identifier.
* @param array $optParams Optional parameters.
*
* @opt_param bool sendNotifications Deprecated. Please use sendUpdates instead.
*
* Whether to send notifications about the deletion of the event. Note that some
* emails might still be sent even if you set the value to false. The default is
* false.
* @opt_param string sendUpdates Guests who should receive notifications about
* the deletion of the event.
* @throws \Google\Service\Exception
*/
public function delete($calendarId, $eventId, $optParams = [])
{
$params = ['calendarId' => $calendarId, 'eventId' => $eventId];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params]);
}
/**
* Returns an event based on its Google Calendar ID. To retrieve an event using
* its iCalendar ID, call the events.list method using the iCalUID parameter.
* (events.get)
*
* @param string $calendarId Calendar identifier. To retrieve calendar IDs call
* the calendarList.list method. If you want to access the primary calendar of
* the currently logged in user, use the "primary" keyword.
* @param string $eventId Event identifier.
* @param array $optParams Optional parameters.
*
* @opt_param bool alwaysIncludeEmail Deprecated and ignored. A value will
* always be returned in the email field for the organizer, creator and
* attendees, even if no real email address is available (i.e. a generated, non-
* working value will be provided).
* @opt_param int maxAttendees The maximum number of attendees to include in the
* response. If there are more than the specified number of attendees, only the
* participant is returned. Optional.
* @opt_param string timeZone Time zone used in the response. Optional. The
* default is the time zone of the calendar.
* @return Event
* @throws \Google\Service\Exception
*/
public function get($calendarId, $eventId, $optParams = [])
{
$params = ['calendarId' => $calendarId, 'eventId' => $eventId];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Event::class);
}
/**
* Imports an event. This operation is used to add a private copy of an existing
* event to a calendar. Only events with an eventType of default may be
* imported. Deprecated behavior: If a non-default event is imported, its type
* will be changed to default and any event-type-specific properties it may have
* will be dropped. (events.import)
*
* @param string $calendarId Calendar identifier. To retrieve calendar IDs call
* the calendarList.list method. If you want to access the primary calendar of
* the currently logged in user, use the "primary" keyword.
* @param Event $postBody
* @param array $optParams Optional parameters.
*
* @opt_param int conferenceDataVersion Version number of conference data
* supported by the API client. Version 0 assumes no conference data support and
* ignores conference data in the event's body. Version 1 enables support for
* copying of ConferenceData as well as for creating new conferences using the
* createRequest field of conferenceData. The default is 0.
* @opt_param bool supportsAttachments Whether API client performing operation
* supports event attachments. Optional. The default is False.
* @return Event
* @throws \Google\Service\Exception
*/
public function import($calendarId, Event $postBody, $optParams = [])
{
$params = ['calendarId' => $calendarId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('import', [$params], Event::class);
}
/**
* Creates an event. (events.insert)
*
* @param string $calendarId Calendar identifier. To retrieve calendar IDs call
* the calendarList.list method. If you want to access the primary calendar of
* the currently logged in user, use the "primary" keyword.
* @param Event $postBody
* @param array $optParams Optional parameters.
*
* @opt_param int conferenceDataVersion Version number of conference data
* supported by the API client. Version 0 assumes no conference data support and
* ignores conference data in the event's body. Version 1 enables support for
* copying of ConferenceData as well as for creating new conferences using the
* createRequest field of conferenceData. The default is 0.
* @opt_param int maxAttendees The maximum number of attendees to include in the
* response. If there are more than the specified number of attendees, only the
* participant is returned. Optional.
* @opt_param bool sendNotifications Deprecated. Please use sendUpdates instead.
*
* Whether to send notifications about the creation of the new event. Note that
* some emails might still be sent even if you set the value to false. The
* default is false.
* @opt_param string sendUpdates Whether to send notifications about the
* creation of the new event. Note that some emails might still be sent. The
* default is false.
* @opt_param bool supportsAttachments Whether API client performing operation
* supports event attachments. Optional. The default is False.
* @return Event
* @throws \Google\Service\Exception
*/
public function insert($calendarId, Event $postBody, $optParams = [])
{
$params = ['calendarId' => $calendarId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('insert', [$params], Event::class);
}
/**
* Returns instances of the specified recurring event. (events.instances)
*
* @param string $calendarId Calendar identifier. To retrieve calendar IDs call
* the calendarList.list method. If you want to access the primary calendar of
* the currently logged in user, use the "primary" keyword.
* @param string $eventId Recurring event identifier.
* @param array $optParams Optional parameters.
*
* @opt_param bool alwaysIncludeEmail Deprecated and ignored. A value will
* always be returned in the email field for the organizer, creator and
* attendees, even if no real email address is available (i.e. a generated, non-
* working value will be provided).
* @opt_param int maxAttendees The maximum number of attendees to include in the
* response. If there are more than the specified number of attendees, only the
* participant is returned. Optional.
* @opt_param int maxResults Maximum number of events returned on one result
* page. By default the value is 250 events. The page size can never be larger
* than 2500 events. Optional.
* @opt_param string originalStart The original start time of the instance in
* the result. Optional.
* @opt_param string pageToken Token specifying which result page to return.
* Optional.
* @opt_param bool showDeleted Whether to include deleted events (with status
* equals "cancelled") in the result. Cancelled instances of recurring events
* will still be included if singleEvents is False. Optional. The default is
* False.
* @opt_param string timeMax Upper bound (exclusive) for an event's start time
* to filter by. Optional. The default is not to filter by start time. Must be
* an RFC3339 timestamp with mandatory time zone offset.
* @opt_param string timeMin Lower bound (inclusive) for an event's end time to
* filter by. Optional. The default is not to filter by end time. Must be an
* RFC3339 timestamp with mandatory time zone offset.
* @opt_param string timeZone Time zone used in the response. Optional. The
* default is the time zone of the calendar.
* @return EventsModel
* @throws \Google\Service\Exception
*/
public function instances($calendarId, $eventId, $optParams = [])
{
$params = ['calendarId' => $calendarId, 'eventId' => $eventId];
$params = array_merge($params, $optParams);
return $this->call('instances', [$params], EventsModel::class);
}
/**
* Returns events on the specified calendar. (events.listEvents)
*
* @param string $calendarId Calendar identifier. To retrieve calendar IDs call
* the calendarList.list method. If you want to access the primary calendar of
* the currently logged in user, use the "primary" keyword.
* @param array $optParams Optional parameters.
*
* @opt_param bool alwaysIncludeEmail Deprecated and ignored.
* @opt_param string eventTypes Event types to return. Optional. This parameter
* can be repeated multiple times to return events of different types. If unset,
* returns all event types.
* @opt_param string iCalUID Specifies an event ID in the iCalendar format to be
* provided in the response. Optional. Use this if you want to search for an
* event by its iCalendar ID.
* @opt_param int maxAttendees The maximum number of attendees to include in the
* response. If there are more than the specified number of attendees, only the
* participant is returned. Optional.
* @opt_param int maxResults Maximum number of events returned on one result
* page. The number of events in the resulting page may be less than this value,
* or none at all, even if there are more events matching the query. Incomplete
* pages can be detected by a non-empty nextPageToken field in the response. By
* default the value is 250 events. The page size can never be larger than 2500
* events. Optional.
* @opt_param string orderBy The order of the events returned in the result.
* Optional. The default is an unspecified, stable order.
* @opt_param string pageToken Token specifying which result page to return.
* Optional.
* @opt_param string privateExtendedProperty Extended properties constraint
* specified as propertyName=value. Matches only private properties. This
* parameter might be repeated multiple times to return events that match all
* given constraints.
* @opt_param string q Free text search terms to find events that match these
* terms in the following fields:
*
* - summary - description - location - attendee's displayName - attendee's
* email - organizer's displayName - organizer's email -
* workingLocationProperties.officeLocation.buildingId -
* workingLocationProperties.officeLocation.deskId -
* workingLocationProperties.officeLocation.label -
* workingLocationProperties.customLocation.label These search terms also match
* predefined keywords against all display title translations of working
* location, out-of-office, and focus-time events. For example, searching for
* "Office" or "Bureau" returns working location events of type officeLocation,
* whereas searching for "Out of office" or "Abwesend" returns out-of-office
* events. Optional.
* @opt_param string sharedExtendedProperty Extended properties constraint
* specified as propertyName=value. Matches only shared properties. This
* parameter might be repeated multiple times to return events that match all
* given constraints.
* @opt_param bool showDeleted Whether to include deleted events (with status
* equals "cancelled") in the result. Cancelled instances of recurring events
* (but not the underlying recurring event) will still be included if
* showDeleted and singleEvents are both False. If showDeleted and singleEvents
* are both True, only single instances of deleted events (but not the
* underlying recurring events) are returned. Optional. The default is False.
* @opt_param bool showHiddenInvitations Whether to include hidden invitations
* in the result. Optional. The default is False.
* @opt_param bool singleEvents Whether to expand recurring events into
* instances and only return single one-off events and instances of recurring
* events, but not the underlying recurring events themselves. Optional. The
* default is False.
* @opt_param string syncToken Token obtained from the nextSyncToken field
* returned on the last page of results from the previous list request. It makes
* the result of this list request contain only entries that have changed since
* then. All events deleted since the previous list request will always be in
* the result set and it is not allowed to set showDeleted to False. There are
* several query parameters that cannot be specified together with nextSyncToken
* to ensure consistency of the client state.
*
* These are: - iCalUID - orderBy - privateExtendedProperty - q -
* sharedExtendedProperty - timeMin - timeMax - updatedMin All other query
* parameters should be the same as for the initial synchronization to avoid
* undefined behavior. If the syncToken expires, the server will respond with a
* 410 GONE response code and the client should clear its storage and perform a
* full synchronization without any syncToken. Learn more about incremental
* synchronization. Optional. The default is to return all entries.
* @opt_param string timeMax Upper bound (exclusive) for an event's start time
* to filter by. Optional. The default is not to filter by start time. Must be
* an RFC3339 timestamp with mandatory time zone offset, for example,
* 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided
* but are ignored. If timeMin is set, timeMax must be greater than timeMin.
* @opt_param string timeMin Lower bound (exclusive) for an event's end time to
* filter by. Optional. The default is not to filter by end time. Must be an
* RFC3339 timestamp with mandatory time zone offset, for example,
* 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided
* but are ignored. If timeMax is set, timeMin must be smaller than timeMax.
* @opt_param string timeZone Time zone used in the response. Optional. The
* default is the time zone of the calendar.
* @opt_param string updatedMin Lower bound for an event's last modification
* time (as a RFC3339 timestamp) to filter by. When specified, entries deleted
* since this time will always be included regardless of showDeleted. Optional.
* The default is not to filter by last modification time.
* @return EventsModel
* @throws \Google\Service\Exception
*/
public function listEvents($calendarId, $optParams = [])
{
$params = ['calendarId' => $calendarId];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], EventsModel::class);
}
/**
* Moves an event to another calendar, i.e. changes an event's organizer. Note
* that only default events can be moved; birthday, focusTime, fromGmail,
* outOfOffice and workingLocation events cannot be moved. (events.move)
*
* @param string $calendarId Calendar identifier of the source calendar where
* the event currently is on.
* @param string $eventId Event identifier.
* @param string $destination Calendar identifier of the target calendar where
* the event is to be moved to.
* @param array $optParams Optional parameters.
*
* @opt_param bool sendNotifications Deprecated. Please use sendUpdates instead.
*
* Whether to send notifications about the change of the event's organizer. Note
* that some emails might still be sent even if you set the value to false. The
* default is false.
* @opt_param string sendUpdates Guests who should receive notifications about
* the change of the event's organizer.
* @return Event
* @throws \Google\Service\Exception
*/
public function move($calendarId, $eventId, $destination, $optParams = [])
{
$params = ['calendarId' => $calendarId, 'eventId' => $eventId, 'destination' => $destination];
$params = array_merge($params, $optParams);
return $this->call('move', [$params], Event::class);
}
/**
* Updates an event. This method supports patch semantics. (events.patch)
*
* @param string $calendarId Calendar identifier. To retrieve calendar IDs call
* the calendarList.list method. If you want to access the primary calendar of
* the currently logged in user, use the "primary" keyword.
* @param string $eventId Event identifier.
* @param Event $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool alwaysIncludeEmail Deprecated and ignored. A value will
* always be returned in the email field for the organizer, creator and
* attendees, even if no real email address is available (i.e. a generated, non-
* working value will be provided).
* @opt_param int conferenceDataVersion Version number of conference data
* supported by the API client. Version 0 assumes no conference data support and
* ignores conference data in the event's body. Version 1 enables support for
* copying of ConferenceData as well as for creating new conferences using the
* createRequest field of conferenceData. The default is 0.
* @opt_param int maxAttendees The maximum number of attendees to include in the
* response. If there are more than the specified number of attendees, only the
* participant is returned. Optional.
* @opt_param bool sendNotifications Deprecated. Please use sendUpdates instead.
*
* Whether to send notifications about the event update (for example,
* description changes, etc.). Note that some emails might still be sent even if
* you set the value to false. The default is false.
* @opt_param string sendUpdates Guests who should receive notifications about
* the event update (for example, title changes, etc.).
* @opt_param bool supportsAttachments Whether API client performing operation
* supports event attachments. Optional. The default is False.
* @return Event
* @throws \Google\Service\Exception
*/
public function patch($calendarId, $eventId, Event $postBody, $optParams = [])
{
$params = ['calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('patch', [$params], Event::class);
}
/**
* Creates an event based on a simple text string. (events.quickAdd)
*
* @param string $calendarId Calendar identifier. To retrieve calendar IDs call
* the calendarList.list method. If you want to access the primary calendar of
* the currently logged in user, use the "primary" keyword.
* @param string $text The text describing the event to be created.
* @param array $optParams Optional parameters.
*
* @opt_param bool sendNotifications Deprecated. Please use sendUpdates instead.
*
* Whether to send notifications about the creation of the event. Note that some
* emails might still be sent even if you set the value to false. The default is
* false.
* @opt_param string sendUpdates Guests who should receive notifications about
* the creation of the new event.
* @return Event
* @throws \Google\Service\Exception
*/
public function quickAdd($calendarId, $text, $optParams = [])
{
$params = ['calendarId' => $calendarId, 'text' => $text];
$params = array_merge($params, $optParams);
return $this->call('quickAdd', [$params], Event::class);
}
/**
* Updates an event. (events.update)
*
* @param string $calendarId Calendar identifier. To retrieve calendar IDs call
* the calendarList.list method. If you want to access the primary calendar of
* the currently logged in user, use the "primary" keyword.
* @param string $eventId Event identifier.
* @param Event $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool alwaysIncludeEmail Deprecated and ignored. A value will
* always be returned in the email field for the organizer, creator and
* attendees, even if no real email address is available (i.e. a generated, non-
* working value will be provided).
* @opt_param int conferenceDataVersion Version number of conference data
* supported by the API client. Version 0 assumes no conference data support and
* ignores conference data in the event's body. Version 1 enables support for
* copying of ConferenceData as well as for creating new conferences using the
* createRequest field of conferenceData. The default is 0.
* @opt_param int maxAttendees The maximum number of attendees to include in the
* response. If there are more than the specified number of attendees, only the
* participant is returned. Optional.
* @opt_param bool sendNotifications Deprecated. Please use sendUpdates instead.
*
* Whether to send notifications about the event update (for example,
* description changes, etc.). Note that some emails might still be sent even if
* you set the value to false. The default is false.
* @opt_param string sendUpdates Guests who should receive notifications about
* the event update (for example, title changes, etc.).
* @opt_param bool supportsAttachments Whether API client performing operation
* supports event attachments. Optional. The default is False.
* @return Event
* @throws \Google\Service\Exception
*/
public function update($calendarId, $eventId, Event $postBody, $optParams = [])
{
$params = ['calendarId' => $calendarId, 'eventId' => $eventId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('update', [$params], Event::class);
}
/**
* Watch for changes to Events resources. (events.watch)
*
* @param string $calendarId Calendar identifier. To retrieve calendar IDs call
* the calendarList.list method. If you want to access the primary calendar of
* the currently logged in user, use the "primary" keyword.
* @param Channel $postBody
* @param array $optParams Optional parameters.
*
* @opt_param bool alwaysIncludeEmail Deprecated and ignored.
* @opt_param string eventTypes Event types to return. Optional. This parameter
* can be repeated multiple times to return events of different types. If unset,
* returns all event types.
* @opt_param string iCalUID Specifies an event ID in the iCalendar format to be
* provided in the response. Optional. Use this if you want to search for an
* event by its iCalendar ID.
* @opt_param int maxAttendees The maximum number of attendees to include in the
* response. If there are more than the specified number of attendees, only the
* participant is returned. Optional.
* @opt_param int maxResults Maximum number of events returned on one result
* page. The number of events in the resulting page may be less than this value,
* or none at all, even if there are more events matching the query. Incomplete
* pages can be detected by a non-empty nextPageToken field in the response. By
* default the value is 250 events. The page size can never be larger than 2500
* events. Optional.
* @opt_param string orderBy The order of the events returned in the result.
* Optional. The default is an unspecified, stable order.
* @opt_param string pageToken Token specifying which result page to return.
* Optional.
* @opt_param string privateExtendedProperty Extended properties constraint
* specified as propertyName=value. Matches only private properties. This
* parameter might be repeated multiple times to return events that match all
* given constraints.
* @opt_param string q Free text search terms to find events that match these
* terms in the following fields:
*
* - summary - description - location - attendee's displayName - attendee's
* email - organizer's displayName - organizer's email -
* workingLocationProperties.officeLocation.buildingId -
* workingLocationProperties.officeLocation.deskId -
* workingLocationProperties.officeLocation.label -
* workingLocationProperties.customLocation.label These search terms also match
* predefined keywords against all display title translations of working
* location, out-of-office, and focus-time events. For example, searching for
* "Office" or "Bureau" returns working location events of type officeLocation,
* whereas searching for "Out of office" or "Abwesend" returns out-of-office
* events. Optional.
* @opt_param string sharedExtendedProperty Extended properties constraint
* specified as propertyName=value. Matches only shared properties. This
* parameter might be repeated multiple times to return events that match all
* given constraints.
* @opt_param bool showDeleted Whether to include deleted events (with status
* equals "cancelled") in the result. Cancelled instances of recurring events
* (but not the underlying recurring event) will still be included if
* showDeleted and singleEvents are both False. If showDeleted and singleEvents
* are both True, only single instances of deleted events (but not the
* underlying recurring events) are returned. Optional. The default is False.
* @opt_param bool showHiddenInvitations Whether to include hidden invitations
* in the result. Optional. The default is False.
* @opt_param bool singleEvents Whether to expand recurring events into
* instances and only return single one-off events and instances of recurring
* events, but not the underlying recurring events themselves. Optional. The
* default is False.
* @opt_param string syncToken Token obtained from the nextSyncToken field
* returned on the last page of results from the previous list request. It makes
* the result of this list request contain only entries that have changed since
* then. All events deleted since the previous list request will always be in
* the result set and it is not allowed to set showDeleted to False. There are
* several query parameters that cannot be specified together with nextSyncToken
* to ensure consistency of the client state.
*
* These are: - iCalUID - orderBy - privateExtendedProperty - q -
* sharedExtendedProperty - timeMin - timeMax - updatedMin All other query
* parameters should be the same as for the initial synchronization to avoid
* undefined behavior. If the syncToken expires, the server will respond with a
* 410 GONE response code and the client should clear its storage and perform a
* full synchronization without any syncToken. Learn more about incremental
* synchronization. Optional. The default is to return all entries.
* @opt_param string timeMax Upper bound (exclusive) for an event's start time
* to filter by. Optional. The default is not to filter by start time. Must be
* an RFC3339 timestamp with mandatory time zone offset, for example,
* 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided
* but are ignored. If timeMin is set, timeMax must be greater than timeMin.
* @opt_param string timeMin Lower bound (exclusive) for an event's end time to
* filter by. Optional. The default is not to filter by end time. Must be an
* RFC3339 timestamp with mandatory time zone offset, for example,
* 2011-06-03T10:00:00-07:00, 2011-06-03T10:00:00Z. Milliseconds may be provided
* but are ignored. If timeMax is set, timeMin must be smaller than timeMax.
* @opt_param string timeZone Time zone used in the response. Optional. The
* default is the time zone of the calendar.
* @opt_param string updatedMin Lower bound for an event's last modification
* time (as a RFC3339 timestamp) to filter by. When specified, entries deleted
* since this time will always be included regardless of showDeleted. Optional.
* The default is not to filter by last modification time.
* @return Channel
* @throws \Google\Service\Exception
*/
public function watch($calendarId, Channel $postBody, $optParams = [])
{
$params = ['calendarId' => $calendarId, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('watch', [$params], Channel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Events::class, 'Google_Service_Calendar_Resource_Events');
@@ -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\Calendar\Resource;
use Google\Service\Calendar\FreeBusyRequest;
use Google\Service\Calendar\FreeBusyResponse;
/**
* The "freebusy" collection of methods.
* Typical usage is:
* <code>
* $calendarService = new Google\Service\Calendar(...);
* $freebusy = $calendarService->freebusy;
* </code>
*/
class Freebusy extends \Google\Service\Resource
{
/**
* Returns free/busy information for a set of calendars. (freebusy.query)
*
* @param FreeBusyRequest $postBody
* @param array $optParams Optional parameters.
* @return FreeBusyResponse
* @throws \Google\Service\Exception
*/
public function query(FreeBusyRequest $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('query', [$params], FreeBusyResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Freebusy::class, 'Google_Service_Calendar_Resource_Freebusy');
@@ -0,0 +1,104 @@
<?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\Calendar\Resource;
use Google\Service\Calendar\Channel;
use Google\Service\Calendar\Setting;
use Google\Service\Calendar\Settings as SettingsModel;
/**
* The "settings" collection of methods.
* Typical usage is:
* <code>
* $calendarService = new Google\Service\Calendar(...);
* $settings = $calendarService->settings;
* </code>
*/
class Settings extends \Google\Service\Resource
{
/**
* Returns a single user setting. (settings.get)
*
* @param string $setting The id of the user setting.
* @param array $optParams Optional parameters.
* @return Setting
* @throws \Google\Service\Exception
*/
public function get($setting, $optParams = [])
{
$params = ['setting' => $setting];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Setting::class);
}
/**
* Returns all user settings for the authenticated user. (settings.listSettings)
*
* @param array $optParams Optional parameters.
*
* @opt_param int maxResults Maximum number of entries returned on one result
* page. By default the value is 100 entries. The page size can never be larger
* than 250 entries. Optional.
* @opt_param string pageToken Token specifying which result page to return.
* Optional.
* @opt_param string syncToken Token obtained from the nextSyncToken field
* returned on the last page of results from the previous list request. It makes
* the result of this list request contain only entries that have changed since
* then. If the syncToken expires, the server will respond with a 410 GONE
* response code and the client should clear its storage and perform a full
* synchronization without any syncToken. Learn more about incremental
* synchronization. Optional. The default is to return all entries.
* @return SettingsModel
* @throws \Google\Service\Exception
*/
public function listSettings($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], SettingsModel::class);
}
/**
* Watch for changes to Settings resources. (settings.watch)
*
* @param Channel $postBody
* @param array $optParams Optional parameters.
*
* @opt_param int maxResults Maximum number of entries returned on one result
* page. By default the value is 100 entries. The page size can never be larger
* than 250 entries. Optional.
* @opt_param string pageToken Token specifying which result page to return.
* Optional.
* @opt_param string syncToken Token obtained from the nextSyncToken field
* returned on the last page of results from the previous list request. It makes
* the result of this list request contain only entries that have changed since
* then. If the syncToken expires, the server will respond with a 410 GONE
* response code and the client should clear its storage and perform a full
* synchronization without any syncToken. Learn more about incremental
* synchronization. Optional. The default is to return all entries.
* @return Channel
* @throws \Google\Service\Exception
*/
public function watch(Channel $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('watch', [$params], Channel::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Settings::class, 'Google_Service_Calendar_Resource_Settings');
@@ -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\Calendar;
class Setting extends \Google\Model
{
/**
* ETag of the resource.
*
* @var string
*/
public $etag;
/**
* The id of the user setting.
*
* @var string
*/
public $id;
/**
* Type of the resource ("calendar#setting").
*
* @var string
*/
public $kind;
/**
* Value of the user setting. The format of the value depends on the ID of the
* setting. It must always be a UTF-8 string of length up to 1024 characters.
*
* @var string
*/
public $value;
/**
* ETag of the resource.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* The id of the user setting.
*
* @param string $id
*/
public function setId($id)
{
$this->id = $id;
}
/**
* @return string
*/
public function getId()
{
return $this->id;
}
/**
* Type of the resource ("calendar#setting").
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Value of the user setting. The format of the value depends on the ID of the
* setting. It must always be a UTF-8 string of length up to 1024 characters.
*
* @param string $value
*/
public function setValue($value)
{
$this->value = $value;
}
/**
* @return string
*/
public function getValue()
{
return $this->value;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Setting::class, 'Google_Service_Calendar_Setting');
@@ -0,0 +1,139 @@
<?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\Calendar;
class Settings extends \Google\Collection
{
protected $collection_key = 'items';
/**
* Etag of the collection.
*
* @var string
*/
public $etag;
protected $itemsType = Setting::class;
protected $itemsDataType = 'array';
/**
* Type of the collection ("calendar#settings").
*
* @var string
*/
public $kind;
/**
* Token used to access the next page of this result. Omitted if no further
* results are available, in which case nextSyncToken is provided.
*
* @var string
*/
public $nextPageToken;
/**
* Token used at a later point in time to retrieve only the entries that have
* changed since this result was returned. Omitted if further results are
* available, in which case nextPageToken is provided.
*
* @var string
*/
public $nextSyncToken;
/**
* Etag of the collection.
*
* @param string $etag
*/
public function setEtag($etag)
{
$this->etag = $etag;
}
/**
* @return string
*/
public function getEtag()
{
return $this->etag;
}
/**
* List of user settings.
*
* @param Setting[] $items
*/
public function setItems($items)
{
$this->items = $items;
}
/**
* @return Setting[]
*/
public function getItems()
{
return $this->items;
}
/**
* Type of the collection ("calendar#settings").
*
* @param string $kind
*/
public function setKind($kind)
{
$this->kind = $kind;
}
/**
* @return string
*/
public function getKind()
{
return $this->kind;
}
/**
* Token used to access the next page of this result. Omitted if no further
* results are available, in which case nextSyncToken is provided.
*
* @param string $nextPageToken
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* Token used at a later point in time to retrieve only the entries that have
* changed since this result was returned. Omitted if further results are
* available, in which case nextPageToken is provided.
*
* @param string $nextSyncToken
*/
public function setNextSyncToken($nextSyncToken)
{
$this->nextSyncToken = $nextSyncToken;
}
/**
* @return string
*/
public function getNextSyncToken()
{
return $this->nextSyncToken;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Settings::class, 'Google_Service_Calendar_Settings');
@@ -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\Calendar;
class TimePeriod extends \Google\Model
{
/**
* The (exclusive) end of the time period.
*
* @var string
*/
public $end;
/**
* The (inclusive) start of the time period.
*
* @var string
*/
public $start;
/**
* The (exclusive) end of the time period.
*
* @param string $end
*/
public function setEnd($end)
{
$this->end = $end;
}
/**
* @return string
*/
public function getEnd()
{
return $this->end;
}
/**
* The (inclusive) start of the time period.
*
* @param string $start
*/
public function setStart($start)
{
$this->start = $start;
}
/**
* @return string
*/
public function getStart()
{
return $this->start;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TimePeriod::class, 'Google_Service_Calendar_TimePeriod');