Add upstream

This commit is contained in:
root
2019-10-24 00:12:05 +02:00
parent 85d41e4216
commit ac980f592c
3504 changed files with 1049983 additions and 29971 deletions

View File

@@ -0,0 +1,416 @@
<?php
/*
* Copyright 2010 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.
*/
/**
* Service definition for Audit (v1).
*
* <p>
* Lets you access user activities in your enterprise made through various
* applications.</p>
*
* <p>
* For more information about this service, see the API
* <a href="https://developers.google.com/google-apps/admin-audit/get_started" target="_blank">Documentation</a>
* </p>
*
* @author Google, Inc.
*/
class Google_Service_Audit extends Google_Service
{
public $activities;
/**
* Constructs the internal representation of the Audit service.
*
* @param Google_Client $client
*/
public function __construct(Google_Client $client)
{
parent::__construct($client);
$this->servicePath = 'apps/reporting/audit/v1/';
$this->version = 'v1';
$this->serviceName = 'audit';
$this->activities = new Google_Service_Audit_Activities_Resource(
$this,
$this->serviceName,
'activities',
array(
'methods' => array(
'list' => array(
'path' => '{customerId}/{applicationId}',
'httpMethod' => 'GET',
'parameters' => array(
'customerId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'applicationId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'actorEmail' => array(
'location' => 'query',
'type' => 'string',
),
'actorApplicationId' => array(
'location' => 'query',
'type' => 'string',
),
'actorIpAddress' => array(
'location' => 'query',
'type' => 'string',
),
'caller' => array(
'location' => 'query',
'type' => 'string',
),
'maxResults' => array(
'location' => 'query',
'type' => 'integer',
),
'eventName' => array(
'location' => 'query',
'type' => 'string',
),
'startTime' => array(
'location' => 'query',
'type' => 'string',
),
'endTime' => array(
'location' => 'query',
'type' => 'string',
),
'continuationToken' => array(
'location' => 'query',
'type' => 'string',
),
),
),
)
)
);
}
}
/**
* The "activities" collection of methods.
* Typical usage is:
* <code>
* $auditService = new Google_Service_Audit(...);
* $activities = $auditService->activities;
* </code>
*/
class Google_Service_Audit_Activities_Resource extends Google_Service_Resource
{
/**
* Retrieves a list of activities for a specific customer and application.
* (activities.listActivities)
*
* @param string $customerId Represents the customer who is the owner of target
* object on which action was performed.
* @param string $applicationId Application ID of the application on which the
* event was performed.
* @param array $optParams Optional parameters.
*
* @opt_param string actorEmail Email address of the user who performed the
* action.
* @opt_param string actorApplicationId Application ID of the application which
* interacted on behalf of the user while performing the event.
* @opt_param string actorIpAddress IP Address of host where the event was
* performed. Supports both IPv4 and IPv6 addresses.
* @opt_param string caller Type of the caller.
* @opt_param int maxResults Number of activity records to be shown in each
* page.
* @opt_param string eventName Name of the event being queried.
* @opt_param string startTime Return events which occured at or after this
* time.
* @opt_param string endTime Return events which occured at or before this time.
* @opt_param string continuationToken Next page URL.
* @return Google_Service_Audit_Activities
*/
public function listActivities($customerId, $applicationId, $optParams = array())
{
$params = array('customerId' => $customerId, 'applicationId' => $applicationId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Audit_Activities");
}
}
class Google_Service_Audit_Activities extends Google_Collection
{
protected $collection_key = 'items';
protected $internal_gapi_mappings = array(
);
protected $itemsType = 'Google_Service_Audit_Activity';
protected $itemsDataType = 'array';
public $kind;
public $next;
public function setItems($items)
{
$this->items = $items;
}
public function getItems()
{
return $this->items;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setNext($next)
{
$this->next = $next;
}
public function getNext()
{
return $this->next;
}
}
class Google_Service_Audit_Activity extends Google_Collection
{
protected $collection_key = 'events';
protected $internal_gapi_mappings = array(
);
protected $actorType = 'Google_Service_Audit_ActivityActor';
protected $actorDataType = '';
protected $eventsType = 'Google_Service_Audit_ActivityEvents';
protected $eventsDataType = 'array';
protected $idType = 'Google_Service_Audit_ActivityId';
protected $idDataType = '';
public $ipAddress;
public $kind;
public $ownerDomain;
public function setActor(Google_Service_Audit_ActivityActor $actor)
{
$this->actor = $actor;
}
public function getActor()
{
return $this->actor;
}
public function setEvents($events)
{
$this->events = $events;
}
public function getEvents()
{
return $this->events;
}
public function setId(Google_Service_Audit_ActivityId $id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
public function setIpAddress($ipAddress)
{
$this->ipAddress = $ipAddress;
}
public function getIpAddress()
{
return $this->ipAddress;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setOwnerDomain($ownerDomain)
{
$this->ownerDomain = $ownerDomain;
}
public function getOwnerDomain()
{
return $this->ownerDomain;
}
}
class Google_Service_Audit_ActivityActor extends Google_Model
{
protected $internal_gapi_mappings = array(
);
public $applicationId;
public $callerType;
public $email;
public $key;
public function setApplicationId($applicationId)
{
$this->applicationId = $applicationId;
}
public function getApplicationId()
{
return $this->applicationId;
}
public function setCallerType($callerType)
{
$this->callerType = $callerType;
}
public function getCallerType()
{
return $this->callerType;
}
public function setEmail($email)
{
$this->email = $email;
}
public function getEmail()
{
return $this->email;
}
public function setKey($key)
{
$this->key = $key;
}
public function getKey()
{
return $this->key;
}
}
class Google_Service_Audit_ActivityEvents extends Google_Collection
{
protected $collection_key = 'parameters';
protected $internal_gapi_mappings = array(
);
public $eventType;
public $name;
protected $parametersType = 'Google_Service_Audit_ActivityEventsParameters';
protected $parametersDataType = 'array';
public function setEventType($eventType)
{
$this->eventType = $eventType;
}
public function getEventType()
{
return $this->eventType;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setParameters($parameters)
{
$this->parameters = $parameters;
}
public function getParameters()
{
return $this->parameters;
}
}
class Google_Service_Audit_ActivityEventsParameters extends Google_Model
{
protected $internal_gapi_mappings = array(
);
public $name;
public $value;
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setValue($value)
{
$this->value = $value;
}
public function getValue()
{
return $this->value;
}
}
class Google_Service_Audit_ActivityId extends Google_Model
{
protected $internal_gapi_mappings = array(
);
public $applicationId;
public $customerId;
public $time;
public $uniqQualifier;
public function setApplicationId($applicationId)
{
$this->applicationId = $applicationId;
}
public function getApplicationId()
{
return $this->applicationId;
}
public function setCustomerId($customerId)
{
$this->customerId = $customerId;
}
public function getCustomerId()
{
return $this->customerId;
}
public function setTime($time)
{
$this->time = $time;
}
public function getTime()
{
return $this->time;
}
public function setUniqQualifier($uniqQualifier)
{
$this->uniqQualifier = $uniqQualifier;
}
public function getUniqQualifier()
{
return $this->uniqQualifier;
}
}

View File

@@ -0,0 +1,981 @@
<?php
/*
* Copyright 2010 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.
*/
/**
* Service definition for Container (v1beta1).
*
* <p>
* The Google Container Engine API is used for building and managing container
* based applications, powered by the open source Kubernetes technology.</p>
*
* <p>
* For more information about this service, see the API
* <a href="https://cloud.google.com/container-engine/docs/v1beta1/" target="_blank">Documentation</a>
* </p>
*
* @author Google, Inc.
*/
class Google_Service_Container extends Google_Service
{
/** View and manage your data across Google Cloud Platform services. */
const CLOUD_PLATFORM =
"https://www.googleapis.com/auth/cloud-platform";
public $projects_clusters;
public $projects_operations;
public $projects_zones_clusters;
public $projects_zones_operations;
public $projects_zones_tokens;
/**
* Constructs the internal representation of the Container service.
*
* @param Google_Client $client
*/
public function __construct(Google_Client $client)
{
parent::__construct($client);
$this->servicePath = 'container/v1beta1/projects/';
$this->version = 'v1beta1';
$this->serviceName = 'container';
$this->projects_clusters = new Google_Service_Container_ProjectsClusters_Resource(
$this,
$this->serviceName,
'clusters',
array(
'methods' => array(
'list' => array(
'path' => '{projectId}/clusters',
'httpMethod' => 'GET',
'parameters' => array(
'projectId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),
)
)
);
$this->projects_operations = new Google_Service_Container_ProjectsOperations_Resource(
$this,
$this->serviceName,
'operations',
array(
'methods' => array(
'list' => array(
'path' => '{projectId}/operations',
'httpMethod' => 'GET',
'parameters' => array(
'projectId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),
)
)
);
$this->projects_zones_clusters = new Google_Service_Container_ProjectsZonesClusters_Resource(
$this,
$this->serviceName,
'clusters',
array(
'methods' => array(
'create' => array(
'path' => '{projectId}/zones/{zoneId}/clusters',
'httpMethod' => 'POST',
'parameters' => array(
'projectId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'zoneId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'delete' => array(
'path' => '{projectId}/zones/{zoneId}/clusters/{clusterId}',
'httpMethod' => 'DELETE',
'parameters' => array(
'projectId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'zoneId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'clusterId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'get' => array(
'path' => '{projectId}/zones/{zoneId}/clusters/{clusterId}',
'httpMethod' => 'GET',
'parameters' => array(
'projectId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'zoneId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'clusterId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'list' => array(
'path' => '{projectId}/zones/{zoneId}/clusters',
'httpMethod' => 'GET',
'parameters' => array(
'projectId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'zoneId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),
)
)
);
$this->projects_zones_operations = new Google_Service_Container_ProjectsZonesOperations_Resource(
$this,
$this->serviceName,
'operations',
array(
'methods' => array(
'get' => array(
'path' => '{projectId}/zones/{zoneId}/operations/{operationId}',
'httpMethod' => 'GET',
'parameters' => array(
'projectId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'zoneId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'operationId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'list' => array(
'path' => '{projectId}/zones/{zoneId}/operations',
'httpMethod' => 'GET',
'parameters' => array(
'projectId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'zoneId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),
)
)
);
$this->projects_zones_tokens = new Google_Service_Container_ProjectsZonesTokens_Resource(
$this,
$this->serviceName,
'tokens',
array(
'methods' => array(
'get' => array(
'path' => '{masterProjectId}/zones/{zoneId}/tokens/{projectNumber}/{clusterName}',
'httpMethod' => 'GET',
'parameters' => array(
'masterProjectId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'zoneId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'projectNumber' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'clusterName' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),
)
)
);
}
}
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $containerService = new Google_Service_Container(...);
* $projects = $containerService->projects;
* </code>
*/
class Google_Service_Container_Projects_Resource extends Google_Service_Resource
{
}
/**
* The "clusters" collection of methods.
* Typical usage is:
* <code>
* $containerService = new Google_Service_Container(...);
* $clusters = $containerService->clusters;
* </code>
*/
class Google_Service_Container_ProjectsClusters_Resource extends Google_Service_Resource
{
/**
* Lists all clusters owned by a project across all zones.
* (clusters.listProjectsClusters)
*
* @param string $projectId The Google Developers Console project ID or project
* number.
* @param array $optParams Optional parameters.
* @return Google_Service_Container_ListAggregatedClustersResponse
*/
public function listProjectsClusters($projectId, $optParams = array())
{
$params = array('projectId' => $projectId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Container_ListAggregatedClustersResponse");
}
}
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $containerService = new Google_Service_Container(...);
* $operations = $containerService->operations;
* </code>
*/
class Google_Service_Container_ProjectsOperations_Resource extends Google_Service_Resource
{
/**
* Lists all operations in a project, across all zones.
* (operations.listProjectsOperations)
*
* @param string $projectId The Google Developers Console project ID or project
* number.
* @param array $optParams Optional parameters.
* @return Google_Service_Container_ListAggregatedOperationsResponse
*/
public function listProjectsOperations($projectId, $optParams = array())
{
$params = array('projectId' => $projectId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Container_ListAggregatedOperationsResponse");
}
}
/**
* The "zones" collection of methods.
* Typical usage is:
* <code>
* $containerService = new Google_Service_Container(...);
* $zones = $containerService->zones;
* </code>
*/
class Google_Service_Container_ProjectsZones_Resource extends Google_Service_Resource
{
}
/**
* The "clusters" collection of methods.
* Typical usage is:
* <code>
* $containerService = new Google_Service_Container(...);
* $clusters = $containerService->clusters;
* </code>
*/
class Google_Service_Container_ProjectsZonesClusters_Resource extends Google_Service_Resource
{
/**
* Creates a cluster, consisting of the specified number and type of Google
* Compute Engine instances, plus a Kubernetes master instance.
*
* The cluster is created in the project's default network.
*
* A firewall is added that allows traffic into port 443 on the master, which
* enables HTTPS. A firewall and a route is added for each node to allow the
* containers on that node to communicate with all other instances in the
* cluster.
*
* Finally, a route named k8s-iproute-10-xx-0-0 is created to track that the
* cluster's 10.xx.0.0/16 CIDR has been assigned. (clusters.create)
*
* @param string $projectId The Google Developers Console project ID or project
* number.
* @param string $zoneId The name of the Google Compute Engine zone in which the
* cluster resides.
* @param Google_CreateClusterRequest $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Container_Operation
*/
public function create($projectId, $zoneId, Google_Service_Container_CreateClusterRequest $postBody, $optParams = array())
{
$params = array('projectId' => $projectId, 'zoneId' => $zoneId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_Container_Operation");
}
/**
* Deletes the cluster, including the Kubernetes master and all worker nodes.
*
* Firewalls and routes that were configured at cluster creation are also
* deleted. (clusters.delete)
*
* @param string $projectId The Google Developers Console project ID or project
* number.
* @param string $zoneId The name of the Google Compute Engine zone in which the
* cluster resides.
* @param string $clusterId The name of the cluster to delete.
* @param array $optParams Optional parameters.
* @return Google_Service_Container_Operation
*/
public function delete($projectId, $zoneId, $clusterId, $optParams = array())
{
$params = array('projectId' => $projectId, 'zoneId' => $zoneId, 'clusterId' => $clusterId);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params), "Google_Service_Container_Operation");
}
/**
* Gets a specific cluster. (clusters.get)
*
* @param string $projectId The Google Developers Console project ID or project
* number.
* @param string $zoneId The name of the Google Compute Engine zone in which the
* cluster resides.
* @param string $clusterId The name of the cluster to retrieve.
* @param array $optParams Optional parameters.
* @return Google_Service_Container_Cluster
*/
public function get($projectId, $zoneId, $clusterId, $optParams = array())
{
$params = array('projectId' => $projectId, 'zoneId' => $zoneId, 'clusterId' => $clusterId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Container_Cluster");
}
/**
* Lists all clusters owned by a project in the specified zone.
* (clusters.listProjectsZonesClusters)
*
* @param string $projectId The Google Developers Console project ID or project
* number.
* @param string $zoneId The name of the Google Compute Engine zone in which the
* cluster resides.
* @param array $optParams Optional parameters.
* @return Google_Service_Container_ListClustersResponse
*/
public function listProjectsZonesClusters($projectId, $zoneId, $optParams = array())
{
$params = array('projectId' => $projectId, 'zoneId' => $zoneId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Container_ListClustersResponse");
}
}
/**
* The "operations" collection of methods.
* Typical usage is:
* <code>
* $containerService = new Google_Service_Container(...);
* $operations = $containerService->operations;
* </code>
*/
class Google_Service_Container_ProjectsZonesOperations_Resource extends Google_Service_Resource
{
/**
* Gets the specified operation. (operations.get)
*
* @param string $projectId The Google Developers Console project ID or project
* number.
* @param string $zoneId The name of the Google Compute Engine zone in which the
* operation resides. This is always the same zone as the cluster with which the
* operation is associated.
* @param string $operationId The server-assigned name of the operation.
* @param array $optParams Optional parameters.
* @return Google_Service_Container_Operation
*/
public function get($projectId, $zoneId, $operationId, $optParams = array())
{
$params = array('projectId' => $projectId, 'zoneId' => $zoneId, 'operationId' => $operationId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Container_Operation");
}
/**
* Lists all operations in a project in a specific zone.
* (operations.listProjectsZonesOperations)
*
* @param string $projectId The Google Developers Console project ID or project
* number.
* @param string $zoneId The name of the Google Compute Engine zone to return
* operations for.
* @param array $optParams Optional parameters.
* @return Google_Service_Container_ListOperationsResponse
*/
public function listProjectsZonesOperations($projectId, $zoneId, $optParams = array())
{
$params = array('projectId' => $projectId, 'zoneId' => $zoneId);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Container_ListOperationsResponse");
}
}
/**
* The "tokens" collection of methods.
* Typical usage is:
* <code>
* $containerService = new Google_Service_Container(...);
* $tokens = $containerService->tokens;
* </code>
*/
class Google_Service_Container_ProjectsZonesTokens_Resource extends Google_Service_Resource
{
/**
* Gets a compute-rw scoped OAuth2 access token for . Authentication is
* performed to ensure that the caller is a member of and that the request is
* coming from the expected master VM for the specified cluster. See go/gke-
* cross-project-auth for more details. (tokens.get)
*
* @param string $masterProjectId The hosted master project from which this
* request is coming.
* @param string $zoneId The zone of the specified cluster.
* @param string $projectNumber The project number for which the access token is
* being requested.
* @param string $clusterName The name of the specified cluster.
* @param array $optParams Optional parameters.
* @return Google_Service_Container_Token
*/
public function get($masterProjectId, $zoneId, $projectNumber, $clusterName, $optParams = array())
{
$params = array('masterProjectId' => $masterProjectId, 'zoneId' => $zoneId, 'projectNumber' => $projectNumber, 'clusterName' => $clusterName);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Container_Token");
}
}
class Google_Service_Container_Cluster extends Google_Model
{
protected $internal_gapi_mappings = array(
);
public $clusterApiVersion;
public $containerIpv4Cidr;
public $creationTimestamp;
public $description;
public $enableCloudLogging;
public $endpoint;
protected $masterAuthType = 'Google_Service_Container_MasterAuth';
protected $masterAuthDataType = '';
public $name;
public $network;
protected $nodeConfigType = 'Google_Service_Container_NodeConfig';
protected $nodeConfigDataType = '';
public $nodeRoutingPrefixSize;
public $numNodes;
public $selfLink;
public $servicesIpv4Cidr;
public $status;
public $statusMessage;
public $zone;
public function setClusterApiVersion($clusterApiVersion)
{
$this->clusterApiVersion = $clusterApiVersion;
}
public function getClusterApiVersion()
{
return $this->clusterApiVersion;
}
public function setContainerIpv4Cidr($containerIpv4Cidr)
{
$this->containerIpv4Cidr = $containerIpv4Cidr;
}
public function getContainerIpv4Cidr()
{
return $this->containerIpv4Cidr;
}
public function setCreationTimestamp($creationTimestamp)
{
$this->creationTimestamp = $creationTimestamp;
}
public function getCreationTimestamp()
{
return $this->creationTimestamp;
}
public function setDescription($description)
{
$this->description = $description;
}
public function getDescription()
{
return $this->description;
}
public function setEnableCloudLogging($enableCloudLogging)
{
$this->enableCloudLogging = $enableCloudLogging;
}
public function getEnableCloudLogging()
{
return $this->enableCloudLogging;
}
public function setEndpoint($endpoint)
{
$this->endpoint = $endpoint;
}
public function getEndpoint()
{
return $this->endpoint;
}
public function setMasterAuth(Google_Service_Container_MasterAuth $masterAuth)
{
$this->masterAuth = $masterAuth;
}
public function getMasterAuth()
{
return $this->masterAuth;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setNetwork($network)
{
$this->network = $network;
}
public function getNetwork()
{
return $this->network;
}
public function setNodeConfig(Google_Service_Container_NodeConfig $nodeConfig)
{
$this->nodeConfig = $nodeConfig;
}
public function getNodeConfig()
{
return $this->nodeConfig;
}
public function setNodeRoutingPrefixSize($nodeRoutingPrefixSize)
{
$this->nodeRoutingPrefixSize = $nodeRoutingPrefixSize;
}
public function getNodeRoutingPrefixSize()
{
return $this->nodeRoutingPrefixSize;
}
public function setNumNodes($numNodes)
{
$this->numNodes = $numNodes;
}
public function getNumNodes()
{
return $this->numNodes;
}
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
public function getSelfLink()
{
return $this->selfLink;
}
public function setServicesIpv4Cidr($servicesIpv4Cidr)
{
$this->servicesIpv4Cidr = $servicesIpv4Cidr;
}
public function getServicesIpv4Cidr()
{
return $this->servicesIpv4Cidr;
}
public function setStatus($status)
{
$this->status = $status;
}
public function getStatus()
{
return $this->status;
}
public function setStatusMessage($statusMessage)
{
$this->statusMessage = $statusMessage;
}
public function getStatusMessage()
{
return $this->statusMessage;
}
public function setZone($zone)
{
$this->zone = $zone;
}
public function getZone()
{
return $this->zone;
}
}
class Google_Service_Container_CreateClusterRequest extends Google_Model
{
protected $internal_gapi_mappings = array(
);
protected $clusterType = 'Google_Service_Container_Cluster';
protected $clusterDataType = '';
public function setCluster(Google_Service_Container_Cluster $cluster)
{
$this->cluster = $cluster;
}
public function getCluster()
{
return $this->cluster;
}
}
class Google_Service_Container_ListAggregatedClustersResponse extends Google_Collection
{
protected $collection_key = 'clusters';
protected $internal_gapi_mappings = array(
);
protected $clustersType = 'Google_Service_Container_Cluster';
protected $clustersDataType = 'array';
public function setClusters($clusters)
{
$this->clusters = $clusters;
}
public function getClusters()
{
return $this->clusters;
}
}
class Google_Service_Container_ListAggregatedOperationsResponse extends Google_Collection
{
protected $collection_key = 'operations';
protected $internal_gapi_mappings = array(
);
protected $operationsType = 'Google_Service_Container_Operation';
protected $operationsDataType = 'array';
public function setOperations($operations)
{
$this->operations = $operations;
}
public function getOperations()
{
return $this->operations;
}
}
class Google_Service_Container_ListClustersResponse extends Google_Collection
{
protected $collection_key = 'clusters';
protected $internal_gapi_mappings = array(
);
protected $clustersType = 'Google_Service_Container_Cluster';
protected $clustersDataType = 'array';
public function setClusters($clusters)
{
$this->clusters = $clusters;
}
public function getClusters()
{
return $this->clusters;
}
}
class Google_Service_Container_ListOperationsResponse extends Google_Collection
{
protected $collection_key = 'operations';
protected $internal_gapi_mappings = array(
);
protected $operationsType = 'Google_Service_Container_Operation';
protected $operationsDataType = 'array';
public function setOperations($operations)
{
$this->operations = $operations;
}
public function getOperations()
{
return $this->operations;
}
}
class Google_Service_Container_MasterAuth extends Google_Model
{
protected $internal_gapi_mappings = array(
);
public $bearerToken;
public $password;
public $user;
public function setBearerToken($bearerToken)
{
$this->bearerToken = $bearerToken;
}
public function getBearerToken()
{
return $this->bearerToken;
}
public function setPassword($password)
{
$this->password = $password;
}
public function getPassword()
{
return $this->password;
}
public function setUser($user)
{
$this->user = $user;
}
public function getUser()
{
return $this->user;
}
}
class Google_Service_Container_NodeConfig extends Google_Collection
{
protected $collection_key = 'serviceAccounts';
protected $internal_gapi_mappings = array(
);
public $machineType;
protected $serviceAccountsType = 'Google_Service_Container_ServiceAccount';
protected $serviceAccountsDataType = 'array';
public $sourceImage;
public function setMachineType($machineType)
{
$this->machineType = $machineType;
}
public function getMachineType()
{
return $this->machineType;
}
public function setServiceAccounts($serviceAccounts)
{
$this->serviceAccounts = $serviceAccounts;
}
public function getServiceAccounts()
{
return $this->serviceAccounts;
}
public function setSourceImage($sourceImage)
{
$this->sourceImage = $sourceImage;
}
public function getSourceImage()
{
return $this->sourceImage;
}
}
class Google_Service_Container_Operation extends Google_Model
{
protected $internal_gapi_mappings = array(
);
public $errorMessage;
public $name;
public $operationType;
public $selfLink;
public $status;
public $target;
public $targetLink;
public $zone;
public function setErrorMessage($errorMessage)
{
$this->errorMessage = $errorMessage;
}
public function getErrorMessage()
{
return $this->errorMessage;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setOperationType($operationType)
{
$this->operationType = $operationType;
}
public function getOperationType()
{
return $this->operationType;
}
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
public function getSelfLink()
{
return $this->selfLink;
}
public function setStatus($status)
{
$this->status = $status;
}
public function getStatus()
{
return $this->status;
}
public function setTarget($target)
{
$this->target = $target;
}
public function getTarget()
{
return $this->target;
}
public function setTargetLink($targetLink)
{
$this->targetLink = $targetLink;
}
public function getTargetLink()
{
return $this->targetLink;
}
public function setZone($zone)
{
$this->zone = $zone;
}
public function getZone()
{
return $this->zone;
}
}
class Google_Service_Container_ServiceAccount extends Google_Collection
{
protected $collection_key = 'scopes';
protected $internal_gapi_mappings = array(
);
public $email;
public $scopes;
public function setEmail($email)
{
$this->email = $email;
}
public function getEmail()
{
return $this->email;
}
public function setScopes($scopes)
{
$this->scopes = $scopes;
}
public function getScopes()
{
return $this->scopes;
}
}
class Google_Service_Container_Token extends Google_Model
{
protected $internal_gapi_mappings = array(
);
public $accessToken;
public $expiryTimeSeconds;
public function setAccessToken($accessToken)
{
$this->accessToken = $accessToken;
}
public function getAccessToken()
{
return $this->accessToken;
}
public function setExpiryTimeSeconds($expiryTimeSeconds)
{
$this->expiryTimeSeconds = $expiryTimeSeconds;
}
public function getExpiryTimeSeconds()
{
return $this->expiryTimeSeconds;
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,916 @@
<?php
/*
* Copyright 2010 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.
*/
/**
* Service definition for Dns (v1).
*
* <p>
* The Google Cloud DNS API provides services for configuring and serving
* authoritative DNS records.</p>
*
* <p>
* For more information about this service, see the API
* <a href="https://developers.google.com/cloud-dns" target="_blank">Documentation</a>
* </p>
*
* @author Google, Inc.
*/
class Google_Service_Dns extends Google_Service
{
/** View and manage your data across Google Cloud Platform services. */
const CLOUD_PLATFORM =
"https://www.googleapis.com/auth/cloud-platform";
/** View your DNS records hosted by Google Cloud DNS. */
const NDEV_CLOUDDNS_READONLY =
"https://www.googleapis.com/auth/ndev.clouddns.readonly";
/** View and manage your DNS records hosted by Google Cloud DNS. */
const NDEV_CLOUDDNS_READWRITE =
"https://www.googleapis.com/auth/ndev.clouddns.readwrite";
public $changes;
public $managedZones;
public $projects;
public $resourceRecordSets;
/**
* Constructs the internal representation of the Dns service.
*
* @param Google_Client $client
*/
public function __construct(Google_Client $client)
{
parent::__construct($client);
$this->servicePath = 'dns/v1/projects/';
$this->version = 'v1';
$this->serviceName = 'dns';
$this->changes = new Google_Service_Dns_Changes_Resource(
$this,
$this->serviceName,
'changes',
array(
'methods' => array(
'create' => array(
'path' => '{project}/managedZones/{managedZone}/changes',
'httpMethod' => 'POST',
'parameters' => array(
'project' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'managedZone' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'get' => array(
'path' => '{project}/managedZones/{managedZone}/changes/{changeId}',
'httpMethod' => 'GET',
'parameters' => array(
'project' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'managedZone' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'changeId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'list' => array(
'path' => '{project}/managedZones/{managedZone}/changes',
'httpMethod' => 'GET',
'parameters' => array(
'project' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'managedZone' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'maxResults' => array(
'location' => 'query',
'type' => 'integer',
),
'pageToken' => array(
'location' => 'query',
'type' => 'string',
),
'sortBy' => array(
'location' => 'query',
'type' => 'string',
),
'sortOrder' => array(
'location' => 'query',
'type' => 'string',
),
),
),
)
)
);
$this->managedZones = new Google_Service_Dns_ManagedZones_Resource(
$this,
$this->serviceName,
'managedZones',
array(
'methods' => array(
'create' => array(
'path' => '{project}/managedZones',
'httpMethod' => 'POST',
'parameters' => array(
'project' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'delete' => array(
'path' => '{project}/managedZones/{managedZone}',
'httpMethod' => 'DELETE',
'parameters' => array(
'project' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'managedZone' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'get' => array(
'path' => '{project}/managedZones/{managedZone}',
'httpMethod' => 'GET',
'parameters' => array(
'project' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'managedZone' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'list' => array(
'path' => '{project}/managedZones',
'httpMethod' => 'GET',
'parameters' => array(
'project' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'pageToken' => array(
'location' => 'query',
'type' => 'string',
),
'maxResults' => array(
'location' => 'query',
'type' => 'integer',
),
),
),
)
)
);
$this->projects = new Google_Service_Dns_Projects_Resource(
$this,
$this->serviceName,
'projects',
array(
'methods' => array(
'get' => array(
'path' => '{project}',
'httpMethod' => 'GET',
'parameters' => array(
'project' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),
)
)
);
$this->resourceRecordSets = new Google_Service_Dns_ResourceRecordSets_Resource(
$this,
$this->serviceName,
'resourceRecordSets',
array(
'methods' => array(
'list' => array(
'path' => '{project}/managedZones/{managedZone}/rrsets',
'httpMethod' => 'GET',
'parameters' => array(
'project' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'managedZone' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'name' => array(
'location' => 'query',
'type' => 'string',
),
'maxResults' => array(
'location' => 'query',
'type' => 'integer',
),
'pageToken' => array(
'location' => 'query',
'type' => 'string',
),
'type' => array(
'location' => 'query',
'type' => 'string',
),
),
),
)
)
);
}
}
/**
* The "changes" collection of methods.
* Typical usage is:
* <code>
* $dnsService = new Google_Service_Dns(...);
* $changes = $dnsService->changes;
* </code>
*/
class Google_Service_Dns_Changes_Resource extends Google_Service_Resource
{
/**
* Atomically update the ResourceRecordSet collection. (changes.create)
*
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or id.
* @param Google_Change $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Dns_Change
*/
public function create($project, $managedZone, Google_Service_Dns_Change $postBody, $optParams = array())
{
$params = array('project' => $project, 'managedZone' => $managedZone, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_Dns_Change");
}
/**
* Fetch the representation of an existing Change. (changes.get)
*
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or id.
* @param string $changeId The identifier of the requested change, from a
* previous ResourceRecordSetsChangeResponse.
* @param array $optParams Optional parameters.
* @return Google_Service_Dns_Change
*/
public function get($project, $managedZone, $changeId, $optParams = array())
{
$params = array('project' => $project, 'managedZone' => $managedZone, 'changeId' => $changeId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Dns_Change");
}
/**
* Enumerate Changes to a ResourceRecordSet collection. (changes.listChanges)
*
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or id.
* @param array $optParams Optional parameters.
*
* @opt_param int maxResults Optional. Maximum number of results to be returned.
* If unspecified, the server will decide how many results to return.
* @opt_param string pageToken Optional. A tag returned by a previous list
* request that was truncated. Use this parameter to continue a previous list
* request.
* @opt_param string sortBy Sorting criterion. The only supported value is
* change sequence.
* @opt_param string sortOrder Sorting order direction: 'ascending' or
* 'descending'.
* @return Google_Service_Dns_ChangesListResponse
*/
public function listChanges($project, $managedZone, $optParams = array())
{
$params = array('project' => $project, 'managedZone' => $managedZone);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Dns_ChangesListResponse");
}
}
/**
* The "managedZones" collection of methods.
* Typical usage is:
* <code>
* $dnsService = new Google_Service_Dns(...);
* $managedZones = $dnsService->managedZones;
* </code>
*/
class Google_Service_Dns_ManagedZones_Resource extends Google_Service_Resource
{
/**
* Create a new ManagedZone. (managedZones.create)
*
* @param string $project Identifies the project addressed by this request.
* @param Google_ManagedZone $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Dns_ManagedZone
*/
public function create($project, Google_Service_Dns_ManagedZone $postBody, $optParams = array())
{
$params = array('project' => $project, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('create', array($params), "Google_Service_Dns_ManagedZone");
}
/**
* Delete a previously created ManagedZone. (managedZones.delete)
*
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or id.
* @param array $optParams Optional parameters.
*/
public function delete($project, $managedZone, $optParams = array())
{
$params = array('project' => $project, 'managedZone' => $managedZone);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params));
}
/**
* Fetch the representation of an existing ManagedZone. (managedZones.get)
*
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or id.
* @param array $optParams Optional parameters.
* @return Google_Service_Dns_ManagedZone
*/
public function get($project, $managedZone, $optParams = array())
{
$params = array('project' => $project, 'managedZone' => $managedZone);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Dns_ManagedZone");
}
/**
* Enumerate ManagedZones that have been created but not yet deleted.
* (managedZones.listManagedZones)
*
* @param string $project Identifies the project addressed by this request.
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken Optional. A tag returned by a previous list
* request that was truncated. Use this parameter to continue a previous list
* request.
* @opt_param int maxResults Optional. Maximum number of results to be returned.
* If unspecified, the server will decide how many results to return.
* @return Google_Service_Dns_ManagedZonesListResponse
*/
public function listManagedZones($project, $optParams = array())
{
$params = array('project' => $project);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Dns_ManagedZonesListResponse");
}
}
/**
* The "projects" collection of methods.
* Typical usage is:
* <code>
* $dnsService = new Google_Service_Dns(...);
* $projects = $dnsService->projects;
* </code>
*/
class Google_Service_Dns_Projects_Resource extends Google_Service_Resource
{
/**
* Fetch the representation of an existing Project. (projects.get)
*
* @param string $project Identifies the project addressed by this request.
* @param array $optParams Optional parameters.
* @return Google_Service_Dns_Project
*/
public function get($project, $optParams = array())
{
$params = array('project' => $project);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Dns_Project");
}
}
/**
* The "resourceRecordSets" collection of methods.
* Typical usage is:
* <code>
* $dnsService = new Google_Service_Dns(...);
* $resourceRecordSets = $dnsService->resourceRecordSets;
* </code>
*/
class Google_Service_Dns_ResourceRecordSets_Resource extends Google_Service_Resource
{
/**
* Enumerate ResourceRecordSets that have been created but not yet deleted.
* (resourceRecordSets.listResourceRecordSets)
*
* @param string $project Identifies the project addressed by this request.
* @param string $managedZone Identifies the managed zone addressed by this
* request. Can be the managed zone name or id.
* @param array $optParams Optional parameters.
*
* @opt_param string name Restricts the list to return only records with this
* fully qualified domain name.
* @opt_param int maxResults Optional. Maximum number of results to be returned.
* If unspecified, the server will decide how many results to return.
* @opt_param string pageToken Optional. A tag returned by a previous list
* request that was truncated. Use this parameter to continue a previous list
* request.
* @opt_param string type Restricts the list to return only records of this
* type. If present, the "name" parameter must also be present.
* @return Google_Service_Dns_ResourceRecordSetsListResponse
*/
public function listResourceRecordSets($project, $managedZone, $optParams = array())
{
$params = array('project' => $project, 'managedZone' => $managedZone);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Dns_ResourceRecordSetsListResponse");
}
}
class Google_Service_Dns_Change extends Google_Collection
{
protected $collection_key = 'deletions';
protected $internal_gapi_mappings = array(
);
protected $additionsType = 'Google_Service_Dns_ResourceRecordSet';
protected $additionsDataType = 'array';
protected $deletionsType = 'Google_Service_Dns_ResourceRecordSet';
protected $deletionsDataType = 'array';
public $id;
public $kind;
public $startTime;
public $status;
public function setAdditions($additions)
{
$this->additions = $additions;
}
public function getAdditions()
{
return $this->additions;
}
public function setDeletions($deletions)
{
$this->deletions = $deletions;
}
public function getDeletions()
{
return $this->deletions;
}
public function setId($id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setStartTime($startTime)
{
$this->startTime = $startTime;
}
public function getStartTime()
{
return $this->startTime;
}
public function setStatus($status)
{
$this->status = $status;
}
public function getStatus()
{
return $this->status;
}
}
class Google_Service_Dns_ChangesListResponse extends Google_Collection
{
protected $collection_key = 'changes';
protected $internal_gapi_mappings = array(
);
protected $changesType = 'Google_Service_Dns_Change';
protected $changesDataType = 'array';
public $kind;
public $nextPageToken;
public function setChanges($changes)
{
$this->changes = $changes;
}
public function getChanges()
{
return $this->changes;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
class Google_Service_Dns_ManagedZone extends Google_Collection
{
protected $collection_key = 'nameServers';
protected $internal_gapi_mappings = array(
);
public $creationTime;
public $description;
public $dnsName;
public $id;
public $kind;
public $name;
public $nameServerSet;
public $nameServers;
public function setCreationTime($creationTime)
{
$this->creationTime = $creationTime;
}
public function getCreationTime()
{
return $this->creationTime;
}
public function setDescription($description)
{
$this->description = $description;
}
public function getDescription()
{
return $this->description;
}
public function setDnsName($dnsName)
{
$this->dnsName = $dnsName;
}
public function getDnsName()
{
return $this->dnsName;
}
public function setId($id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setNameServerSet($nameServerSet)
{
$this->nameServerSet = $nameServerSet;
}
public function getNameServerSet()
{
return $this->nameServerSet;
}
public function setNameServers($nameServers)
{
$this->nameServers = $nameServers;
}
public function getNameServers()
{
return $this->nameServers;
}
}
class Google_Service_Dns_ManagedZonesListResponse extends Google_Collection
{
protected $collection_key = 'managedZones';
protected $internal_gapi_mappings = array(
);
public $kind;
protected $managedZonesType = 'Google_Service_Dns_ManagedZone';
protected $managedZonesDataType = 'array';
public $nextPageToken;
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setManagedZones($managedZones)
{
$this->managedZones = $managedZones;
}
public function getManagedZones()
{
return $this->managedZones;
}
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
class Google_Service_Dns_Project extends Google_Model
{
protected $internal_gapi_mappings = array(
);
public $id;
public $kind;
public $number;
protected $quotaType = 'Google_Service_Dns_Quota';
protected $quotaDataType = '';
public function setId($id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setNumber($number)
{
$this->number = $number;
}
public function getNumber()
{
return $this->number;
}
public function setQuota(Google_Service_Dns_Quota $quota)
{
$this->quota = $quota;
}
public function getQuota()
{
return $this->quota;
}
}
class Google_Service_Dns_Quota extends Google_Model
{
protected $internal_gapi_mappings = array(
);
public $kind;
public $managedZones;
public $resourceRecordsPerRrset;
public $rrsetAdditionsPerChange;
public $rrsetDeletionsPerChange;
public $rrsetsPerManagedZone;
public $totalRrdataSizePerChange;
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setManagedZones($managedZones)
{
$this->managedZones = $managedZones;
}
public function getManagedZones()
{
return $this->managedZones;
}
public function setResourceRecordsPerRrset($resourceRecordsPerRrset)
{
$this->resourceRecordsPerRrset = $resourceRecordsPerRrset;
}
public function getResourceRecordsPerRrset()
{
return $this->resourceRecordsPerRrset;
}
public function setRrsetAdditionsPerChange($rrsetAdditionsPerChange)
{
$this->rrsetAdditionsPerChange = $rrsetAdditionsPerChange;
}
public function getRrsetAdditionsPerChange()
{
return $this->rrsetAdditionsPerChange;
}
public function setRrsetDeletionsPerChange($rrsetDeletionsPerChange)
{
$this->rrsetDeletionsPerChange = $rrsetDeletionsPerChange;
}
public function getRrsetDeletionsPerChange()
{
return $this->rrsetDeletionsPerChange;
}
public function setRrsetsPerManagedZone($rrsetsPerManagedZone)
{
$this->rrsetsPerManagedZone = $rrsetsPerManagedZone;
}
public function getRrsetsPerManagedZone()
{
return $this->rrsetsPerManagedZone;
}
public function setTotalRrdataSizePerChange($totalRrdataSizePerChange)
{
$this->totalRrdataSizePerChange = $totalRrdataSizePerChange;
}
public function getTotalRrdataSizePerChange()
{
return $this->totalRrdataSizePerChange;
}
}
class Google_Service_Dns_ResourceRecordSet extends Google_Collection
{
protected $collection_key = 'rrdatas';
protected $internal_gapi_mappings = array(
);
public $kind;
public $name;
public $rrdatas;
public $ttl;
public $type;
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setRrdatas($rrdatas)
{
$this->rrdatas = $rrdatas;
}
public function getRrdatas()
{
return $this->rrdatas;
}
public function setTtl($ttl)
{
$this->ttl = $ttl;
}
public function getTtl()
{
return $this->ttl;
}
public function setType($type)
{
$this->type = $type;
}
public function getType()
{
return $this->type;
}
}
class Google_Service_Dns_ResourceRecordSetsListResponse extends Google_Collection
{
protected $collection_key = 'rrsets';
protected $internal_gapi_mappings = array(
);
public $kind;
public $nextPageToken;
protected $rrsetsType = 'Google_Service_Dns_ResourceRecordSet';
protected $rrsetsDataType = 'array';
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
public function setRrsets($rrsets)
{
$this->rrsets = $rrsets;
}
public function getRrsets()
{
return $this->rrsets;
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,105 @@
<?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.
*/
if (!class_exists('Google_Client')) {
require_once dirname(__FILE__) . '/../autoload.php';
}
class Google_Service_Exception extends Google_Exception implements Google_Task_Retryable
{
/**
* Optional list of errors returned in a JSON body of an HTTP error response.
*/
protected $errors = array();
/**
* @var array $retryMap Map of errors with retry counts.
*/
private $retryMap = array();
/**
* Override default constructor to add the ability to set $errors and a retry
* map.
*
* @param string $message
* @param int $code
* @param Exception|null $previous
* @param [{string, string}] errors List of errors returned in an HTTP
* response. Defaults to [].
* @param array|null $retryMap Map of errors with retry counts.
*/
public function __construct(
$message,
$code = 0,
Exception $previous = null,
$errors = array(),
array $retryMap = null
) {
if (version_compare(PHP_VERSION, '5.3.0') >= 0) {
parent::__construct($message, $code, $previous);
} else {
parent::__construct($message, $code);
}
$this->errors = $errors;
if (is_array($retryMap)) {
$this->retryMap = $retryMap;
}
}
/**
* An example of the possible errors returned.
*
* {
* "domain": "global",
* "reason": "authError",
* "message": "Invalid Credentials",
* "locationType": "header",
* "location": "Authorization",
* }
*
* @return [{string, string}] List of errors return in an HTTP response or [].
*/
public function getErrors()
{
return $this->errors;
}
/**
* Gets the number of times the associated task can be retried.
*
* NOTE: -1 is returned if the task can be retried indefinitely
*
* @return integer
*/
public function allowedRetries()
{
if (isset($this->retryMap[$this->code])) {
return $this->retryMap[$this->code];
}
$errors = $this->getErrors();
if (!empty($errors) && isset($errors[0]['reason']) &&
isset($this->retryMap[$errors[0]['reason']])) {
return $this->retryMap[$errors[0]['reason']];
}
return 0;
}
}

View File

@@ -0,0 +1,129 @@
<?php
/*
* Copyright 2010 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.
*/
/**
* Service definition for GroupsMigration (v1).
*
* <p>
* Groups Migration Api.</p>
*
* <p>
* For more information about this service, see the API
* <a href="https://developers.google.com/google-apps/groups-migration/" target="_blank">Documentation</a>
* </p>
*
* @author Google, Inc.
*/
class Google_Service_GroupsMigration extends Google_Service
{
/** Manage messages in groups on your domain. */
const APPS_GROUPS_MIGRATION =
"https://www.googleapis.com/auth/apps.groups.migration";
public $archive;
/**
* Constructs the internal representation of the GroupsMigration service.
*
* @param Google_Client $client
*/
public function __construct(Google_Client $client)
{
parent::__construct($client);
$this->servicePath = 'groups/v1/groups/';
$this->version = 'v1';
$this->serviceName = 'groupsmigration';
$this->archive = new Google_Service_GroupsMigration_Archive_Resource(
$this,
$this->serviceName,
'archive',
array(
'methods' => array(
'insert' => array(
'path' => '{groupId}/archive',
'httpMethod' => 'POST',
'parameters' => array(
'groupId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),
)
)
);
}
}
/**
* The "archive" collection of methods.
* Typical usage is:
* <code>
* $groupsmigrationService = new Google_Service_GroupsMigration(...);
* $archive = $groupsmigrationService->archive;
* </code>
*/
class Google_Service_GroupsMigration_Archive_Resource extends Google_Service_Resource
{
/**
* Inserts a new mail into the archive of the Google group. (archive.insert)
*
* @param string $groupId The group ID
* @param array $optParams Optional parameters.
* @return Google_Service_GroupsMigration_Groups
*/
public function insert($groupId, $optParams = array())
{
$params = array('groupId' => $groupId);
$params = array_merge($params, $optParams);
return $this->call('insert', array($params), "Google_Service_GroupsMigration_Groups");
}
}
class Google_Service_GroupsMigration_Groups extends Google_Model
{
protected $internal_gapi_mappings = array(
);
public $kind;
public $responseCode;
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setResponseCode($responseCode)
{
$this->responseCode = $responseCode;
}
public function getResponseCode()
{
return $this->responseCode;
}
}

View File

@@ -0,0 +1,414 @@
<?php
/*
* Copyright 2010 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.
*/
/**
* Service definition for Groupssettings (v1).
*
* <p>
* Lets you manage permission levels and related settings of a group.</p>
*
* <p>
* For more information about this service, see the API
* <a href="https://developers.google.com/google-apps/groups-settings/get_started" target="_blank">Documentation</a>
* </p>
*
* @author Google, Inc.
*/
class Google_Service_Groupssettings extends Google_Service
{
/** View and manage the settings of a Google Apps Group. */
const APPS_GROUPS_SETTINGS =
"https://www.googleapis.com/auth/apps.groups.settings";
public $groups;
/**
* Constructs the internal representation of the Groupssettings service.
*
* @param Google_Client $client
*/
public function __construct(Google_Client $client)
{
parent::__construct($client);
$this->servicePath = 'groups/v1/groups/';
$this->version = 'v1';
$this->serviceName = 'groupssettings';
$this->groups = new Google_Service_Groupssettings_Groups_Resource(
$this,
$this->serviceName,
'groups',
array(
'methods' => array(
'get' => array(
'path' => '{groupUniqueId}',
'httpMethod' => 'GET',
'parameters' => array(
'groupUniqueId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'patch' => array(
'path' => '{groupUniqueId}',
'httpMethod' => 'PATCH',
'parameters' => array(
'groupUniqueId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'update' => array(
'path' => '{groupUniqueId}',
'httpMethod' => 'PUT',
'parameters' => array(
'groupUniqueId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),
)
)
);
}
}
/**
* The "groups" collection of methods.
* Typical usage is:
* <code>
* $groupssettingsService = new Google_Service_Groupssettings(...);
* $groups = $groupssettingsService->groups;
* </code>
*/
class Google_Service_Groupssettings_Groups_Resource extends Google_Service_Resource
{
/**
* Gets one resource by id. (groups.get)
*
* @param string $groupUniqueId The resource ID
* @param array $optParams Optional parameters.
* @return Google_Service_Groupssettings_Groups
*/
public function get($groupUniqueId, $optParams = array())
{
$params = array('groupUniqueId' => $groupUniqueId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Groupssettings_Groups");
}
/**
* Updates an existing resource. This method supports patch semantics.
* (groups.patch)
*
* @param string $groupUniqueId The resource ID
* @param Google_Groups $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Groupssettings_Groups
*/
public function patch($groupUniqueId, Google_Service_Groupssettings_Groups $postBody, $optParams = array())
{
$params = array('groupUniqueId' => $groupUniqueId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('patch', array($params), "Google_Service_Groupssettings_Groups");
}
/**
* Updates an existing resource. (groups.update)
*
* @param string $groupUniqueId The resource ID
* @param Google_Groups $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Groupssettings_Groups
*/
public function update($groupUniqueId, Google_Service_Groupssettings_Groups $postBody, $optParams = array())
{
$params = array('groupUniqueId' => $groupUniqueId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Groupssettings_Groups");
}
}
class Google_Service_Groupssettings_Groups extends Google_Model
{
protected $internal_gapi_mappings = array(
);
public $allowExternalMembers;
public $allowGoogleCommunication;
public $allowWebPosting;
public $archiveOnly;
public $customReplyTo;
public $defaultMessageDenyNotificationText;
public $description;
public $email;
public $includeInGlobalAddressList;
public $isArchived;
public $kind;
public $maxMessageBytes;
public $membersCanPostAsTheGroup;
public $messageDisplayFont;
public $messageModerationLevel;
public $name;
public $primaryLanguage;
public $replyTo;
public $sendMessageDenyNotification;
public $showInGroupDirectory;
public $spamModerationLevel;
public $whoCanContactOwner;
public $whoCanInvite;
public $whoCanJoin;
public $whoCanLeaveGroup;
public $whoCanPostMessage;
public $whoCanViewGroup;
public $whoCanViewMembership;
public function setAllowExternalMembers($allowExternalMembers)
{
$this->allowExternalMembers = $allowExternalMembers;
}
public function getAllowExternalMembers()
{
return $this->allowExternalMembers;
}
public function setAllowGoogleCommunication($allowGoogleCommunication)
{
$this->allowGoogleCommunication = $allowGoogleCommunication;
}
public function getAllowGoogleCommunication()
{
return $this->allowGoogleCommunication;
}
public function setAllowWebPosting($allowWebPosting)
{
$this->allowWebPosting = $allowWebPosting;
}
public function getAllowWebPosting()
{
return $this->allowWebPosting;
}
public function setArchiveOnly($archiveOnly)
{
$this->archiveOnly = $archiveOnly;
}
public function getArchiveOnly()
{
return $this->archiveOnly;
}
public function setCustomReplyTo($customReplyTo)
{
$this->customReplyTo = $customReplyTo;
}
public function getCustomReplyTo()
{
return $this->customReplyTo;
}
public function setDefaultMessageDenyNotificationText($defaultMessageDenyNotificationText)
{
$this->defaultMessageDenyNotificationText = $defaultMessageDenyNotificationText;
}
public function getDefaultMessageDenyNotificationText()
{
return $this->defaultMessageDenyNotificationText;
}
public function setDescription($description)
{
$this->description = $description;
}
public function getDescription()
{
return $this->description;
}
public function setEmail($email)
{
$this->email = $email;
}
public function getEmail()
{
return $this->email;
}
public function setIncludeInGlobalAddressList($includeInGlobalAddressList)
{
$this->includeInGlobalAddressList = $includeInGlobalAddressList;
}
public function getIncludeInGlobalAddressList()
{
return $this->includeInGlobalAddressList;
}
public function setIsArchived($isArchived)
{
$this->isArchived = $isArchived;
}
public function getIsArchived()
{
return $this->isArchived;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setMaxMessageBytes($maxMessageBytes)
{
$this->maxMessageBytes = $maxMessageBytes;
}
public function getMaxMessageBytes()
{
return $this->maxMessageBytes;
}
public function setMembersCanPostAsTheGroup($membersCanPostAsTheGroup)
{
$this->membersCanPostAsTheGroup = $membersCanPostAsTheGroup;
}
public function getMembersCanPostAsTheGroup()
{
return $this->membersCanPostAsTheGroup;
}
public function setMessageDisplayFont($messageDisplayFont)
{
$this->messageDisplayFont = $messageDisplayFont;
}
public function getMessageDisplayFont()
{
return $this->messageDisplayFont;
}
public function setMessageModerationLevel($messageModerationLevel)
{
$this->messageModerationLevel = $messageModerationLevel;
}
public function getMessageModerationLevel()
{
return $this->messageModerationLevel;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setPrimaryLanguage($primaryLanguage)
{
$this->primaryLanguage = $primaryLanguage;
}
public function getPrimaryLanguage()
{
return $this->primaryLanguage;
}
public function setReplyTo($replyTo)
{
$this->replyTo = $replyTo;
}
public function getReplyTo()
{
return $this->replyTo;
}
public function setSendMessageDenyNotification($sendMessageDenyNotification)
{
$this->sendMessageDenyNotification = $sendMessageDenyNotification;
}
public function getSendMessageDenyNotification()
{
return $this->sendMessageDenyNotification;
}
public function setShowInGroupDirectory($showInGroupDirectory)
{
$this->showInGroupDirectory = $showInGroupDirectory;
}
public function getShowInGroupDirectory()
{
return $this->showInGroupDirectory;
}
public function setSpamModerationLevel($spamModerationLevel)
{
$this->spamModerationLevel = $spamModerationLevel;
}
public function getSpamModerationLevel()
{
return $this->spamModerationLevel;
}
public function setWhoCanContactOwner($whoCanContactOwner)
{
$this->whoCanContactOwner = $whoCanContactOwner;
}
public function getWhoCanContactOwner()
{
return $this->whoCanContactOwner;
}
public function setWhoCanInvite($whoCanInvite)
{
$this->whoCanInvite = $whoCanInvite;
}
public function getWhoCanInvite()
{
return $this->whoCanInvite;
}
public function setWhoCanJoin($whoCanJoin)
{
$this->whoCanJoin = $whoCanJoin;
}
public function getWhoCanJoin()
{
return $this->whoCanJoin;
}
public function setWhoCanLeaveGroup($whoCanLeaveGroup)
{
$this->whoCanLeaveGroup = $whoCanLeaveGroup;
}
public function getWhoCanLeaveGroup()
{
return $this->whoCanLeaveGroup;
}
public function setWhoCanPostMessage($whoCanPostMessage)
{
$this->whoCanPostMessage = $whoCanPostMessage;
}
public function getWhoCanPostMessage()
{
return $this->whoCanPostMessage;
}
public function setWhoCanViewGroup($whoCanViewGroup)
{
$this->whoCanViewGroup = $whoCanViewGroup;
}
public function getWhoCanViewGroup()
{
return $this->whoCanViewGroup;
}
public function setWhoCanViewMembership($whoCanViewMembership)
{
$this->whoCanViewMembership = $whoCanViewMembership;
}
public function getWhoCanViewMembership()
{
return $this->whoCanViewMembership;
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,478 @@
<?php
/*
* Copyright 2010 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.
*/
/**
* Service definition for Licensing (v1).
*
* <p>
* Licensing API to view and manage license for your domain.</p>
*
* <p>
* For more information about this service, see the API
* <a href="https://developers.google.com/google-apps/licensing/" target="_blank">Documentation</a>
* </p>
*
* @author Google, Inc.
*/
class Google_Service_Licensing extends Google_Service
{
/** View and manage Google Apps licenses for your domain. */
const APPS_LICENSING =
"https://www.googleapis.com/auth/apps.licensing";
public $licenseAssignments;
/**
* Constructs the internal representation of the Licensing service.
*
* @param Google_Client $client
*/
public function __construct(Google_Client $client)
{
parent::__construct($client);
$this->servicePath = 'apps/licensing/v1/product/';
$this->version = 'v1';
$this->serviceName = 'licensing';
$this->licenseAssignments = new Google_Service_Licensing_LicenseAssignments_Resource(
$this,
$this->serviceName,
'licenseAssignments',
array(
'methods' => array(
'delete' => array(
'path' => '{productId}/sku/{skuId}/user/{userId}',
'httpMethod' => 'DELETE',
'parameters' => array(
'productId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'skuId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'userId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'get' => array(
'path' => '{productId}/sku/{skuId}/user/{userId}',
'httpMethod' => 'GET',
'parameters' => array(
'productId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'skuId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'userId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'insert' => array(
'path' => '{productId}/sku/{skuId}/user',
'httpMethod' => 'POST',
'parameters' => array(
'productId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'skuId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'listForProduct' => array(
'path' => '{productId}/users',
'httpMethod' => 'GET',
'parameters' => array(
'productId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'customerId' => array(
'location' => 'query',
'type' => 'string',
'required' => true,
),
'pageToken' => array(
'location' => 'query',
'type' => 'string',
),
'maxResults' => array(
'location' => 'query',
'type' => 'integer',
),
),
),'listForProductAndSku' => array(
'path' => '{productId}/sku/{skuId}/users',
'httpMethod' => 'GET',
'parameters' => array(
'productId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'skuId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'customerId' => array(
'location' => 'query',
'type' => 'string',
'required' => true,
),
'pageToken' => array(
'location' => 'query',
'type' => 'string',
),
'maxResults' => array(
'location' => 'query',
'type' => 'integer',
),
),
),'patch' => array(
'path' => '{productId}/sku/{skuId}/user/{userId}',
'httpMethod' => 'PATCH',
'parameters' => array(
'productId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'skuId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'userId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'update' => array(
'path' => '{productId}/sku/{skuId}/user/{userId}',
'httpMethod' => 'PUT',
'parameters' => array(
'productId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'skuId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'userId' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),
)
)
);
}
}
/**
* The "licenseAssignments" collection of methods.
* Typical usage is:
* <code>
* $licensingService = new Google_Service_Licensing(...);
* $licenseAssignments = $licensingService->licenseAssignments;
* </code>
*/
class Google_Service_Licensing_LicenseAssignments_Resource extends Google_Service_Resource
{
/**
* Revoke License. (licenseAssignments.delete)
*
* @param string $productId Name for product
* @param string $skuId Name for sku
* @param string $userId email id or unique Id of the user
* @param array $optParams Optional parameters.
*/
public function delete($productId, $skuId, $userId, $optParams = array())
{
$params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params));
}
/**
* Get license assignment of a particular product and sku for a user
* (licenseAssignments.get)
*
* @param string $productId Name for product
* @param string $skuId Name for sku
* @param string $userId email id or unique Id of the user
* @param array $optParams Optional parameters.
* @return Google_Service_Licensing_LicenseAssignment
*/
public function get($productId, $skuId, $userId, $optParams = array())
{
$params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Licensing_LicenseAssignment");
}
/**
* Assign License. (licenseAssignments.insert)
*
* @param string $productId Name for product
* @param string $skuId Name for sku
* @param Google_LicenseAssignmentInsert $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Licensing_LicenseAssignment
*/
public function insert($productId, $skuId, Google_Service_Licensing_LicenseAssignmentInsert $postBody, $optParams = array())
{
$params = array('productId' => $productId, 'skuId' => $skuId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('insert', array($params), "Google_Service_Licensing_LicenseAssignment");
}
/**
* List license assignments for given product of the customer.
* (licenseAssignments.listForProduct)
*
* @param string $productId Name for product
* @param string $customerId CustomerId represents the customer for whom
* licenseassignments are queried
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken Token to fetch the next page.Optional. By default
* server will return first page
* @opt_param string maxResults Maximum number of campaigns to return at one
* time. Must be positive. Optional. Default value is 100.
* @return Google_Service_Licensing_LicenseAssignmentList
*/
public function listForProduct($productId, $customerId, $optParams = array())
{
$params = array('productId' => $productId, 'customerId' => $customerId);
$params = array_merge($params, $optParams);
return $this->call('listForProduct', array($params), "Google_Service_Licensing_LicenseAssignmentList");
}
/**
* List license assignments for given product and sku of the customer.
* (licenseAssignments.listForProductAndSku)
*
* @param string $productId Name for product
* @param string $skuId Name for sku
* @param string $customerId CustomerId represents the customer for whom
* licenseassignments are queried
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken Token to fetch the next page.Optional. By default
* server will return first page
* @opt_param string maxResults Maximum number of campaigns to return at one
* time. Must be positive. Optional. Default value is 100.
* @return Google_Service_Licensing_LicenseAssignmentList
*/
public function listForProductAndSku($productId, $skuId, $customerId, $optParams = array())
{
$params = array('productId' => $productId, 'skuId' => $skuId, 'customerId' => $customerId);
$params = array_merge($params, $optParams);
return $this->call('listForProductAndSku', array($params), "Google_Service_Licensing_LicenseAssignmentList");
}
/**
* Assign License. This method supports patch semantics.
* (licenseAssignments.patch)
*
* @param string $productId Name for product
* @param string $skuId Name for sku for which license would be revoked
* @param string $userId email id or unique Id of the user
* @param Google_LicenseAssignment $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Licensing_LicenseAssignment
*/
public function patch($productId, $skuId, $userId, Google_Service_Licensing_LicenseAssignment $postBody, $optParams = array())
{
$params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('patch', array($params), "Google_Service_Licensing_LicenseAssignment");
}
/**
* Assign License. (licenseAssignments.update)
*
* @param string $productId Name for product
* @param string $skuId Name for sku for which license would be revoked
* @param string $userId email id or unique Id of the user
* @param Google_LicenseAssignment $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Licensing_LicenseAssignment
*/
public function update($productId, $skuId, $userId, Google_Service_Licensing_LicenseAssignment $postBody, $optParams = array())
{
$params = array('productId' => $productId, 'skuId' => $skuId, 'userId' => $userId, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Licensing_LicenseAssignment");
}
}
class Google_Service_Licensing_LicenseAssignment extends Google_Model
{
protected $internal_gapi_mappings = array(
);
public $etags;
public $kind;
public $productId;
public $selfLink;
public $skuId;
public $userId;
public function setEtags($etags)
{
$this->etags = $etags;
}
public function getEtags()
{
return $this->etags;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setProductId($productId)
{
$this->productId = $productId;
}
public function getProductId()
{
return $this->productId;
}
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
public function getSelfLink()
{
return $this->selfLink;
}
public function setSkuId($skuId)
{
$this->skuId = $skuId;
}
public function getSkuId()
{
return $this->skuId;
}
public function setUserId($userId)
{
$this->userId = $userId;
}
public function getUserId()
{
return $this->userId;
}
}
class Google_Service_Licensing_LicenseAssignmentInsert extends Google_Model
{
protected $internal_gapi_mappings = array(
);
public $userId;
public function setUserId($userId)
{
$this->userId = $userId;
}
public function getUserId()
{
return $this->userId;
}
}
class Google_Service_Licensing_LicenseAssignmentList extends Google_Collection
{
protected $collection_key = 'items';
protected $internal_gapi_mappings = array(
);
public $etag;
protected $itemsType = 'Google_Service_Licensing_LicenseAssignment';
protected $itemsDataType = 'array';
public $kind;
public $nextPageToken;
public function setEtag($etag)
{
$this->etag = $etag;
}
public function getEtag()
{
return $this->etag;
}
public function setItems($items)
{
$this->items = $items;
}
public function getItems()
{
return $this->items;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,502 @@
<?php
/*
* Copyright 2010 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.
*/
/**
* Service definition for Oauth2 (v2).
*
* <p>
* Lets you access OAuth2 protocol related APIs.</p>
*
* <p>
* For more information about this service, see the API
* <a href="https://developers.google.com/accounts/docs/OAuth2" target="_blank">Documentation</a>
* </p>
*
* @author Google, Inc.
*/
class Google_Service_Oauth2 extends Google_Service
{
/** Know your basic profile info and list of people in your circles.. */
const PLUS_LOGIN =
"https://www.googleapis.com/auth/plus.login";
/** Know who you are on Google. */
const PLUS_ME =
"https://www.googleapis.com/auth/plus.me";
/** View your email address. */
const USERINFO_EMAIL =
"https://www.googleapis.com/auth/userinfo.email";
/** View your basic profile info. */
const USERINFO_PROFILE =
"https://www.googleapis.com/auth/userinfo.profile";
public $userinfo;
public $userinfo_v2_me;
private $base_methods;
/**
* Constructs the internal representation of the Oauth2 service.
*
* @param Google_Client $client
*/
public function __construct(Google_Client $client)
{
parent::__construct($client);
$this->servicePath = '';
$this->version = 'v2';
$this->serviceName = 'oauth2';
$this->userinfo = new Google_Service_Oauth2_Userinfo_Resource(
$this,
$this->serviceName,
'userinfo',
array(
'methods' => array(
'get' => array(
'path' => 'oauth2/v2/userinfo',
'httpMethod' => 'GET',
'parameters' => array(),
),
)
)
);
$this->userinfo_v2_me = new Google_Service_Oauth2_UserinfoV2Me_Resource(
$this,
$this->serviceName,
'me',
array(
'methods' => array(
'get' => array(
'path' => 'userinfo/v2/me',
'httpMethod' => 'GET',
'parameters' => array(),
),
)
)
);
$this->base_methods = new Google_Service_Resource(
$this,
$this->serviceName,
'',
array(
'methods' => array(
'getCertForOpenIdConnect' => array(
'path' => 'oauth2/v2/certs',
'httpMethod' => 'GET',
'parameters' => array(),
),'tokeninfo' => array(
'path' => 'oauth2/v2/tokeninfo',
'httpMethod' => 'POST',
'parameters' => array(
'access_token' => array(
'location' => 'query',
'type' => 'string',
),
'id_token' => array(
'location' => 'query',
'type' => 'string',
),
'token_handle' => array(
'location' => 'query',
'type' => 'string',
),
),
),
)
)
);
}
/**
* (getCertForOpenIdConnect)
*
* @param array $optParams Optional parameters.
* @return Google_Service_Oauth2_Jwk
*/
public function getCertForOpenIdConnect($optParams = array())
{
$params = array();
$params = array_merge($params, $optParams);
return $this->base_methods->call('getCertForOpenIdConnect', array($params), "Google_Service_Oauth2_Jwk");
}
/**
* (tokeninfo)
*
* @param array $optParams Optional parameters.
*
* @opt_param string access_token
* @opt_param string id_token
* @opt_param string token_handle
* @return Google_Service_Oauth2_Tokeninfo
*/
public function tokeninfo($optParams = array())
{
$params = array();
$params = array_merge($params, $optParams);
return $this->base_methods->call('tokeninfo', array($params), "Google_Service_Oauth2_Tokeninfo");
}
}
/**
* The "userinfo" collection of methods.
* Typical usage is:
* <code>
* $oauth2Service = new Google_Service_Oauth2(...);
* $userinfo = $oauth2Service->userinfo;
* </code>
*/
class Google_Service_Oauth2_Userinfo_Resource extends Google_Service_Resource
{
/**
* (userinfo.get)
*
* @param array $optParams Optional parameters.
* @return Google_Service_Oauth2_Userinfoplus
*/
public function get($optParams = array())
{
$params = array();
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Oauth2_Userinfoplus");
}
}
/**
* The "v2" collection of methods.
* Typical usage is:
* <code>
* $oauth2Service = new Google_Service_Oauth2(...);
* $v2 = $oauth2Service->v2;
* </code>
*/
class Google_Service_Oauth2_UserinfoV2_Resource extends Google_Service_Resource
{
}
/**
* The "me" collection of methods.
* Typical usage is:
* <code>
* $oauth2Service = new Google_Service_Oauth2(...);
* $me = $oauth2Service->me;
* </code>
*/
class Google_Service_Oauth2_UserinfoV2Me_Resource extends Google_Service_Resource
{
/**
* (me.get)
*
* @param array $optParams Optional parameters.
* @return Google_Service_Oauth2_Userinfoplus
*/
public function get($optParams = array())
{
$params = array();
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Oauth2_Userinfoplus");
}
}
class Google_Service_Oauth2_Jwk extends Google_Collection
{
protected $collection_key = 'keys';
protected $internal_gapi_mappings = array(
);
protected $keysType = 'Google_Service_Oauth2_JwkKeys';
protected $keysDataType = 'array';
public function setKeys($keys)
{
$this->keys = $keys;
}
public function getKeys()
{
return $this->keys;
}
}
class Google_Service_Oauth2_JwkKeys extends Google_Model
{
protected $internal_gapi_mappings = array(
);
public $alg;
public $e;
public $kid;
public $kty;
public $n;
public $use;
public function setAlg($alg)
{
$this->alg = $alg;
}
public function getAlg()
{
return $this->alg;
}
public function setE($e)
{
$this->e = $e;
}
public function getE()
{
return $this->e;
}
public function setKid($kid)
{
$this->kid = $kid;
}
public function getKid()
{
return $this->kid;
}
public function setKty($kty)
{
$this->kty = $kty;
}
public function getKty()
{
return $this->kty;
}
public function setN($n)
{
$this->n = $n;
}
public function getN()
{
return $this->n;
}
public function setUse($use)
{
$this->use = $use;
}
public function getUse()
{
return $this->use;
}
}
class Google_Service_Oauth2_Tokeninfo extends Google_Model
{
protected $internal_gapi_mappings = array(
"accessType" => "access_type",
"expiresIn" => "expires_in",
"issuedTo" => "issued_to",
"tokenHandle" => "token_handle",
"userId" => "user_id",
"verifiedEmail" => "verified_email",
);
public $accessType;
public $audience;
public $email;
public $expiresIn;
public $issuedTo;
public $scope;
public $tokenHandle;
public $userId;
public $verifiedEmail;
public function setAccessType($accessType)
{
$this->accessType = $accessType;
}
public function getAccessType()
{
return $this->accessType;
}
public function setAudience($audience)
{
$this->audience = $audience;
}
public function getAudience()
{
return $this->audience;
}
public function setEmail($email)
{
$this->email = $email;
}
public function getEmail()
{
return $this->email;
}
public function setExpiresIn($expiresIn)
{
$this->expiresIn = $expiresIn;
}
public function getExpiresIn()
{
return $this->expiresIn;
}
public function setIssuedTo($issuedTo)
{
$this->issuedTo = $issuedTo;
}
public function getIssuedTo()
{
return $this->issuedTo;
}
public function setScope($scope)
{
$this->scope = $scope;
}
public function getScope()
{
return $this->scope;
}
public function setTokenHandle($tokenHandle)
{
$this->tokenHandle = $tokenHandle;
}
public function getTokenHandle()
{
return $this->tokenHandle;
}
public function setUserId($userId)
{
$this->userId = $userId;
}
public function getUserId()
{
return $this->userId;
}
public function setVerifiedEmail($verifiedEmail)
{
$this->verifiedEmail = $verifiedEmail;
}
public function getVerifiedEmail()
{
return $this->verifiedEmail;
}
}
class Google_Service_Oauth2_Userinfoplus extends Google_Model
{
protected $internal_gapi_mappings = array(
"familyName" => "family_name",
"givenName" => "given_name",
"verifiedEmail" => "verified_email",
);
public $email;
public $familyName;
public $gender;
public $givenName;
public $hd;
public $id;
public $link;
public $locale;
public $name;
public $picture;
public $verifiedEmail;
public function setEmail($email)
{
$this->email = $email;
}
public function getEmail()
{
return $this->email;
}
public function setFamilyName($familyName)
{
$this->familyName = $familyName;
}
public function getFamilyName()
{
return $this->familyName;
}
public function setGender($gender)
{
$this->gender = $gender;
}
public function getGender()
{
return $this->gender;
}
public function setGivenName($givenName)
{
$this->givenName = $givenName;
}
public function getGivenName()
{
return $this->givenName;
}
public function setHd($hd)
{
$this->hd = $hd;
}
public function getHd()
{
return $this->hd;
}
public function setId($id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
public function setLink($link)
{
$this->link = $link;
}
public function getLink()
{
return $this->link;
}
public function setLocale($locale)
{
$this->locale = $locale;
}
public function getLocale()
{
return $this->locale;
}
public function setName($name)
{
$this->name = $name;
}
public function getName()
{
return $this->name;
}
public function setPicture($picture)
{
$this->picture = $picture;
}
public function getPicture()
{
return $this->picture;
}
public function setVerifiedEmail($verifiedEmail)
{
$this->verifiedEmail = $verifiedEmail;
}
public function getVerifiedEmail()
{
return $this->verifiedEmail;
}
}

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,252 @@
<?php
/**
* Copyright 2010 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.
*/
if (!class_exists('Google_Client')) {
require_once dirname(__FILE__) . '/../autoload.php';
}
/**
* Implements the actual methods/resources of the discovered Google API using magic function
* calling overloading (__call()), which on call will see if the method name (plus.activities.list)
* is available in this service, and if so construct an apiHttpRequest representing it.
*
*/
class Google_Service_Resource
{
// Valid query parameters that work, but don't appear in discovery.
private $stackParameters = array(
'alt' => array('type' => 'string', 'location' => 'query'),
'fields' => array('type' => 'string', 'location' => 'query'),
'trace' => array('type' => 'string', 'location' => 'query'),
'userIp' => array('type' => 'string', 'location' => 'query'),
'quotaUser' => array('type' => 'string', 'location' => 'query'),
'data' => array('type' => 'string', 'location' => 'body'),
'mimeType' => array('type' => 'string', 'location' => 'header'),
'uploadType' => array('type' => 'string', 'location' => 'query'),
'mediaUpload' => array('type' => 'complex', 'location' => 'query'),
'prettyPrint' => array('type' => 'string', 'location' => 'query'),
);
/** @var string $rootUrl */
private $rootUrl;
/** @var Google_Client $client */
private $client;
/** @var string $serviceName */
private $serviceName;
/** @var string $servicePath */
private $servicePath;
/** @var string $resourceName */
private $resourceName;
/** @var array $methods */
private $methods;
public function __construct($service, $serviceName, $resourceName, $resource)
{
$this->rootUrl = $service->rootUrl;
$this->client = $service->getClient();
$this->servicePath = $service->servicePath;
$this->serviceName = $serviceName;
$this->resourceName = $resourceName;
$this->methods = is_array($resource) && isset($resource['methods']) ?
$resource['methods'] :
array($resourceName => $resource);
}
/**
* TODO(ianbarber): This function needs simplifying.
* @param $name
* @param $arguments
* @param $expected_class - optional, the expected class name
* @return Google_Http_Request|expected_class
* @throws Google_Exception
*/
public function call($name, $arguments, $expected_class = null)
{
if (! isset($this->methods[$name])) {
$this->client->getLogger()->error(
'Service method unknown',
array(
'service' => $this->serviceName,
'resource' => $this->resourceName,
'method' => $name
)
);
throw new Google_Exception(
"Unknown function: " .
"{$this->serviceName}->{$this->resourceName}->{$name}()"
);
}
$method = $this->methods[$name];
$parameters = $arguments[0];
// postBody is a special case since it's not defined in the discovery
// document as parameter, but we abuse the param entry for storing it.
$postBody = null;
if (isset($parameters['postBody'])) {
if ($parameters['postBody'] instanceof Google_Model) {
// In the cases the post body is an existing object, we want
// to use the smart method to create a simple object for
// for JSONification.
$parameters['postBody'] = $parameters['postBody']->toSimpleObject();
} else if (is_object($parameters['postBody'])) {
// If the post body is another kind of object, we will try and
// wrangle it into a sensible format.
$parameters['postBody'] =
$this->convertToArrayAndStripNulls($parameters['postBody']);
}
$postBody = json_encode($parameters['postBody']);
unset($parameters['postBody']);
}
// TODO(ianbarber): optParams here probably should have been
// handled already - this may well be redundant code.
if (isset($parameters['optParams'])) {
$optParams = $parameters['optParams'];
unset($parameters['optParams']);
$parameters = array_merge($parameters, $optParams);
}
if (!isset($method['parameters'])) {
$method['parameters'] = array();
}
$method['parameters'] = array_merge(
$method['parameters'],
$this->stackParameters
);
foreach ($parameters as $key => $val) {
if ($key != 'postBody' && ! isset($method['parameters'][$key])) {
$this->client->getLogger()->error(
'Service parameter unknown',
array(
'service' => $this->serviceName,
'resource' => $this->resourceName,
'method' => $name,
'parameter' => $key
)
);
throw new Google_Exception("($name) unknown parameter: '$key'");
}
}
foreach ($method['parameters'] as $paramName => $paramSpec) {
if (isset($paramSpec['required']) &&
$paramSpec['required'] &&
! isset($parameters[$paramName])
) {
$this->client->getLogger()->error(
'Service parameter missing',
array(
'service' => $this->serviceName,
'resource' => $this->resourceName,
'method' => $name,
'parameter' => $paramName
)
);
throw new Google_Exception("($name) missing required param: '$paramName'");
}
if (isset($parameters[$paramName])) {
$value = $parameters[$paramName];
$parameters[$paramName] = $paramSpec;
$parameters[$paramName]['value'] = $value;
unset($parameters[$paramName]['required']);
} else {
// Ensure we don't pass nulls.
unset($parameters[$paramName]);
}
}
$this->client->getLogger()->info(
'Service Call',
array(
'service' => $this->serviceName,
'resource' => $this->resourceName,
'method' => $name,
'arguments' => $parameters,
)
);
$url = Google_Http_REST::createRequestUri(
$this->servicePath,
$method['path'],
$parameters
);
$httpRequest = new Google_Http_Request(
$url,
$method['httpMethod'],
null,
$postBody
);
if ($this->rootUrl) {
$httpRequest->setBaseComponent($this->rootUrl);
} else {
$httpRequest->setBaseComponent($this->client->getBasePath());
}
if ($postBody) {
$contentTypeHeader = array();
$contentTypeHeader['content-type'] = 'application/json; charset=UTF-8';
$httpRequest->setRequestHeaders($contentTypeHeader);
$httpRequest->setPostBody($postBody);
}
$httpRequest = $this->client->getAuth()->sign($httpRequest);
$httpRequest->setExpectedClass($expected_class);
if (isset($parameters['data']) &&
($parameters['uploadType']['value'] == 'media' || $parameters['uploadType']['value'] == 'multipart')) {
// If we are doing a simple media upload, trigger that as a convenience.
$mfu = new Google_Http_MediaFileUpload(
$this->client,
$httpRequest,
isset($parameters['mimeType']) ? $parameters['mimeType']['value'] : 'application/octet-stream',
$parameters['data']['value']
);
}
if (isset($parameters['alt']) && $parameters['alt']['value'] == 'media') {
$httpRequest->enableExpectedRaw();
}
if ($this->client->shouldDefer()) {
// If we are in batch or upload mode, return the raw request.
return $httpRequest;
}
return $this->client->execute($httpRequest);
}
protected function convertToArrayAndStripNulls($o)
{
$o = (array) $o;
foreach ($o as $k => $v) {
if ($v === null) {
unset($o[$k]);
} elseif (is_object($v) || is_array($v)) {
$o[$k] = $this->convertToArrayAndStripNulls($o[$k]);
}
}
return $o;
}
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,907 @@
<?php
/*
* Copyright 2010 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.
*/
/**
* Service definition for Tasks (v1).
*
* <p>
* Lets you manage your tasks and task lists.</p>
*
* <p>
* For more information about this service, see the API
* <a href="https://developers.google.com/google-apps/tasks/firstapp" target="_blank">Documentation</a>
* </p>
*
* @author Google, Inc.
*/
class Google_Service_Tasks extends Google_Service
{
/** Manage your tasks. */
const TASKS =
"https://www.googleapis.com/auth/tasks";
/** View your tasks. */
const TASKS_READONLY =
"https://www.googleapis.com/auth/tasks.readonly";
public $tasklists;
public $tasks;
/**
* Constructs the internal representation of the Tasks service.
*
* @param Google_Client $client
*/
public function __construct(Google_Client $client)
{
parent::__construct($client);
$this->servicePath = 'tasks/v1/';
$this->version = 'v1';
$this->serviceName = 'tasks';
$this->tasklists = new Google_Service_Tasks_Tasklists_Resource(
$this,
$this->serviceName,
'tasklists',
array(
'methods' => array(
'delete' => array(
'path' => 'users/@me/lists/{tasklist}',
'httpMethod' => 'DELETE',
'parameters' => array(
'tasklist' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'get' => array(
'path' => 'users/@me/lists/{tasklist}',
'httpMethod' => 'GET',
'parameters' => array(
'tasklist' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'insert' => array(
'path' => 'users/@me/lists',
'httpMethod' => 'POST',
'parameters' => array(),
),'list' => array(
'path' => 'users/@me/lists',
'httpMethod' => 'GET',
'parameters' => array(
'pageToken' => array(
'location' => 'query',
'type' => 'string',
),
'maxResults' => array(
'location' => 'query',
'type' => 'string',
),
),
),'patch' => array(
'path' => 'users/@me/lists/{tasklist}',
'httpMethod' => 'PATCH',
'parameters' => array(
'tasklist' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'update' => array(
'path' => 'users/@me/lists/{tasklist}',
'httpMethod' => 'PUT',
'parameters' => array(
'tasklist' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),
)
)
);
$this->tasks = new Google_Service_Tasks_Tasks_Resource(
$this,
$this->serviceName,
'tasks',
array(
'methods' => array(
'clear' => array(
'path' => 'lists/{tasklist}/clear',
'httpMethod' => 'POST',
'parameters' => array(
'tasklist' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'delete' => array(
'path' => 'lists/{tasklist}/tasks/{task}',
'httpMethod' => 'DELETE',
'parameters' => array(
'tasklist' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'task' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'get' => array(
'path' => 'lists/{tasklist}/tasks/{task}',
'httpMethod' => 'GET',
'parameters' => array(
'tasklist' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'task' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'insert' => array(
'path' => 'lists/{tasklist}/tasks',
'httpMethod' => 'POST',
'parameters' => array(
'tasklist' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'parent' => array(
'location' => 'query',
'type' => 'string',
),
'previous' => array(
'location' => 'query',
'type' => 'string',
),
),
),'list' => array(
'path' => 'lists/{tasklist}/tasks',
'httpMethod' => 'GET',
'parameters' => array(
'tasklist' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'dueMax' => array(
'location' => 'query',
'type' => 'string',
),
'showDeleted' => array(
'location' => 'query',
'type' => 'boolean',
),
'updatedMin' => array(
'location' => 'query',
'type' => 'string',
),
'completedMin' => array(
'location' => 'query',
'type' => 'string',
),
'maxResults' => array(
'location' => 'query',
'type' => 'string',
),
'showCompleted' => array(
'location' => 'query',
'type' => 'boolean',
),
'pageToken' => array(
'location' => 'query',
'type' => 'string',
),
'completedMax' => array(
'location' => 'query',
'type' => 'string',
),
'showHidden' => array(
'location' => 'query',
'type' => 'boolean',
),
'dueMin' => array(
'location' => 'query',
'type' => 'string',
),
),
),'move' => array(
'path' => 'lists/{tasklist}/tasks/{task}/move',
'httpMethod' => 'POST',
'parameters' => array(
'tasklist' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'task' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'parent' => array(
'location' => 'query',
'type' => 'string',
),
'previous' => array(
'location' => 'query',
'type' => 'string',
),
),
),'patch' => array(
'path' => 'lists/{tasklist}/tasks/{task}',
'httpMethod' => 'PATCH',
'parameters' => array(
'tasklist' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'task' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),'update' => array(
'path' => 'lists/{tasklist}/tasks/{task}',
'httpMethod' => 'PUT',
'parameters' => array(
'tasklist' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
'task' => array(
'location' => 'path',
'type' => 'string',
'required' => true,
),
),
),
)
)
);
}
}
/**
* The "tasklists" collection of methods.
* Typical usage is:
* <code>
* $tasksService = new Google_Service_Tasks(...);
* $tasklists = $tasksService->tasklists;
* </code>
*/
class Google_Service_Tasks_Tasklists_Resource extends Google_Service_Resource
{
/**
* Deletes the authenticated user's specified task list. (tasklists.delete)
*
* @param string $tasklist Task list identifier.
* @param array $optParams Optional parameters.
*/
public function delete($tasklist, $optParams = array())
{
$params = array('tasklist' => $tasklist);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params));
}
/**
* Returns the authenticated user's specified task list. (tasklists.get)
*
* @param string $tasklist Task list identifier.
* @param array $optParams Optional parameters.
* @return Google_Service_Tasks_TaskList
*/
public function get($tasklist, $optParams = array())
{
$params = array('tasklist' => $tasklist);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Tasks_TaskList");
}
/**
* Creates a new task list and adds it to the authenticated user's task lists.
* (tasklists.insert)
*
* @param Google_TaskList $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Tasks_TaskList
*/
public function insert(Google_Service_Tasks_TaskList $postBody, $optParams = array())
{
$params = array('postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('insert', array($params), "Google_Service_Tasks_TaskList");
}
/**
* Returns all the authenticated user's task lists. (tasklists.listTasklists)
*
* @param array $optParams Optional parameters.
*
* @opt_param string pageToken Token specifying the result page to return.
* Optional.
* @opt_param string maxResults Maximum number of task lists returned on one
* page. Optional. The default is 100.
* @return Google_Service_Tasks_TaskLists
*/
public function listTasklists($optParams = array())
{
$params = array();
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Tasks_TaskLists");
}
/**
* Updates the authenticated user's specified task list. This method supports
* patch semantics. (tasklists.patch)
*
* @param string $tasklist Task list identifier.
* @param Google_TaskList $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Tasks_TaskList
*/
public function patch($tasklist, Google_Service_Tasks_TaskList $postBody, $optParams = array())
{
$params = array('tasklist' => $tasklist, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('patch', array($params), "Google_Service_Tasks_TaskList");
}
/**
* Updates the authenticated user's specified task list. (tasklists.update)
*
* @param string $tasklist Task list identifier.
* @param Google_TaskList $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Tasks_TaskList
*/
public function update($tasklist, Google_Service_Tasks_TaskList $postBody, $optParams = array())
{
$params = array('tasklist' => $tasklist, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Tasks_TaskList");
}
}
/**
* The "tasks" collection of methods.
* Typical usage is:
* <code>
* $tasksService = new Google_Service_Tasks(...);
* $tasks = $tasksService->tasks;
* </code>
*/
class Google_Service_Tasks_Tasks_Resource extends Google_Service_Resource
{
/**
* Clears all completed tasks from the specified task list. The affected tasks
* will be marked as 'hidden' and no longer be returned by default when
* retrieving all tasks for a task list. (tasks.clear)
*
* @param string $tasklist Task list identifier.
* @param array $optParams Optional parameters.
*/
public function clear($tasklist, $optParams = array())
{
$params = array('tasklist' => $tasklist);
$params = array_merge($params, $optParams);
return $this->call('clear', array($params));
}
/**
* Deletes the specified task from the task list. (tasks.delete)
*
* @param string $tasklist Task list identifier.
* @param string $task Task identifier.
* @param array $optParams Optional parameters.
*/
public function delete($tasklist, $task, $optParams = array())
{
$params = array('tasklist' => $tasklist, 'task' => $task);
$params = array_merge($params, $optParams);
return $this->call('delete', array($params));
}
/**
* Returns the specified task. (tasks.get)
*
* @param string $tasklist Task list identifier.
* @param string $task Task identifier.
* @param array $optParams Optional parameters.
* @return Google_Service_Tasks_Task
*/
public function get($tasklist, $task, $optParams = array())
{
$params = array('tasklist' => $tasklist, 'task' => $task);
$params = array_merge($params, $optParams);
return $this->call('get', array($params), "Google_Service_Tasks_Task");
}
/**
* Creates a new task on the specified task list. (tasks.insert)
*
* @param string $tasklist Task list identifier.
* @param Google_Task $postBody
* @param array $optParams Optional parameters.
*
* @opt_param string parent Parent task identifier. If the task is created at
* the top level, this parameter is omitted. Optional.
* @opt_param string previous Previous sibling task identifier. If the task is
* created at the first position among its siblings, this parameter is omitted.
* Optional.
* @return Google_Service_Tasks_Task
*/
public function insert($tasklist, Google_Service_Tasks_Task $postBody, $optParams = array())
{
$params = array('tasklist' => $tasklist, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('insert', array($params), "Google_Service_Tasks_Task");
}
/**
* Returns all tasks in the specified task list. (tasks.listTasks)
*
* @param string $tasklist Task list identifier.
* @param array $optParams Optional parameters.
*
* @opt_param string dueMax Upper bound for a task's due date (as a RFC 3339
* timestamp) to filter by. Optional. The default is not to filter by due date.
* @opt_param bool showDeleted Flag indicating whether deleted tasks are
* returned in the result. Optional. The default is False.
* @opt_param string updatedMin Lower bound for a task's last modification time
* (as a RFC 3339 timestamp) to filter by. Optional. The default is not to
* filter by last modification time.
* @opt_param string completedMin Lower bound for a task's completion date (as a
* RFC 3339 timestamp) to filter by. Optional. The default is not to filter by
* completion date.
* @opt_param string maxResults Maximum number of task lists returned on one
* page. Optional. The default is 100.
* @opt_param bool showCompleted Flag indicating whether completed tasks are
* returned in the result. Optional. The default is True.
* @opt_param string pageToken Token specifying the result page to return.
* Optional.
* @opt_param string completedMax Upper bound for a task's completion date (as a
* RFC 3339 timestamp) to filter by. Optional. The default is not to filter by
* completion date.
* @opt_param bool showHidden Flag indicating whether hidden tasks are returned
* in the result. Optional. The default is False.
* @opt_param string dueMin Lower bound for a task's due date (as a RFC 3339
* timestamp) to filter by. Optional. The default is not to filter by due date.
* @return Google_Service_Tasks_Tasks
*/
public function listTasks($tasklist, $optParams = array())
{
$params = array('tasklist' => $tasklist);
$params = array_merge($params, $optParams);
return $this->call('list', array($params), "Google_Service_Tasks_Tasks");
}
/**
* Moves the specified task to another position in the task list. This can
* include putting it as a child task under a new parent and/or move it to a
* different position among its sibling tasks. (tasks.move)
*
* @param string $tasklist Task list identifier.
* @param string $task Task identifier.
* @param array $optParams Optional parameters.
*
* @opt_param string parent New parent task identifier. If the task is moved to
* the top level, this parameter is omitted. Optional.
* @opt_param string previous New previous sibling task identifier. If the task
* is moved to the first position among its siblings, this parameter is omitted.
* Optional.
* @return Google_Service_Tasks_Task
*/
public function move($tasklist, $task, $optParams = array())
{
$params = array('tasklist' => $tasklist, 'task' => $task);
$params = array_merge($params, $optParams);
return $this->call('move', array($params), "Google_Service_Tasks_Task");
}
/**
* Updates the specified task. This method supports patch semantics.
* (tasks.patch)
*
* @param string $tasklist Task list identifier.
* @param string $task Task identifier.
* @param Google_Task $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Tasks_Task
*/
public function patch($tasklist, $task, Google_Service_Tasks_Task $postBody, $optParams = array())
{
$params = array('tasklist' => $tasklist, 'task' => $task, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('patch', array($params), "Google_Service_Tasks_Task");
}
/**
* Updates the specified task. (tasks.update)
*
* @param string $tasklist Task list identifier.
* @param string $task Task identifier.
* @param Google_Task $postBody
* @param array $optParams Optional parameters.
* @return Google_Service_Tasks_Task
*/
public function update($tasklist, $task, Google_Service_Tasks_Task $postBody, $optParams = array())
{
$params = array('tasklist' => $tasklist, 'task' => $task, 'postBody' => $postBody);
$params = array_merge($params, $optParams);
return $this->call('update', array($params), "Google_Service_Tasks_Task");
}
}
class Google_Service_Tasks_Task extends Google_Collection
{
protected $collection_key = 'links';
protected $internal_gapi_mappings = array(
);
public $completed;
public $deleted;
public $due;
public $etag;
public $hidden;
public $id;
public $kind;
protected $linksType = 'Google_Service_Tasks_TaskLinks';
protected $linksDataType = 'array';
public $notes;
public $parent;
public $position;
public $selfLink;
public $status;
public $title;
public $updated;
public function setCompleted($completed)
{
$this->completed = $completed;
}
public function getCompleted()
{
return $this->completed;
}
public function setDeleted($deleted)
{
$this->deleted = $deleted;
}
public function getDeleted()
{
return $this->deleted;
}
public function setDue($due)
{
$this->due = $due;
}
public function getDue()
{
return $this->due;
}
public function setEtag($etag)
{
$this->etag = $etag;
}
public function getEtag()
{
return $this->etag;
}
public function setHidden($hidden)
{
$this->hidden = $hidden;
}
public function getHidden()
{
return $this->hidden;
}
public function setId($id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setLinks($links)
{
$this->links = $links;
}
public function getLinks()
{
return $this->links;
}
public function setNotes($notes)
{
$this->notes = $notes;
}
public function getNotes()
{
return $this->notes;
}
public function setParent($parent)
{
$this->parent = $parent;
}
public function getParent()
{
return $this->parent;
}
public function setPosition($position)
{
$this->position = $position;
}
public function getPosition()
{
return $this->position;
}
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
public function getSelfLink()
{
return $this->selfLink;
}
public function setStatus($status)
{
$this->status = $status;
}
public function getStatus()
{
return $this->status;
}
public function setTitle($title)
{
$this->title = $title;
}
public function getTitle()
{
return $this->title;
}
public function setUpdated($updated)
{
$this->updated = $updated;
}
public function getUpdated()
{
return $this->updated;
}
}
class Google_Service_Tasks_TaskLinks extends Google_Model
{
protected $internal_gapi_mappings = array(
);
public $description;
public $link;
public $type;
public function setDescription($description)
{
$this->description = $description;
}
public function getDescription()
{
return $this->description;
}
public function setLink($link)
{
$this->link = $link;
}
public function getLink()
{
return $this->link;
}
public function setType($type)
{
$this->type = $type;
}
public function getType()
{
return $this->type;
}
}
class Google_Service_Tasks_TaskList extends Google_Model
{
protected $internal_gapi_mappings = array(
);
public $etag;
public $id;
public $kind;
public $selfLink;
public $title;
public $updated;
public function setEtag($etag)
{
$this->etag = $etag;
}
public function getEtag()
{
return $this->etag;
}
public function setId($id)
{
$this->id = $id;
}
public function getId()
{
return $this->id;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setSelfLink($selfLink)
{
$this->selfLink = $selfLink;
}
public function getSelfLink()
{
return $this->selfLink;
}
public function setTitle($title)
{
$this->title = $title;
}
public function getTitle()
{
return $this->title;
}
public function setUpdated($updated)
{
$this->updated = $updated;
}
public function getUpdated()
{
return $this->updated;
}
}
class Google_Service_Tasks_TaskLists extends Google_Collection
{
protected $collection_key = 'items';
protected $internal_gapi_mappings = array(
);
public $etag;
protected $itemsType = 'Google_Service_Tasks_TaskList';
protected $itemsDataType = 'array';
public $kind;
public $nextPageToken;
public function setEtag($etag)
{
$this->etag = $etag;
}
public function getEtag()
{
return $this->etag;
}
public function setItems($items)
{
$this->items = $items;
}
public function getItems()
{
return $this->items;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
}
class Google_Service_Tasks_Tasks extends Google_Collection
{
protected $collection_key = 'items';
protected $internal_gapi_mappings = array(
);
public $etag;
protected $itemsType = 'Google_Service_Tasks_Task';
protected $itemsDataType = 'array';
public $kind;
public $nextPageToken;
public function setEtag($etag)
{
$this->etag = $etag;
}
public function getEtag()
{
return $this->etag;
}
public function setItems($items)
{
$this->items = $items;
}
public function getItems()
{
return $this->items;
}
public function setKind($kind)
{
$this->kind = $kind;
}
public function getKind()
{
return $this->kind;
}
public function setNextPageToken($nextPageToken)
{
$this->nextPageToken = $nextPageToken;
}
public function getNextPageToken()
{
return $this->nextPageToken;
}
}