Nouveaux fichier suite maj librairies vendor
This commit is contained in:
131
vendor/google/apiclient-services/src/Google/Service/PeopleService/Resource/ContactGroups.php
vendored
Normal file
131
vendor/google/apiclient-services/src/Google/Service/PeopleService/Resource/ContactGroups.php
vendored
Normal file
@@ -0,0 +1,131 @@
|
||||
<?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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* The "contactGroups" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $peopleService = new Google_Service_PeopleService(...);
|
||||
* $contactGroups = $peopleService->contactGroups;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_PeopleService_Resource_ContactGroups extends Google_Service_Resource
|
||||
{
|
||||
/**
|
||||
* Get a list of contact groups owned by the authenticated user by specifying a
|
||||
* list of contact group resource names. (contactGroups.batchGet)
|
||||
*
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param int maxMembers Specifies the maximum number of members to return
|
||||
* for each group.
|
||||
* @opt_param string resourceNames The resource names of the contact groups to
|
||||
* get.
|
||||
* @return Google_Service_PeopleService_BatchGetContactGroupsResponse
|
||||
*/
|
||||
public function batchGet($optParams = array())
|
||||
{
|
||||
$params = array();
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('batchGet', array($params), "Google_Service_PeopleService_BatchGetContactGroupsResponse");
|
||||
}
|
||||
/**
|
||||
* Create a new contact group owned by the authenticated user.
|
||||
* (contactGroups.create)
|
||||
*
|
||||
* @param Google_Service_PeopleService_CreateContactGroupRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_PeopleService_ContactGroup
|
||||
*/
|
||||
public function create(Google_Service_PeopleService_CreateContactGroupRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('create', array($params), "Google_Service_PeopleService_ContactGroup");
|
||||
}
|
||||
/**
|
||||
* Delete an existing contact group owned by the authenticated user by
|
||||
* specifying a contact group resource name. (contactGroups.delete)
|
||||
*
|
||||
* @param string $resourceName The resource name of the contact group to delete.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param bool deleteContacts Set to true to also delete the contacts in the
|
||||
* specified group.
|
||||
* @return Google_Service_PeopleService_PeopleEmpty
|
||||
*/
|
||||
public function delete($resourceName, $optParams = array())
|
||||
{
|
||||
$params = array('resourceName' => $resourceName);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('delete', array($params), "Google_Service_PeopleService_PeopleEmpty");
|
||||
}
|
||||
/**
|
||||
* Get a specific contact group owned by the authenticated user by specifying a
|
||||
* contact group resource name. (contactGroups.get)
|
||||
*
|
||||
* @param string $resourceName The resource name of the contact group to get.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param int maxMembers Specifies the maximum number of members to return.
|
||||
* @return Google_Service_PeopleService_ContactGroup
|
||||
*/
|
||||
public function get($resourceName, $optParams = array())
|
||||
{
|
||||
$params = array('resourceName' => $resourceName);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_PeopleService_ContactGroup");
|
||||
}
|
||||
/**
|
||||
* List all contact groups owned by the authenticated user. Members of the
|
||||
* contact groups are not populated. (contactGroups.listContactGroups)
|
||||
*
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string pageToken The next_page_token value returned from a
|
||||
* previous call to [ListContactGroups](/people/api/rest/v1/contactgroups/list).
|
||||
* Requests the next page of resources.
|
||||
* @opt_param int pageSize The maximum number of resources to return.
|
||||
* @opt_param string syncToken A sync token, returned by a previous call to
|
||||
* `contactgroups.list`. Only resources changed since the sync token was created
|
||||
* will be returned.
|
||||
* @return Google_Service_PeopleService_ListContactGroupsResponse
|
||||
*/
|
||||
public function listContactGroups($optParams = array())
|
||||
{
|
||||
$params = array();
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_PeopleService_ListContactGroupsResponse");
|
||||
}
|
||||
/**
|
||||
* Update the name of an existing contact group owned by the authenticated user.
|
||||
* (contactGroups.update)
|
||||
*
|
||||
* @param string $resourceName The resource name for the contact group, assigned
|
||||
* by the server. An ASCII string, in the form of
|
||||
* `contactGroups/`contact_group_id.
|
||||
* @param Google_Service_PeopleService_UpdateContactGroupRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_PeopleService_ContactGroup
|
||||
*/
|
||||
public function update($resourceName, Google_Service_PeopleService_UpdateContactGroupRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('resourceName' => $resourceName, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('update', array($params), "Google_Service_PeopleService_ContactGroup");
|
||||
}
|
||||
}
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* The "members" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $peopleService = new Google_Service_PeopleService(...);
|
||||
* $members = $peopleService->members;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_PeopleService_Resource_ContactGroupsMembers extends Google_Service_Resource
|
||||
{
|
||||
/**
|
||||
* Modify the members of a contact group owned by the authenticated user.
|
||||
* (members.modify)
|
||||
*
|
||||
* @param string $resourceName The resource name of the contact group to modify.
|
||||
* @param Google_Service_PeopleService_ModifyContactGroupMembersRequest $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_PeopleService_ModifyContactGroupMembersResponse
|
||||
*/
|
||||
public function modify($resourceName, Google_Service_PeopleService_ModifyContactGroupMembersRequest $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('resourceName' => $resourceName, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('modify', array($params), "Google_Service_PeopleService_ModifyContactGroupMembersResponse");
|
||||
}
|
||||
}
|
||||
170
vendor/google/apiclient-services/src/Google/Service/PeopleService/Resource/People.php
vendored
Normal file
170
vendor/google/apiclient-services/src/Google/Service/PeopleService/Resource/People.php
vendored
Normal file
@@ -0,0 +1,170 @@
|
||||
<?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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* The "people" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $peopleService = new Google_Service_PeopleService(...);
|
||||
* $people = $peopleService->people;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_PeopleService_Resource_People extends Google_Service_Resource
|
||||
{
|
||||
/**
|
||||
* Create a new contact and return the person resource for that contact.
|
||||
* (people.createContact)
|
||||
*
|
||||
* @param Google_Service_PeopleService_Person $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string parent The resource name of the owning person resource.
|
||||
* @return Google_Service_PeopleService_Person
|
||||
*/
|
||||
public function createContact(Google_Service_PeopleService_Person $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('createContact', array($params), "Google_Service_PeopleService_Person");
|
||||
}
|
||||
/**
|
||||
* Delete a contact person. Any non-contact data will not be deleted.
|
||||
* (people.deleteContact)
|
||||
*
|
||||
* @param string $resourceName The resource name of the contact to delete.
|
||||
* @param array $optParams Optional parameters.
|
||||
* @return Google_Service_PeopleService_PeopleEmpty
|
||||
*/
|
||||
public function deleteContact($resourceName, $optParams = array())
|
||||
{
|
||||
$params = array('resourceName' => $resourceName);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('deleteContact', array($params), "Google_Service_PeopleService_PeopleEmpty");
|
||||
}
|
||||
/**
|
||||
* Provides information about a person by specifying a resource name. Use
|
||||
* `people/me` to indicate the authenticated user.
|
||||
*
|
||||
* The request throws a 400 error if 'personFields' is not specified.
|
||||
* (people.get)
|
||||
*
|
||||
* @param string $resourceName The resource name of the person to provide
|
||||
* information about.
|
||||
*
|
||||
* - To get information about the authenticated user, specify `people/me`. - To
|
||||
* get information about a google account, specify `people/`account_id. - To
|
||||
* get information about a contact, specify the resource name that identifies
|
||||
* the contact as returned by
|
||||
* [`people.connections.list`](/people/api/rest/v1/people.connections/list).
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string personFields **Required.** A field mask to restrict which
|
||||
* fields on the person are returned. Multiple fields can be specified by
|
||||
* separating them with commas. Valid values are:
|
||||
*
|
||||
* * addresses * ageRanges * biographies * birthdays * braggingRights *
|
||||
* coverPhotos * emailAddresses * events * genders * imClients * interests *
|
||||
* locales * memberships * metadata * names * nicknames * occupations *
|
||||
* organizations * phoneNumbers * photos * relations * relationshipInterests *
|
||||
* relationshipStatuses * residences * skills * taglines * urls
|
||||
* @opt_param string requestMask.includeField **Required.** Comma-separated list
|
||||
* of person fields to be included in the response. Each path should start with
|
||||
* `person.`: for example, `person.names` or `person.photos`.
|
||||
* @return Google_Service_PeopleService_Person
|
||||
*/
|
||||
public function get($resourceName, $optParams = array())
|
||||
{
|
||||
$params = array('resourceName' => $resourceName);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('get', array($params), "Google_Service_PeopleService_Person");
|
||||
}
|
||||
/**
|
||||
* Provides information about a list of specific people by specifying a list of
|
||||
* requested resource names. Use `people/me` to indicate the authenticated user.
|
||||
*
|
||||
* The request throws a 400 error if 'personFields' is not specified.
|
||||
* (people.getBatchGet)
|
||||
*
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string personFields **Required.** A field mask to restrict which
|
||||
* fields on each person are returned. Multiple fields can be specified by
|
||||
* separating them with commas. Valid values are:
|
||||
*
|
||||
* * addresses * ageRanges * biographies * birthdays * braggingRights *
|
||||
* coverPhotos * emailAddresses * events * genders * imClients * interests *
|
||||
* locales * memberships * metadata * names * nicknames * occupations *
|
||||
* organizations * phoneNumbers * photos * relations * relationshipInterests *
|
||||
* relationshipStatuses * residences * skills * taglines * urls
|
||||
* @opt_param string requestMask.includeField **Required.** Comma-separated list
|
||||
* of person fields to be included in the response. Each path should start with
|
||||
* `person.`: for example, `person.names` or `person.photos`.
|
||||
* @opt_param string resourceNames The resource names of the people to provide
|
||||
* information about.
|
||||
*
|
||||
* - To get information about the authenticated user, specify `people/me`. - To
|
||||
* get information about a google account, specify `people/`account_id. - To
|
||||
* get information about a contact, specify the resource name that identifies
|
||||
* the contact as returned by
|
||||
* [`people.connections.list`](/people/api/rest/v1/people.connections/list).
|
||||
*
|
||||
* You can include up to 50 resource names in one request.
|
||||
* @return Google_Service_PeopleService_GetPeopleResponse
|
||||
*/
|
||||
public function getBatchGet($optParams = array())
|
||||
{
|
||||
$params = array();
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('getBatchGet', array($params), "Google_Service_PeopleService_GetPeopleResponse");
|
||||
}
|
||||
/**
|
||||
* Update contact data for an existing contact person. Any non-contact data will
|
||||
* not be modified.
|
||||
*
|
||||
* The request throws a 400 error if `updatePersonFields` is not specified.
|
||||
*
|
||||
* The request throws a 400 error if `person.metadata.sources` is not specified
|
||||
* for the contact to be updated.
|
||||
*
|
||||
* The request throws a 412 error if `person.metadata.sources.etag` is different
|
||||
* than the contact's etag, which indicates the contact has changed since its
|
||||
* data was read. Clients should get the latest person and re-apply their
|
||||
* updates to the latest person. (people.updateContact)
|
||||
*
|
||||
* @param string $resourceName The resource name for the person, assigned by the
|
||||
* server. An ASCII string with a max length of 27 characters, in the form of
|
||||
* `people/`person_id.
|
||||
* @param Google_Service_PeopleService_Person $postBody
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string updatePersonFields **Required.** A field mask to restrict
|
||||
* which fields on the person are updated. Multiple fields can be specified by
|
||||
* separating them with commas. All updated fields will be replaced. Valid
|
||||
* values are:
|
||||
*
|
||||
* * addresses * biographies * birthdays * emailAddresses * events * genders *
|
||||
* imClients * interests * locales * names * nicknames * occupations *
|
||||
* organizations * phoneNumbers * relations * residences * urls
|
||||
* @return Google_Service_PeopleService_Person
|
||||
*/
|
||||
public function updateContact($resourceName, Google_Service_PeopleService_Person $postBody, $optParams = array())
|
||||
{
|
||||
$params = array('resourceName' => $resourceName, 'postBody' => $postBody);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('updateContact', array($params), "Google_Service_PeopleService_Person");
|
||||
}
|
||||
}
|
||||
72
vendor/google/apiclient-services/src/Google/Service/PeopleService/Resource/PeopleConnections.php
vendored
Normal file
72
vendor/google/apiclient-services/src/Google/Service/PeopleService/Resource/PeopleConnections.php
vendored
Normal file
@@ -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.
|
||||
*/
|
||||
|
||||
/**
|
||||
* The "connections" collection of methods.
|
||||
* Typical usage is:
|
||||
* <code>
|
||||
* $peopleService = new Google_Service_PeopleService(...);
|
||||
* $connections = $peopleService->connections;
|
||||
* </code>
|
||||
*/
|
||||
class Google_Service_PeopleService_Resource_PeopleConnections extends Google_Service_Resource
|
||||
{
|
||||
/**
|
||||
* Provides a list of the authenticated user's contacts merged with any
|
||||
* connected profiles.
|
||||
*
|
||||
* The request throws a 400 error if 'personFields' is not specified.
|
||||
* (connections.listPeopleConnections)
|
||||
*
|
||||
* @param string $resourceName The resource name to return connections for. Only
|
||||
* `people/me` is valid.
|
||||
* @param array $optParams Optional parameters.
|
||||
*
|
||||
* @opt_param string syncToken A sync token returned by a previous call to
|
||||
* `people.connections.list`. Only resources changed since the sync token was
|
||||
* created will be returned. Sync requests that specify `sync_token` have an
|
||||
* additional rate limit.
|
||||
* @opt_param string personFields **Required.** A field mask to restrict which
|
||||
* fields on each person are returned. Multiple fields can be specified by
|
||||
* separating them with commas. Valid values are:
|
||||
*
|
||||
* * addresses * ageRanges * biographies * birthdays * braggingRights *
|
||||
* coverPhotos * emailAddresses * events * genders * imClients * interests *
|
||||
* locales * memberships * metadata * names * nicknames * occupations *
|
||||
* organizations * phoneNumbers * photos * relations * relationshipInterests *
|
||||
* relationshipStatuses * residences * skills * taglines * urls
|
||||
* @opt_param string sortOrder The order in which the connections should be
|
||||
* sorted. Defaults to `LAST_MODIFIED_ASCENDING`.
|
||||
* @opt_param bool requestSyncToken Whether the response should include a sync
|
||||
* token, which can be used to get all changes since the last request. For
|
||||
* subsequent sync requests use the `sync_token` param instead. Initial sync
|
||||
* requests that specify `request_sync_token` have an additional rate limit.
|
||||
* @opt_param string pageToken The token of the page to be returned.
|
||||
* @opt_param int pageSize The number of connections to include in the response.
|
||||
* Valid values are between 1 and 2000, inclusive. Defaults to 100.
|
||||
* @opt_param string requestMask.includeField **Required.** Comma-separated list
|
||||
* of person fields to be included in the response. Each path should start with
|
||||
* `person.`: for example, `person.names` or `person.photos`.
|
||||
* @return Google_Service_PeopleService_ListConnectionsResponse
|
||||
*/
|
||||
public function listPeopleConnections($resourceName, $optParams = array())
|
||||
{
|
||||
$params = array('resourceName' => $resourceName);
|
||||
$params = array_merge($params, $optParams);
|
||||
return $this->call('list', array($params), "Google_Service_PeopleService_ListConnectionsResponse");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user