Initial commit

This commit is contained in:
Local Administrator
2025-04-18 10:32:42 +02:00
commit b83134aca3
29643 changed files with 3045897 additions and 0 deletions

View File

@@ -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\Keep;
class Attachment extends \Google\Collection
{
protected $collection_key = 'mimeType';
/**
* @var string[]
*/
public $mimeType;
/**
* @var string
*/
public $name;
/**
* @param string[]
*/
public function setMimeType($mimeType)
{
$this->mimeType = $mimeType;
}
/**
* @return string[]
*/
public function getMimeType()
{
return $this->mimeType;
}
/**
* @param string
*/
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(Attachment::class, 'Google_Service_Keep_Attachment');

View File

@@ -0,0 +1,43 @@
<?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\Keep;
class BatchCreatePermissionsRequest extends \Google\Collection
{
protected $collection_key = 'requests';
protected $requestsType = CreatePermissionRequest::class;
protected $requestsDataType = 'array';
/**
* @param CreatePermissionRequest[]
*/
public function setRequests($requests)
{
$this->requests = $requests;
}
/**
* @return CreatePermissionRequest[]
*/
public function getRequests()
{
return $this->requests;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchCreatePermissionsRequest::class, 'Google_Service_Keep_BatchCreatePermissionsRequest');

View File

@@ -0,0 +1,43 @@
<?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\Keep;
class BatchCreatePermissionsResponse extends \Google\Collection
{
protected $collection_key = 'permissions';
protected $permissionsType = Permission::class;
protected $permissionsDataType = 'array';
/**
* @param Permission[]
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return Permission[]
*/
public function getPermissions()
{
return $this->permissions;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchCreatePermissionsResponse::class, 'Google_Service_Keep_BatchCreatePermissionsResponse');

View File

@@ -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\Keep;
class BatchDeletePermissionsRequest extends \Google\Collection
{
protected $collection_key = 'names';
/**
* @var string[]
*/
public $names;
/**
* @param string[]
*/
public function setNames($names)
{
$this->names = $names;
}
/**
* @return string[]
*/
public function getNames()
{
return $this->names;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(BatchDeletePermissionsRequest::class, 'Google_Service_Keep_BatchDeletePermissionsRequest');

View File

@@ -0,0 +1,60 @@
<?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\Keep;
class CreatePermissionRequest extends \Google\Model
{
/**
* @var string
*/
public $parent;
protected $permissionType = Permission::class;
protected $permissionDataType = '';
/**
* @param string
*/
public function setParent($parent)
{
$this->parent = $parent;
}
/**
* @return string
*/
public function getParent()
{
return $this->parent;
}
/**
* @param Permission
*/
public function setPermission(Permission $permission)
{
$this->permission = $permission;
}
/**
* @return Permission
*/
public function getPermission()
{
return $this->permission;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(CreatePermissionRequest::class, 'Google_Service_Keep_CreatePermissionRequest');

View File

@@ -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\Keep;
class Family extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Family::class, 'Google_Service_Keep_Family');

View File

@@ -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\Keep;
class Group extends \Google\Model
{
/**
* @var string
*/
public $email;
/**
* @param string
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Group::class, 'Google_Service_Keep_Group');

View File

@@ -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\Keep;
class KeepEmpty extends \Google\Model
{
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(KeepEmpty::class, 'Google_Service_Keep_KeepEmpty');

View File

@@ -0,0 +1,43 @@
<?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\Keep;
class ListContent extends \Google\Collection
{
protected $collection_key = 'listItems';
protected $listItemsType = ListItem::class;
protected $listItemsDataType = 'array';
/**
* @param ListItem[]
*/
public function setListItems($listItems)
{
$this->listItems = $listItems;
}
/**
* @return ListItem[]
*/
public function getListItems()
{
return $this->listItems;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListContent::class, 'Google_Service_Keep_ListContent');

View File

@@ -0,0 +1,77 @@
<?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\Keep;
class ListItem extends \Google\Collection
{
protected $collection_key = 'childListItems';
/**
* @var bool
*/
public $checked;
protected $childListItemsType = ListItem::class;
protected $childListItemsDataType = 'array';
protected $textType = TextContent::class;
protected $textDataType = '';
/**
* @param bool
*/
public function setChecked($checked)
{
$this->checked = $checked;
}
/**
* @return bool
*/
public function getChecked()
{
return $this->checked;
}
/**
* @param ListItem[]
*/
public function setChildListItems($childListItems)
{
$this->childListItems = $childListItems;
}
/**
* @return ListItem[]
*/
public function getChildListItems()
{
return $this->childListItems;
}
/**
* @param TextContent
*/
public function setText(TextContent $text)
{
$this->text = $text;
}
/**
* @return TextContent
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListItem::class, 'Google_Service_Keep_ListItem');

View File

@@ -0,0 +1,61 @@
<?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\Keep;
class ListNotesResponse extends \Google\Collection
{
protected $collection_key = 'notes';
/**
* @var string
*/
public $nextPageToken;
protected $notesType = Note::class;
protected $notesDataType = 'array';
/**
* @param string
*/
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
/**
* @return string
*/
public function getNextPageToken()
{
return $this->nextPageToken;
}
/**
* @param Note[]
*/
public function setNotes($notes)
{
$this->notes = $notes;
}
/**
* @return Note[]
*/
public function getNotes()
{
return $this->notes;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(ListNotesResponse::class, 'Google_Service_Keep_ListNotesResponse');

View File

@@ -0,0 +1,183 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Keep;
class Note extends \Google\Collection
{
protected $collection_key = 'permissions';
protected $attachmentsType = Attachment::class;
protected $attachmentsDataType = 'array';
protected $bodyType = Section::class;
protected $bodyDataType = '';
/**
* @var string
*/
public $createTime;
/**
* @var string
*/
public $name;
protected $permissionsType = Permission::class;
protected $permissionsDataType = 'array';
/**
* @var string
*/
public $title;
/**
* @var string
*/
public $trashTime;
/**
* @var bool
*/
public $trashed;
/**
* @var string
*/
public $updateTime;
/**
* @param Attachment[]
*/
public function setAttachments($attachments)
{
$this->attachments = $attachments;
}
/**
* @return Attachment[]
*/
public function getAttachments()
{
return $this->attachments;
}
/**
* @param Section
*/
public function setBody(Section $body)
{
$this->body = $body;
}
/**
* @return Section
*/
public function getBody()
{
return $this->body;
}
/**
* @param string
*/
public function setCreateTime($createTime)
{
$this->createTime = $createTime;
}
/**
* @return string
*/
public function getCreateTime()
{
return $this->createTime;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param Permission[]
*/
public function setPermissions($permissions)
{
$this->permissions = $permissions;
}
/**
* @return Permission[]
*/
public function getPermissions()
{
return $this->permissions;
}
/**
* @param string
*/
public function setTitle($title)
{
$this->title = $title;
}
/**
* @return string
*/
public function getTitle()
{
return $this->title;
}
/**
* @param string
*/
public function setTrashTime($trashTime)
{
$this->trashTime = $trashTime;
}
/**
* @return string
*/
public function getTrashTime()
{
return $this->trashTime;
}
/**
* @param bool
*/
public function setTrashed($trashed)
{
$this->trashed = $trashed;
}
/**
* @return bool
*/
public function getTrashed()
{
return $this->trashed;
}
/**
* @param string
*/
public function setUpdateTime($updateTime)
{
$this->updateTime = $updateTime;
}
/**
* @return string
*/
public function getUpdateTime()
{
return $this->updateTime;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Note::class, 'Google_Service_Keep_Note');

View File

@@ -0,0 +1,146 @@
<?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\Keep;
class Permission extends \Google\Model
{
/**
* @var bool
*/
public $deleted;
/**
* @var string
*/
public $email;
protected $familyType = Family::class;
protected $familyDataType = '';
protected $groupType = Group::class;
protected $groupDataType = '';
/**
* @var string
*/
public $name;
/**
* @var string
*/
public $role;
protected $userType = User::class;
protected $userDataType = '';
/**
* @param bool
*/
public function setDeleted($deleted)
{
$this->deleted = $deleted;
}
/**
* @return bool
*/
public function getDeleted()
{
return $this->deleted;
}
/**
* @param string
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
/**
* @param Family
*/
public function setFamily(Family $family)
{
$this->family = $family;
}
/**
* @return Family
*/
public function getFamily()
{
return $this->family;
}
/**
* @param Group
*/
public function setGroup(Group $group)
{
$this->group = $group;
}
/**
* @return Group
*/
public function getGroup()
{
return $this->group;
}
/**
* @param string
*/
public function setName($name)
{
$this->name = $name;
}
/**
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* @param string
*/
public function setRole($role)
{
$this->role = $role;
}
/**
* @return string
*/
public function getRole()
{
return $this->role;
}
/**
* @param User
*/
public function setUser(User $user)
{
$this->user = $user;
}
/**
* @return User
*/
public function getUser()
{
return $this->user;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Permission::class, 'Google_Service_Keep_Permission');

View File

@@ -0,0 +1,55 @@
<?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\Keep\Resource;
use Google\Service\Keep\Attachment;
/**
* The "media" collection of methods.
* Typical usage is:
* <code>
* $keepService = new Google\Service\Keep(...);
* $media = $keepService->media;
* </code>
*/
class Media extends \Google\Service\Resource
{
/**
* Gets an attachment. To download attachment media via REST requires the
* alt=media query parameter. Returns a 400 bad request error if attachment
* media is not available in the requested MIME type. (media.download)
*
* @param string $name Required. The name of the attachment.
* @param array $optParams Optional parameters.
*
* @opt_param string mimeType The IANA MIME type format requested. The requested
* MIME type must be one specified in the attachment.mime_type. Required when
* downloading attachment media and ignored otherwise.
* @return Attachment
* @throws \Google\Service\Exception
*/
public function download($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('download', [$params], Attachment::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Media::class, 'Google_Service_Keep_Resource_Media');

View File

@@ -0,0 +1,110 @@
<?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\Keep\Resource;
use Google\Service\Keep\KeepEmpty;
use Google\Service\Keep\ListNotesResponse;
use Google\Service\Keep\Note;
/**
* The "notes" collection of methods.
* Typical usage is:
* <code>
* $keepService = new Google\Service\Keep(...);
* $notes = $keepService->notes;
* </code>
*/
class Notes extends \Google\Service\Resource
{
/**
* Creates a new note. (notes.create)
*
* @param Note $postBody
* @param array $optParams Optional parameters.
* @return Note
* @throws \Google\Service\Exception
*/
public function create(Note $postBody, $optParams = [])
{
$params = ['postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('create', [$params], Note::class);
}
/**
* Deletes a note. Caller must have the `OWNER` role on the note to delete.
* Deleting a note removes the resource immediately and cannot be undone. Any
* collaborators will lose access to the note. (notes.delete)
*
* @param string $name Required. Name of the note to delete.
* @param array $optParams Optional parameters.
* @return KeepEmpty
* @throws \Google\Service\Exception
*/
public function delete($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('delete', [$params], KeepEmpty::class);
}
/**
* Gets a note. (notes.get)
*
* @param string $name Required. Name of the resource.
* @param array $optParams Optional parameters.
* @return Note
* @throws \Google\Service\Exception
*/
public function get($name, $optParams = [])
{
$params = ['name' => $name];
$params = array_merge($params, $optParams);
return $this->call('get', [$params], Note::class);
}
/**
* Lists notes. Every list call returns a page of results with `page_size` as
* the upper bound of returned items. A `page_size` of zero allows the server to
* choose the upper bound. The ListNotesResponse contains at most `page_size`
* entries. If there are more things left to list, it provides a
* `next_page_token` value. (Page tokens are opaque values.) To get the next
* page of results, copy the result's `next_page_token` into the next request's
* `page_token`. Repeat until the `next_page_token` returned with a page of
* results is empty. ListNotes return consistent results in the face of
* concurrent changes, or signals that it cannot with an ABORTED error.
* (notes.listNotes)
*
* @param array $optParams Optional parameters.
*
* @opt_param string filter Filter for list results. If no filter is supplied,
* the `trashed` filter is applied by default. Valid fields to filter by are:
* `create_time`, `update_time`, `trash_time`, and `trashed`. Filter syntax
* follows the [Google AIP filtering spec](https://aip.dev/160).
* @opt_param int pageSize The maximum number of results to return.
* @opt_param string pageToken The previous page's `next_page_token` field.
* @return ListNotesResponse
* @throws \Google\Service\Exception
*/
public function listNotes($optParams = [])
{
$params = [];
$params = array_merge($params, $optParams);
return $this->call('list', [$params], ListNotesResponse::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Notes::class, 'Google_Service_Keep_Resource_Notes');

View File

@@ -0,0 +1,79 @@
<?php
/*
* Copyright 2014 Google Inc.
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
* use this file except in compliance with the License. You may obtain a copy of
* the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
* License for the specific language governing permissions and limitations under
* the License.
*/
namespace Google\Service\Keep\Resource;
use Google\Service\Keep\BatchCreatePermissionsRequest;
use Google\Service\Keep\BatchCreatePermissionsResponse;
use Google\Service\Keep\BatchDeletePermissionsRequest;
use Google\Service\Keep\KeepEmpty;
/**
* The "permissions" collection of methods.
* Typical usage is:
* <code>
* $keepService = new Google\Service\Keep(...);
* $permissions = $keepService->notes_permissions;
* </code>
*/
class NotesPermissions extends \Google\Service\Resource
{
/**
* Creates one or more permissions on the note. Only permissions with the
* `WRITER` role may be created. If adding any permission fails, then the entire
* request fails and no changes are made. (permissions.batchCreate)
*
* @param string $parent The parent resource shared by all Permissions being
* created. Format: `notes/{note}` If this is set, the parent field in the
* CreatePermission messages must either be empty or match this field.
* @param BatchCreatePermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return BatchCreatePermissionsResponse
* @throws \Google\Service\Exception
*/
public function batchCreate($parent, BatchCreatePermissionsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchCreate', [$params], BatchCreatePermissionsResponse::class);
}
/**
* Deletes one or more permissions on the note. The specified entities will
* immediately lose access. A permission with the `OWNER` role can't be removed.
* If removing a permission fails, then the entire request fails and no changes
* are made. Returns a 400 bad request error if a specified permission does not
* exist on the note. (permissions.batchDelete)
*
* @param string $parent The parent resource shared by all permissions being
* deleted. Format: `notes/{note}` If this is set, the parent of all of the
* permissions specified in the DeletePermissionRequest messages must match this
* field.
* @param BatchDeletePermissionsRequest $postBody
* @param array $optParams Optional parameters.
* @return KeepEmpty
* @throws \Google\Service\Exception
*/
public function batchDelete($parent, BatchDeletePermissionsRequest $postBody, $optParams = [])
{
$params = ['parent' => $parent, 'postBody' => $postBody];
$params = array_merge($params, $optParams);
return $this->call('batchDelete', [$params], KeepEmpty::class);
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(NotesPermissions::class, 'Google_Service_Keep_Resource_NotesPermissions');

View File

@@ -0,0 +1,58 @@
<?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\Keep;
class Section extends \Google\Model
{
protected $listType = ListContent::class;
protected $listDataType = '';
protected $textType = TextContent::class;
protected $textDataType = '';
/**
* @param ListContent
*/
public function setList(ListContent $list)
{
$this->list = $list;
}
/**
* @return ListContent
*/
public function getList()
{
return $this->list;
}
/**
* @param TextContent
*/
public function setText(TextContent $text)
{
$this->text = $text;
}
/**
* @return TextContent
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(Section::class, 'Google_Service_Keep_Section');

View File

@@ -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\Keep;
class TextContent extends \Google\Model
{
/**
* @var string
*/
public $text;
/**
* @param string
*/
public function setText($text)
{
$this->text = $text;
}
/**
* @return string
*/
public function getText()
{
return $this->text;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(TextContent::class, 'Google_Service_Keep_TextContent');

View File

@@ -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\Keep;
class User extends \Google\Model
{
/**
* @var string
*/
public $email;
/**
* @param string
*/
public function setEmail($email)
{
$this->email = $email;
}
/**
* @return string
*/
public function getEmail()
{
return $this->email;
}
}
// Adding a class alias for backwards compatibility with the previous class name.
class_alias(User::class, 'Google_Service_Keep_User');