Skip to content

Commit 3a11151

Browse files
committed
Updated Books.php
This change has been generated by a script that has detected changes in the discovery doc of the API. Check http://developers.google.com/discovery for more info.
1 parent 7e23669 commit 3a11151

1 file changed

Lines changed: 138 additions & 2 deletions

File tree

src/Google/Service/Books.php

Lines changed: 138 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ class Google_Service_Books extends Google_Service
3737
public $bookshelves;
3838
public $bookshelves_volumes;
3939
public $cloudloading;
40+
public $dictionary;
4041
public $layers;
4142
public $layers_annotationData;
4243
public $layers_volumeAnnotations;
@@ -194,6 +195,26 @@ public function __construct(Google_Client $client)
194195
)
195196
)
196197
);
198+
$this->dictionary = new Google_Service_Books_Dictionary_Resource(
199+
$this,
200+
$this->serviceName,
201+
'dictionary',
202+
array(
203+
'methods' => array(
204+
'listOfflineMetadata' => array(
205+
'path' => 'dictionary/listOfflineMetadata',
206+
'httpMethod' => 'GET',
207+
'parameters' => array(
208+
'cpksver' => array(
209+
'location' => 'query',
210+
'type' => 'string',
211+
'required' => true,
212+
),
213+
),
214+
),
215+
)
216+
)
217+
);
197218
$this->layers = new Google_Service_Books_Layers_Resource(
198219
$this,
199220
$this->serviceName,
@@ -622,14 +643,18 @@ public function __construct(Google_Client $client)
622643
'path' => 'mylibrary/annotations',
623644
'httpMethod' => 'POST',
624645
'parameters' => array(
625-
'source' => array(
646+
'country' => array(
626647
'location' => 'query',
627648
'type' => 'string',
628649
),
629650
'showOnlySummaryInResponse' => array(
630651
'location' => 'query',
631652
'type' => 'boolean',
632653
),
654+
'source' => array(
655+
'location' => 'query',
656+
'type' => 'string',
657+
),
633658
),
634659
),'list' => array(
635660
'path' => 'mylibrary/annotations',
@@ -1446,6 +1471,33 @@ public function updateBook(Google_Service_Books_BooksCloudloadingResource $postB
14461471
}
14471472
}
14481473

1474+
/**
1475+
* The "dictionary" collection of methods.
1476+
* Typical usage is:
1477+
* <code>
1478+
* $booksService = new Google_Service_Books(...);
1479+
* $dictionary = $booksService->dictionary;
1480+
* </code>
1481+
*/
1482+
class Google_Service_Books_Dictionary_Resource extends Google_Service_Resource
1483+
{
1484+
1485+
/**
1486+
* Returns a list of offline dictionary meatadata available
1487+
* (dictionary.listOfflineMetadata)
1488+
*
1489+
* @param string $cpksver The device/version ID from which to request the data.
1490+
* @param array $optParams Optional parameters.
1491+
* @return Google_Service_Books_Metadata
1492+
*/
1493+
public function listOfflineMetadata($cpksver, $optParams = array())
1494+
{
1495+
$params = array('cpksver' => $cpksver);
1496+
$params = array_merge($params, $optParams);
1497+
return $this->call('listOfflineMetadata', array($params), "Google_Service_Books_Metadata");
1498+
}
1499+
}
1500+
14491501
/**
14501502
* The "layers" collection of methods.
14511503
* Typical usage is:
@@ -1786,9 +1838,10 @@ public function get($annotationId, $optParams = array())
17861838
* @param Google_Annotation $postBody
17871839
* @param array $optParams Optional parameters.
17881840
*
1789-
* @opt_param string source String to identify the originator of this request.
1841+
* @opt_param string country ISO-3166-1 code to override the IP-based location.
17901842
* @opt_param bool showOnlySummaryInResponse Requests that only the summary of
17911843
* the specified layer be provided in the response.
1844+
* @opt_param string source String to identify the originator of this request.
17921845
* @return Google_Service_Books_Annotation
17931846
*/
17941847
public function insert(Google_Service_Books_Annotation $postBody, $optParams = array())
@@ -4419,6 +4472,89 @@ public function getVolumeId()
44194472
}
44204473
}
44214474

4475+
class Google_Service_Books_Metadata extends Google_Collection
4476+
{
4477+
protected $collection_key = 'items';
4478+
protected $internal_gapi_mappings = array(
4479+
);
4480+
protected $itemsType = 'Google_Service_Books_MetadataItems';
4481+
protected $itemsDataType = 'array';
4482+
public $kind;
4483+
4484+
4485+
public function setItems($items)
4486+
{
4487+
$this->items = $items;
4488+
}
4489+
public function getItems()
4490+
{
4491+
return $this->items;
4492+
}
4493+
public function setKind($kind)
4494+
{
4495+
$this->kind = $kind;
4496+
}
4497+
public function getKind()
4498+
{
4499+
return $this->kind;
4500+
}
4501+
}
4502+
4503+
class Google_Service_Books_MetadataItems extends Google_Model
4504+
{
4505+
protected $internal_gapi_mappings = array(
4506+
"downloadUrl" => "download_url",
4507+
"encryptedKey" => "encrypted_key",
4508+
);
4509+
public $downloadUrl;
4510+
public $encryptedKey;
4511+
public $language;
4512+
public $size;
4513+
public $version;
4514+
4515+
4516+
public function setDownloadUrl($downloadUrl)
4517+
{
4518+
$this->downloadUrl = $downloadUrl;
4519+
}
4520+
public function getDownloadUrl()
4521+
{
4522+
return $this->downloadUrl;
4523+
}
4524+
public function setEncryptedKey($encryptedKey)
4525+
{
4526+
$this->encryptedKey = $encryptedKey;
4527+
}
4528+
public function getEncryptedKey()
4529+
{
4530+
return $this->encryptedKey;
4531+
}
4532+
public function setLanguage($language)
4533+
{
4534+
$this->language = $language;
4535+
}
4536+
public function getLanguage()
4537+
{
4538+
return $this->language;
4539+
}
4540+
public function setSize($size)
4541+
{
4542+
$this->size = $size;
4543+
}
4544+
public function getSize()
4545+
{
4546+
return $this->size;
4547+
}
4548+
public function setVersion($version)
4549+
{
4550+
$this->version = $version;
4551+
}
4552+
public function getVersion()
4553+
{
4554+
return $this->version;
4555+
}
4556+
}
4557+
44224558
class Google_Service_Books_Offers extends Google_Collection
44234559
{
44244560
protected $collection_key = 'items';

0 commit comments

Comments
 (0)